1 2019-11-28 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/92691
4 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
6 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
7 calls, return !handle_printf_call rather than always returning true.
8 (check_and_optimize_stmt): Describe return value meaning in function
9 comment. Formatting fix.
11 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
13 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
14 combination of globa0 and global counters..
16 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
19 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
20 by VECTOR_UNIT_NONE_P instead.
22 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
24 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
25 Refine VF to VF_AVX512VL.
27 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
29 * config/rs6000/rs6000.md (movsi_internal): Reformat.
30 (movdi_internal64): Reformat.
32 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
35 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
36 builtin if we don't have an actual type.
37 (builtin_function_type): If the builtin function uses a DFP type
38 and decimal float has been disabled, then return NULL_TREE.
40 2019-11-27 Jakub Jelinek <jakub@redhat.com>
42 PR rtl-optimization/92510
43 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
44 of comparison into a comparison with different mode if both imode and
45 omode are scalar integral modes.
47 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
49 PR rtl-optimization/90007
50 * recog.c (constrain_operands): Permit hard registers too for
51 memory when LRA is used.
53 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
55 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
56 between Coldfire and regular m68k.
57 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
59 2019-11-27 Richard Biener <rguenther@suse.de>
61 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
62 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
63 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
64 * optabs-tree.c (supportable_convert_operation): Do not call
65 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
66 * optabs-tree.h (supportable_convert_operation): Adjust.
67 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
68 * doc/tm.texi: Regenerate.
69 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
70 * tree-vect-generic.c (expand_vector_conversion): Likewise.
71 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
72 unused decl parameter and adjust.
73 (vect_create_vectorized_promotion_stmts): Likewise.
74 (vectorizable_conversion): Adjust.
76 2019-11-27 Richard Biener <rguenther@suse.de>
78 PR tree-optimization/92690
79 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
80 converting elements not originally converted.
82 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
85 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
86 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
87 mpfr_rnd_t instead of mp_rnd_t.
88 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
89 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
90 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
91 Use mpfr_exp_t instead of mp_exp_t.
92 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
93 MPFR_RNDx instead of GMP_RNDx.
94 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
95 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
96 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
97 of mp_rnd_t and remove MPFR_RNDx poisoning.
98 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
100 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
102 PR tree-optimization/91790
103 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
104 DR for vect_setup_realignment when first_stmt_info is different
105 from first_stmt_info_for_drptr.
107 2019-11-27 Richard Biener <rguenther@suse.de>
109 PR tree-optimization/92645
110 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
111 CTORs with just a subset of the original vectors.
113 2019-11-27 Richard Biener <rguenther@suse.de>
116 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
117 edges and instead record blocks in bitmap.
118 (gimple_expand_calls_inline): Adjust.
119 (fold_marked_statements): Delay EH cleanup until all folding is
121 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
124 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
126 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
128 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
131 2019-11-27 Jakub Jelinek <jakub@redhat.com>
134 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
136 2019-11-26 Martin Sebor <msebor@redhat.com>
138 PR tree-optimization/92683
139 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
140 inadvertently removed in a previous change. Rename local variable
143 2019-11-26 Richard Biener <rguenther@suse.de>
146 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
149 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
151 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
153 2019-11-26 Jakub Jelinek <jakub@redhat.com>
155 PR tree-optimization/92644
156 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
157 next to INTEGER_CST checks.
159 2019-11-26 Richard Biener <rguenther@suse.de>
161 PR tree-optimization/92645
162 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
163 do not build the operation from scalars if the operand is.
165 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
167 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
168 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
171 2019-11-25 Martin Liska <mliska@suse.cz>
173 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
174 up used dump message.
176 2019-11-25 Martin Liska <mliska@suse.cz>
179 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
180 too strict checking assert.
182 2019-11-25 Joseph Myers <joseph@codesourcery.com>
185 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
186 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
187 error_mark_node if corresponding global tree node is NULL.
188 * tree.c (build_common_tree_nodes): Do not initialize
189 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
190 decimal floating-point not supported.
192 2019-11-25 Joseph Myers <joseph@codesourcery.com>
194 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
197 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
199 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
200 Replace code for non-CONST_INT constants with gcc_unreachable.
201 * config/m68k/m68k.md (cbranchdi): Don't generate individual
203 (CMPMODE): New mode_iterator.
204 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
206 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
208 (cmp<mode>_68881): Remove 'F' constraint from first comparison
210 (bit test insns patterns): Use nonimmediate_operand, not
211 register_operand, for source operands that allow memory in
213 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
214 Use register_operand, not nonimmediate_operand, for the
216 (DBCC): New mode_iterator.
217 (dbcc peepholes): Use it to reduce duplication.
218 (trap): Use const_true_rtx, not const1_rtx.
219 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
220 from m68k_subword_comparison_operand and changed to handle
224 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
226 (m68k_init_cc): New declaration.
227 (m68k_output_compare_di, m68k_output_compare_si)
228 (m68k_output_compare_hi, m68k_output_compare_qi)
229 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
230 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
231 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
232 m68k_output_branch_float, m68k_output_branch_float_rev):
234 (valid_dbcc_comparison_p_2, flags_in_68881)
235 (output_btst): Remove declaration.
236 * config/m68k/m68k.c (INCLDUE_STRING): Define.
237 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
238 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
239 (flags_compare_op0, flags_compare_op1, flags_operand1,
240 flags_operand2, flags_valid): New static variables.
241 (m68k_find_flags_value, m68k_init_cc): New functions.
242 (handle_flags_for_move, m68k_asm_final_postscan_insn,
243 remember_compare_flags): New static functions.
244 (output_dbcc_and_branch): New argument CODE. Use it, and add
245 PLUS and MINUS to the possible codes. All callers changed.
246 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
247 and INSN arguments, add CODE arg. Return the comparison code
248 to use. All callers changed. Use CODE instead of
249 next_insn_tests_no_inequality, and replace cc_status management
250 with changing the return code.
251 (m68k_rtx_costs): Instead of testing for COMPARE, test for
252 RTX_COMPARE or RTX_COMM_COMPARE.
253 (output_move_simode, output_move_qimode): Call
254 handle_flags_for_move.
255 (notice_update_cc): Delete function.
256 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
257 m68k_output_compare_hi, m68k_output_compare_qi,
258 m68k_output_compare_fp, m68k_output_branch_integer,
259 m68k_output_branch_integer_rev, m68k_output_scc,
260 m68k_output_branch_float, m68k_output_branch_float_rev,
261 m68k_output_scc_float): New functions.
262 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
263 once at the start, and set flags_valid and flags_operand1 if the
265 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
266 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
268 (CC_STATUS_INIT): Define.
269 * config/m68k/m68k.md (flags_valid): New define_attr.
270 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
271 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
272 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
273 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
274 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
275 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
276 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
277 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
278 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
279 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
280 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
281 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
282 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
283 ctrapqi4, conditional_trap): Delete patterns.
284 (cbranchdi4_insn): New pattern.
285 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
286 test high part only. When testing EQ or NE, generate beq0_di
287 and bne0_di patterns directly.
288 (cstoredi4): When testing LT or GE, test high part only.
289 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
291 (scc0_constraints, cmp1_constraints, cmp2_constraints,
292 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
293 cmp2_cf_predicate): New define_mode_attrs.
294 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
295 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
296 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
298 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
299 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
300 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
302 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
303 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
305 (BTST): New define_mode_iterator.
306 (btst_predicate, btst_constraint, btst_range): New
308 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
310 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
311 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
312 patterns): Set attr "flags_valid".
313 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
314 management. Set attr "flags_valid".
315 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
316 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
317 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
318 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
319 manual CC_STATUS management.
320 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
321 unnamed strict_lowpart subhi and subqi patterns): Set attr
323 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
324 Remove code to operate on address regs and assert the case
326 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
327 manual CC_STATUS_INIT.
328 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
329 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
330 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
331 one_cmplqi2, unnamed strict_lowpart patterns
332 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
333 one_cmplhi and one_cmplqi): Set attr "flags_valid".
334 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
335 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
337 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
338 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
339 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
340 unnamed strict_low_part patterns for HI and
341 QI versions): Set attr "flags_valid".
342 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
343 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
344 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
345 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
346 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
347 (various unnamed peepholes): Adjust compare/branch sequences
348 for new cbranch patterns.
349 (dbcc peepholes): Likewise, and output the comparison here
351 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
352 (fp_src_operand): Allow constant zero.
353 (address_reg_operand): New predicate.
355 * rtl.h (inequality_comparisons_p): Remove declaration.
356 * recog.h (next_insn_tests_no_inequality): Likewise.
357 * rtlanal.c (inequality_comparisons_p): Delete function.
358 * recog.c (next_insn_tests_no_inequality): Likewise.
360 2019-11-25 Richard Biener <rguenther@suse.de>
362 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
363 (vect_detect_hybrid_slp): Swap lane and instance iteration,
364 properly re-building the visited hash-map for each lane.
366 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
368 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
369 gcn_md_reorg): Remove unused variables.
370 (gcn_emutls_var_init): Add missing (but unreachable) return
372 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
373 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
374 an uninitialized variable.
376 2019-11-25 Martin Jambor <mjambor@suse.cz>
379 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
380 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
381 (cgraph_materialize_clone): Move removel from clone tree to the
382 the new method and use it instead.
383 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
384 bodies of clones, also remove it from the clone tree.
386 2019-11-25 Martin Jambor <mjambor@suse.cz>
389 * ipa-sra.c (process_isra_node_results): Put the new node to the
390 same comdat group as the original node.
392 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
394 Build double32 / long-double32 multilibs if needed.
398 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
399 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
400 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
401 tm_defines and pass to genmultilib.awk.
402 * config/avr/genmultilib.awk: Use these variables to add double32
403 and / or long-double32 multilib(s) as needed.
404 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
406 2019-11-25 Richard Biener <rguenther@suse.de>
408 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
409 loop body, defaulted to NULL.
410 (single_likely_exit): Add exit vector argument
411 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
412 (number_of_iterations_exit): Likewise.
413 (number_of_iterations_exit_assumptions): Likewise.
414 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
416 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
417 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
418 Compute exit vector around call to single_likely_exit.
419 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
420 loop body to loop_only_exit_p.
421 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
423 (number_of_iterations_exit_assumptions): Get loop body from caller
425 (number_of_iterations_exit): Pass through new loop body arg.
426 (infer_loop_bounds_from_undefined): Get loop body from caller.
427 (estimate_numbers_of_iterations): Compute loop body once.
429 2019-11-25 Richard Biener <rguenther@suse.de>
431 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
432 auto_bb_flag instead of an sbitmap for visited handling.
434 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
436 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
438 (vector_fp_comparison_complex): Likewise.
439 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
441 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
443 (vector_lt<mode> for VEC_F): Refactor with
444 vector_fp_comparison_simple.
445 (vector_le<mode> for VEC_F): Likewise.
446 (vector_unge<mode> for VEC_F): Likewise.
447 (vector_unle<mode> for VEC_F): Likewise.
448 (vector_ne<mode> for VEC_F): Likewise.
449 (vector_ungt<mode> for VEC_F): Likewise.
450 (vector_unlt<mode> for VEC_F): Likewise.
451 (vector_ltgt<mode> for VEC_F): Refactor with
452 vector_fp_comparison_complex.
453 (vector_ordered<mode> for VEC_F): Likewise.
454 (vector_uneq<mode> for VEC_F): Likewise.
455 (vector_unordered<mode> for VEC_F): Likewise.
457 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
459 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
460 COMPARE, representing an overflow detection.
462 * combine.c (combine_instructions): Record costs for jumps.
464 * combine.c (can_combine_p): Allow autoinc in jumps.
466 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
468 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
469 * doc/invoke.texi (max-inline-insns-single-O2,
470 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
471 early-inlining-insns-O2): Remove documentation.
472 * ipa-fnsummary.c (analyze_function_body,
473 compute_fn_summary): Use opt_for_fn when accessing parameters.
474 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
475 inline_insns_auto, can_inline_edge_by_limits_p,
476 want_early_inline_function_p, big_speedup_p,
477 want_inline_small_function_p, want_inline_self_recursive_call_p,
478 recursive_inlining, compute_max_insns, inline_small_functions):
480 * opts.c (default_options): Add -O3 defaults for
481 OPT__param_early_inlining_insns_,
482 OPT__param_inline_heuristics_hint_percent_,
483 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
484 * params.opt (-param=early-inlining-insns-O2=,
485 -param=inline-heuristics-hint-percent-O2=,
486 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
487 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
488 -param=inline-min-speedup=, -param=inline-unit-growth=,
489 -param=large-function-growth=, -param=large-stack-frame=,
490 -param=large-stack-frame-growth=, -param=large-unit-insns=,
491 -param=max-inline-insns-recursive=,
492 -param=max-inline-insns-recursive-auto=,
493 -param=max-inline-insns-single=,
494 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
495 -param=max-inline-recursive-depth=,
496 -param=max-inline-recursive-depth-auto=,
497 -param=min-inline-recursive-probability=,
498 -param=partial-inlining-entry-probability=,
499 -param=uninlined-function-insns=, -param=uninlined-function-time=,
500 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
503 2019-11-23 Jakub Jelinek <jakub@redhat.com>
505 * ipa-fnsummary.c: Fix comment typos.
506 * ipa-ref.h: Likewise.
507 * ipa-predicate.h: Likewise.
508 * ipa-split.c: Likewise.
509 * ipa-inline-analysis.c: Likewise.
510 * ipa-predicate.c: Likewise.
511 * ipa-devirt.c: Likewise.
512 * ipa-icf.h: Likewise.
513 * profile-count.c: Likewise.
514 * ipa-icf.c: Likewise.
515 (sem_function::equals_wpa): Fix typos in dump messages.
516 * ipa-icf-gimple.h: Fix comment typos.
517 * ipa-inline-transform.c: Likewise.
518 * ipa-polymorphic-call.c: Likewise.
519 * ipa-fnsummary.h: Likewise.
520 * ipa-inline.c: Likewise.
521 (dump_inline_stats): Fix typo in debug dump message.
522 * profile-count.h: Fix comment typos.
525 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
526 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
527 register_operand, force x into register before storing it into dest.
531 * doc/extend.texi (attribute access): Fix a typo.
533 PR rtl-optimization/92610
534 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
535 cse_cfg_altered is set, even when tem is 0.
536 (rest_of_handle_cse_after_global_opts): Likewise.
538 2019-11-22 Jakub Jelinek <jakub@redhat.com>
541 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
542 tree_hash): Move to ...
543 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
544 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
546 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
548 PR tree-optimization/92618
549 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
550 containing the auto_vec and a tree.
551 (undistribute_bitref_for_vector): Handle the case when element type
552 of vec is not the same as type of the BIT_FIELD_REF. Formatting
555 2019-11-22 Martin Sebor <msebor@redhat.com>
558 * attribs.h (struct attr_access): New.
559 * attribs.c (decl_attributes): Add an informational note.
560 * builtins.c (check_access): Make extern. Consistently set no-warning
561 after issuing a warning. Handle calls through function pointers. Set
563 * builtins.h (check_access): Declare.
564 * calls.c (rdwr_access_hash): New type.
566 (init_attr_rdwr_indices): New function.
567 (maybe_warn_rdwr_sizes): Same.
568 (initialize_argument_information): Call init_attr_rdwr_indices.
569 Call maybe_warn_rdwr_sizes.
570 (get_size_range): Avoid null argument.
571 * doc/extend.texi (attribute access): Document new attribute.
573 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
575 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
576 (ACC_LDS_SIZE): Define.
577 (OTHER_LDS_SIZE): Define.
578 (LDS_SIZE): Redefine using above.
579 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
581 2019-11-22 Martin Sebor <msebor@redhat.com>
584 * builtins.c (check_nul_terminated_array): New function.
585 (fold_builtin_0): Remove declaration.
586 (fold_builtin_1): Same.
587 (fold_builtin_2): Same.
588 (fold_builtin_3): Same.
589 (fold_builtin_strpbrk): Add argument.
590 (fold_builtin_strspn): Same.
591 (fold_builtin_strcspn): Same.
592 (expand_builtin_strcat): Call it. Remove unused argument.
593 (expand_builtin_stpncpy): Same.
594 (expand_builtin_strncat): Same.
595 (expand_builtin_strncpy): Same. Adjust indentation.
596 (expand_builtin_strcmp): Same.
597 (expand_builtin_strncmp): Same.
598 (expand_builtin_fork_or_exec): Same.
599 (expand_builtin): Handle more built-ins.
600 (fold_builtin_2): Add argument.
601 (fold_builtin_n): Make static. Add argument.
602 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
603 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
604 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
605 (fold_call_stmt): Pass new argument to fold_builtin_n.
606 * builtins.h: Correct a comment.
607 * gimple-fold.c (gimple_fold_builtin_strchr): Call
608 check_nul_terminated_array.
609 * tree-ssa-strlen.c (handle_builtin_strlen): Call
610 check_nul_terminated_array.
611 (handle_builtin_strchr): Same.
612 (handle_builtin_string_cmp): Same.
614 2019-11-22 Martin Sebor <msebor@redhat.com>
616 PR tree-optimization/92501
617 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
618 handle unterminated arrays. Rename local variables for clarity.
620 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
622 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
623 granulated_sgprs according to architecture.
625 2019-11-22 Jan Hubicka <jh@suse.cz>
627 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
628 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
629 (memory_block_pool::reduce_free_list): ... this one.
630 (memory_block_pool::trim): New static function.
631 * memory-block.h (memory_block_pool::freelist_size): New constant
632 (memory_block_pool::clear_free_list): Rename to ...
633 (memory_block_pool::reduce_free_list): ... this one.
634 (memory_block_pool::trim): Declare.
636 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
638 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
640 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
642 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
644 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
646 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
647 (bic_cmp0_noout): New pattern.
648 (bic_cmp0): Likewise.
649 (neg_scc_insn): Remove pattern.
650 (not_scc_insn): Likewise.
652 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
654 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
656 2019-11-21 Joseph Myers <joseph@codesourcery.com>
658 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
659 pedwarn instead of warning_at for fallthrough not preceding a case
662 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
664 PR tree-optimization/92608
665 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
668 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
670 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
672 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
673 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
674 special for FP comparisons that need a cror instruction eventually.
675 (rs6000_emit_fp_cror): New function.
676 (rs6000_emit_sCOND): Expand all floating point comparisons to one
677 instruction, for normal FP modes, with HONOR_NANS.
678 (rs6000_emit_cbranch): Reformat.
679 * config/rs6000/rs6000.md (fp_rev): New iterator.
680 (fp_two): New iterator.
681 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
682 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
683 *cbranch_2insn: New define_insn_and_split.
685 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
687 PR tree-optimization/92526
688 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
689 versioning for alignment if the accesses do not have a consistent
690 mask, rather than asserting that the masks are consistent.
692 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
694 PR tree-optimization/92595
695 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
697 (vectorizable_store, vectorizable_load): Likewise.
699 2019-11-21 Jan Hubicka <jh@suse.cz>
701 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
702 (resolve_noninline_speculation, inline_small_functions): Avoid
705 2019-11-21 Richard Biener <rguenther@suse.de>
707 * lra.c (lra_insn_recog_data_pool): New.
708 (free_insn_recog_data): Adjust.
709 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
710 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
712 2019-11-21 Richard Biener <rguenther@suse.de>
714 PR tree-optimization/92596
715 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
717 2019-11-21 Jan Hubicka <jh@suse.cz>
719 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
720 ready for some vectors to not be allocated.
721 (evaluate_properties_for_edge): Document better; make
722 known_vals and known_aggs caller allocated; avoid determining
723 values of parameters which are not used.
724 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
726 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
727 (do_estimate_edge_size): Likewise.
728 (do_estimate_edge_hints): Likewise.
729 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
730 values are not known.
731 (ipa_release_agg_values): Add option to not release vector itself.
732 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
734 2019-11-21 Richard Biener <rguenther@suse.de>
736 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
737 (loop_iterator::to_visit): Use an auto_vec with internal storage.
738 (loop_iterator::loop_iterator): Adjust.
739 * cfganal.c (compute_dominance_frontiers_1): Fold into...
740 (compute_dominance_frontiers): ... this. Hoist invariant
741 get_immediate_dominator call.
742 (compute_idf): Use a work-set instead of a work-list for more
743 optimal iteration order and duplicate avoidance.
744 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
745 the vector all the time, instead pre-allocate the vector only
747 (delete_update_ssa): Simplify.
748 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
750 2019-11-21 Jakub Jelinek <jakub@redhat.com>
752 PR tree-optimization/91355
753 * tree-ssa-sink.c (select_best_block): Use >= rather than >
754 for early_bb scaled count with best_bb count comparison.
756 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
758 * ipa-inline.c (edge_badness): Likewise.
759 * lto-streamer.h (class lto_location_cache): Likewise.
760 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
761 gratutious -> gratuitous.
763 2019-11-21 Richard Biener <rguenther@suse.de>
766 2019-09-17 Richard Biener <rguenther@suse.de>
768 PR tree-optimization/91790
769 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
770 use the correct DR for setting up realignment.
772 2019-11-21 Richard Biener <rguenther@suse.de>
774 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
775 (equiv_class_obstack): New.
776 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
777 (perform_var_substitution): Initialize equiv_class_obstack.
778 (free_var_substitution_info): Free equiv_class_obstack.
780 2019-11-20 Jan Hubicka <jh@suse.cz>
782 * ipa-inline.c (want_early_inline_function_p): Do not estimate
783 edge growth when callee function is very large.
784 * ipa-inline.h (estimate_min_edge_growth): New.
786 2019-11-20 Jan Hubicka <jh@suse.cz>
788 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
789 negative time in calls summary; correct roundoff errors
790 leading to negative times.
791 (ipa_merge_fn_summary_after_inlining): Update calls size time table
793 (ipa_update_overall_fn_summary): Add RESET parameter.
794 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
795 * ipa-inline-transform.c (inline_call): Enable incremental updates.
797 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
799 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
800 def types for two-operation SLP.
802 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
805 * doc/sourcebuild.texi (vect_char_add): Document.
807 2019-11-20 Alexandre Oliva <oliva@adacore.com>
809 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
810 * function.c (record_final_call): Record even calls that might
811 have been in the cgraph.
812 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
815 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
817 * configure.ac: Use https for gcc.gnu.org
818 * configure: Regenerated.
819 * doc/install.texi: Use https for gcc.gnu.org.
820 * doc/sourcebuild.texi: Likewise.
822 2019-11-20 Julian Brown <julian@codesourcery.com>
824 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
826 2019-11-20 Jan Hubicka <jh@suse.cz>
828 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
829 parameter and update call_size_time_table.
830 (ipa_fn_summary::max_size_time_table_size): New constant.
831 (estimate_calls_size_and_time_1): Break out from ...
832 (estimate_calls_size_and_time): ... here; implement summary production.
833 (summarize_calls_size_and_time): New function.
834 (ipa_call_context::estimate_size_and_time): Bypass
835 estimate_calls_size_and_time for leaf functions.
836 (ipa_update_overall_fn_summary): Likewise.
837 * ipa-fnsummary.h (call_size_time_table): New.
838 (ipa_fn_summary::account_size_time): Update prototype.
840 2019-11-20 Joseph Myers <joseph@codesourcery.com>
842 * doc/invoke.texi (-Wc11-c2x-compat): Document.
844 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
847 * common.opt (fcommon): Change init to 1.
848 * doc/invoke.texi (-fcommon): Update documentation.
850 2019-11-20 Jan Hubicka <jh@suse.cz>
852 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
855 2019-11-20 Jan Hubicka <jh@suse.cz>
857 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
858 Add allocator parameter.
859 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
860 (fibonacci_heap<K,V>::m_allocator): New.
861 (fibonacci_heap<K,V>::m_own_allocator): New.
862 (fibonacci_heap<K,V>::insert): Use allocator.
863 (fibonacci_heap<K,V>::extract_min): Likewise.
864 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
866 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
868 * fibonacci_heap.c: Include alloc-pool
869 (test_empty_heap): Initialize allocator.
870 (test_union): Likewise.
871 * bb-reorder.c: Include alloc-pool.h.
872 * tracer.c: Inlclude alloc-pool.h.
874 2019-11-20 Jan Hubicka <jh@suse.cz>
876 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
877 Preallocate for 32 entries.
878 (DFS::worklist): Likewise.
879 (DFS::DFS): Do not initialize sccstack and worklist.
880 (DFS::~DFS): Do not release sccstack.
882 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
885 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
886 Handle UNORDERED if !HONOR_NANS.
888 2019-11-20 Jan Hubicka <jh@suse.cz>
890 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
891 (edge_badness): ... here.
892 (inline_small_functions): Use monotonicity of badness calculation
893 to avoid redundant updates.
895 2019-11-20 Richard Biener <rguenther@suse.de>
897 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
898 constructors we are actually analyzing.
899 (vect_slp_check_for_constructors): Do not vectorize uniform
900 constuctors, do not dump here.
902 2019-11-20 Richard Biener <rguenther@suse.de>
904 PR tree-optimization/92537
905 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
906 vectorization validity check...
907 (vect_slp_analyze_operations): ... here.
909 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
911 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
912 (make_pass_arc_predicate_delay_insns): Likewise.
913 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
914 method, remove clone.
915 (class pass_arc_predicate_delay_insns): Likewise.
916 (arc_init): Remove registering of ARC specific passes.
917 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
918 * config/arc/arc-passes.def: New file.
920 2019-11-20 Jakub Jelinek <jakub@redhat.com>
923 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
924 and has a mode that doesn't have corresponding integral type.
927 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
928 clear opts->x_ix86_isa_flags{,2} here...
929 (ix86_valid_target_attribute_inner_p): ... but here when seeing
930 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
933 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
935 (insert_clobbers_for_var): Fix a typo in function comment.
937 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
938 Jakub Jelinek <jakub@redhat.com>
941 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
942 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
945 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
947 Make 0-series device specs work with older versions of avr-gcc.
950 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
951 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
952 <*link_pm_base_address>: Don't write spec.
953 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
955 2019-11-20 Richard Biener <rguenther@suse.de>
958 * builtins.c (compute_objsize): Deal with VLAs.
960 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
962 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
964 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
966 (power9_sched_reorder2): Call new function.
967 (rs6000_sched_reorder2): Likewise.
969 2019-11-18 Jan Hubicka <jh@suse.cz>
971 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
972 (estimate_calls_size_and_time): Update.
974 2019-11-18 Jan Hubicka <jh@suse.cz>
976 * ipa-inline.c (inlining_speedup): New function.
977 (edge_badness): Use it.
979 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
980 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
982 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
983 Mark as not having "likely" version.
984 * config/mips/mips.md (insn_count): The simd_div instruction with
985 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
986 (can_delay): Exclude simd_branch.
987 (defile_delay *): Add simd_branch instructions.
988 They have one regular delay slot.
990 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
993 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
995 * cse.c (cse_insn): Delete no-op register moves too.
996 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
997 Take a second comparison to control the value for NE.
998 (mask_to_comparison): Handle unsigned comparisons.
999 (simplify_logical_relational_operation): Likewise. Update call
1000 to comparison_to_mask. Handle AND if !HONOR_NANs.
1001 (simplify_binary_operation_1): Call the above for AND too.
1003 2019-11-19 Martin Liska <mliska@suse.cz>
1005 * toplev.c (general_init): Move the call...
1006 (toplev::main): ... here as we need init_options_struct
1009 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1012 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1015 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1017 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1018 (armv7-a): Likewise.
1019 (armv7ve): Likewise.
1021 2019-11-19 Richard Biener <rguenther@suse.de>
1023 PR tree-optimization/92581
1024 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1025 condition reduction chains gather all conditions involved
1026 for computing the index reduction vector.
1028 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1030 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1031 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1032 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1033 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1034 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1035 (aarch64_init_memtag_builtins): New.
1036 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1037 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1038 (aarch64_expand_builtin_memtag): New.
1039 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1040 (AARCH64_BUILTIN_SUBCODE): New macro.
1041 (aarch64_resolve_overloaded_memtag): New.
1042 (aarch64_resolve_overloaded_builtin_general): New. Call
1043 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1044 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1045 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1046 (aarch64_resolve_overloaded_builtin): Call
1047 aarch64_resolve_overloaded_builtin_general.
1048 * config/aarch64/aarch64-protos.h
1049 (aarch64_resolve_overloaded_builtin_general): New declaration.
1050 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1051 (TARGET_MEMTAG): Likewise.
1052 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1053 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1054 (irg, gmi, subp, addg, ldg, stg): New instructions.
1055 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1056 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1057 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1058 (__arm_mte_get_tag): Likewise.
1059 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1060 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1061 * config/arm/types.md (memtag): New.
1062 * doc/invoke.texi (-memtag): Update description.
1064 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1066 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1067 to define __GCC_ASM_FLAG_OUTPUTS__.
1068 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1069 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1070 depending on TARGET_THUMB1.
1071 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1073 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1076 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1079 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1080 operand is negative and one non-negative, compare the non-negative
1081 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1082 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1083 and s2 == 0, unless one of them is known to be negative. Remove
1084 tem2 variable, use tem where tem2 has been used before.
1086 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1088 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1090 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1092 PR tree-optimization/92557
1093 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1094 vmode rather than asserting it always is.
1096 2019-11-19 Richard Biener <rguenther@suse.de>
1098 PR tree-optimization/92554
1099 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1100 for the actual condition stmt and deal with sign-changes.
1102 2019-11-19 Richard Biener <rguenther@suse.de>
1104 PR tree-optimization/92555
1105 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1108 2019-11-19 Martin Liska <mliska@suse.cz>
1111 * config/riscv/riscv.c (riscv_address_insns): Initialize
1112 addr in order to remove boostrap -Wmaybe-uninitialized
1115 2019-11-18 Martin Sebor <msebor@redhat.com>
1117 PR tree-optimization/92493
1118 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1121 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1123 * cfgloop.c (get_loop_body_in_custom_order): New.
1124 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1125 * tree-loop-distribution.c (class loop_distribution): New.
1126 (bb_top_order_cmp): Remove.
1127 (bb_top_order_cmp_r): New.
1128 (create_rdg_vertices): Move into class loop_distribution.
1129 (stmts_from_loop): Same as above.
1130 (update_for_merge): Same as above.
1131 (partition_merge_into): Same as above.
1132 (get_data_dependence): Same as above.
1133 (data_dep_in_cycle_p): Same as above.
1134 (update_type_for_merge): Same as above.
1135 (build_rdg_partition_for-vertex): Same as above.
1136 (classify_builtin_ldst): Same as above.
1137 (classify_partition): Same as above.
1138 (share_memory_accesses): Same as above.
1139 (rdg_build_partitions): Same as above.
1140 (pg_add_dependence_edges): Same as above.
1141 (build_partition_graph): Same as above.
1142 (merge_dep_scc_partitions): Same as above.
1143 (break_alias_scc_partitions): Same as above.
1144 (finalize_partitions): Same as above.
1145 (distribute_loop): Same as above.
1146 (bb_top_order_init): New method
1147 (bb_top_order_destroy): New method.
1148 (get_bb_top_order_index_size): New method.
1149 (get_bb_top_order_index_index): New method.
1150 (get_bb_top_order_index_index): New method.
1151 (loop_distribution::execute): New method.
1152 (pass_loop_distribution::execute): Instantiate loop_distribution.
1154 2019-11-18 Jan Hubicka <jh@suse.cz>
1157 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1159 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1161 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1163 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1164 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1165 * doc/md.texi: Document them.
1166 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1168 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1169 * internal-fn.c (check_ptrs_direct): New macro.
1170 (expand_check_ptrs_optab_fn): Likewise.
1171 (direct_check_ptrs_optab_supported_p): Likewise.
1172 (internal_check_ptrs_fn_supported_p): New fuction.
1173 * tree-data-ref.c: Include internal-fn.h.
1174 (create_ifn_alias_checks): New function.
1175 (create_intersect_range_checks): Use it.
1176 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1177 (optab, cmp_op): Handle it.
1178 (raw_war, unspec): New int attributes.
1179 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1181 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1183 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1185 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1188 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1190 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1193 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1195 * cse.c (cse_insn): Delete no-op register moves too.
1196 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1197 Take a second comparison to control the value for NE.
1198 (mask_to_comparison): Handle unsigned comparisons.
1199 (simplify_logical_relational_operation): Likewise. Update call
1200 to comparison_to_mask. Handle AND if !HONOR_NANs.
1201 (simplify_binary_operation_1): Call the above for AND too.
1203 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1205 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1206 splitting the main code out into...
1207 (native_encode_vector_part): ...this new function.
1208 (native_decode_vector_tree): New function.
1209 (fold_view_convert_vector_encoding): Likewise.
1210 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1213 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1215 * tree-data-ref.c (create_intersect_range_checks_index): If the
1216 alias pair describes simple WAW and WAR dependencies, just check
1217 whether the first B access overlaps later A accesses.
1218 (create_waw_or_war_checks): New function that performs the same
1219 optimization on addresses.
1220 (create_intersect_range_checks): Call it.
1222 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1224 * lra-constraints.c (valid_address_p): Take the operand and a
1225 constraint as argument. If the operand is a MEM and the constraint
1226 is a memory constraint, check whether the eliminated form of the
1227 MEM already satisfies the constraint.
1228 (process_address_1): Update calls accordingly.
1230 2019-11-18 Tom Tromey <tromey@adacore.com>
1232 * doc/tm.texi: Rebuild.
1233 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1234 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1236 2019-11-18 Richard Biener <rguenther@suse.de>
1238 PR tree-optimization/92516
1239 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1240 argument, hoist bst_map creation/destruction to ...
1241 (vect_analyze_slp): ... here, forming a true graph with
1242 SLP instances being the entries.
1243 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1244 (vect_detect_hybrid_slp): Use one visited set for all
1246 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1247 to hash-sets of slp_tree.
1248 (vect_slp_analyze_operations): Likewise.
1249 (vect_bb_slp_scalar_cost): Remove wrapper.
1250 (vect_bb_vectorization_profitable_p): Use one visited set for
1252 (vect_schedule_slp_instance): Elide bst_map use.
1253 (vect_schedule_slp): Likewise.
1255 2019-11-18 Richard Biener <rguenther@suse.de>
1257 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1258 was vectorized with just external refs fail.
1260 2019-11-18 Martin Liska <mliska@suse.cz>
1263 * ipa-icf.c (sem_function::init): Unset m_checker
1264 at the end of the function.
1266 2019-11-18 Richard Biener <rguenther@suse.de>
1268 PR tree-optimization/92558
1269 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1270 reducting the width of a reduction vector def update new_phis.
1272 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1274 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1275 and s390*-*-linux-musl* targets.
1276 * configure: Regenerate.
1278 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1280 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1281 (MUSL_DYNAMIC_LINKER64): Define.
1283 2019-11-18 Martin Liska <mliska@suse.cz>
1285 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1286 message for an unknown counter.
1287 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1288 (dbg_cnt_process_opt): Remove unreachable code.
1290 2019-11-18 Martin Liska <mliska@suse.cz>
1293 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1294 Compare LHS types of NOP_EXPR.
1296 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1298 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1299 "initial_pass_name" argument -- by running "*clean_state" pass.
1300 Also free the "initial_pass_name" when done.
1302 2019-11-18 Richard Biener <rguenther@suse.de>
1304 PR rtl-optimization/92462
1305 * alias.c (find_base_term): Restrict the look through ANDs.
1306 (find_base_value): Likewise.
1308 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1310 Add support for AVR devices from the 0-series.
1313 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1314 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1315 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1316 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1317 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1318 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1319 for spec definitions.
1320 * doc/avr-mmcu.texi: Regenerate.
1322 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1325 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1326 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1327 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1328 (ix86_reassociation_width): Ditto.
1329 * config/i386/i386-options.c (ix86_option_override_internal):
1330 Replace TARGET_AVX128_OPTIAML with
1331 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1332 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1333 (TARGET_AVX128_OPTIMAL): Deleted.
1334 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1337 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1339 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1340 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1342 (cceq_rev_compare): Rename to...
1343 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1345 (define_split for <bd>tf_<mode>): Add SImode first argument to
1346 gen_cceq_ior_compare.
1348 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1350 * common/config/powerpcspe: Delete.
1352 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1354 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1355 output in UNSPEC_WRFFR.
1357 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1359 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1360 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1362 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1364 * tree-data-ref.c (create_intersect_range_checks_index)
1365 (create_intersect_range_checks): Print dump messages.
1367 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1369 * tree-data-ref.c (dump_alias_pair): New function.
1370 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1372 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1374 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1375 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1376 merging data references with different steps.
1377 (create_intersect_range_checks_index): Take a
1378 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1379 Bail out if DR_ALIAS_MIXED_STEPS is set.
1380 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1381 instead of two dr_with_seg_lens. Update call to
1382 create_intersect_range_checks_index.
1383 (create_runtime_alias_checks): Update call accordingly.
1385 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1387 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1388 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1389 (dr_with_seg_len_pair_t::sequencing): New enum.
1390 (dr_with_seg_len_pair_t::flags): New member variable.
1391 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1392 parameter and initialize the flags member variable.
1393 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1395 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1396 Ensure the two data references in an alias pair are in statement
1397 order, if there is a defined order.
1398 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1399 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1400 swapped the references in a dr_with_seg_len_pair_t. OR together
1401 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1402 try to restore the original dr_with_seg_len order, updating the
1403 flags if that fails.
1405 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1407 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1408 swapping the dr_as based on init values until we've decided
1409 whether to merge them.
1411 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1413 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1414 two accesses in each dr_with_seg_len_pair_t before trying to
1415 combine separate dr_with_seg_len_pair_ts.
1416 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1418 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1420 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1422 * config/aarch64/aarch64-sve.md
1423 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1424 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1425 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1426 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1427 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1428 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1429 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1431 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1432 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1433 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1434 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1436 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1438 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1439 (SVE_4HSI): New mode iterators.
1440 (ANY_EXTEND2): New code iterator.
1441 * config/aarch64/aarch64-sve.md
1442 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1444 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1445 ...this, handling extension to partial modes as well as full modes.
1446 Describe the extension as a predicated rather than unpredicated
1448 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1449 Likewise extend to...
1450 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1451 ...this, making the same adjustments.
1452 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1453 Likewise extend to...
1454 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1455 ...this, making the same adjustments.
1456 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1457 Likewise extend to...
1458 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1459 ...this, making the same adjustments.
1460 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1462 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1463 extension predicate.
1464 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1465 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1466 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1467 Describe the extension as a predicated rather than unpredicated
1469 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1470 Likewise. Canonicalize to a constant extension predicate.
1471 * config/aarch64/aarch64-sve-builtins-base.cc
1472 (svld1_gather_extend_impl::expand): Add an extra predicate for
1474 (svldff1_gather_extend_impl::expand): Likewise.
1476 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1478 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1480 * config/aarch64/aarch64-sve.md
1481 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1482 (gather_load<SVE_24:mode><v_int_container>): ...this.
1483 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1484 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1485 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1486 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1487 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1489 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1490 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1491 Allow the nominal extension predicate to be different from the
1493 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1494 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1496 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1498 * config/aarch64/aarch64-sve.md
1499 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1500 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1502 (aarch64_sve_adjust_stmt_cost): Call it.
1504 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1506 * config/aarch64/aarch64-sve.md
1507 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1508 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1509 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1511 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1512 ...this new pattern, handling extension to partial modes as well
1513 as full modes. Describe the extension as a predicated rather than
1514 unpredicated extension.
1515 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1516 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1517 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1519 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1520 ...this new pattern, handling extension to partial modes as well
1521 as full modes. Describe the extension as a predicated rather than
1522 unpredicated extension.
1523 * config/aarch64/aarch64-sve-builtins.cc
1524 (function_expander::use_contiguous_load_insn): Add an extra
1525 predicate for extending loads.
1526 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1527 (aarch64_sve_adjust_stmt_cost): Likewise.
1528 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1529 the cost of SVE vector stmts.
1531 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1533 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
1534 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
1535 * config/aarch64/aarch64-sve.md
1536 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
1537 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
1538 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
1539 comment. Avoid new narrower_mask ambiguity.
1540 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1541 (*cond_uxt<mode>_2): Update comment.
1542 (*cond_uxt<mode>_any): Likewise.
1544 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1546 * config/aarch64/aarch64-modes.def: Define partial SVE vector
1548 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
1550 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
1551 new vector float modes.
1552 (aarch64_sve_container_bits): New function.
1553 (aarch64_sve_pred_mode): Likewise.
1554 (aarch64_get_mask_mode): Use it.
1555 (aarch64_sve_element_int_mode): Handle structure modes and partial
1557 (aarch64_sve_container_int_mode): New function.
1558 (aarch64_vectorize_related_mode): Return SVE modes when given
1559 SVE modes. Handle partial modes, taking the preferred number
1560 of units from the size of the given mode.
1561 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
1563 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
1564 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
1565 (aarch64_split_sve_subreg_move): Use the mode form of
1566 aarch64_sve_pred_mode.
1567 (aarch64_secondary_reload): Handle partial modes in the same way
1568 as full big-endian vectors.
1569 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
1570 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
1571 merging with the Advanced SIMD modes. If two modes have the
1572 same size, try the Advanced SIMD mode first.
1573 (aarch64_simd_valid_immediate): Use the container rather than
1574 the element mode for INDEX constants.
1575 (aarch64_simd_vector_alignment): Make the alignment of partial
1576 SVE vector modes the same as their minimum size.
1577 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
1578 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
1579 (mov<SVE_ALL:mode>): ...this.
1580 (movmisalign<SVE_FULL:mode>): Extend to...
1581 (movmisalign<SVE_ALL:mode>): ...this.
1582 (*aarch64_sve_mov<mode>_le): Rename to...
1583 (*aarch64_sve_mov<mode>_ldr_str): ...this.
1584 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
1585 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
1586 partial modes regardless of endianness.
1587 (aarch64_sve_reload_be): Rename to...
1588 (aarch64_sve_reload_mem): ...this and enable for little-endian.
1589 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
1590 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
1591 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
1592 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
1593 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
1594 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1595 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1596 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1597 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1598 (maskload<SVE_FULL:mode><vpred>): Extend to...
1599 (maskload<SVE_ALL:mode><vpred>): ...this.
1600 (maskstore<SVE_FULL:mode><vpred>): Extend to...
1601 (maskstore<SVE_ALL:mode><vpred>): ...this.
1602 (vec_duplicate<SVE_FULL:mode>): Extend to...
1603 (vec_duplicate<SVE_ALL:mode>): ...this.
1604 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
1605 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
1606 (sve_ld1r<SVE_FULL:mode>): Extend to...
1607 (sve_ld1r<SVE_ALL:mode>): ...this.
1608 (vec_series<SVE_FULL_I:mode>): Extend to...
1609 (vec_series<SVE_I:mode>): ...this.
1610 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
1611 (*vec_series<SVE_I:mode>_plus): ...this.
1612 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
1613 new VPRED ambiguity.
1614 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1615 (add<SVE_FULL_I:mode>3): Extend to...
1616 (add<SVE_I:mode>3): ...this.
1617 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
1618 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
1619 (VPRED, vpred): Likewise.
1620 (Vctype): New iterator.
1621 (vw): Remove SVE modes.
1623 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1625 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
1626 (SVE_PARTIAL_I): ...this.
1627 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1629 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1631 * config/aarch64/iterators.md (SVE_ALL): Rename to...
1632 (SVE_FULL): ...this.
1633 (SVE_I): Rename to...
1634 (SVE_FULL_I): ...this.
1635 (SVE_F): Rename to...
1636 (SVE_FULL_F): ...this.
1637 (SVE_BHSI): Rename to...
1638 (SVE_FULL_BHSI): ...this.
1639 (SVE_HSD): Rename to...
1640 (SVE_FULL_HSD): ...this.
1641 (SVE_HSDI): Rename to...
1642 (SVE_FULL_HSDI): ...this.
1643 (SVE_HSF): Rename to...
1644 (SVE_FULL_HSF): ...this.
1645 (SVE_SD): Rename to...
1646 (SVE_FULL_SD): ...this.
1647 (SVE_SDI): Rename to...
1648 (SVE_FULL_SDI): ...this.
1649 (SVE_SDF): Rename to...
1650 (SVE_FULL_SDF): ...this.
1651 (SVE_S): Rename to...
1652 (SVE_FULL_S): ...this.
1653 (SVE_D): Rename to...
1654 (SVE_FULL_D): ...this.
1655 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1656 * config/aarch64/aarch64-sve2.md: Likewise.
1658 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1660 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
1662 * doc/invoke.texi: Document it.
1663 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1664 By default, return VECT_COMPARE_COSTS for SVE.
1666 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1668 * target.h (VECT_COMPARE_COSTS): New constant.
1669 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
1670 * doc/tm.texi: Regenerate.
1671 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
1672 * targhooks.c (default_autovectorize_vector_modes): Likewise.
1673 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1675 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
1676 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
1677 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
1678 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
1679 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
1680 (_loop_vec_info::vec_inside_cost): New member variables.
1681 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
1682 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
1683 (vect_analyze_loop): When autovectorize_vector_modes returns
1684 VECT_COMPARE_COSTS, try vectorizing the loop with each available
1685 vector mode and picking the one with the lowest cost.
1686 (vect_estimate_min_profitable_iters): Record the computed costs
1687 in the loop_vec_info.
1689 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1691 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
1692 element type rather than an element mode.
1693 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1694 Use get_vectype_for_scalar_type to query the natural types
1695 for a given element type rather than basing everything on
1696 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
1697 query to MAX_FIXED_MODE_SIZE.
1698 (duplicate_and_interleave): Update call accordingly.
1699 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1701 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1703 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
1704 optional maximum nunits.
1705 (get_vectype_for_scalar_type): Likewise. Also declare a form that
1707 (get_mask_type_for_scalar_type): Take an optional slp_tree.
1708 (vect_get_mask_type_for_stmt): Likewise.
1709 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
1710 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
1711 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
1712 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
1713 to get an assumed vector type for data references.
1714 * tree-vect-slp.c (vect_update_shared_vectype): New function.
1715 (vect_update_all_shared_vectypes): Likewise.
1716 (vect_build_slp_tree_1): Pass the group size to
1717 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
1718 for BB vectorization.
1719 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
1720 before building the vectof from scalars.
1721 (vect_analyze_slp_instance): Pass the group size to
1722 get_vectype_for_scalar_type.
1723 (vect_slp_analyze_node_operations_1): Don't recompute the vector
1724 types for BB vectorization here; just handle the case in which
1725 we deferred the choice for booleans.
1726 (vect_get_constant_vectors): Pass the slp_tree to
1727 get_vectype_for_scalar_type.
1728 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
1729 (vectorizable_call): Likewise.
1730 (vectorizable_simd_clone_call): Likewise.
1731 (vectorizable_conversion): Likewise.
1732 (vectorizable_shift): Likewise.
1733 (vectorizable_operation): Likewise.
1734 (vectorizable_comparison): Likewise.
1735 (vect_is_simple_cond): Take the slp_tree as argument and
1736 pass it to get_vectype_for_scalar_type.
1737 (vectorizable_condition): Update call accordingly.
1738 (get_vectype_for_scalar_type): Take a group_size argument.
1739 For BB vectorization, limit the the vector to that number
1740 of elements. Also define an overload that takes an slp_tree.
1741 (get_mask_type_for_scalar_type): Add an slp_tree argument and
1742 pass it to get_vectype_for_scalar_type.
1743 (vect_get_vector_types_for_stmt): Add a group_size argument
1744 and pass it to get_vectype_for_scalar_type. Don't use the
1745 cached vector type for BB vectorization if a group size is given.
1746 Handle data references in that case.
1747 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
1748 pass it to get_mask_type_for_scalar_type.
1750 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1752 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
1754 (estimate_edge_time): Use it.
1755 * ipa-inline-analysis.c (do_estimate_edge_time): Add
1756 ret_nonspec_time parameter.
1758 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
1760 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
1762 2019-11-15 Nick Clifton <nickc@redhat.com>
1763 Szabolcs Nagy <szabolcs.nagy@arm.com>
1766 * config/microblaze/microblaze.c (print_operand): Print value as long.
1768 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1770 * ipa-inline.c (edge_badness, inline_small_functions): Revert
1773 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1775 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
1776 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
1778 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1780 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
1781 (gcn_conditional_register_usage): Use constants in place of hard-coded
1783 (gcn_hsa_declare_function_name): Set lower bound for number of
1784 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
1785 MAX_NORMAL_VGPR_COUNT.
1787 2019-11-15 Martin Jambor <mjambor@suse.cz>
1789 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
1792 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1794 * config/gcn/gcn.c (default_requested_args): New.
1795 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
1796 set with default_requested_args.
1797 (gcn_conditional_register_usage): Limit register usage of non-kernel
1798 functions. Reassign fixed registers if a non-standard set of args is
1800 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
1802 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
1805 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
1806 aggregate jump function when inlined-to caller has no edge summary.
1808 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1810 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
1812 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1814 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
1816 (print_operand_address): Use v1 for zero vector offset.
1818 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1820 PR tree-optimization/92515
1821 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
1822 types when converting a vector/scalar shift into a vector/vector one,
1823 using tree_nop_conversion_p instead of useless_type_conversion_p.
1824 Move the conversion code to the transform block.
1826 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1828 * read-rtl-function.c
1829 (function_reader::add_fixup_source_location): Take additional
1830 parameter of a column.
1831 (function_reader::maybe_read_location): Optionally parse column
1832 information and pass to add_fixup_source_location.
1834 2019-11-15 Richard Biener <rguenther@suse.de>
1836 PR tree-optimization/92512
1837 * tree-vect-loop.c (check_reduction_path): Fix operand index
1838 computability check. Add check for second use in COND_EXPRs.
1840 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1843 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
1844 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
1846 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1848 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
1849 register class for VCC_LO and VCC_HI.
1850 (gcn_spill_class): Use SGPR_REGS to spill registers in
1851 VCC_CONDITIONAL_REG.
1853 2019-11-15 Richard Biener <rguenther@suse.de>
1855 PR tree-optimization/92324
1856 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1857 singedness of SLP reduction epilouge operations. Also reduce
1858 the vector width for SLP reductions before doing elementwise
1859 operations if possible.
1861 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1863 * passes.c (skip_pass): Set epilogue_completed if skipping the
1864 pro_and_epilogue pass.
1866 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1868 * passes.c (should_skip_pass_p): Always run "dfinish".
1870 2019-11-15 Richard Biener <rguenther@suse.de>
1872 * ipa-inline.c (inline_small_functions): Move assignment
1873 to next before call destroying edge.
1875 2019-11-15 Richard Biener <rguenther@suse.de>
1877 PR tree-optimization/92039
1878 PR tree-optimization/91975
1879 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
1880 previous change, treat invariants consistently as non-constant.
1881 (tree_estimate_loop_size): Ternary ops with just the first op
1882 constant are not optimized away.
1884 2019-11-15 Jakub Jelinek <jakub@redhat.com>
1886 * gimplify.c (gimplify_call_expr): Don't call
1887 omp_resolve_declare_variant after gimplification.
1888 * omp-general.c (omp_context_selector_matches): For isa that might
1889 match in some other function, defer if in declare simd function.
1890 (omp_context_compute_score): Don't look for " score" in construct
1891 trait set. Set *score to -1 if it can't ever match.
1892 (omp_resolve_declare_variant): If any variants need to be deferred,
1893 don't punt immediately, but compute scores of all variants and if
1894 ther eis a score winner that doesn't need to be deferred, return that.
1896 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
1898 * ipa-comdats.c: Fix comments typo.
1899 * ipa-profile.c: Fix comments typo.
1900 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
1901 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
1902 (gimple_gen_ic_func_profiler): Likewise.
1903 (pass_ipa_tree_profile::gate): Fix comments typo.
1905 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
1907 * ipa-inline.c (inline_small_functions): Update iterator of next.
1909 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1911 * lra-spills.c (assign_spill_hard_regs): Check that the spill
1912 register is suitable for the mode.
1914 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1916 * range-op.h (range_operator::fold_range): Return a bool.
1917 * range-op.cc (range_operator::wi_fold): Assert supported type.
1918 (range_operator::fold_range): Assert supported type and return true.
1919 (operator_equal::fold_range): Return true.
1920 (operator_not_equal::fold_range): Same.
1921 (operator_lt::fold_range): Same.
1922 (operator_le::fold_range): Same.
1923 (operator_gt::fold_range): Same.
1924 (operator_ge::fold_range): Same.
1925 (operator_plus::op1_range): Adjust call to fold_range.
1926 (operator_plus::op2_range): Same.
1927 (operator_minus::op1_range): Same.
1928 (operator_minus::op2_range): Same.
1929 (operator_exact_divide::op1_range): Same.
1930 (operator_lshift::fold_range): Return true and adjust fold_range call.
1931 (operator_rshift::fold_range): Same.
1932 (operator_cast::fold_range): Return true.
1933 (operator_logical_and::fold_range): Same.
1934 (operator_logical_or::fold_range): Same.
1935 (operator_logical_not::fold_range): Same.
1936 (operator_bitwise_not::fold_range): Adjust call to fold_range.
1937 (operator_bitwise_not::op1_range): Same.
1938 (operator_cst::fold_range): Return true.
1939 (operator_identity::fold_range): Return true.
1940 (operator_negate::fold_range): Return true and adjust fold_range call.
1941 (operator_addr_expr::fold_range): Return true.
1942 (operator_addr_expr::op1_range): Adjust call to fold_range.
1944 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
1945 (range_fold_unary_symbolics_p): Same.
1947 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1949 PR tree-optimization/92506
1950 * range-op.cc (range_operator::fold_range): Start with range undefined.
1951 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
1952 overflow is varying.
1954 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1956 * range-op.cc (*operator*::*range): Remove calls to
1957 range_intersect, range_invert, and range_union in favor of calling
1958 the in-place API methods.
1959 (range_tests): Same.
1960 * range.cc (range_intersect): Remove.
1961 (range_union): Remove.
1962 (range_invert): Remove.
1963 * range.h (range_intersect): Remove.
1964 (range_union): Remove.
1965 (range_intersect): Remove.
1967 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
1969 PR rtl-optimization/92430
1970 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
1971 (pass_jump_after_combine::execute): Perform jump threading
1974 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1975 Doug Rupp <rupp@adacore.com>
1976 Olivier Hainque <hainque@adacore.com>
1978 * config.gcc: Collapse the arm-vxworks entries into
1979 a single arm-wrs-vxworks7* one, bpabi based. Update
1980 the default cpu from arm8 to armv7-a
1981 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
1982 we always use ARM_UNWIND_INFO.
1983 (DWARF2_UNWIND_INFO): Remove redefinition.
1984 (ARM_TARGET2_DWARF_FORMAT): Likewise.
1985 (VXWORKS_PERSONALITY): Define, to "llvm".
1986 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
1988 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1990 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
1991 _VX_CPU instead of CPU and handle arm_arch8.
1993 2019-11-14 Doug Rupp <rupp@adacore.com>
1994 Olivier Hainque <hainque@adacore.com>
1995 Jerome Lambourg <lambourg@adacore.com>
1997 * config.gcc: Handle aarch64*-wrs-vxworks7*.
1998 * config/aarch64/aarch64-vxworks.h: New file.
1999 * config/aarch64/t-aarch64-vxworks: New file.
2001 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2002 Olivier Hainque <hainque@adacore.com>
2004 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2005 definition, pointless with a VxWorks specific version
2007 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2008 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2009 New local macros, controlling the addition of vxworks specific
2010 crtstuff objects depending on the EH mechanism and kind of
2011 module being linked.
2012 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2014 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2015 Jerome Lambourg <lambourg@adacore.com>
2016 Olivier Hainque <hainque@adacore.com>
2018 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2019 common macro definitions, conveying VXWORKS7 or 64bit general
2020 variations. Add a block to set gcc_cv_initfini_array
2021 unconditionally to "yes" for VxWorks7.
2022 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2023 by default. Update some comments.
2024 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2025 default, to be added the end of VXWORKS_LIBS_RTP.
2026 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2027 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2029 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2030 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2031 to account for the now available TLS abilities.
2032 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2033 (VXWORKS_HAVE_TLS): Likewise.
2035 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2037 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2038 (vect_slp_convert_to_external): Likewise.
2039 (vect_slp_analyze_node_operations): If analysis fails, try building
2040 the node from scalars instead.
2042 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2044 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2045 between vector types.
2046 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2047 non-widening and non-narrowing path to handle standard
2048 conversion codes, if the target supports them.
2049 * expr.c (convert_move): Try using the extend and truncate optabs
2051 * optabs-tree.c (supportable_convert_operation): Likewise.
2052 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2053 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2054 (trunc<mode><Vnarrowq>2): New patterns.
2056 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2058 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2059 require vectype and nunits_vectype to have the same size;
2060 instead assert that nunits_vectype has at least as many
2061 elements as vectype. Don't compute a separate nunits_vectype
2062 if the scalar type is obviously the same as vectype's.
2063 Tweak dump messages.
2065 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2067 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2069 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2070 (TARGET_VECTORIZE_RELATED_MODE): Define.
2072 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2074 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2075 (vec_info::used_vector_mode): New member variable.
2076 (vect_chooses_same_modes_p): Declare.
2077 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2078 chosen vector mode in vec_info::used_vector_mode.
2079 (vect_chooses_same_modes_p): New function.
2080 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2081 the same vector statements multiple times.
2082 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2084 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2086 * machmode.h (opt_machine_mode::operator==): New function.
2087 (opt_machine_mode::operator!=): Likewise.
2088 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2089 (get_related_vectype_for_scalar_type): Delete.
2090 (get_vectype_for_scalar_type_and_size): Declare.
2091 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2092 whether analysis passed or failed, and with what vector modes.
2093 Use related_vector_mode to check whether trying a particular
2094 vector mode would be redundant with the autodetected mode,
2095 and print a dump message if we decide to skip it.
2096 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2097 (vect_create_epilog_for_reduction): Use
2098 get_related_vectype_for_scalar_type instead of
2099 get_vectype_for_scalar_type_and_size.
2100 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2102 (get_related_vectype_for_scalar_type): ...this new function.
2103 Take a starting/"prevailing" vector mode rather than a vector size.
2104 Take an optional nunits argument, with the same meaning as for
2105 related_vector_mode. Use related_vector_mode when not
2106 auto-detecting a mode, falling back to mode_for_vector if no
2108 (get_vectype_for_scalar_type): Update accordingly.
2109 (get_same_sized_vectype): Likewise.
2110 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2112 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2114 * tree-vect-stmts.c (vectorizable_call): Require the types
2115 to have the same size.
2117 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2119 * tree-vect-stmts.c (vectorizable_call): If an operand is
2120 constant or external, use get_vectype_for_scalar_type
2121 rather than get_same_sized_vectype to get its vector type.
2122 (vectorizable_conversion, vectorizable_shift): Likewise.
2123 (vectorizable_operation): Likewise.
2125 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2127 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2128 (vec_info::vector_mode): ...this new field.
2129 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2130 (vect_analyze_loop, vect_transform_loop): Likewise.
2131 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2132 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2133 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2134 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2135 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2137 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2139 * target.h (vector_sizes, auto_vector_sizes): Delete.
2140 (vector_modes, auto_vector_modes): New typedefs.
2141 * target.def (autovectorize_vector_sizes): Replace with...
2142 (autovectorize_vector_modes): ...this new hook.
2143 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2145 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2146 * doc/tm.texi: Regenerate.
2147 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2148 (default_autovectorize_vector_modes): New function.
2149 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2150 (default_autovectorize_vector_modes): New function.
2151 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2152 of autovectorize_vector_sizes. Use the number of units in the mode
2153 to calculate the maximum VF.
2154 * omp-low.c (omp_clause_aligned_alignment): Use
2155 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2156 Use a loop based on related_mode to iterate through all supported
2157 vector modes for a given scalar mode.
2158 * optabs-query.c (can_vec_mask_load_store_p): Use
2159 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2160 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2161 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2162 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2164 (aarch64_autovectorize_vector_modes): ...this new function.
2165 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2166 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2167 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2168 (arc_autovectorize_vector_modes): ...this new function.
2169 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2170 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2171 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2172 (arm_autovectorize_vector_modes): ...this new function.
2173 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2174 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2175 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2176 (ix86_autovectorize_vector_modes): ...this new function.
2177 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2178 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2179 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2180 (mips_autovectorize_vector_modes): ...this new function.
2181 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2182 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2184 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2186 * tree-vect-stmts.c (vectorizable_shift): Check the number
2187 of vector elements as well as the type mode when deciding
2188 whether an op1_vectype is compatible. Reuse the result of
2189 this check when generating vector statements.
2191 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2193 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2194 targetm.vectorize.preferred_simd_mode returns an integer mode,
2195 use mode_for_vector to decide what the vector type's mode
2196 should actually be. Use build_vector_type_for_mode instead
2197 of build_vector_type.
2199 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2201 * target.def (get_mask_mode): Take a vector mode itself as argument,
2202 instead of properties about the vector mode.
2203 * doc/tm.texi: Regenerate.
2204 * targhooks.h (default_get_mask_mode): Update to reflect new
2205 get_mode_mask interface.
2206 * targhooks.c (default_get_mask_mode): Likewise. Use
2207 related_int_vector_mode.
2208 * optabs-query.c (can_vec_mask_load_store_p): Update call
2210 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2211 first that the original mode really is a vector.
2212 * tree.c (build_truth_vector_type_for): Likewise.
2213 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2214 get_mode_mask interface.
2215 (aarch64_expand_sve_vcond): Update call accordingly.
2216 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2217 get_mode_mask interface.
2218 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2220 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2222 * tree.h (build_truth_vector_type): Delete.
2223 (build_same_sized_truth_vector_type): Likewise.
2224 * tree.c (build_truth_vector_type): Rename to...
2225 (build_truth_vector_type_for): ...this. Make static and take
2226 a vector type as argument.
2227 (truth_type_for): Update accordingly.
2228 (build_same_sized_truth_vector_type): Delete.
2229 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2230 instead of build_same_sized_truth_vector_type.
2231 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2232 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2233 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2234 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2235 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2236 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2237 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2238 (vectorizable_store, vectorizable_condition): Likewise.
2239 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2240 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2241 build_truth_vector_type.
2242 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2243 Use truth_type_for instead of build_same_sized_truth_vector_type.
2244 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2246 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2248 * tree.h (build_truth_vector_type_for_mode): Declare.
2249 * tree.c (build_truth_vector_type_for_mode): New function,
2251 (build_truth_vector_type): ...here.
2252 (build_opaque_vector_type): Fix head comment.
2253 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2255 (vect_halve_mask_nunits): Replace vec_info parameter with the
2256 mode of the new vector.
2257 (vect_double_mask_nunits): Likewise.
2258 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2259 (vect_double_mask_nunits): Likewise.
2260 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2261 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2262 to vect_halve_mask_nunits, getting the required mode from the unpack
2264 (vect_set_loop_condition_masked): Update call accordingly.
2265 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2266 parameter and update call to vect_double_mask_nunits.
2267 (vectorizable_conversion): Update call accordingly.
2268 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2269 (vectorizable_call): Update call accordingly.
2270 (supportable_widening_operation): Update call to
2271 vect_halve_mask_nunits.
2272 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2273 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2275 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2277 * machmode.h (mode_for_int_vector): Delete.
2278 (related_int_vector_mode): Declare.
2279 * stor-layout.c (mode_for_int_vector): Delete.
2280 (related_int_vector_mode): New function.
2281 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2282 instead of mode_for_int_vector.
2283 (expand_vec_perm_const): Likewise.
2284 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2285 (aarch64_evpc_sve_tbl): Likewise.
2286 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2287 (s390_expand_vcond): Likewise.
2289 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2291 * target.def (related_mode): New hook.
2292 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2293 * doc/tm.texi: Regenerate.
2294 * targhooks.h (default_vectorize_related_mode): Declare.
2295 * targhooks.c (default_vectorize_related_mode): New function.
2296 * machmode.h (related_vector_mode): Declare.
2297 * stor-layout.c (related_vector_mode): New function.
2298 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2299 * optabs-query.c (qimode_for_vec_perm): Likewise.
2300 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2301 (vectorizable_store, vectorizable_load): Likewise
2303 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2305 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2306 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2307 * config/arm/arm-c.c (arm_cpu_builtins): Define
2308 __GCC_ASM_FLAG_OUTPUTS__.
2309 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2310 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2311 Define __GCC_ASM_FLAG_OUTPUTS__.
2312 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2313 * doc/extend.texi (FlagOutputOperands): Add documentation
2314 for ARM and AArch64.
2316 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2317 * config/arm/predicates.md (nz_comparison_operator): Rename
2318 from noov_comparison_operator.
2319 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2320 (arm_gen_dicompare_reg): Likewise.
2321 (maybe_get_arm_condition_code): Likewise.
2322 (thumb1_final_prescan_insn): Likewise.
2323 (arm_emit_coreregs_64bit_shift): Likewise.
2324 * config/arm/arm.md (addsi3_compare0): Likewise.
2325 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2326 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2327 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2328 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2329 (*mulsi3addsi_compare0_scratch): Likewise.
2330 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2331 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2332 (*zeroextractsi_compare0_scratch): Likewise.
2333 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2334 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2335 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2336 (andsi_not_shiftsi_si_scc): Likewise.
2337 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2338 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2339 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2340 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2341 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2342 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2343 (return_addr_mask, *check_arch2): Likewise.
2344 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2345 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2346 (compare_scc splitters): Likewise.
2347 (movcond_addsi): Likewise.
2348 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2349 (*thumb2_addsi3_compare0_scratch): Likewise.
2350 (*thumb2_mulsi_short_compare0): Likewise.
2351 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2352 (compare peephole2s): Likewise.
2353 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2354 nz_comparison_operator names.
2355 (cbranchsi4_insn): Likewise.
2357 * config/arm/constraints.md (c): Use cc_register predicate.
2359 * config/aarch64/constraints.md (c): New constraint.
2361 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2363 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2364 ipa_merge_fn_summary_after_inlining): Micro optimize.
2366 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2368 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2370 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2372 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2373 (ipa_value_range_from_jfunc): New function.
2374 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2375 known_value_ranges parameter; use it to evalulate conditions.
2376 (evaluate_properties_for_edge): Compute known value ranges.
2377 (ipa_fn_summary_t::duplicate): Update use of
2378 evaluate_conditions_for_known_args.
2379 (estimate_ipcp_clone_size_and_time): Likewise.
2380 (ipa_merge_fn_summary_after_inlining): Likewise.
2381 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2383 2019-11-14 Martin Liska <mliska@suse.cz>
2385 * ipa-inline.c (want_inline_small_function_p): Use
2386 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2387 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2389 2019-11-14 Martin Liska <mliska@suse.cz>
2391 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2392 of a callee to get value of the param.
2393 * ipa-inline.c (inline_insns_auto): Use proper
2395 * opts.c (maybe_default_option): Do not overwrite param
2396 value if optimization level does not match. Note that
2397 params usually have default value set via Init() keyword.
2398 * params.opt: Remove -param=max-inline-insns-auto-O2.
2399 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2400 * doc/invoke.texi: Remove documentation of
2401 max-inline-insns-auto-O2.
2403 2019-11-14 Martin Liska <mliska@suse.cz>
2405 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2406 Do not initialize m_other_count.
2407 (switch_conversion::collect): Do not count m_default_count and
2408 m_other_count as we use frequencies for edges.
2409 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2411 2019-11-14 Martin Liska <mliska@suse.cz>
2414 * doc/invoke.texi: Document -fallocation-dce.
2416 2019-11-14 Martin Liska <mliska@suse.cz>
2419 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2420 PTA_ICELAKE_CLIENT which is later interited by
2421 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2423 2019-11-14 Martin Liska <mliska@suse.cz>
2425 * ipa-icf.c (sem_item_optimizer::execute): Save
2427 (sem_item_optimizer::parse_nonsingleton_classes):
2428 Return number of loaded symbols.
2429 (sem_item_optimizer::merge_classes): Print
2430 statistics about totally needed symbols.
2431 * ipa-icf.h (parse_nonsingleton_classes): Change return
2433 (merge_classes): Add one argument.
2435 2019-11-14 Martin Liska <mliska@suse.cz>
2437 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2438 func_checker::hash_operand by handling of FIELD_DECLs.
2440 2019-11-14 Martin Liska <mliska@suse.cz>
2442 * ipa-icf-gimple.h (func_checker::func_checker): Add
2443 default constructor.
2444 * ipa-icf.c (sem_function::init): Make operand_equal_p
2445 and hash_operand public.
2446 (sem_item::add_expr): Remove.
2447 (sem_item::add_type): Remove.
2448 (sem_function::hash_stmt): Use m_checker for hashing
2449 of GIMPLE statements.
2450 (sem_function::parse): Init with checker.
2451 (sem_variable::parse): Pass NULL as checker.
2452 (sem_item_optimizer::parse_funcs_and_vars):
2453 Pass checker to ::parse function.
2454 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2455 (sem_variable::parse): New function.
2456 (sem_variable::get_hash): Only return computed hash value.
2457 (sem_variable::init): Initialize hash of a variable.
2458 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2459 to couple of functions as a new argument.
2461 2019-11-14 Martin Liska <mliska@suse.cz>
2463 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2465 (func_checker::compare_gimple_assign): Likewise.
2467 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2469 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2470 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2471 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2473 * omp-general.c (omp_context_name_list_prop): New function.
2474 (omp_context_selector_matches): Use it. Return 0 if it returns
2476 (omp_context_selector_props_compare): Allow equivalency of an
2477 identifier and a string literal containing no embedded zeros.
2479 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2481 * range-op.cc (RANGE3): Remove.
2482 (range_tests): Remove all selftest that check for multi-ranges.
2483 Put tests in namespace selftest.
2484 * selftest.h: Move range_tests into namespace selftest.
2485 * value-range.h (class value_range): Unfriend range_tests.
2487 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2489 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2490 normalize_symbolics and normalize_addresses working in place.
2491 (range_fold_unary_symbolics_p): Same.
2492 (range_fold_unary_symbolics_p): Same.
2493 * value-range.cc (num_pairs): Same.
2494 (lower_bound): Same.
2495 (upper_bound): Same.
2497 (normalize_addresses): Same.
2498 (normalize_symbolics): Same.
2499 * value-range.h (normalize_symbolics): Same.
2500 (normalize_addresses): Same.
2502 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2505 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2506 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2507 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2508 (ipa_agg_jump_function): Remove member function equal_to.
2509 (ipa_agg_jump_function_p): Remove typedef.
2510 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2511 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2512 information for aggregate jump function.
2513 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2514 record last definition statement.
2515 (load_from_unmodified_param_or_agg): New function.
2516 (ipa_known_agg_contents_list): Add new field type and value, remove
2518 (build_agg_jump_func_from_list): Rename parameter const_count to
2519 value_count, build aggregate jump function from ipa_load_agg_data.
2520 (analyze_agg_content_value): New function.
2521 (extract_mem_content): Analyze memory store assignment to prepare
2522 information for aggregate jump function generation.
2523 (determine_known_aggregate_parts): Add new parameter fbi, remove
2524 parameter aa_walk_budeget_p.
2525 (update_jump_functions_after_inlining): Update aggregate jump function.
2526 (ipa_find_agg_cst_for_param): Change type of parameter agg.
2527 (try_make_edge_direct_simple_call): Add new parameter new_root.
2528 (try_make_edge_direct_virtual_call): Add new parameter new_root and
2530 (update_indirect_edges_after_inlining): Pass new argument to
2531 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2532 (ipa_write_jump_function): Write aggregate jump function to file.
2533 (ipa_read_jump_function): Read aggregate jump function from file.
2534 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
2535 * ipa-cp.c (ipa_get_jf_arith_result): New function.
2536 (ipa_agg_value_from_node): Likewise.
2537 (ipa_agg_value_set_from_jfunc): Likewise.
2538 (propagate_vals_across_arith_jfunc): Likewise.
2539 (propagate_aggregate_lattice): Likewise.
2540 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
2541 (propagate_vals_across_pass_through): Call
2542 propagate_vals_across_arith_jfunc.
2543 (get_clone_agg_value): Move forward.
2544 (propagate_aggs_across_jump_function): Handle value propagation for
2545 aggregate jump function.
2546 (agg_jmp_p_vec_for_t_vec): Remove.
2547 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
2548 with vec<ipa_agg_value>.
2549 (copy_plats_to_inter, intersect_with_plats): Likewise.
2550 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
2551 (intersect_aggregate_with_edge): Likewise.
2552 (find_aggregate_values_for_callers_subset): Likewise.
2553 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2554 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
2555 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2556 (gather_context_independent_values): Likewise.
2557 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
2558 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
2559 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2560 (evaluate_properties_for_edge): Likewise.
2561 (estimate_edge_devirt_benefit): Likewise.
2562 (estimate_edge_size_and_time): Likewise.
2563 (estimate_calls_size_and_time): Likewise.
2564 (ipa_call_context::ipa_call_context): Likewise.
2565 (estimate_ipcp_clone_size_and_time): Likewise.
2566 * ipa-fnsummary.h (ipa_call_context): Replace
2567 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2568 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
2569 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2570 (do_estimate_edge_size): Likewise.
2571 (do_estimate_edge_hints): Likewise.
2573 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2575 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
2578 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2580 * ipa-profile.c (check_argument_count): Check properly that e_info
2581 is non-NULL; do not check descriptors.
2583 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2585 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
2586 check for ipa profiles.
2588 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2591 * ipa-prop.c (update_indirect_edges_after_inlining):
2592 Mark parameter as used.
2593 * ipa-inline.c (recursive_inlining): Reset node cache
2595 (inline_small_functions): Remove checking ifdef.
2596 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
2599 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2602 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
2604 (ipa_profile): Fix reversed test.
2606 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2608 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
2609 (propagate_constants_topo): Fix typo.
2611 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2613 * Makefile.in (OBJS): Add value-range.o.
2614 (GTFILES): Add value-range.h.
2615 * gengtype.c (open_base_files): Add value-range.h to list of
2617 * tree-vrp.c: Move the following value_range related functions:
2618 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
2619 constant_p, set_undefined, set_varying, may_contain_p,
2620 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
2621 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
2622 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
2623 value_inside_range, ranges_from_anti_range, union_ranges,
2624 intersect_ranges, intersect_helper, union_helper, union_,
2625 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
2626 upper_bound, contains_p, invert, intersect...
2627 * value-range.cc: ...to here.
2628 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
2629 associated inline methods from here...
2630 * value-range.h: ...to here.
2632 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2634 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
2635 instead of asserting its value.
2637 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2639 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
2640 constructors and set methods so value_range_kind is the last
2641 argument and defaults to VR_RANGE.
2642 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
2643 * ipa-cp.c (propagate_vr_across_jump_function): Same.
2644 * ipa-prop.c (ipa_get_value_range): Same.
2645 (ipa_compute_jump_functions_for_edge): Same.
2646 * range-op.cc (value_range_from_overflowed_bounds): Same.
2647 (operator_cast::op1_range): Same.
2648 (range_tests): Same.
2649 * range.cc (range_nonzero): Same.
2650 * tree-ssanames.c (get_range_info): Same.
2651 * tree-vrp.c (value_range_equiv::set): Same.
2652 (value_range::value_range): Same.
2653 (value_range_equiv::value_range_equiv): Same.
2654 (value_range_equiv::update): Same.
2655 (value_range_equiv::deep_copy): Same.
2656 (value_range_equiv::move): Same.
2657 (value_range_equiv::set_undefined): Same.
2658 (value_range::set): Same.
2659 (value_range::set_nonzero): Same.
2660 (ranges_from_anti_range): Same.
2661 (extract_range_from_plus_minus_expr): Same.
2662 (value_range::intersect_helper): Same.
2663 (value_range_equiv::intersect): Same.
2664 (value_range::union_helper): Same.
2665 (value_range_equiv::union_): Same.
2666 (value_range::normalize_symbolics): Same.
2667 (value_range::invert): Same.
2668 (determine_value_range_1): Same.
2669 * tree-vrp.h (class value_range): Same.
2670 (class value_range_equiv): Same.
2671 * vr-values.c (set_value_range_to_nonnegative): Same.
2672 (set_value_range_to_truthvalue): Same.
2673 (vr_values::update_value_range): Same.
2674 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2675 (vr_values::extract_range_from_binary_expr): Same.
2676 (vr_values::extract_range_from_comparison): Same.
2677 (vr_values::extract_range_basic): Same.
2678 (vr_values::adjust_range_with_scev): Same.
2679 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
2680 (vr_values::extract_range_from_phi_node): Same.
2682 2019-11-13 Ulrich Drepper <drepper@redhat.com>
2684 * tree-dump.c (dequeue_and_dump): Print first tree operand
2685 for VIEW_CONVERT_EXPR.
2687 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2689 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
2690 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
2691 * real.c (get_max_float): Add norm_max argument.
2692 * real.h (get_max_float): Update prototype.
2693 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
2696 2019-11-13 Martin Liska <mliska@suse.cz>
2698 * dbgcnt.c (test_sorted_dbg_counters): New.
2699 (dbgcnt_c_tests): Likewise.
2700 * selftest-run-tests.c (selftest::run_tests): Likewise.
2701 * selftest.h (dbgcnt_c_tests): Likewise.
2703 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2704 Martin Jambor <mjambor@suse.cz>
2707 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
2708 (identify_dead_nodes): Likewise.
2710 2019-11-13 Martin Liska <mliska@suse.cz>
2712 * ipa-icf.c (sem_function::equals_private): Do not overuse
2713 push/pop_cfun functions.
2715 2019-11-13 Martin Liska <mliska@suse.cz>
2717 * common.opt: Document change of -fdbg-cnt option.
2718 * dbgcnt.c (DEBUG_COUNTER): Remove.
2719 (dbg_cnt_is_enabled): Remove.
2720 (dbg_cnt): Work with new intervals.
2721 (dbg_cnt_set_limit_by_index): Set to new
2723 (dbg_cnt_set_limit_by_name): Likewise.
2724 (dbg_cnt_process_single_pair): Process new format.
2725 (dbg_cnt_process_opt): Likewise.
2726 (dbg_cnt_list_all_counters): Likewise.
2727 * doc/invoke.texi: Document change of -fdbg-cnt option.
2730 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2732 * ipa-inline.c (ipa_inline): Check that function is defined before
2735 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2736 Julian Brown <julian@codesourcery.com>
2738 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
2739 flag_worker_partitioning is not set.
2740 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
2741 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
2743 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2745 * config/gcn/gcn-run.c (heap_region): New global variable.
2746 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
2747 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
2748 (get_kernarg_region): Move contents to ....
2749 (get_memory_region): .... here.
2750 (get_heap_region): New function.
2751 (init_device): Initialize the heap_region.
2752 (device_malloc): Add region parameter.
2753 (struct kernargs): Move heap ....
2754 (heap): ... to global scope.
2755 (main): Allocate heap separate to kernargs.
2757 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2759 * ipa-prop.c (ipa_print_node_jump_functions,
2760 ipa_print_node_params): Print info about missing summaries.
2762 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2764 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
2765 the cost of generating loop masks.
2767 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2769 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
2771 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
2772 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2773 (vect_transform_loop): Likewise.
2774 (vect_analyze_loop_costing): Don't take the cost of versioning
2775 into account for the static profitability threshold if it turns
2776 out that no versioning is needed.
2778 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2780 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
2781 and target_option_default_node to get -fprofile-generate ctors working
2784 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2786 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
2787 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
2788 (vectorizable_assignment): Don't add a cost for nop conversions.
2789 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2791 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
2793 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2795 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
2796 number of ncopies as an additional argument.
2797 (vectorizable_conversion): Update call accordingly. Use "modifier"
2798 to check whether a conversion is between vectors with the same
2801 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2803 * config/aarch64/aarch64-sve-builtins-functions.h
2804 (unary_count::expand): Use aarch64_sve_int_mode instead of
2805 mode_for_int_vector.
2807 2019-11-13 Martin Liska <mliska@suse.cz>
2809 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
2811 2019-11-13 Martin Liska <mliska@suse.cz>
2813 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2814 Remove call to finalize_options_struct.
2816 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
2819 * config/avr/t-avr (avr-mcus): Do not depend on
2820 $(srcdir)/config/avr/t-multilib.
2822 2019-11-13 Richard Biener <rguenther@suse.de>
2824 PR tree-optimization/92473
2825 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
2826 direct optab reduction in the correct type.
2828 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2830 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
2831 hexadecimal literal.
2833 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2835 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
2836 UNORDERED if !HONOR_NANS (DFmode).
2837 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
2838 if !HONOR_NANS (<MODE>mode).
2840 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2842 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
2843 (ipcp_verify_propagated_values): Likewise.
2844 (propagate_constants_across_call): Likewise.
2845 (propagate_constants_topo): Likewise.
2846 (ipcp_propagate_stage): Likewise.
2848 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2851 * ipa-profile.c (check_argument_count): Break out from ...;
2852 watch for missing summaries.
2853 (ipa_profile): Here.
2855 2019-11-12 Martin Sebor <msebor@redhat.com>
2857 PR tree-optimization/92412
2858 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
2861 2019-11-12 Martin Sebor <msebor@redhat.com>
2864 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
2865 (directive::argno): New member.
2866 (format_result::aliases, format_result::alias_count): New data members.
2867 (format_result::append_alias): New member function.
2868 (fmtresult::dst_offset): New data member.
2869 (pass_sprintf_length::call_info::dst_origin): New data member.
2870 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
2871 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
2872 (get_origin_and_offset): Same.
2873 (format_string): Call it.
2874 (format_directive): Call append_alias and set directive argument
2876 (maybe_warn_overlap): New function.
2877 (pass_sprintf_length::compute_format_length): Call it.
2878 (pass_sprintf_length::handle_gimple_call): Initialize new members.
2879 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
2881 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
2883 PR rtl-optimization/92430
2884 * cfgcleanup.c (pass_jump_after_combine::execute): Free
2885 dominance info at the beginning.
2887 2019-11-12 Richard Biener <rguenther@suse.de>
2889 PR tree-optimization/92460
2890 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
2891 expression before gimplifying.
2893 2019-11-12 Richard Biener <rguenther@suse.de>
2895 PR tree-optimization/92461
2896 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
2897 stmt after propagation.
2899 2019-11-12 Martin Liska <mliska@suse.cz>
2901 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
2902 Use SET_OPTION_IF_UNSET.
2903 (ix86_option_override_internal): Likewise.
2904 * opts.c (default_options_optimization): Likewise.
2905 (finish_options): Likewise.
2906 (enable_fdo_optimizations): Likewise.
2907 (common_handle_option): Likewise.
2909 2019-11-12 Martin Liska <mliska@suse.cz>
2911 * common/common-target.def: Remove option_validate_param and
2912 option_default_params.
2913 * common/common-targhooks.c (default_option_validate_param):
2915 * common/common-targhooks.h (default_option_validate_param):
2917 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
2918 Remove usage of this.
2919 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
2920 (aarch64_option_validate_param): Likewise.
2921 (aarch64_option_default_params): Likewise
2922 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
2923 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2924 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2925 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2926 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2927 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2928 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2929 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2930 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2931 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2932 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
2934 * doc/tm.texi: Remove option_default_params and option_validate_param.
2935 * doc/tm.texi.in: Likewise.
2937 2019-11-12 Martin Liska <mliska@suse.cz>
2939 * common/common-target.def:
2940 Do not mention set_default_param_value
2941 and set_param_value.
2942 * doc/tm.texi: Likewise.
2944 2019-11-12 Martin Liska <mliska@suse.cz>
2946 * common.opt: Remove param_values.
2947 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
2948 Remove finalize_options_struct.
2949 * gcc.c (driver::decode_argv): Do not call global_init_params
2951 (driver::finalize): Do not call params_c_finalize
2952 and finalize_options_struct.
2953 * opt-suggestions.c (option_proposer::get_completions): Remove
2954 special casing of params.
2955 (option_proposer::find_param_completions): Remove.
2956 (test_completion_partial_match): Update expected output.
2957 * opt-suggestions.h: Remove find_param_completions.
2958 * opts-common.c (add_misspelling_candidates): Add
2959 --param with a space.
2960 * opts.c (handle_param): Remove.
2961 (init_options_struct):. Remove init_options_struct and
2963 (finalize_options_struct): Remove.
2964 (common_handle_option): Use SET_OPTION_IF_UNSET.
2965 * opts.h (finalize_options_struct): Remove.
2966 * toplev.c (general_init): Do not call global_init_params.
2967 (toplev::finalize): Do not call params_c_finalize and
2968 finalize_options_struct.
2970 2019-11-12 Martin Liska <mliska@suse.cz>
2972 * Makefile.in: Remove PARAMS_H and params.list
2974 * params-enum.h: Remove.
2975 * params-list.h: Remove.
2976 * params-options.h: Remove.
2978 * params.def: Remove.
2980 * asan.c: Do not include params.h.
2981 * auto-profile.c: Likewise.
2982 * bb-reorder.c: Likewise.
2983 * builtins.c: Likewise.
2984 * cfgcleanup.c: Likewise.
2985 * cfgexpand.c: Likewise.
2986 * cfgloopanal.c: Likewise.
2987 * cgraph.c: Likewise.
2988 * combine.c: Likewise.
2989 * common/config/aarch64/aarch64-common.c: Likewise.
2990 * common/config/gcn/gcn-common.c: Likewise.
2991 * common/config/ia64/ia64-common.c: Likewise.
2992 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
2993 * common/config/rs6000/rs6000-common.c: Likewise.
2994 * common/config/sh/sh-common.c: Likewise.
2995 * config/aarch64/aarch64.c: Likewise.
2996 * config/alpha/alpha.c: Likewise.
2997 * config/arm/arm.c: Likewise.
2998 * config/avr/avr.c: Likewise.
2999 * config/csky/csky.c: Likewise.
3000 * config/i386/i386-builtins.c: Likewise.
3001 * config/i386/i386-expand.c: Likewise.
3002 * config/i386/i386-features.c: Likewise.
3003 * config/i386/i386-options.c: Likewise.
3004 * config/i386/i386.c: Likewise.
3005 * config/ia64/ia64.c: Likewise.
3006 * config/rs6000/rs6000-logue.c: Likewise.
3007 * config/rs6000/rs6000.c: Likewise.
3008 * config/s390/s390.c: Likewise.
3009 * config/sparc/sparc.c: Likewise.
3010 * config/visium/visium.c: Likewise.
3011 * coverage.c: Likewise.
3012 * cprop.c: Likewise.
3014 * cselib.c: Likewise.
3016 * emit-rtl.c: Likewise.
3017 * explow.c: Likewise.
3018 * final.c: Likewise.
3019 * fold-const.c: Likewise.
3022 * ggc-common.c: Likewise.
3023 * ggc-page.c: Likewise.
3024 * gimple-loop-interchange.cc: Likewise.
3025 * gimple-loop-jam.c: Likewise.
3026 * gimple-loop-versioning.cc: Likewise.
3027 * gimple-ssa-split-paths.c: Likewise.
3028 * gimple-ssa-sprintf.c: Likewise.
3029 * gimple-ssa-store-merging.c: Likewise.
3030 * gimple-ssa-strength-reduction.c: Likewise.
3031 * gimple-ssa-warn-alloca.c: Likewise.
3032 * gimple-ssa-warn-restrict.c: Likewise.
3033 * graphite-isl-ast-to-gimple.c: Likewise.
3034 * graphite-optimize-isl.c: Likewise.
3035 * graphite-scop-detection.c: Likewise.
3036 * graphite-sese-to-poly.c: Likewise.
3037 * graphite.c: Likewise.
3038 * haifa-sched.c: Likewise.
3039 * hsa-gen.c: Likewise.
3040 * ifcvt.c: Likewise.
3041 * ipa-cp.c: Likewise.
3042 * ipa-fnsummary.c: Likewise.
3043 * ipa-inline-analysis.c: Likewise.
3044 * ipa-inline.c: Likewise.
3045 * ipa-polymorphic-call.c: Likewise.
3046 * ipa-profile.c: Likewise.
3047 * ipa-prop.c: Likewise.
3048 * ipa-split.c: Likewise.
3049 * ipa-sra.c: Likewise.
3050 * ira-build.c: Likewise.
3051 * ira-conflicts.c: Likewise.
3052 * loop-doloop.c: Likewise.
3053 * loop-invariant.c: Likewise.
3054 * loop-unroll.c: Likewise.
3055 * lra-assigns.c: Likewise.
3056 * lra-constraints.c: Likewise.
3057 * modulo-sched.c: Likewise.
3058 * opt-suggestions.c: Likewise.
3060 * postreload-gcse.c: Likewise.
3061 * predict.c: Likewise.
3062 * reload.c: Likewise.
3063 * reorg.c: Likewise.
3064 * resource.c: Likewise.
3065 * sanopt.c: Likewise.
3066 * sched-deps.c: Likewise.
3067 * sched-ebb.c: Likewise.
3068 * sched-rgn.c: Likewise.
3069 * sel-sched-ir.c: Likewise.
3070 * sel-sched.c: Likewise.
3071 * shrink-wrap.c: Likewise.
3073 * targhooks.c: Likewise.
3074 * toplev.c: Likewise.
3075 * tracer.c: Likewise.
3076 * trans-mem.c: Likewise.
3077 * tree-chrec.c: Likewise.
3078 * tree-data-ref.c: Likewise.
3079 * tree-if-conv.c: Likewise.
3080 * tree-inline.c: Likewise.
3081 * tree-loop-distribution.c: Likewise.
3082 * tree-parloops.c: Likewise.
3083 * tree-predcom.c: Likewise.
3084 * tree-profile.c: Likewise.
3085 * tree-scalar-evolution.c: Likewise.
3086 * tree-sra.c: Likewise.
3087 * tree-ssa-ccp.c: Likewise.
3088 * tree-ssa-dom.c: Likewise.
3089 * tree-ssa-dse.c: Likewise.
3090 * tree-ssa-ifcombine.c: Likewise.
3091 * tree-ssa-loop-ch.c: Likewise.
3092 * tree-ssa-loop-im.c: Likewise.
3093 * tree-ssa-loop-ivcanon.c: Likewise.
3094 * tree-ssa-loop-ivopts.c: Likewise.
3095 * tree-ssa-loop-manip.c: Likewise.
3096 * tree-ssa-loop-niter.c: Likewise.
3097 * tree-ssa-loop-prefetch.c: Likewise.
3098 * tree-ssa-loop-unswitch.c: Likewise.
3099 * tree-ssa-math-opts.c: Likewise.
3100 * tree-ssa-phiopt.c: Likewise.
3101 * tree-ssa-pre.c: Likewise.
3102 * tree-ssa-reassoc.c: Likewise.
3103 * tree-ssa-sccvn.c: Likewise.
3104 * tree-ssa-scopedtables.c: Likewise.
3105 * tree-ssa-sink.c: Likewise.
3106 * tree-ssa-strlen.c: Likewise.
3107 * tree-ssa-structalias.c: Likewise.
3108 * tree-ssa-tail-merge.c: Likewise.
3109 * tree-ssa-threadbackward.c: Likewise.
3110 * tree-ssa-threadedge.c: Likewise.
3111 * tree-ssa-uninit.c: Likewise.
3112 * tree-switch-conversion.c: Likewise.
3113 * tree-vect-data-refs.c: Likewise.
3114 * tree-vect-loop.c: Likewise.
3115 * tree-vect-slp.c: Likewise.
3116 * tree-vrp.c: Likewise.
3118 * value-prof.c: Likewise.
3119 * var-tracking.c: Likewise.
3121 2019-11-12 Martin Liska <mliska@suse.cz>
3123 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3124 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3126 (asan_sanitize_allocas_p): Likewise.
3127 (asan_emit_stack_protection): Likewise.
3128 (asan_protect_global): Likewise.
3129 (instrument_derefs): Likewise.
3130 (instrument_builtin_call): Likewise.
3131 (asan_expand_mark_ifn): Likewise.
3132 * auto-profile.c (auto_profile): Likewise.
3133 * bb-reorder.c (copy_bb_p): Likewise.
3134 (duplicate_computed_gotos): Likewise.
3135 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3136 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3137 (try_crossjump_bb): Likewise.
3138 * cfgexpand.c (defer_stack_allocation): Likewise.
3139 (stack_protect_classify_type): Likewise.
3140 (pass_expand::execute): Likewise.
3141 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3142 (estimate_reg_pressure_cost): Likewise.
3143 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3144 * combine.c (combine_instructions): Likewise.
3145 (record_value_for_reg): Likewise.
3146 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3147 (aarch64_option_default_params): Likewise.
3148 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3149 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3150 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3151 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3152 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3153 (aarch64_allocate_and_probe_stack_space): Likewise.
3154 (aarch64_expand_epilogue): Likewise.
3155 (aarch64_override_options_internal): Likewise.
3156 * config/alpha/alpha.c (alpha_option_override): Likewise.
3157 * config/arm/arm.c (arm_option_override): Likewise.
3158 (arm_valid_target_attribute_p): Likewise.
3159 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3160 * config/i386/i386.c (get_probe_interval): Likewise.
3161 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3162 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3163 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3164 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3165 (get_stack_clash_protection_guard_size): Likewise.
3166 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3167 * config/s390/s390.c (allocate_stack_space): Likewise.
3168 (s390_emit_prologue): Likewise.
3169 (s390_option_override_internal): Likewise.
3170 * config/sparc/sparc.c (sparc_option_override): Likewise.
3171 * config/visium/visium.c (visium_option_override): Likewise.
3172 * coverage.c (get_coverage_counts): Likewise.
3173 (coverage_compute_profile_id): Likewise.
3174 (coverage_begin_function): Likewise.
3175 (coverage_end_function): Likewise.
3176 * cse.c (cse_find_path): Likewise.
3177 (cse_extended_basic_block): Likewise.
3178 (cse_main): Likewise.
3179 * cselib.c (cselib_invalidate_mem): Likewise.
3180 * dse.c (dse_step1): Likewise.
3181 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3182 (get_max_insn_count): Likewise.
3183 (make_debug_insn_raw): Likewise.
3184 (init_emit): Likewise.
3185 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3186 * final.c (compute_alignments): Likewise.
3187 * fold-const.c (fold_range_test): Likewise.
3188 (fold_truth_andor): Likewise.
3189 (tree_single_nonnegative_warnv_p): Likewise.
3190 (integer_valued_real_single_p): Likewise.
3191 * gcse.c (want_to_gcse_p): Likewise.
3192 (prune_insertions_deletions): Likewise.
3193 (hoist_code): Likewise.
3194 (gcse_or_cprop_is_too_expensive): Likewise.
3195 * ggc-common.c: Likewise.
3196 * ggc-page.c (ggc_collect): Likewise.
3197 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3198 (MAX_DATAREFS): Likewise.
3199 (OUTER_STRIDE_RATIO): Likewise.
3200 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3201 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3202 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3203 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3204 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3205 (imm_store_chain_info::output_merged_store): Likewise.
3206 (pass_store_merging::process_store): Likewise.
3207 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3208 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3209 (scop_to_isl_ast): Likewise.
3210 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3211 (optimize_isl): Likewise.
3212 * graphite-scop-detection.c (build_scops): Likewise.
3213 * haifa-sched.c (set_modulo_params): Likewise.
3214 (rank_for_schedule): Likewise.
3215 (model_add_to_worklist): Likewise.
3216 (model_promote_insn): Likewise.
3217 (model_choose_insn): Likewise.
3218 (queue_to_ready): Likewise.
3219 (autopref_multipass_dfa_lookahead_guard): Likewise.
3220 (schedule_block): Likewise.
3221 (sched_init): Likewise.
3222 * hsa-gen.c (init_prologue): Likewise.
3223 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3224 (cond_move_process_if_block): Likewise.
3225 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3226 (merge_agg_lats_step): Likewise.
3227 (devirtualization_time_bonus): Likewise.
3228 (hint_time_bonus): Likewise.
3229 (incorporate_penalties): Likewise.
3230 (good_cloning_opportunity_p): Likewise.
3231 (ipcp_propagate_stage): Likewise.
3232 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3233 (set_switch_stmt_execution_predicate): Likewise.
3234 (analyze_function_body): Likewise.
3235 (compute_fn_summary): Likewise.
3236 * ipa-inline-analysis.c (estimate_growth): Likewise.
3237 * ipa-inline.c (caller_growth_limits): Likewise.
3238 (inline_insns_single): Likewise.
3239 (inline_insns_auto): Likewise.
3240 (can_inline_edge_by_limits_p): Likewise.
3241 (want_early_inline_function_p): Likewise.
3242 (big_speedup_p): Likewise.
3243 (want_inline_small_function_p): Likewise.
3244 (want_inline_self_recursive_call_p): Likewise.
3245 (edge_badness): Likewise.
3246 (recursive_inlining): Likewise.
3247 (compute_max_insns): Likewise.
3248 (early_inliner): Likewise.
3249 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3250 * ipa-profile.c (ipa_profile): Likewise.
3251 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3252 (ipa_analyze_node): Likewise.
3253 (ipcp_transform_function): Likewise.
3254 * ipa-split.c (consider_split): Likewise.
3255 * ipa-sra.c (allocate_access): Likewise.
3256 (process_scan_results): Likewise.
3257 (ipa_sra_summarize_function): Likewise.
3258 (pull_accesses_from_callee): Likewise.
3259 * ira-build.c (loop_compare_func): Likewise.
3260 (mark_loops_for_removal): Likewise.
3261 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3262 * loop-doloop.c (doloop_optimize): Likewise.
3263 * loop-invariant.c (gain_for_invariant): Likewise.
3264 (move_loop_invariants): Likewise.
3265 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3266 (decide_unroll_runtime_iterations): Likewise.
3267 (decide_unroll_stupid): Likewise.
3268 (expand_var_during_unrolling): Likewise.
3269 * lra-assigns.c (spill_for): Likewise.
3270 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3271 * modulo-sched.c (sms_schedule): Likewise.
3272 (DFA_HISTORY): Likewise.
3273 * opts.c (default_options_optimization): Likewise.
3274 (finish_options): Likewise.
3275 (common_handle_option): Likewise.
3276 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3278 * predict.c (get_hot_bb_threshold): Likewise.
3279 (maybe_hot_count_p): Likewise.
3280 (probably_never_executed): Likewise.
3281 (predictable_edge_p): Likewise.
3282 (predict_loops): Likewise.
3283 (expr_expected_value_1): Likewise.
3284 (tree_predict_by_opcode): Likewise.
3285 (handle_missing_profiles): Likewise.
3286 * reload.c (find_equiv_reg): Likewise.
3287 * reorg.c (redundant_insn): Likewise.
3288 * resource.c (mark_target_live_regs): Likewise.
3289 (incr_ticks_for_insn): Likewise.
3290 * sanopt.c (pass_sanopt::execute): Likewise.
3291 * sched-deps.c (sched_analyze_1): Likewise.
3292 (sched_analyze_2): Likewise.
3293 (sched_analyze_insn): Likewise.
3294 (deps_analyze_insn): Likewise.
3295 * sched-ebb.c (schedule_ebbs): Likewise.
3296 * sched-rgn.c (find_single_block_region): Likewise.
3297 (too_large): Likewise.
3298 (haifa_find_rgns): Likewise.
3299 (extend_rgns): Likewise.
3300 (new_ready): Likewise.
3301 (schedule_region): Likewise.
3302 (sched_rgn_init): Likewise.
3303 * sel-sched-ir.c (make_region_from_loop): Likewise.
3304 * sel-sched-ir.h (MAX_WS): Likewise.
3305 * sel-sched.c (process_pipelined_exprs): Likewise.
3306 (sel_setup_region_sched_flags): Likewise.
3307 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3308 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3309 * toplev.c (print_version): Likewise.
3310 (process_options): Likewise.
3311 * tracer.c (tail_duplicate): Likewise.
3312 * trans-mem.c (tm_log_add): Likewise.
3313 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3314 * tree-data-ref.c (split_constant_offset): Likewise.
3315 (compute_all_dependences): Likewise.
3316 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3317 * tree-inline.c (remap_gimple_stmt): Likewise.
3318 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3319 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3320 (create_parallel_loop): Likewise.
3321 * tree-predcom.c (determine_unroll_factor): Likewise.
3322 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3323 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3324 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3325 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3326 (dse_optimize_redundant_stores): Likewise.
3327 (dse_classify_store): Likewise.
3328 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3329 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3330 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3331 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3332 (try_peel_loop): Likewise.
3333 (tree_unroll_loops_completely): Likewise.
3334 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3335 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3336 (MAX_CONSIDERED_GROUPS): Likewise.
3337 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3338 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3339 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3340 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3341 (L1_CACHE_SIZE_BYTES): Likewise.
3342 (L2_CACHE_SIZE_BYTES): Likewise.
3343 (should_issue_prefetch_p): Likewise.
3344 (schedule_prefetches): Likewise.
3345 (determine_unroll_factor): Likewise.
3346 (volume_of_references): Likewise.
3347 (add_subscript_strides): Likewise.
3348 (self_reuse_distance): Likewise.
3349 (mem_ref_count_reasonable_p): Likewise.
3350 (insn_to_prefetch_ratio_too_small_p): Likewise.
3351 (loop_prefetch_arrays): Likewise.
3352 (tree_ssa_prefetch_arrays): Likewise.
3353 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3354 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3355 (convert_mult_to_fma): Likewise.
3356 (math_opts_dom_walker::after_dom_children): Likewise.
3357 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3358 (hoist_adjacent_loads): Likewise.
3359 (gate_hoist_loads): Likewise.
3360 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3361 (compute_partial_antic_aux): Likewise.
3362 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3363 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3364 (vn_reference_lookup): Likewise.
3365 (do_rpo_vn): Likewise.
3366 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3367 * tree-ssa-sink.c (select_best_block): Likewise.
3368 * tree-ssa-strlen.c (new_stridx): Likewise.
3369 (new_addr_stridx): Likewise.
3370 (get_range_strlen_dynamic): Likewise.
3371 (class ssa_name_limit_t): Likewise.
3372 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3373 (create_variable_info_for_1): Likewise.
3374 (init_alias_vars): Likewise.
3375 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3376 (tail_merge_optimize): Likewise.
3377 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3378 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3379 (thread_jumps::find_jump_threads_backwards): Likewise.
3380 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3381 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3382 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3383 (jump_table_cluster::can_be_handled): Likewise.
3384 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3385 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3386 (param_switch_conversion_branch_ratio): Likewise.
3387 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3388 (vect_enhance_data_refs_alignment): Likewise.
3389 (vect_prune_runtime_alias_test_list): Likewise.
3390 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3391 (vect_get_datarefs_in_loop): Likewise.
3392 (vect_analyze_loop): Likewise.
3393 * tree-vect-slp.c (vect_slp_bb): Likewise.
3394 * tree-vectorizer.h: Likewise.
3395 * tree-vrp.c (find_switch_asserts): Likewise.
3396 (vrp_prop::check_mem_ref): Likewise.
3397 * tree.c (wide_int_to_tree_1): Likewise.
3398 (cache_integer_cst): Likewise.
3399 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3400 (reverse_op): Likewise.
3401 (vt_find_locations): Likewise.
3403 2019-11-12 Martin Liska <mliska@suse.cz>
3405 * Makefile.in: Include params.opt.
3406 * flag-types.h (enum parloops_schedule_type): Add
3407 parloops_schedule_type used in params.opt.
3408 * params.opt: New file.
3410 2019-11-12 Martin Liska <mliska@suse.cz>
3412 * common.opt: Remove --param and --param= options.
3413 * opt-functions.awk: Mark CL_PARAMS for options
3414 that have Param keyword.
3415 * opts-common.c (decode_cmdline_options_to_array):
3416 Replace --param key=value with --param=key=value.
3417 * opts.c (print_filtered_help): Remove special
3419 (print_specific_help): Update title for params.
3420 (common_handle_option): Do not handle OPT__param.
3421 opts.h (SET_OPTION_IF_UNSET): New macro.
3422 * doc/options.texi: Document Param keyword.
3424 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3425 Frederik Harwath <frederik@codesourcery.com>
3426 Thomas Schwinge <thomas@codesourcery.com>
3429 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3430 enumeration constant.
3431 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3432 (is_gimple_omp_offloaded): Likewise.
3433 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3434 constant. Adjust the value of ORT_NONE accordingly.
3435 (is_gimple_stmt): Handle OACC_SERIAL.
3436 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3437 (gomp_needs_data_present): Likewise.
3438 (gimplify_adjust_omp_clauses): Likewise.
3439 (gimplify_omp_workshare): Handle OACC_SERIAL.
3440 (gimplify_expr): Likewise.
3441 * omp-expand.c (expand_omp_target):
3442 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3443 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3444 * omp-low.c (is_oacc_parallel): Rename function to...
3445 (is_oacc_parallel_or_serial): ... this.
3446 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3447 (scan_sharing_clauses): Adjust accordingly.
3448 (scan_omp_for): Likewise.
3449 (lower_oacc_head_mark): Likewise.
3450 (convert_from_firstprivate_int): Likewise.
3451 (lower_omp_target): Likewise.
3452 (check_omp_nesting_restrictions): Handle
3453 GF_OMP_TARGET_KIND_OACC_SERIAL.
3454 (lower_oacc_reductions): Likewise.
3455 (lower_omp_target): Likewise.
3456 * tree.def (OACC_SERIAL): New tree code.
3457 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3459 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3461 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3464 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3465 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3467 PR tree-optimization/92452
3468 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3469 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3472 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3474 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3477 2019-11-12 Alan Modra <amodra@gmail.com>
3479 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3480 element of unspec vec.
3481 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3483 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3484 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3485 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3486 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3488 2019-11-12 Alan Modra <amodra@gmail.com>
3490 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3491 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3492 (IS_NOMARK_TLSGETADDR): Likewise.
3493 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3494 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3495 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3496 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3497 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3498 (rs6000_indirect_call_template_1): Likewise.
3499 (rs6000_pltseq_template): Likewise.
3500 (rs6000_opt_vars): Remove "tls-markers" entry.
3501 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3503 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3504 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3505 (pltseq_plt_pcrel<mode>): Likewise.
3506 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3507 (call_value_local64): Likewise.
3508 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3509 output and length attribute sub-expression.
3510 (call_value_nonlocal_sysv<mode>),
3511 (call_value_nonlocal_sysv_secure<mode>),
3512 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3513 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3514 (call_value_indirect_pcrel<mode>): Likewise.
3515 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3516 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3517 * configure: Regenerate.
3518 * config.in: Regenerate.
3520 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3522 * config/rs6000/predicates.md (prefixed_memory): New predicate.
3523 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3524 address being a prefixed load/store.
3525 (stack_protect_testdi): Deal with either address being a prefixed
3528 2019-11-11 Jakub Jelinek <jakub@redhat.com>
3531 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3532 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
3535 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
3537 PR tree-optimization/92420
3538 * tree-vect-stmts.c (get_negative_load_store_type): Move further
3540 (get_group_load_store_type): Use it for reversed SLP accesses.
3542 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
3544 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
3546 (ipcp_transformation_t::duplicate): Break out from ...
3547 (ipa_node_params_t::duplicate): ... here; add copying of agg
3549 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
3550 (ipcp_transformation_t): Add duplicate.
3552 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
3555 * doc/install.texi: Document that the minimum MPFR version is
3558 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3560 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
3561 use new register constraint letters.
3563 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3565 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
3566 as well, if interesting recover the symbol and re-legitimize the
3569 2019-11-11 Martin Liska <mliska@suse.cz>
3571 * dbgcnt.def (DEBUG_COUNTER): Sort counters
3574 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
3576 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
3577 account when checking if there are enough iterations to vectorize
3580 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
3581 Kwok Cheung Yeung <kcy@codesourcery.com>
3583 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
3584 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
3585 (LANG_HOOKS_DECLS): Rename also here.
3586 * langhooks.h (lang_hooks_for_decls): Rename
3587 omp_is_optional_argument to omp_check_optional_argument; take
3588 additional bool argument.
3589 * omp-general.h (omp_check_optional_argument): Likewise.
3590 * omp-general.h (omp_check_optional_argument): Likewise.
3591 * omp-low.c (lower_omp_target): Update calls; handle absent
3592 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
3594 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
3597 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
3598 -fPIC and -shared the last to create offload image.
3600 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
3602 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
3605 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
3606 (config.status): Use/depend on it.
3607 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
3608 * configure: Regenerate.
3610 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
3612 PR tree-optimization/88760
3613 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
3614 * gcc/common/config/rs6000/rs6000-common.c
3615 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
3616 Turn on -funroll-loops and -munroll-only-small-loops.
3617 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
3618 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3619 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
3620 Turn off -munroll-only-small-loops for explicit -funroll-loops.
3621 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
3622 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
3624 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
3626 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3627 Make scalar_load, vector_load, unaligned_load and
3628 vector_gather_load cost more to conform hardware latency and
3631 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
3633 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
3634 (MACHO_SYMBOL_LINKER_VIS_P): New.
3636 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
3638 * lra-spills.c (assign_spill_hard_regs): Do not spill into
3639 registers in eliminable_regset.
3641 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3643 * ipa-inline.c (compute_uninlined_call_time,
3644 compute_inlined_call_time): Take edge frequency as
3645 parameter rather than computing it by itself.
3646 (big_speedup_p, edge_badness): Manually CSE sreal
3647 frequency calculations.
3649 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3651 * profile-count.c (profile_count::to_sreal_scale): Short circuit
3652 case where profiles are same.
3654 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3656 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
3658 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3660 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
3661 args summaries of inlined edge unless it holds info about
3662 described reference.
3664 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3666 * config/rs6000/rs6000.md (CC_any): New mode iterator.
3667 (*movcc_internal1): Rename to...
3668 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
3670 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3672 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
3673 (cgraph_node::create_virtual_clone): Copy it.
3674 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
3676 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
3677 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
3679 (propagate_constants_across_call): If callee is not analyzed, give up.
3680 (propagate_constants_topo): Lower to bottom latties of all callees of
3681 functions with ipa-cp disabled.
3682 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
3683 (cgraph_edge_brings_value_p): Check for availability first.
3684 (create_specialized_node): Set ipcp_clone.
3685 (ipcp_store_bits_results): Check that info is present.
3686 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
3688 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
3689 conservative when callee summary is missing.
3690 (remap_edge_summaries): Lookup call summary only when needed.
3691 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
3692 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
3694 (ipa_analyze_node): Use get_create.
3695 (propagate_controlled_uses): Do not propagate when function is not
3697 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
3698 (ipa_read_node_info): Use get_create.
3699 * ipa-prop.h (IPA_NODE_REF): Use get.
3700 (IPA_NODE_REF_GET_CREATE): New.
3702 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3704 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
3707 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3709 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
3710 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3711 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
3712 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3714 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3716 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
3717 capping the growth cumulated.
3718 (offline_size): Break out from ...
3719 (estimate_growth): ... here.
3720 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
3722 (growth_likely_positive): Turn to ...
3723 (growth_positive_p): Re-implement.
3724 * ipa-inline.h (growth_likely_positive): Remove.
3725 (growth_positive_p): Declare.
3726 * ipa-inline.c (want_inline_small_function_p): Use
3728 (want_inline_function_to_all_callers_p): Likewise.
3730 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3732 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
3733 calculation of min_size.
3734 (ipa_update_overall_fn_summary): Likewise.
3736 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3738 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
3739 estimate_edge_devirt_benefit when not computing hints;
3740 do not compute time when not asked for.
3741 (estimate_calls_size_and_time): Pass NULL hints and time when
3742 these are not computed; do not evaluate hint predicates when these are
3744 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
3747 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3749 PR tree-optimization/92401
3750 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
3751 if res_op->code is an expression with code length 1.
3752 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
3753 if res_op->code is an expression with code length 2.
3754 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
3755 if res_op->code is an expression with code length 3.
3757 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
3759 * config/darwin.c (machopic_mcount_stub_name): Validate the
3760 symbol stub name when it is created.
3761 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
3764 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3766 * symtab.c: Fix comment typos.
3767 * cgraphunit.c: Likewise.
3768 * cgraph.h: Likewise.
3769 * cgraphclones.c: Likewise.
3770 * cgraph.c: Likewise.
3771 * varpool.c: Likewise.
3772 * tree-ssa-strlen.c: Likewise.
3773 * ipa-sra.c: Likewise.
3774 (scan_expr_access, check_all_callers_for_issues): Fix typo
3777 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
3779 * config/darwin-protos.h: Add include quard.
3781 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
3783 * range-op.h (range_operator::fold_range): Return result in a
3784 reference parameter instead of by value.
3785 (range_operator::wi_fold): Same.
3786 * range-op.cc (range_operator::wi_fold): Return result in a reference
3787 parameter instead of by value.
3788 (range_operator::fold_range): Same.
3789 (value_range_from_overflowed_bounds): Same.
3790 (value_range_with_overflow): Same
3791 (create_possibly_reversed_range): Same.
3792 (operator_equal::fold_range): Same.
3793 (operator_not_equal::fold_range): Same.
3794 (operator_lt::fold_range): Same.
3795 (operator_le::fold_range): Same.
3796 (operator_gt::fold_range): Same.
3797 (operator_ge::fold_range): Same.
3798 (operator_plus::wi_fold): Same.
3799 (operator_plus::op1_range): Change call to fold_range.
3800 (operator_plus::op2_range): Change call to fold_range.
3801 (operator_minus::wi_fold): Return result via reference parameter.
3802 (operator_minus::op1_range): Change call to fold_range.
3803 (operator_minus::op2_range): Change call to fold_range.
3804 (operator_min::wi_fold): Return result via reference parameter.
3805 (operator_max::wi_fold): Same.
3806 (cross_product_operator::wi_cross_product): Same.
3807 (operator_mult::wi_fold): Same.
3808 (operator_div::wi_fold): Same.
3809 (operator_div op_floor_div): Fix whitespace.
3810 (operator_exact_divide::op1_range): Change call to fold_range.
3811 (operator_lshift::fold_range): Return result via reference parameter.
3812 (operator_lshift::wi_fold): Same.
3813 (operator_rshift::fold_range): Same.
3814 (operator_rshift::wi_fold): Same.
3815 (operator_cast::fold_range): Same.
3816 (operator_cast::op1_range): Change calls to fold_range.
3817 (operator_logical_and::fold_range): Return result via reference.
3818 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
3819 (operator_bitwise_and::wi_fold): Return result via reference.
3820 (operator_logical_or::fold_range): Same.
3821 (operator_bitwise_or::wi_fold): Same.
3822 (operator_bitwise_xor::wi_fold): Same.
3823 (operator_trunc_mod::wi_fold): Same.
3824 (operator_logical_not::fold_range): Same.
3825 (operator_bitwise_not::fold_range): Same.
3826 (operator_bitwise_not::op1_range): Change call to fold_range.
3827 (operator_cst::fold_range): Return result via reference.
3828 (operator_identity::fold_range): Same.
3829 (operator_abs::wi_fold): Same.
3830 (operator_absu::wi_fold): Same.
3831 (operator_negate::fold_range): Same.
3832 (operator_negate::op1_range): Change call to fold_range.
3833 (operator_addr_expr::fold_range): Return result via reference.
3834 (operator_addr_expr::op1_range): Change call to fold_range.
3835 (operator_pointer_plus::wi_fold): Return result via reference.
3836 (operator_pointer_min_max::wi_fold): Same.
3837 (operator_pointer_and::wi_fold): Same.
3838 (operator_pointer_or::wi_fold): Same.
3839 (range_op_handler): Change call to fold_range.
3841 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
3843 (range_fold_unary_symbolics_p): Same.
3844 (range_fold_binary_expr): Same.
3845 (range_fold_unary_expr): Same.
3847 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3849 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
3850 vector type as an argument rather than reading it from the
3852 (vect_create_epilog_for_reduction): Update accordingly.
3853 (vectorizable_reduction): Likewise.
3854 (vect_transform_cycle_phi): Likewise.
3856 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
3858 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
3859 the comparison codes that make sense for the mode used, and only the
3860 codes that can be done with a single branch instruction.
3862 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3864 PR tree-optimization/92351
3865 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
3866 peeling the main loop for alignment, make sure to set the misalignment
3867 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
3869 2019-11-08 Richard Biener <rguenther@suse.de>
3871 * dbgcnt.def (ivopts_loop): Add.
3872 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
3873 ivopts_loop before optimizing a loop.
3875 2019-11-08 Richard Biener <rguenther@suse.de>
3878 * tree-inline.c (declare_return_variable): Properly handle
3879 type mismatches for the return slot.
3881 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
3884 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
3885 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
3887 (got_helper_needed): New static variable.
3888 (output_load_pcrel_sym): New function.
3889 (get_pc_thunk_name): Remove after inlining...
3890 (load_got_register): ...here. Rework the initialization of the GOT
3891 register and of the GOT helper.
3892 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
3893 (sparc_file_end): Test got_helper_needed to decide whether the GOT
3894 helper must be emitted. Use output_asm_insn instead of fprintf.
3895 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
3896 if optimization is enabled.
3897 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
3898 by calling output_load_pcrel_sym.
3900 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3902 * tree-sra.c (create_access): Delay disqualifying the base
3903 for poly_int values until we know we have a base.
3905 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3907 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
3908 for loops with SIMDUID set. Enable epilogue vectorization for loops
3909 with SIMDLEN set after finding a main loop with a VF that matches it.
3911 2019-11-08 Jakub Jelinek <jakub@redhat.com>
3914 * gimple-ssa-store-merging.c (find_constituent_stores): For return
3915 value only, return non-NULL if there is a single non-clobber
3916 constituent store even if there are constituent clobbers and return
3917 one of clobber constituent stores if all constituent stores are
3919 (split_group): Handle clobbers.
3920 (imm_store_chain_info::output_merged_store): When computing
3921 bzero_first, look after all clobbers at the start. Don't count
3922 clobber stmts in orig_num_stmts, except if the first orig store is
3923 a clobber covering the whole area and split_stores cover the whole
3924 area, consider equal number of stmts ok. Punt if split_stores
3925 contains only ->orig stores and their number plus number of original
3926 clobbers is equal to original number of stmts. For ->orig, look past
3927 clobbers in the constituent stores.
3928 (imm_store_chain_info::output_merged_stores): Don't remove clobber
3930 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
3932 (store_valid_for_store_merging_p): Allow clobber stmts.
3933 (verify_clear_bit_region_be): Fix up a thinko in function comment.
3936 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
3937 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
3939 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
3940 force creation of a unique data.stack_parm slot.
3942 2019-11-08 Richard Biener <rguenther@suse.de>
3944 * genmatch.c (expr::gen_transform): Use the resimplify
3945 member function instead of hard-coding the gimple_resimplifyN variant.
3946 (dt_simplify::gen_1): Likewise.
3948 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3950 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3953 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3955 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
3956 instead of INTEGER_CST.
3958 2019-11-08 Richard Biener <rguenther@suse.de>
3960 PR tree-optimization/92324
3961 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3962 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
3963 sign-conversions as necessary.
3964 (vectorizable_reduction): Reject conversions in the chain
3965 that are not sign-conversions, base analysis on a non-converting
3966 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
3967 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
3969 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
3970 (STMT_VINFO_REDUC_VECTYPE): Likewise.
3972 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
3975 * config/avr/avr.opt (-mdouble=, -mlong-double=):
3976 Fix a missing '-' when displaying these options in the
3979 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3981 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
3983 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3985 * config/aarch64/aarch64-builtins.c
3986 (aarch64_builtin_vectorized_function): Remove bswap handling.
3988 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3990 * tree-core.h (tree_type_common::indivisible_p): New member variable.
3991 * tree.h (TYPE_INDIVISIBLE_P): New macro.
3992 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3993 Treat the vector types as indivisible.
3995 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3997 * optabs.def (gather_load_optab, mask_gather_load_optab)
3998 (scatter_store_optab, mask_scatter_store_optab): Turn into
3999 conversion optabs, with the offset mode given explicitly.
4000 * doc/md.texi: Update accordingly.
4001 * config/aarch64/aarch64-sve-builtins-base.cc
4002 (svld1_gather_impl::expand): Likewise.
4003 (svst1_scatter_impl::expand): Likewise.
4004 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4005 (expand_scatter_store_optab_fn): Likewise.
4006 (direct_gather_load_optab_supported_p): Likewise.
4007 (direct_scatter_store_optab_supported_p): Likewise.
4008 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4010 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4011 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4012 argument with the offset vector type. Require the two vector
4013 types to have the same number of elements but allow their element
4014 sizes to be different. Treat the optabs as conversion optabs.
4015 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4016 prototype accordingly.
4017 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4018 (supports_vec_convert_optab_p): ...this new function.
4019 (supports_vec_gather_load_p): Update accordingly.
4020 (supports_vec_scatter_store_p): Likewise.
4021 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4022 Replace the offset sign and bits parameters with a scalar type tree.
4023 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4024 Pass back the offset vector type instead of the scalar element type.
4025 Allow the offset to be wider than the memory elements. Search for
4026 an offset type that the target supports, stopping once we've
4027 reached the maximum of the element size and pointer size.
4028 Update call to internal_gather_scatter_fn_supported_p.
4029 (vect_check_gather_scatter): Update calls accordingly.
4030 When testing a new scale before knowing the final offset type,
4031 check whether the scale is supported for any signed or unsigned
4032 offset type. Check whether the target supports the source and
4033 target types of a conversion before deciding whether to look
4034 through the conversion. Record the chosen offset_vectype.
4035 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4036 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4037 directly from the gs_info's offset_vectype instead. Pass a zero
4038 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4039 * tree-vect-stmts.c (check_load_store_masking): Update call to
4040 internal_gather_scatter_fn_supported_p, passing the offset vector
4041 type recorded in the gs_info.
4042 (vect_truncate_gather_scatter_offset): Update call to
4043 vect_check_gather_scatter, leaving it to search for a valid
4045 (vect_use_strided_gather_scatters_p): Convert the offset to the
4046 element type of the gs_info's offset_vectype.
4047 (vect_get_gather_scatter_ops): Get the offset vector type directly
4049 (vect_get_strided_load_store_ops): Likewise.
4050 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4051 and IFN_MASK_GATHER_LOAD.
4052 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4053 (gather_load<mode><v_int_equiv>): ...this.
4054 (mask_gather_load<mode>): Rename to...
4055 (mask_gather_load<mode><v_int_equiv>): ...this.
4056 (scatter_store<mode>): Rename to...
4057 (scatter_store<mode><v_int_equiv>): ...this.
4058 (mask_scatter_store<mode>): Rename to...
4059 (mask_scatter_store<mode><v_int_equiv>): ...this.
4061 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4064 * config/rs6000/predicates.md
4065 (signed_or_equality_comparison_operator): New predicate.
4066 (unsigned_or_equality_comparison_operator): Likewise.
4067 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4068 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4069 * config/rs6000/vector.md
4070 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4071 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4072 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4073 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4074 vector modes and same-size integer vector modes.
4075 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4076 (vector_lt<mode> for VEC_F): New expand.
4077 (vector_le<mode> for VEC_F): Likewise.
4078 (vector_ne<mode> for VEC_F): Likewise.
4079 (vector_unge<mode> for VEC_F): Likewise.
4080 (vector_ungt<mode> for VEC_F): Likewise.
4081 (vector_unle<mode> for VEC_F): Likewise.
4082 (vector_unlt<mode> for VEC_F): Likewise.
4083 (vector_uneq<mode>): Expose name.
4084 (vector_ltgt<mode>): Likewise.
4085 (vector_unordered<mode>): Likewise.
4086 (vector_ordered<mode>): Likewise.
4088 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4091 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4092 Enhance ix86_expand_vector_init_concat.
4094 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4096 * doc/invoke.texi (-Wold-style-definition): Document () not being
4097 considered an old-style definition for C2x.
4099 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4101 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4103 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4104 insn patterns using ldcw instruction.
4105 (memory_barrier): Remove insn pattern using sync instruction.
4106 * config/pa/pa.opt (coherent-ldcw): New option.
4107 (ordered): New option.
4109 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4111 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4114 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4116 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4117 typo - mistmatch -> mismatch.
4118 * ipa-profile.c (ipa_profile): Likewise.
4119 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4120 - mistmatch -> mismatch.
4122 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4124 * simplify-rtx.c (comparison_to_mask): New function.
4125 (mask_to_comparison): New function.
4126 (simplify_logical_relational_operation): New function.
4127 (simplify_binary_operation_1): Call
4128 simplify_logical_relational_operation.
4130 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4133 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4134 modes for integer constants.
4136 2019-11-07 Jan Hubicka <jh@suse.cz>
4139 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4142 2019-11-07 Jan Hubicka <jh@suse.cz>
4144 * optc-save-gen.awk: Generate cl_target_option_free
4145 and cl_optimization_option_free.
4146 * opth-en.awk: Declare cl_target_option_free
4147 and cl_optimization_option_free.
4148 * tree.c (free_node): Use it.
4150 2019-11-06 Jan Hubicka <jh@suse.cz>
4152 * lto-streamer-in.c: Include alloc-pool.h.
4153 (freeing_string_slot_hasher): Remove.
4154 (string_slot_allocator): New object allocator.
4155 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4156 (file_name_obstack): New obstack.
4157 (canon_file_name): Allocate in obstack and allocator.
4158 (lto_reader_init): Initialize obstack and allocator.
4159 (lto_free_file_name_hash): New function.
4160 * lto-streamer.h (lto_free_file_name_hash): New.
4162 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4164 PR tree-optimization/89134
4165 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4166 * params.def: Add min-loop-cond-split-prob.
4167 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4168 outside checks on loop into the function.
4169 (split_info): New class.
4170 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4171 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4172 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4173 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4174 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4175 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4176 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4177 (split_loop_on_cond): Likewise.
4178 (tree_ssa_split_loops): Add loop split on conditional statement.
4180 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4182 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4185 2019-11-07 Richard Biener <rguenther@suse.de>
4187 PR tree-optimization/92405
4188 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4189 restrict lane-reducing ops to single stmt chains.
4191 2019-11-07 Martin Jambor <mjambor@suse.cz>
4194 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4195 * cgraph.h (gimple_check_call_matching_types): Remove
4196 * cgraph.c (gimple_check_call_args): Likewise.
4197 (gimple_check_call_matching_types): Likewise.
4198 (symbol_table::create_edge): Do not call
4199 gimple_check_call_matching_types.
4200 (cgraph_edge::make_direct): Likewise.
4201 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4202 * value-prof.h (check_ic_target): Remove.
4203 * value-prof.c (check_ic_target): Remove.
4204 (gimple_ic_transform): Do nat call check_ic_target.
4205 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4206 (afdo_indirect_call): Likewise.
4207 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4208 gimple_check_call_matching_types.
4209 * ipa-inline.c (early_inliner): Likewise.
4211 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4213 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4214 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4215 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4216 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4217 * config/arm/iterators.md (USSAT16): New int_iterator.
4218 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4220 * config/arm/predicates.md (ssat16_imm): New predicate.
4221 (usat16_imm): Likewise.
4222 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4224 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4226 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4228 (arm_<simd32_op>): New define_expands.
4229 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4230 __smuad, __smuadx): Define.
4231 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4232 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4233 (SIMD32_BINOP_Q): Likewise.
4234 (simd32_op): Handle the above.
4235 * config/arm/unspecs.md: Define unspecs for the above.
4237 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4239 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4240 * config/arm/arm.md (APSRGE_REGNUM): Define.
4241 (arm_<simd32_op>): New define_insn.
4242 (arm_sel): Likewise.
4243 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4244 (CALL_USED_REGISTERS): Likewise.
4245 (REG_ALLOC_ORDER): Likewise.
4246 (FIRST_PSEUDO_REGISTER): Update value.
4247 (ARM_GE_BITS_READ): Define.
4248 * config/arm/arm.c (arm_conditional_register_usage): Clear
4249 APSRGE_REGNUM from operand_reg_set.
4250 (arm_ge_bits_access): Define.
4251 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4253 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4254 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4255 FAIL if ARM_GE_BITS_READ.
4256 (*arm_add<mode>3): New define_insn.
4257 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4258 (*arm_sub<mode>3): New define_insn.
4259 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4260 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4262 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4263 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4264 (simd32_op): Handle the above.
4265 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4266 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4267 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4268 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4270 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4272 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4273 (arm_smlabb): New define_expand.
4274 (*maddhisi4tb): Rename to...
4275 (maddhisi4tb): ... This.
4276 (*maddhisi4tt): Rename to...
4277 (maddhisi4tt): ... This.
4278 (arm_smlatb_setq): New define_insn.
4279 (arm_smlatb): New define_expand.
4280 (arm_smlatt_setq): New define_insn.
4281 (arm_smlatt): New define_expand.
4282 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4283 (arm_<smlaw_op>): New define_expand.
4284 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4285 __smlawb, __smlawt): Define.
4286 * config/arm_acle_builtins.def: Define builtins for the above.
4287 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4288 (slaw_op): New int_attribute.
4289 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4291 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4293 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4294 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4295 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4296 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4297 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4298 (ss_op): New code_attr.
4300 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4302 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4303 * config/arm/arm.md (APSRQ_REGNUM): Define.
4304 (add_setq): New define_subst.
4305 (add_clobber_q_name): New define_subst_attr.
4306 (add_clobber_q_pred): Likewise.
4307 (maddhisi4): Change to define_expand. Split into mult and add if
4309 (arm_maddhisi4): New define_insn.
4310 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4311 (*maddhisi4tt): Likewise.
4312 (arm_ssat): New define_expand.
4313 (arm_usat): Likewise.
4314 (arm_get_apsr): New define_insn.
4315 (arm_set_apsr): Likewise.
4316 (arm_saturation_occurred): New define_expand.
4317 (arm_set_saturation): Likewise.
4318 (*satsi_<SAT:code>): Rename to...
4319 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4320 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4321 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4322 (CALL_USED_REGISTERS): Mark apsrq.
4323 (FIRST_PSEUDO_REGISTER): Update value.
4324 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4325 (machine_function): Add q_bit_access.
4326 (ARM_Q_BIT_READ): Define.
4327 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4328 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4330 (arm_q_bit_access): Define.
4331 * config/arm/arm-builtins.c: Include stringpool.h.
4332 (arm_sat_binop_imm_qualifiers,
4333 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4334 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4335 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4336 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4337 SET_SAT_QUALIFIERS): Likewise.
4338 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4339 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4340 Handle 0 argument expander.
4341 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4342 (arm_check_builtin_call): Define.
4343 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4344 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4345 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4346 (arm_q_bit_access): Likewise.
4347 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4348 __saturation_occurred, __set_saturation_occurred): Define.
4349 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4350 saturation_occurred, set_saturation_occurred.
4351 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4352 (UNSPEC_APSR_READ): Likewise.
4353 (VUNSPEC_APSR_WRITE): Likewise.
4354 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4355 (*arm_ssadd<mode>3): New define_insn.
4356 (sssub<mode>3): Convert to define_expand.
4357 (*arm_sssub<mode>3): New define_insn.
4358 (ssmulsa3): Convert to define_expand.
4359 (*arm_ssmulsa3): New define_insn.
4360 (usmulusa3): Convert to define_expand.
4361 (*arm_usmulusa3): New define_insn.
4362 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4363 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4364 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4366 2019-11-07 Martin Liska <mliska@suse.cz>
4369 * cgraph.c (delete_function_version): Clear global
4370 variable version_info_node if equal to deleted
4373 2019-11-07 Martin Liska <mliska@suse.cz>
4375 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4376 of CONSTRUCTOR_NO_CLEARING.
4377 (operand_compare::hash_operand): Likewise.
4379 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4381 Support 64-bit double and 64-bit long double configurations.
4384 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4385 --with-long-double=.
4386 * config/avr/t-multilib: Remove.
4387 * config/avr/t-avr: Output of genmultilib.awk is now fully
4388 dynamically generated and no more part of the repo.
4389 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4390 Pass them down to...
4391 * config/avr/genmultilib.awk: ...here and handle them.
4392 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4393 (-mlong-double=, avr_long_double). New option and var.
4394 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4395 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4396 Set default as requested by --with-double=
4397 (TARGET_HANDLE_OPTION): Define to this...
4398 (avr_handle_option): ...new hook worker.
4399 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4400 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4401 (avr_double_lib): New proto for spec function.
4402 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4403 (DRIVER_SELF_SPECS): Call %:double-lib.
4404 * config/avr/avr.c (avr_option_override): Assert
4405 sizeof(long double) >= sizeof(double) for the target.
4406 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4407 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4408 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4409 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4410 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4411 New built-in define depending on --with-double=, --with-long-double=.
4412 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4413 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4414 * doc/install.texi (Cross-Compiler-Specific Options)
4415 <--with-double=, --with-long-double=>: Doc.
4417 2019-11-07 Richard Biener <rguenther@suse.de>
4419 * dbgcnt.def (gimple_unroll): New.
4420 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4421 gimple_unroll debug counter before applying transform.
4422 (try_peel_loop): Likewise.
4424 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4426 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4427 frame pointer in multiple registers.
4428 (ira_setup_eliminable_regset): Setup eliminable_regset,
4429 ira_no_alloc_regs and regs_ever_live for frame pointer in
4432 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4434 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4437 2019-11-06 Jan Hubicka <jh@suse.cz>
4439 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4441 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4442 Do not silently ignore summary corruptions.
4444 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4446 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4447 the epilogue if there are peeled iterations for it to handle.
4449 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4451 * config/arc/arc.c (arc_split_ior): Add asserts.
4452 (arc_split_mov_const): Likewise.
4453 (arc_check_ior_const): Do not match known short immediate values.
4454 * config/arc/arc.md (movsi): Don't split predicated instructions
4457 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4459 * config/arc/arc.opt (mea): Update help string.
4460 * doc/invoke.texi(ARC): Update mea option info.
4462 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4464 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4465 (zero_extendqisi2_ac): Likewise.
4466 (zero_extendhisi2_i): Likewise.
4467 (extendqihi2_i): Likewise.
4468 (extendqisi2_ac): Likewise.
4469 (extendhisi2_i): Likewise.
4471 2019-11-06 Richard Biener <rguenther@suse.de>
4473 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4474 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4475 Simplify single_defuse_cycle condition.
4477 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4479 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4480 epilogue loop, make sure that the VF is small enough or that
4481 the epilogue loop can be fully-masked.
4483 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4485 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4486 loop when we've finished, rather than returning directly from
4487 the loop. Use a local variable to track whether we're still
4488 searching for the preferred simdlen. Make vect_epilogues
4489 record whether the next iteration should try to treat the
4490 loop as an epilogue.
4492 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4494 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4495 __arc_hard_float__, __ARC_HARD_FLOAT__,
4496 __arc_soft_float__, __ARC_SOFT_FLOAT__
4498 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4500 PR tree-optimization/92317
4501 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4502 update phi's with constant phi arguments.
4504 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4505 Alexandre Oliva <oliva@adacore.com>
4507 * common.opt (-fcallgraph-info[=]): New option.
4508 * doc/invoke.texi (Developer options): Document it.
4509 * opts.c (common_handle_option): Handle it.
4510 * builtins.c (expand_builtin_alloca): Record allocation if
4511 -fcallgraph-info=da.
4512 * calls.c (expand_call): If -fcallgraph-info, record the call.
4513 (emit_library_call_value_1): Likewise.
4514 * flag-types.h (enum callgraph_info_type): New type.
4515 * explow.c: Include stringpool.h.
4516 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4517 * function.c (allocate_stack_usage_info): New.
4518 (allocate_struct_function): Call it for -fcallgraph-info.
4519 (prepare_function_start): Call it otherwise.
4520 (record_final_call, record_dynamic_alloc): New.
4521 * function.h (struct callinfo_callee): New.
4522 (CALLEE_FROM_CGRAPH_P): New.
4523 (struct callinfo_dalloc): New.
4524 (struct stack_usage): Add callees and dallocs.
4525 (record_final_call, record_dynamic_alloc): Declare.
4526 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4527 object if -fcallgraph-info=da.
4528 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4529 * print-tree.h (print_decl_identifier): Declare.
4530 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4531 * print-tree.c: Include print-tree.h.
4532 (print_decl_identifier): New function.
4533 * toplev.c: Include print-tree.h.
4534 (callgraph_info_file): New global variable.
4535 (callgraph_info_external_printed): Likewise.
4536 (output_stack_usage): Rename to...
4537 (output_stack_usage_1): ... this. Make it static, add cf
4538 parameter. If -fcallgraph-info=su, print stack usage to cf.
4539 If -fstack-usage, use print_decl_identifier for
4541 (INDIRECT_CALL_NAME): New.
4542 (dump_final_node_vcg_start): New.
4543 (dump_final_callee_vcg, dump_final_node_vcg): New.
4544 (output_stack_usage): New.
4545 (lang_dependent_init): Open and start file if
4546 -fcallgraph-info. Allocated callgraph_info_external_printed.
4547 (finalize): If callgraph_info_file is not null, finish it,
4548 close it, and release callgraph_info_external_printed.
4550 2019-11-06 Gergö Barany <gergo@codesourcery.com>
4551 Frederik Harwath <frederik@codesourcery.com>
4552 Thomas Schwinge <thomas@codesourcery.com>
4554 * omp-low.c (struct omp_context): New fields
4555 local_reduction_clauses, outer_reduction_clauses.
4556 (new_omp_context): Initialize these.
4557 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
4558 (scan_omp_for): Check reduction clauses for incorrect nesting.
4560 2019-11-06 Jakub Jelinek <jakub@redhat.com>
4563 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
4564 operands with non-memory constraints.
4566 2019-11-05 Martin Sebor <msebor@redhat.com>
4568 PR tree-optimization/92373
4569 * tree.c (component_ref_size): Only consider initializers of objects
4570 of matching struct types.
4571 Return null for instances of interior zero-length arrays.
4573 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
4575 * doc/md.texi (Insn Splitting): Fix combiner documentation.
4577 2019-11-05 Jason Merrill <jason@redhat.com>
4579 PR tree-optimization/91825
4580 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
4582 2019-11-05 Jim Wilson <jimw@sifive.com>
4585 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
4586 optimize_insn_for_speed_p is true.
4588 2019-11-05 Martin Sebor <msebor@redhat.com>
4592 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
4594 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
4595 name and location for a temporary variable.
4597 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4599 * tree-vrp.c (value_range::value_range): Fix whitespace.
4600 (defined_ranges_p): Same.
4601 (range_fold_binary_symbolics_p): Same.
4602 (value_range::intersect_helper): Same.
4603 (value_range::union_helper): Same.
4604 * tree-vrp.h (range_fold_binary_expr): Same.
4606 2019-11-04 Martin Sebor <msebor@redhat.com>
4610 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
4611 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
4612 of message printed in a warning for empty arrays.
4613 (vrp_prop::check_mem_ref): Also handle function parameters and
4616 2019-11-05 Richard Biener <rguenther@suse.de>
4618 PR tree-optimization/92371
4619 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
4620 on the original stmt of live stmts in the chain.
4621 (vectorizable_live_operation): Look at the original stmt when
4622 checking STMT_VINFO_REDUC_DEF.
4624 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4626 * gimple-fold.c, gimple-loop-versioning.cc,
4627 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
4628 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
4629 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
4630 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
4631 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
4632 value_range_equiv, and value_range_base to value_range.
4634 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4636 * expr.c (build_personality_function): Fix generated type to
4637 match actual personality functions.
4639 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4641 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
4642 enough bytes for the NULL character.
4644 2019-11-05 Richard Biener <rguenther@suse.de>
4646 PR tree-optimization/92280
4647 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
4648 had a single use do not create a new CTOR.
4649 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
4650 BIT_FIELD_REF of a CTOR via GENERIC.
4652 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
4654 * config/s390/s390.c (s390_vector_alignment): Check if the value
4655 fits into uhwi before using it.
4657 2019-11-05 Martin Liska <mliska@suse.cz>
4659 * symbol-summary.h: Use ggc_delete.
4661 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4663 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
4664 Change vec_perm field to 10.
4666 2019-11-05 Arnaud Charlet <charlet@adacore.com>
4668 * doc/install.texi: Further fix syntax for html generation.
4670 2019-11-05 Martin Liska <mliska@suse.cz>
4672 * symbol-summary.h: Rename allocator to m_allocator and
4675 2019-11-05 Richard Biener <rguenther@suse.de>
4677 PR tree-optimization/92324
4678 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
4679 all signed or unsigned operations.
4681 2019-11-05 Jan Hubicka <jh@suse.cz>
4683 * hsa-brig.c: Include alloc-pool.h
4684 * hsa-dump.c: Likewise.
4685 * hsa-gen.c: Likewise.
4686 * hse-regalloc.c: Likewise.
4687 * ipa-hsa.c: Likewise.
4688 * ipa-predicate.c: Likewise.
4689 * ipa-reference.c: Likewise.
4690 * ipa-sra.c: Likewise.
4691 * omp-expand.c: Likewise.
4692 * omp-general.c: Likewise.
4693 * omp-low.c: Likewise.
4694 * sumbol-summary.h (function_summary_base): Add allocator.
4695 (function_summary<T *>::function_summary): Update construction.
4696 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
4697 (call_summary_base): Add allcator.
4698 (call_summary<T *>::call_summary): Update construction.
4699 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
4701 2019-11-05 Jakub Jelinek <jakub@redhat.com>
4703 PR tree-optimization/91945
4704 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
4705 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
4708 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4710 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
4711 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
4712 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
4713 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
4714 (vrp_set_zero_nonzero_bits): Move to...
4715 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
4716 (vr_values::simplify_bit_ops_using_ranges): Rename
4717 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
4719 2019-11-05 Martin Liska <mliska@suse.cz>
4722 * fold-const.c (operand_compare::hash_operand): Remove
4723 FIELD_DECL handling.
4725 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4727 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
4728 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
4731 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4733 * tree-vrp.c (value_range_base::operator==): Use equal_p to
4734 properly handle symbolics.
4735 (range_compatible_p): Remove.
4737 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
4739 * common.opt (-fabi-version): Document =14.
4740 * doc/invoke.texi (C++ Dialect Options): Likewise.
4742 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4744 * tree-vrp.c (value_range_base::set): Do not special case pointers.
4746 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4748 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
4749 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4750 gcn_omp_device_kind_arch_isa.
4751 * config/gcn/t-omp-device: New file.
4752 * configure.ac: Support gcn for omp_device_property.
4753 * configure: Regenerate.
4755 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4757 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
4758 (vrp_val_max): Same.
4759 (vrp_val_is_min): Same.
4760 (vrp_val_is_max): Same.
4761 (value_range_base::nonzero_p): Remove last argument to
4763 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
4764 (vrp_val_max): Same.
4765 (vrp_val_is_min): Same.
4766 (vrp_val_is_max): Same.
4767 (value_range_base::set_varying): Remove last argument to vrp_val*.
4768 (value_range_base::dump): Same.
4769 (value_range_base::set): Same.
4770 (value_range_base::normalize_symbolics): Same.
4771 (value_range_base::num_pairs): Same.
4772 (value_range_base::lower_bound): Same.
4773 (value_range_base::upper_bound): Same.
4774 (ranges_from_anti_range): Remove handle_pointers argument.
4775 (value_range_base::singleton_p): Remove last argument to
4776 ranges_from_anti_range.
4778 2019-11-04 Jan Hubicka <jh@suse.cz>
4780 * ipa-reference.c (init_function_info): Initialize
4781 info->global.statics_read.
4783 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4785 * tree-vrp.c (value_range_base::invert): Use constructors to build
4788 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4790 * tree-vrp.c (range_int_cst_singleton_p): Remove.
4791 * tree-vrp.h (range_int_cst_singleton_p): Remove.
4793 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4795 * tree-vrp.c (value_range_base::normalize_addresses): Handle
4798 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4800 * tree-vrp.c (dump_assert_info): New.
4801 (dump_asserts_info): New.
4803 2019-11-04 Jan Hubicka <jh@suse.cz>
4805 * ipa-inline-transform.c: Include ipa-utils.h
4806 (inline_call): Set thunk_expansion flag.
4807 * ipa-utils.h (thunk_expansion): Declare.
4808 * ipa-devirt.c (thunk_expansion): New global var.
4809 (devirt_node_removal_hook): Do not invalidate cache while
4810 doing thunk expansion.
4812 2019-11-04 Tamar Christina <tamar.christina@arm.com>
4814 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
4816 2019-11-04 Martin Sebor <msebor@redhat.com>
4818 PR tree-optimization/92349
4819 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
4820 memebers have constant sizes.
4822 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
4824 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
4826 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
4827 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
4830 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
4832 * expr.c (store_constructor): Modify to handle single element vectors.
4833 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
4835 (vect_slp_check_for_constructors): New function.
4836 (vect_slp_analyze_bb_1): Call new function to check for vector
4838 (vectorize_slp_instance_root_stmt): New function.
4839 (vect_schedule_slp): Call new function to vectorize root stmt of vector
4841 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
4843 2019-11-04 Richard Biener <rguenther@suse.de>
4845 PR tree-optimization/92345
4846 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
4847 we produced a reduction chain.
4848 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
4849 LOOP_VINFO_REDUCTIONS.
4851 2019-11-04 Jan Hubicka <jh@suse.cz>
4853 * cgraphclones.c (cgraph_node::create_version_clone): Do not
4854 duplicate summaries.
4855 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
4857 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
4858 access call summaries.
4859 (dump_ipa_call_summary): Be ready for missing edge summaries.
4860 (analyze_function_body): Use get instead of get_create to access
4862 (estimate_calls_size_and_time): Do not access summaries of
4863 inlined edges; sanity check they are missing.
4864 (ipa_call_context::estimate_size_and_time): Use get instead
4865 of get_create to access node summary.
4866 (inline_update_callee_summaries): Do not update depth of
4868 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
4870 (ipa_merge_fn_summary_after_inlining): Use get instead
4872 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
4873 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
4875 (initialize_growth_caches): Update.
4876 (do_estimate_edge_time): Remove redundant copy of context.
4877 (ipa_remove_from_growth_caches): New function.
4878 * ipa-inline.c (flatten_function): Update overall summary
4879 only when optimizing.
4880 (inline_to_all_callers): Update overall summary of function
4882 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
4883 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
4886 2019-11-04 Richard Biener <rguenther@suse.de>
4888 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
4889 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
4891 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
4893 * ggc-common.c: Include system.h before malloc.h.
4895 2019-11-04 Alexandre Oliva <oliva@adacore.com>
4897 * configure.ac: Pass --enable-obsolete=* and
4898 --enable-option-checking=* down to build configure, and fail
4899 if it fails. AC_SUBST HAVE_AUTO_BUILD.
4900 * configure: Rebuild.
4901 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
4902 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
4904 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4906 * config.in: Regenerate.
4907 * config/msp430/msp430.c (msp430_option_override): Emit an error if
4908 -mtiny-printf is used without GCC being configured with
4909 --enable-newlib-nano-formatted-io.
4910 * config/msp430/msp430.h (LINK_SPEC): Pass
4911 "--wrap puts --wrap printf" when -mtiny-printf is used.
4912 * config/msp430/msp430.opt: Document -mtiny-printf.
4913 * configure: Regenerate.
4914 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
4915 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
4916 --enable-newlib-nano-formatted-io is passed.
4917 * doc/invoke.texi: Document -mtiny-printf.
4919 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4921 * configure: Regenerate.
4923 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4925 * config/msp430/driver-msp430.c
4926 (msp430_get_linker_devices_include_path): New spec function.
4927 * config/msp430/msp430-devices.c (msp430_dirname): New function.
4928 (extract_devices_dir_from_exec_prefix): New function.
4929 (extract_devices_dir_from_collect_gcc): New function.
4930 (msp430_check_env_var_for_devices): New function.
4931 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
4932 (parse_devices_csv): Call msp430_check_env_var_for_devices if
4933 devices.csv was not found using other methods.
4934 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
4936 (msp430_dirname): Likewise.
4937 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
4938 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
4939 msp430_get_linker_devices_include_path.
4940 (TARGET_EXTRA_PRE_INCLUDES): Define.
4941 * doc/invoke.texi: Document new ways of searching for support files.
4943 2019-11-04 Richard Biener <rguenther@suse.de>
4945 PR tree-optimization/92301
4946 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
4947 as required by epilogue generation
4949 2019-11-04 Martin Liska <mliska@suse.cz>
4952 * fold-const.c (operand_compare::hash_operand): Fix field
4953 hashing of CONSTRUCTOR.
4955 2019-11-04 Martin Liska <mliska@suse.cz>
4957 * ggc.h (ggc_delete): New function.
4958 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
4959 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
4960 (ipa_free_all_node_params): Likewise.
4961 * ipa-sra.c (ipa_sra_analysis): Likewise.
4963 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4965 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
4966 set_switch_stmt_execution_predicate, compute_bb_predicates,
4967 will_be_nonconstant_expr_predicate,
4968 phi_result_unknown_predicate,
4969 analyze_function_body): Pass arround params summary.
4970 (ipa_call_context::duplicate_from): New comment;
4971 only duplicate useful values.
4972 (ipa_call_context::equal_to): Only compare useful values.
4973 (remap_edge_summaries): Pass params_summary.
4974 (remap_hint_predicate): Likewise.
4975 (ipa_merge_fn_summary_after_inlining): Likewise.
4976 (inline_read_section): Initialize params summary used flags.
4977 * ipa-predicate.c (predicate::remap_after_inlining): Pass
4978 around param_summary.
4979 (add_condition): Initialized used params summary flags.
4980 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
4981 (inline_param_summary::useless_p): New predicate.
4982 (remap_after_inlining, add_condition): Update prototype
4983 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
4985 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
4987 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
4988 (ipa_analyze_virtual_call_uses): Likewise.
4989 (update_indirect_edges_after_inlining): Update param summaries.
4990 (ipa_print_node_params): Print used flags.
4991 (ipa_read_indirect_edge_info): Update param summareis.
4992 * ipa-prop.h (ipa_param_descriptor): Add
4993 used_by_ipa_predicates, used_by_indirect_call
4994 and used_by_polymorphic_call.
4995 (ipa_set_param_used_by_ipa_predicates,
4996 ipa_set_param_used_by_indirect_call,
4997 ipa_set_param_used_by_polymorphic_call,
4998 ipa_is_param_used_by_ipa_predicates,
4999 ipa_is_param_used_by_indirect_call,
5000 ipa_is_param_used_by_polymorphic_call): New inline functions.
5002 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5004 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5006 (ipa_call_context::release): Add ALL parameter.
5007 (ipa_call_context::equal_to): New member function.
5008 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5009 duplicate_form, release, equal_to and exists_p member functoins.
5010 * ipa-inline-analysis.c (node_context_cache_entry): New
5012 (node_context_summary): Likewise.
5013 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5014 node_context_clear): New static vars.
5015 (initialize_growth_caches): New function.
5016 (free_growth_caches): Also delete node_context_cache; output stats.
5017 (do_estimate_edge_time): Cache contexts.
5018 (reset_node_cache): New function.
5019 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5020 (inline_small_functions): Initialize growth caches.
5021 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5023 * ipa-predicate.h (inline_param_summary::equal_to): New.
5024 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5025 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5026 (ipa_agg_jump_function): Implement equal_to member function.
5028 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5030 * ipa-fnsummary.c (inline_read_section): Set vector size
5033 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5035 * ipa-fnsummary.c (ipa_call_context): New constructor.
5036 (estimate_node_size_and_time): Turn to ...
5037 (ipa_call_context::estimate_size_and_time): ... this one.
5038 (ipa_call_context::release): New.
5039 * ipa-fnsummary.h (ipa_call_context): New class.
5040 (estimate_node_size_and_time): Remove.
5041 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5042 do_estimate_edge_hints): Update.
5044 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5046 * config.in: Regenerate.
5047 * configure: Regenerate.
5048 * configure.ac: Check for mallinfo.
5049 * ggc-common.c: Include malloc.h if available;
5051 (report_heap_memory_use): New functoin.
5052 * ggc-page.c (ggc_grow): Do not print "start".
5053 * ggc.h (report_heap_memory_use): Declare.
5054 * pases.c (execute_one_pass): Report memory after IPA passes.
5055 (ipa_read_summaries_1): Likewise.
5056 (ipa_read_optimization_summaries_1): Likewise.
5058 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5060 * gimplify.h (omp_construct_selector_matches): Change return
5061 type to int, add a new SCORES argument.
5062 * gimplify.c (omp_construct_selector_matches): Likewise. If
5063 SCORES is non-NULL, compute scores of each construct.
5064 * omp-general.h (omp_get_context_selector): Declare.
5065 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5066 Adjust omp_construct_selector_matches callers.
5067 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5068 (omp_context_compute_score): New function.
5069 (omp_resolve_declare_variant): Compute scores and decide based on
5073 * configure.ac: Don't look for omp-device-properties files from
5074 installed offloading compilers. Instead add tmake_file snippets
5075 for configured offloading targets and use files they generate.
5076 * Makefile.in (install): Don't depend on
5077 install-omp-device-properties.
5078 (install-omp-device-properties): Remove goal.
5079 * config/i386/t-omp-device: New file.
5080 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5081 * config/nvptx/t-omp-device: New file.
5082 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5083 * configure: Regenerated.
5085 * omp-general.h (omp_context_selector_set_compare): Declare.
5086 * omp-general.c (omp_construct_simd_compare,
5087 omp_context_selector_props_compare, omp_context_selector_set_compare,
5088 omp_context_selector_compare): New functions.
5089 (omp_resolve_declare_variant): Prune variants that are strict subset
5092 2019-11-01 Martin Sebor <msebor@redhat.com>
5098 * doc/invoke.texi (-Wzero-length-bounds): Document.
5099 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5100 instead of a hand-rolled loop to avoid PR 92323.
5101 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5103 (vrp_prop::check_mem_ref): Handle declared struct objects.
5104 * tree.c (last_field): New function.
5105 (array_at_struct_end_p): Handle MEM_REF.
5106 (get_initializer_for): New helper.
5107 (component_ref_size): Add argument. Rename locals. Call
5108 get_initializer_for instead of fold_ctor_reference. Correct handling
5109 of flexible array members.
5110 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5112 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5114 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5115 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5116 UNSPEC_VSX_CVSPUXDS): Remove.
5117 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5118 (vsx_xvcvspdp_be): ... this. New. And...
5119 (vsx_xvcvspdp_le): ... this. New.
5120 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5121 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5122 (vsx_xvcv<su>xwdp_le): ... this. New.
5123 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5124 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5125 (vsx_xvcvsp<su>xds_le): ... this. New.
5127 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5129 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5130 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5131 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5132 UNSPEC_VSX_XVCVSPSXWS): Remove.
5133 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5134 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5136 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5138 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5139 (UNSPEC_VSX_XVCDPSP): Remove.
5140 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5141 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5143 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5145 * hooks.c (hook_tree_tree_bool_null): New.
5146 * hooks.h (hook_tree_tree_bool_null): Declare.
5147 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5148 (LANG_HOOKS_DECLS): Add it.
5149 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5150 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5151 (lower_omp_target): Handle Fortran array with descriptor in
5152 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5154 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5156 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5157 Assert that the type we store in abi_vector_types is its own
5159 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5161 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5163 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5164 from a CONST_INT address when TARGET_THUMB2.
5166 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5168 * config/arm/arm.md (add_not_cin): New insn.
5169 (add_not_shift_cin): Likewise.
5171 2019-10-31 Martin Liska <mliska@suse.cz>
5173 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5174 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5175 and compare_memory_operand.
5177 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5179 * configure.ac: Compute and substitute omp_device_properties and
5180 omp_device_property_deps.
5181 * Makefile.in (generated_files): Add omp-device-properties.h.
5182 (omp-general.o): Depend on omp-device-properties.h.
5183 (omp_device_properties): New make variable.
5184 (omp-device-properties.h, s-omp-device-properties-h,
5185 install-omp-device-properties): New goals.
5186 (install): Depend on install-omp-device-properties for accelerators.
5187 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5188 * target.h (enum omp_device_kind_arch_isa): New enum.
5189 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5191 * omp-general.c: Include omp-device-properties.h.
5192 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5193 colon instead of comma.
5194 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5196 (omp_context_selector_matches): Implement device set arch/isa
5197 selectors, improve device set kind selector handling.
5198 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5199 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5200 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5201 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5202 ix86_omp_device_kind_arch_isa.
5203 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5204 definition from ix86_target_string to file scope.
5205 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5207 (ix86_omp_device_kind_arch_isa): New function.
5208 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5209 isa_opts definitions to file scope.
5210 * config/i386/t-intelmic (omp-device-properties): New goal.
5211 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5212 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5213 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5214 nvptx_omp_device_kind_arch_isa.
5215 * configure: Regenerate.
5216 * doc/tm.texi: Regenerate.
5219 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5220 DECL_BUILT_IN in comment. Remove redundant ()s around return
5222 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5223 before calling fndecl_built_in_p.
5224 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5225 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5226 fndecl_built_in_p on it.
5228 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5230 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5232 2019-10-31 Martin Liska <mliska@suse.cz>
5234 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5235 of cgraph_local_info and use local_info_node instead.
5236 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5237 (bfin_function_ok_for_sibcall): Likewise.
5238 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5239 (must_reload_pic_reg_p): Likewise.
5241 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5244 * tree.h (type_initializer_zero_p): Remove.
5245 * tree.c (type_initializer_zero_p): Remove.
5247 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5249 * doc/invoke.texi (-Wshadow, -Wshadow=global
5250 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5252 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5254 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5255 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5256 and 'target exit data'.
5258 2019-10-30 Martin Jambor <mjambor@suse.cz>
5261 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5262 availability comparison.
5264 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5266 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5267 calls to __mspabi_mpy* functions.
5268 * config/msp430/msp430.md (mulhisi3): New define_expand.
5269 (umulhisi3): New define_expand.
5270 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5271 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5273 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5275 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5276 (msp430_check_plus_not_high_mem): New.
5277 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5278 might be in low memory.
5279 Indicate that a 16-bit absolute address is in lower memory.
5281 2019-10-30 Martin Jambor <mjambor@suse.cz>
5283 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5284 ultimate_alias_target.
5286 2019-10-30 Richard Biener <rguenther@suse.de>
5288 PR tree-optimization/92275
5289 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5290 Copy all loop-closed PHIs.
5292 2019-10-30 Martin Liska <mliska@suse.cz>
5294 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5295 const_tree as function argument.
5296 (func_checker::compare_decl): Likewise.
5297 (func_checker::operand_equal_p): Likewise.
5298 (func_checker::compare_variable_decl): Likewise.
5299 (func_checker::parse_labels): Likewise.
5300 * ipa-icf-gimple.h: Likewise.
5302 2019-10-30 Martin Liska <mliska@suse.cz>
5304 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5305 Do not compare alias sets. It's handled by operand_equal_p.
5307 2019-10-30 Martin Liska <mliska@suse.cz>
5309 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5310 initialize m_compare_polymorphic.
5311 (func_checker::compare_decl): Do not compare polymorphic types.
5312 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5313 * ipa-icf.c (sem_function::equals_private): Do not call
5314 compare_polymorphic_p.
5316 2019-10-30 Martin Liska <mliska@suse.cz>
5318 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5320 (func_checker::compare_memory_operand): Remove.
5321 (func_checker::compare_cst_or_decl): Remove.
5322 (func_checker::operand_equal_valueize): Do not handle
5324 (func_checker::compare_gimple_call): Call compare_operand.
5325 (func_checker::compare_gimple_assign): Likewise.
5326 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5327 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5328 * ipa-icf.h (icf_handled_component_p): Remove.
5330 2019-10-30 Martin Liska <mliska@suse.cz>
5332 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5333 (func_checker::compare_cst_or_decl): Remove handling
5335 (func_checker::compare_operand): Transform to ...
5336 (func_checker::operand_equal_p): ... this.
5337 * ipa-icf-gimple.h (class func_checker): Add
5338 operand_equal_p and hash_operand.
5339 * ipa-icf.c (sem_function::equals_private): Fix
5340 pushing and popping of cfun.
5342 2019-10-30 Martin Liska <mliska@suse.cz>
5344 * fold-const.c (operand_equal_p): Move to ...
5345 (operand_compare::operand_equal_p): ... here.
5346 (operand_compare::verify_hash_value): New.
5347 (add_expr): Move to ...
5348 (operand_compare::hash_operand): ... here.
5349 * fold-const.h (operand_equal_p): Move to the class.
5350 (class operand_compare): New.
5351 * tree.c (add_expr): Remove.
5353 2019-10-30 Martin Liska <mliska@suse.cz>
5355 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5356 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5358 2019-10-30 Martin Liska <mliska@suse.cz>
5362 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5363 from a first_clone in order to get proper LTO section
5365 (cgraph_node::get_untransformed_body):
5366 Use lto_get_section_data where symtab_node::order
5368 * cgraphclones.c (cgraph_node::find_replacement):
5369 Update also symbol order.
5370 * ipa-fnsummary.c (ipa_fn_summary_read):
5371 Use new function lto_get_summary_section_data.
5372 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5373 * ipa-icf.c (sem_item_optimizer::read_summary):
5375 * ipa-prop.c (ipa_prop_read_jump_functions):
5377 (ipcp_read_transformation_summaries): Likewise.
5378 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5379 * lto-cgraph.c (input_node): Add also order_base.
5380 (input_varpool_node): Likewise.
5381 (input_cgraph_1): Assign the order_base.
5382 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5383 * lto-opts.c (lto_write_options): Pass new argument.
5384 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5385 (lto_get_summary_section_data): New.
5386 (lto_get_raw_section_data): Add order argument.
5387 (lto_create_simple_input_block): Likewise.
5388 * lto-section-out.c (lto_destroy_simple_output_block):
5390 * lto-streamer-in.c (lto_input_toplevel_asms):
5391 Use lto_get_summary_section_data.
5392 (lto_input_mode_table): Likewise.
5393 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5394 (lto_output_toplevel_asms): Pass new argument.
5395 (copy_function_or_variable): Likewise.
5396 (produce_lto_section):Likewise.
5397 (produce_symtab): Likewise.
5398 (lto_write_mode_table): Likewise.
5399 (produce_asm_for_decls): Likewise.
5400 * lto-streamer.c (lto_get_section_name): Concat symbol name
5402 * lto-streamer.h (lto_get_section_data): Add order argument.
5403 (lto_get_summary_section_data): New.
5404 (lto_get_raw_section_data): Add order argument.
5405 (lto_get_section_name): Likewise.
5406 * varpool.c (varpool_node::get_constructor): Pass order argument.
5408 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5410 PR tree-optimization/92262
5411 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5412 ubase or cbase here.
5413 (remove_unused_ivs): Unshare comp before using it.
5415 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5417 * ipa-prop.c (update_jump_functions_after_inlining):
5418 Watch for missing summaries.
5420 2019-10-30 Richard Biener <rguenther@suse.de>
5422 PR tree-optimization/65930
5423 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5424 chains also allow a leading and trailing conversion.
5425 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5426 intermediate reduction chains.
5427 (vect_analyze_slp_instance): Likewise. Build a SLP
5428 node for a trailing conversion manually.
5430 2019-10-30 Martin Liska <mliska@suse.cz>
5432 * cgraph.c (cgraph_node::local_info): Transform to ...
5433 (cgraph_node::local_info_node): ... this.
5434 (cgraph_node::dump): Remove cgraph_local_info and
5435 put its fields directly into cgraph_node.
5436 (cgraph_node::get_availability): Likewise.
5437 (cgraph_node::make_local): Likewise.
5438 (cgraph_node::verify_node): Likewise.
5439 * cgraph.h (struct GTY): Likewise.
5440 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5441 (duplicate_thunk_for_node): Likewise.
5442 (cgraph_node::create_clone): Likewise.
5443 (cgraph_node::create_virtual_clone): Likewise.
5444 (cgraph_node::create_version_clone): Likewise.
5445 * cgraphunit.c (cgraph_node::reset): Likewise.
5446 (cgraph_node::finalize_function): Likewise.
5447 (cgraph_node::add_new_function): Likewise.
5448 (analyze_functions): Likewise.
5449 * combine.c (setup_incoming_promotions): Likewise.
5450 * config/i386/i386.c (ix86_function_regparm): Likewise.
5451 (ix86_function_sseregparm): Likewise.
5452 (init_cumulative_args): Likewise.
5453 * ipa-cp.c (determine_versionability): Likewise.
5454 (count_callers): Likewise.
5455 (set_single_call_flag): Likewise.
5456 (initialize_node_lattices): Likewise.
5457 (estimate_local_effects): Likewise.
5458 (create_specialized_node): Likewise.
5459 (identify_dead_nodes): Likewise.
5460 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5461 (ipa_fn_summary_generate): Likewise.
5462 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5463 (process_hsa_functions): Likewise.
5464 * ipa-icf.c (set_local): Likewise.
5465 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5466 * ipa-inline.c (speculation_useful_p): Likewise.
5467 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5468 (ipa_profile): Likewise.
5469 * ipa-split.c (split_function): Likewise.
5470 (execute_split_functions): Likewise.
5471 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5472 (ipa_sra_ipa_function_checks): Likewise.
5473 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5474 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5475 * lto-cgraph.c (lto_output_node): Likewise.
5476 (input_overwrite_node): Likewise.
5477 * multiple_target.c (expand_target_clones): Likewise.
5478 * omp-simd-clone.c (simd_clone_create): Likewise.
5479 * trans-mem.c (expand_call_tm): Likewise.
5480 (ipa_tm_mayenterirr_function): Likewise.
5481 (ipa_tm_diagnose_tm_safe): Likewise.
5482 (ipa_tm_diagnose_transaction): Likewise.
5483 (ipa_tm_create_version): Likewise.
5484 (ipa_tm_transform_calls_redirect): Likewise.
5485 (ipa_tm_execute): Likewise.
5486 * tree-inline.c (expand_call_inline): Likewise.
5488 2019-10-29 Martin Liska <mliska@suse.cz>
5490 * symbol-summary.h (function_summary): Pass memory location
5491 to underlaying hash_map (or vec).
5492 (V>::fast_function_summary): Likewise.
5494 2019-10-29 Martin Liska <mliska@suse.cz>
5496 * ggc.h (ggc_alloc_no_dtor): New function.
5497 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5498 destructor and ggc_free.
5499 (ipa_free_size_summary): Call delete instead
5501 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5502 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5503 (ipa_free_all_edge_args): Call destructor and ggc_free.
5504 (ipa_free_all_node_params): Likewise.
5505 (ipcp_free_transformation_sum): Likewise.
5506 * ipa-prop.h (ipa_check_create_node_params):
5507 Call new ggc_alloc_no_dtor.
5508 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5509 (ipa_sra_analysis): Call destructor and ggc_free.
5510 Replace release with delete operator.
5511 * symbol-summary.h (release): Remove ..
5512 (V>::~fast_function_summary): and move logic here.
5513 Likewise for other classes.
5515 2019-10-29 Richard Biener <rguenther@suse.de>
5517 PR tree-optimization/92260
5518 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5521 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
5523 PR tree-optimization/88915
5524 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5525 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5526 and make the valueize function pointer also take a void pointer.
5527 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5528 around vn_valueize, to call it without a context.
5529 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5530 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5531 (~_loop_vec_info): Release epilogue_vinfos.
5532 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5533 number of iterations of epilogue.
5534 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
5535 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
5536 versioning threshold needed for main loop.
5537 (vect_analyze_loop): Likewise.
5538 (find_in_mapping): New helper function.
5539 (update_epilogue_loop_vinfo): New function.
5540 (vect_transform_loop): When vectorizing epilogues re-use analysis done
5541 on main loop and call update_epilogue_loop_vinfo to update it.
5542 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
5543 stmts on loop preheader edge.
5544 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
5545 we decided to vectorize epilogues. Update epilogues NITERS and
5546 construct ADVANCE to update epilogues data references where needed.
5547 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
5548 (vect_do_peeling, vect_update_inits_of_drs,
5549 determine_peel_for_niter, vect_analyze_loop): Add or update
5551 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
5552 created loop_vec_info's for epilogues when available. Otherwise analyse
5553 epilogue separately.
5555 2019-10-29 Richard Biener <rguenther@suse.de>
5557 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
5560 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5562 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
5563 index for the COND_EXPR from stmt_info rather than reduc_info.
5565 2019-10-29 Richard Biener <rguenther@suse.de>
5567 PR tree-optimization/65930
5568 * tree-vect-loop.c (check_reduction_path): Relax single-use
5569 check allowing out-of-loop uses.
5570 (vect_is_simple_reduction): SLP reduction chains cannot have
5571 intermediate stmts used outside of the loop.
5572 (vect_create_epilog_for_reduction): The adjustment might need
5574 (vectorizable_reduction): Annotate live stmts of the reduction
5575 chain with STMT_VINFO_REDUC_DEF.
5576 * tree-vect-stms.c (process_use): Remove no longer true asserts.
5578 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5580 * calls.c (pass_by_reference): Leave the target to decide whether
5581 POLY_INT_CST-sized arguments should be passed by value or reference,
5582 rather than forcing them to be passed by reference.
5583 (must_pass_in_stack_var_size): Likewise.
5584 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
5585 V31_REGNUM to P15_REGNUM.
5586 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
5587 Take an extra "silent_p" parameter, defaulting to false.
5588 (aarch64_sve::svbool_type_p): Declare.
5589 (aarch64_sve::nvectors_if_data_type): Likewise.
5590 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
5591 (aarch64_frame::reg_offset): Turn into poly_int64s.
5592 (aarch64_frame::save_regs_size): Likewise.
5593 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
5594 (aarch64_frame::sve_callee_adjust): Likewise.
5595 (aarch64_frame::spare_reg_reg): Likewise.
5596 (ARM_PCS_SVE): New arm_pcs value.
5597 (CUMULATIVE_ARGS::aapcs_nprn): New field.
5598 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
5599 (CUMULATIVE_ARGS::silent_p): Likewise.
5600 (BITS_PER_SVE_PRED): New macro.
5601 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
5602 function. Reject aarch64_vector_pcs attributes on SVE functions.
5603 (aarch64_attribute_table): Use the above handler.
5604 (aarch64_sve_abi): New function.
5605 (aarch64_sve_argument_p): Likewise.
5606 (aarch64_returns_value_in_sve_regs_p): Likewise.
5607 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
5608 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
5609 descriptor for them.
5610 (aarch64_simd_decl_p): Delete.
5611 (aarch64_emit_cfi_for_reg_p): New function.
5612 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
5613 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
5614 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
5615 as partly clobbered for the SVE PCS.
5616 (aarch64_function_ok_for_sibcall): Check whether the two functions
5617 use the same ABI, rather than checking specifically for whether
5618 they're aarch64_vector_pcs functions.
5619 (aarch64_pass_by_reference): Raise an error for attempts to pass
5620 SVE arguments when SVE is disabled. Pass SVE arguments by reference
5621 if there are not enough free registers left, or if the argument is
5623 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
5624 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
5626 (aarch64_layout_arg): Take a function_arg_info rather than
5627 individual properties. Handle SVE predicates, vectors and tuples.
5628 Raise an error if they are passed to unprototyped functions.
5629 (aarch64_function_arg): If the silent_p flag is set, suppress the
5630 usual error about using float registers without TARGET_FLOAT.
5631 (aarch64_init_cumulative_args): Take a silent_p parameter and store
5632 it in the cumulative_args structure. Initialize aapcs_nprn and
5633 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
5634 error about using float registers without TARGET_FLOAT.
5635 If the silent_p flag is not set, also raise an error about
5636 using SVE functions when SVE is disabled.
5637 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
5638 and call it for SVE functions too. Update aapcs_nprn similarly
5639 to the other register counts.
5640 (aarch64_layout_frame): If a big-endian function needs to save
5641 and restore Z8-Z15, search for a spare predicate that it can use.
5642 Store SVE predicates at the bottom of the register save area,
5643 followed by SVE vectors, then followed by the normal slots.
5644 Keep pointing the hard frame pointer at the base of the normal slots,
5645 above the SVE vectors. Update the various frame creation and
5646 tear-down strategies for the new layout, initializing the new
5647 sve_callee_adjust field. Add an additional layout for frames
5648 whose saved registers are all SVE registers.
5649 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
5650 (aarch64_return_address_signing_enabled): Likewise.
5651 (aarch64_push_regs, aarch64_pop_regs): Update calls to
5652 aarch64_reg_save_mode.
5653 (aarch64_adjust_sve_callee_save_base): New function.
5654 (aarch64_add_cfa_expression): Move earlier in file. Take the
5655 saved register as an rtx rather than a register number and use
5656 its mode for the MEM slot.
5657 (aarch64_save_callee_saves): Remove the mode argument and instead
5658 use aarch64_reg_save_mode to get the mode of each save slot.
5659 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
5660 offsets. Allow GP offsets to be saved at a VL-based offset from
5661 the stack, handling this case using the frame pointer if available
5662 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
5663 big-endian SVE functions; use normal moves for other SVE saves.
5664 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
5665 returns true. Add explicit CFA notes when not storing via the
5666 stack pointer. Do not try to pair SVE saves.
5667 (aarch64_restore_callee_saves): Cope with poly_int64 register
5668 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
5669 use normal moves for other SVE restores. Only add CFA restore notes
5670 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
5672 (aarch64_get_separate_components): Always keep the first SVE save
5673 in the prologue if we need to use it as a stack probe. Don't allow
5674 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
5675 Likewise the spare predicate register that they need. Update the
5676 offset calculation to account for the SVE save area. Use the
5677 appropriate range check for SVE LDR and STR instructions.
5678 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
5679 (aarch64_process_components): Likewise. Update the offset
5680 calculation to account for the SVE save area. Only mark the
5681 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
5682 Do not try to pair SVE saves.
5683 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
5684 reg_offsets. When handling the final allocation, expect the
5685 first SVE register save to be part of the initial allocation
5686 and for it to act as a probe at SP. Account for the SVE callee
5687 save area in the dump information.
5688 (aarch64_expand_prologue): Update the frame diagram. Fold the
5689 SVE callee allocation into the initial allocation if stack clash
5690 protection is enabled. Use new variables to track the offset
5691 of the frame chain (and hard frame pointer) from the current
5692 stack pointer, and likewise the offset of the bottom of the
5693 register save area. Update calls to aarch64_save_callee_saves
5694 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
5695 saving the FP&SIMD registers. Save the predicate registers.
5696 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
5697 into account when setting the stack pointer from the frame pointer,
5698 and when deciding whether we can inherit the initial adjustment
5699 amount from the prologue. Restore the predicate registers after
5700 the vector registers, then apply sve_callee_adjust, then restore
5701 the general registers.
5702 (aarch64_secondary_reload): Don't use secondary SVE reloads
5704 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
5705 (aarch64_short_vector_p): Return false for SVE types.
5706 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
5707 at the start of the function. Return false for SVE types.
5708 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
5710 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
5711 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
5712 to big-endian targets for bytewise moves.
5713 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
5715 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5716 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5717 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5719 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
5720 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
5721 aarch64-sve-builtins-base.o to extra_objs. Add
5722 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
5723 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
5724 (aarch64-sve-builtins-shapes.o): Likewise.
5725 (aarch64-sve-builtins-base.o): New rules.
5726 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
5727 (aarch64_resolve_overloaded_builtin): Likewise.
5728 (aarch64_check_builtin_call): Likewise.
5729 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
5730 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
5732 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
5733 (aarch64_svprfop): New enum.
5734 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
5735 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
5736 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
5737 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5738 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
5739 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
5740 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
5741 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
5742 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
5743 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
5744 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
5745 (aarch64_sve::mangle_builtin_type): Likewise.
5746 (aarch64_sve::resolve_overloaded_builtin): Likewise.
5747 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
5748 (aarch64_sve::expand_builtin): Likewise.
5749 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
5750 (aarch64_sve_int_mode): Likewise.
5751 (aarch64_ptrue_all_mode): New function.
5752 (aarch64_convert_sve_data_to_pred): Make public.
5753 (svprfop_token): New function.
5754 (aarch64_output_sve_prefetch): Likewise.
5755 (aarch64_fold_sve_cnt_pat): Likewise.
5756 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5757 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
5758 instead of gen_while_ult.
5759 (aarch64_replace_reg_mode): Make public.
5760 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
5761 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
5762 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
5763 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
5764 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
5765 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
5766 (aarch64_sve_ptrue_svpattern_p): Likewise.
5767 (aarch64_sve_pred_valid_immediate): Check
5768 aarch64_sve_ptrue_svpattern_p.
5769 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
5770 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
5772 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
5773 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
5774 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
5775 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
5776 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
5777 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
5779 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
5780 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
5781 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
5782 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
5783 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
5784 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
5785 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
5786 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
5787 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
5788 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
5789 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
5790 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
5791 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
5792 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
5793 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
5794 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
5795 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
5796 (Vesize): Handle partial vector modes.
5797 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
5799 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
5801 (s, paired_extend, inc_dec): New code attributes.
5802 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
5803 (SVE_INT_UNARY): Add UNSPEC_RBIT.
5804 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
5805 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
5806 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
5807 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5809 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
5810 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
5811 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5812 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
5813 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
5814 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
5815 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
5816 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
5817 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
5818 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
5819 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
5820 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
5821 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
5822 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
5823 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
5824 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
5826 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5827 (binqops_op, binqops_op_rev, last_op): New int attributes.
5828 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
5829 (fn, ab): New int attributes.
5830 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
5831 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
5832 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
5833 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
5835 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
5836 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
5837 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
5838 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
5839 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5841 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
5842 (brk_reg_con, brk_reg_opno): New int attributes.
5843 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
5844 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
5845 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
5847 (max_elem_bits): New int attribute.
5848 (min_elem_bits): Handle UNSPEC_RBIT.
5849 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
5850 TRUNCATE as well as SUBREG.
5851 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
5852 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
5853 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
5854 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
5855 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
5856 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
5857 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
5858 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
5859 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
5860 (aarch64_gather_scale_operand_h): New predicates.
5861 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
5862 (vgd, vgh, vgw, vsQ, vsS): New constraints.
5863 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
5864 (*aarch64_sve_reinterpret<mode>): Allow any source register
5865 instead of requiring an exact match.
5866 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
5867 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
5868 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
5869 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
5870 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
5871 (aarch64_update_ffrt): New patterns.
5872 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5873 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5874 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5875 (@aarch64_ld<fn>f1<mode>): New patterns.
5876 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5877 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5878 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5879 (@aarch64_ldnt1<mode>): New patterns.
5880 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5881 the scalar part of the address.
5882 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
5883 scalar part of the addresse and add an alternative for handling
5885 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5886 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
5887 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5888 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5889 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5890 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5891 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
5892 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
5893 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5894 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5895 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5896 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5897 (@aarch64_sve_prefetch<mode>): New patterns.
5898 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
5899 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
5900 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
5901 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
5902 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
5903 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5904 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5905 (@aarch64_stnt1<mode>): New patterns.
5906 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5907 the scalar part of the address.
5908 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
5909 the scalar part of the addresse and add an alternative for handling
5911 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5912 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
5913 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5914 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5915 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
5916 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
5918 (vec_duplicate<mode>): Use QI as the mode of the input operand.
5919 (extract_last_<mode>): Generalize to...
5920 (@extract_<LAST:last_op>_<mode>): ...this.
5921 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
5922 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
5923 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
5924 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
5925 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
5926 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
5927 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
5928 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
5929 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
5930 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
5931 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
5932 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
5933 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
5934 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
5935 (*aarch64_adr_uxtw_unspec): Likewise.
5936 (*aarch64_adr_uxtw): Rename to...
5937 (*aarch64_adr_uxtw_and): ...this.
5938 (@aarch64_adr<mode>_shift): New expander.
5939 (*aarch64_adr_shift_sxtw): New pattern.
5940 (aarch64_<su>abd<mode>_3): Rename to...
5941 (@aarch64_pred_<su>abd<mode>): ...this.
5942 (<su>abd<mode>_3): Update accordingly.
5943 (@aarch64_cond_<su>abd<mode>): New expander.
5944 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
5945 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
5946 (*<su>mul<mode>3_highpart): Rename to...
5947 (@aarch64_pred_<optab><mode>): ...this.
5948 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
5949 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
5950 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
5951 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
5952 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
5953 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
5954 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
5955 (*v<ASHIFT:optab><mode>3): Rename to...
5956 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
5957 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
5958 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
5959 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
5960 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
5961 (@cond_asrd<mode>): New expander.
5962 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
5963 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
5964 (*sdiv_pow2<mode>3): Delete.
5965 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
5966 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
5967 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
5968 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
5969 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
5970 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
5971 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
5972 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
5973 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
5974 (*add<SVE_F:mode>3): Rename to...
5975 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
5977 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
5978 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
5979 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
5980 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
5981 (*sub<SVE_F:mode>3): Rename to...
5982 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
5984 (@aarch64_pred_abd<SVE_F:mode>): New expander.
5985 (*fabd<SVE_F:mode>3): Rename to...
5986 (*aarch64_pred_abd<SVE_F:mode>): ...this.
5987 (@aarch64_cond_abd<SVE_F:mode>): New expander.
5988 (*mul<SVE_F:mode>3): Rename to...
5989 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
5991 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
5992 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
5994 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
5995 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
5996 (*<nlogical><PRED_ALL:mode>3): Rename to...
5997 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
5998 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
5999 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6000 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6001 (aarch64_pred_<logical_nn><mode>_z): ...this.
6002 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6003 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6004 (*fma<SVE_I:mode>4): Rename to...
6005 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6006 (*fnma<SVE_I:mode>4): Rename to...
6007 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6008 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6009 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6010 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6011 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6012 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6013 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6014 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6015 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6016 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6017 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6018 (@aarch64_sve_tmad<mode>): Likewise.
6019 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6020 (*aarch64_sel_dup<mode>): Rename to...
6021 (@aarch64_sel_dup<mode>): ...this.
6022 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6023 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6024 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6025 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6026 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6027 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6028 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6029 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6030 (*fcm<cmp_op><mode>): Rename to...
6031 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6032 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6033 (*fcmuo<mode>): Rename to...
6034 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6035 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6036 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6037 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6038 (fold_extract_last_<mode>): Generalize to...
6039 (@fold_extract_<last_op>_<mode>): ...this.
6040 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6041 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6042 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6043 DImode result explicit.
6044 (reduc_plus_scal_<mode>): Update accordingly.
6045 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6046 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6047 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6048 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6049 (*aarch64_sve_tbl<mode>): Rename to...
6050 (@aarch64_sve_tbl<mode>): ...this.
6051 (@aarch64_sve_compact<mode>): New pattern.
6052 (*aarch64_sve_dup_lane<mode>): Rename to...
6053 (@aarch64_sve_dup_lane<mode>): ...this.
6054 (@aarch64_sve_dupq_lane<mode>): New pattern.
6055 (@aarch64_sve_splice<mode>): Likewise.
6056 (aarch64_sve_<perm_insn><mode>): Rename to...
6057 (@aarch64_sve_<perm_insn><mode>): ...this.
6058 (*aarch64_sve_ext<mode>): Rename to...
6059 (@aarch64_sve_ext<mode>): ...this.
6060 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6061 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6063 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6064 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6066 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6068 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6069 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6070 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6071 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6073 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6074 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6076 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6077 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6078 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6080 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6081 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6082 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6083 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6084 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6086 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6087 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6088 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6089 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6090 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6091 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6092 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6093 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6094 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6095 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6096 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6097 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6098 (aarch64_sve_cnt_pat): Likewise.
6099 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6100 (*aarch64_sve_incsi_pat): Likewise.
6101 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6102 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6103 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6104 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6105 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6106 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6107 (*aarch64_sve_decsi_pat): Likewise.
6108 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6109 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6110 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6111 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6112 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6113 (@aarch64_pred_cntp<mode>): Likewise.
6114 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6116 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6117 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6118 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6120 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6122 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6123 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6124 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6125 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6126 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6127 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6128 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6130 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6131 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6132 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6134 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6136 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6138 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6139 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6141 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6142 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6144 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6145 * config/aarch64/arm_sve.h: New file.
6146 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6147 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6148 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6149 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6150 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6151 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6152 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6153 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6154 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6156 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6158 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6160 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6163 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6165 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6166 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6168 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6169 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6170 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6171 (aarch64_hard_regno_nregs): Handle the new register classes.
6172 (aarch64_hard_regno_mode_ok): Likewise.
6173 (aarch64_regno_regclass): Likewise.
6174 (aarch64_class_max_nregs): Likewise.
6175 (aarch64_register_move_cost): Likewise.
6176 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6177 as general register_operands.
6179 2019-10-29 Martin Liska <mliska@suse.cz>
6181 * ggc-common.c: One can't subtract unsigned types
6182 in compare function.
6184 2019-10-29 Martin Liska <mliska@suse.cz>
6186 * cgraphunit.c (symbol_table::compile): Pass
6187 title as dump_memory_report argument.
6188 * toplev.c (dump_memory_report): New argument.
6189 (finalize): Pass new argument.
6190 * toplev.h (dump_memory_report): Add argument.
6192 2019-10-29 Martin Liska <mliska@suse.cz>
6194 * ggc-common.c: Move Leak to the first column.
6196 2019-10-29 Martin Liska <mliska@suse.cz>
6198 * cgraphunit.c (symbol_table::compile): Remove argument
6199 for dump_memory_report.
6200 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6201 (compare_final): Remove in order to make report
6203 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6204 * mem-stats.h (mem_alloc_description::get_list):
6206 (mem_alloc_description::dump): Likewise here.
6207 * toplev.c (dump_memory_report): Remove final
6209 (finalize): Likewise.
6210 * toplev.h (dump_memory_report): Remove argument.
6212 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6214 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6215 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6216 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6217 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6220 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6222 * coretypes.h (string_int_pair): New typedef.
6223 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6224 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6225 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6227 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6229 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6230 (simulate_builtin_function_decl): Declare.
6231 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6232 (LANG_HOOKS_INITIALIZER): Include it.
6233 * langhooks.c (add_builtin_function_common): Rename to...
6234 (build_builtin_function): ...this. Add a location parameter and use
6235 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6237 (add_builtin_function): Update accordingly, passing the returned
6238 decl to the lang hook.
6239 (add_builtin_function_ext_scope): Likewise
6240 (simulate_builtin_function_decl): New function.
6242 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6244 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6245 example, use actual names of supported offload targets.
6248 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6250 2019-10-28 Martin Sebor <msebor@redhat.com>
6252 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6253 (handle_store): Pass argument to get_addr_stridx.
6255 2019-10-28 Martin Sebor <msebor@redhat.com>
6257 PR tree-optimization/92226
6258 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6259 the offset is in the open range outlined by SI's length.
6261 2019-10-28 Martin Sebor <msebor@redhat.com>
6264 * doc/cpp.texi (__has_builtin): Document.
6265 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6267 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6270 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6271 doubleword and low doubleword result of multiplication on
6274 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6275 pure qualifier to the built-in.
6276 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6278 (struct mips_builtin_description): Add is_pure flag.
6279 (mips_init_builtins): Mark built-in as pure if the flag in the
6280 corresponding mips_builtin_description struct is set.
6282 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6283 alternative which covers the floating-point input value. Also
6284 forbid the split of insert.d pattern for floating-point values.
6286 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6288 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6289 * config/riscv/riscv-sr.c: New file.
6290 * config/riscv/riscv.c (riscv_reorg): New function.
6291 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6292 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6293 (riscv_remove_unneeded_save_restore_calls): Declare.
6294 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6296 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6298 PR tree-optimization/92163
6299 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6300 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6301 before calling bitmap_set_bit.
6302 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6303 delete_dead_or_redundant_assignment.
6304 (dse_dom_walker::dse_optimize_stmt): Likewise.
6305 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6307 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6310 * tree-vect-stmts.c (vectorizable_condition): Support
6311 EXTRACT_LAST_REDUCTION with fully-masked loops.
6313 2019-10-28 Richard Biener <rguenther@suse.de>
6315 PR tree-optimization/92252
6316 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6317 STMT_VINFO_REDUC_IDX when swapping operands.
6319 2019-10-28 Richard Biener <rguenther@suse.de>
6321 PR tree-optimization/92241
6322 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6323 we failed to update the reduction index do not use the pattern
6324 stmts for the reduction chain.
6325 (vectorizable_reduction): When the reduction chain is corrupt,
6327 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6328 fail to update the reduction chain.
6330 2019-10-28 Richard Biener <rguenther@suse.de>
6332 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6333 STMT_VINFO_REDUC_IDX from the actual stmt.
6334 (vect_transform_reduction): Likewise.
6335 (vectorizable_reduction): Compute the reduction chain length,
6336 do not recompute the reduction operand index. Remove no longer
6337 necessary restriction for condition reduction chains.
6339 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6342 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6343 condition for V2DImode.
6345 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6347 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6348 Remove %k operand modifier.
6349 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6351 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6353 PR rtl-optimization/92007
6354 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6355 call it after reload if hot/cold partitioning has been done.
6356 (class pass_postreload_jump): Rename to
6357 pass_jump_after_combine.
6358 (make_pass_postreload_jump): Rename to
6359 make_pass_jump_after_combine.
6360 * passes.def(pass_postreload_jump): Move before reload, rename
6361 to pass_jump_after_combine.
6362 * tree-pass.h (make_pass_postreload_jump): Rename to
6363 make_pass_jump_after_combine.
6365 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6368 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6369 for missing EDGE_REF
6370 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6372 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6374 PR tree-optimization/88760
6375 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6376 Enable -funroll-loops for -O2 and above.
6377 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6378 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6379 do not turn on web and rngreg implicitly, if the unroller is not
6382 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6384 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6387 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6389 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6390 * cgraph.h (cgraph_node::rtl_info): Likewise.
6392 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6394 * ipa-cp.c (propagate_constants_across_call): If args are not available
6395 just drop everything to varying.
6396 (find_aggregate_values_for_callers_subset): Watch for missing
6398 (find_more_scalar_values_for_callers_subs): Likewise.
6399 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6400 update_jump_functions_after_inlining, propagate_controlled_uses):
6401 Watch for missing summaries.
6402 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6404 (ipa_write_node_info): Watch for missing summaries.
6405 (ipa_read_edge_info): Create new ref.
6406 (ipa_edge_args_sum_t): Add remove.
6407 (IPA_EDGE_REF_GET_CREATE): New macro.
6408 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6410 (remap_edge_change_prob): Likewise.
6412 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6414 * ipa-inline-transform.c (inline_call): update function summaries
6415 after expanidng thunk.
6417 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6419 * ipa-icf.c (sem_function::merge): Update function summaries.
6420 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6422 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6424 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6425 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6426 operand already has scalar mode.
6427 (iptr): Remove SF/DF.
6429 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6432 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6433 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6436 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6438 * config/i386/sse.md
6439 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6440 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6441 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6442 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6443 <sse>_vmmaskcmp<mode>3):
6444 Change predicates from vector_operand to nonimmediate_operand,
6445 constraints xBm to xm, since scalar operations don't need
6446 memory address alignment.
6447 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6448 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6449 round_saeonly_nimm_predicate with
6450 round_saeonly_nimm_scalar_predicate.
6451 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6452 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6453 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6454 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6455 avx512f_vmfmadd_<mode>_mask3<round_name>,
6456 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6457 *avx512f_vmfmsub_<mode>_mask<round_name>,
6458 avx512f_vmfmsub_<mode>_mask3<round_name>,
6459 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6460 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6461 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6462 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6463 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6464 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6465 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6466 cvtusi2<ssescalarmodesuffix>32<round_name>,
6467 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6468 round_nimm_predicate with round_nimm_scalr_predicate.
6469 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6470 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6471 avx512er_vmrcp28<mode><round_saeonly_name>,
6472 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6473 ): Replace round_saeonly_nimm_predicate with
6474 round_saeonly_nimm_scalar_predicate.
6475 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6476 vector_operand with nonimmediate_operand.
6477 * config/i386/subst.md (round_scalar_nimm_predicate,
6478 round_saeonly_scalar_nimm_predicate): Replace
6479 vector_operand with nonimmediate_operand.
6481 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6484 * config/i386/i386.md (*rcpsf2_sse): Add
6485 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6486 (*rsqrtsf2_sse): Ditto.
6487 (*sqrt<mode>2_sse): Ditto.
6488 (sse4_1_round<mode>2): separate constraint vm, add
6489 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6490 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6492 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6494 (*sse_vmrsqrtv4sf2): Ditto.
6495 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6496 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6497 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6498 <iptr> pointer size modifier since vround support memory operand.
6500 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6503 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6506 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6507 Tobias Burnus <tobias@codesourcery.com>
6509 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6510 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6513 2019-10-25 Richard Biener <rguenther@suse.de>
6515 PR tree-optimization/92222
6516 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6517 (_slp_oprnd_info::second_pattern): Likewise.
6518 (_slp_oprnd_info::any_pattern): New.
6519 (vect_create_oprnd_info): Adjust.
6520 (vect_get_and_check_slp_defs): Compute whether any stmt is
6522 (vect_build_slp_tree_2): Avoid building up a node from scalars
6523 if any of the operand defs, not just the first, is in a pattern.
6525 2019-10-25 Richard Biener <rguenther@suse.de>
6527 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6528 swapping if we actually have to modify the IL on a shared stmt.
6529 (vect_build_slp_tree_2): Never fail swapping on shared stmts
6530 because we no longer modify the IL.
6532 2019-10-25 Martin Liska <mliska@suse.cz>
6534 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
6536 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
6538 * tree-vect-loop.c (vectorizable_reduction): Restrict the
6539 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
6540 handled by vect_transform_reduction. Allow fully-masked loops
6541 to be used with reduction chains.
6542 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
6543 operations in fully-masked loops.
6544 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
6545 operations in fully-masked loops.
6547 2019-10-25 Richard Biener <rguenther@suse.de>
6549 * tree-vect-loop.c (vectorizable_reduction): Verify
6550 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
6552 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
6553 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
6556 2019-10-24 Jakub Jelinek <jakub@redhat.com>
6558 * gimplify.h (omp_construct_selector_matches): Declare.
6559 * gimplify.c (struct gimplify_omp_ctx): Add code member.
6560 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
6561 called function if needed for flag_openmp.
6562 (gimplify_scan_omp_clauses): Set ctx->code.
6563 (omp_construct_selector_matches): New function.
6564 * omp-general.h (omp_constructor_traits_to_codes,
6565 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
6566 * omp-general.c (omp_constructor_traits_to_codes,
6567 omp_context_selector_matches, omp_resolve_declare_variant): New
6570 * config/arc/arc.c (hwloop_optimize): Add missing space in string
6572 * config/rx/rx.c (rx_print_operand): Likewise.
6573 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6574 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6575 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
6577 * genemit.c (emit_c_code): Likewise.
6578 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
6580 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6582 * symbols-summary.h (fast_function_summary<T *, V>::release,
6583 fast_call_summary<T *, V>::release): Free m_vector.
6585 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6587 * cgraphunit.c (symbol_table::process_new_functions): Call
6588 ipa_free_size_summary.
6589 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
6590 (devirtualization_time_bonus): Update.
6591 (ipcp_propagate_stage): Update.
6592 * ipa-fnsummary.c (ipa_size_summaries): New.
6593 (ipa_fn_summary_alloc): Alloc size summary.
6594 (dump_ipa_call_summary): Update.
6595 (ipa_dump_fn_summary): Update.
6596 (analyze_function_body): Update.
6597 (compute_fn_summary): Likewise.
6598 (ipa_get_stack_frame_offset): New function.
6599 (inline_update_callee_summaries): Do not update frame offsets.
6600 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
6601 remove call and function summary.
6602 (ipa_update_overall_fn_summary): Update.
6603 (inline_read_section): Update.
6604 (ipa_fn_summary_write): Update.
6605 (ipa_free_fn_summary): Do not remove summaries.
6606 (ipa_free_size_summary): New.
6607 (release summary pass): Also run at WPA.
6608 * ipa-fnsummary.h (ipa_size_summary): Declare.
6609 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
6610 estimated_self_stack_size.
6611 (ipa_size_summary_t): New type.
6612 (ipa_size_summaries): Declare.
6613 (ipa_free_size_summary): Declare.
6614 (ipa_get_stack_frame_offset): Declare.
6615 * ipa-icf.c (sem_function::merge): Update.
6616 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
6617 (estimate_growth): Update.
6618 (growth_likely_positive): Update.
6619 (clone_inlined_nodes): Update.
6620 (inline_call): Update.
6621 * ipa-inline.c (caller_growth_limits): Update.
6622 (edge_badness): Update.
6623 (recursive_inlining): Update.
6624 (inline_small_functions): Update.
6625 (inline_to_all_callers_1): Update.
6626 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
6628 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
6630 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
6631 (uavg<mode>3_ceil): ... This.
6632 (altivec_vavgs<VI_char>): Rename to...
6633 (avg<mode>3_ceil): ... This.
6634 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
6635 VAVGUW, VAVGSW): Adjust.
6637 2019-10-24 Nathan Sidwell <nathan@acm.org>
6639 * dumpfile.c (dump_begin): Reorder decls to use RAII.
6641 2019-10-24 Martin Liska <mliska@suse.cz>
6643 * symbol-summary.h (gt_pch_nx): Mark all functions
6644 with gcc_unreachable as we do not expect to be called.
6646 2019-10-24 Richard Biener <rguenther@suse.de>
6648 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
6649 chains try harder with operand swapping and instead of
6650 putting a shifted chain into the reduction operands put
6651 a repetition of the final reduction op there as if we'd
6652 reassociate the expression.
6654 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6656 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
6657 statics_not_read and statics_not_written to statics_read and
6658 statics_written respectively.
6659 (no_module_statics): New static var.
6660 (ipa_reference_get_not_read_global): Rename to ...
6661 (ipa_reference_get_read_global): ... this.
6662 (ipa_reference_get_not_written_global): Rename to ...
6663 (ipa_reference_get_written_global): ... this.
6664 (dump_static_vars_set_to_file): Dump no_module_statics.
6665 (copy_static_var_set): Add for propagation parameter.
6666 (ipa_init): Initialize no_module_statics.
6667 (ipa_ref_opt_summary_t::duplicate): Update.
6668 (ipa_ref_opt_summary_t::remove): Update.
6669 (propagate): Update.
6670 (write_node_summary_p): Look correctly for bitmap differences.
6671 (ipa_reference_write_optimization_summary): Update.
6672 (ipa_reference_read_optimization_summary): Update.
6674 (ipa_reference_get_not_read_global): Rename to ...
6675 (ipa_reference_get_read_global): ... this.
6676 (ipa_reference_get_not_written_global): Rename to ...
6677 (ipa_reference_get_written_global): ... this.
6678 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
6679 (call_may_clobber_ref_p_1): Update.
6681 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6683 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
6685 (msp430_hard_regno_nregs_with_padding): Remove.
6687 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6689 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
6690 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
6691 shift amount is between 1 and 4.
6692 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
6695 2019-10-24 Richard Biener <rguenther@suse.de>
6697 PR tree-optimization/92205
6698 * tree-vect-loop.c (vectorizable_reduction): Restrict
6699 search for alternate vectype_in to lane-reducing patterns
6702 2019-10-24 Richard Biener <rguenther@suse.de>
6704 PR tree-optimization/92203
6705 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
6706 Skip eliminating conversion stmts inserted by insertion.
6708 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
6710 * config/s390/s390.c (s390_get_thread_pointer): Use
6711 gen_get_thread_pointer.
6712 (s390_expand_split_stack_prologue): Likewise.
6713 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
6714 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
6715 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
6716 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
6719 2019-10-24 Richard Biener <rguenther@suse.de>
6721 * tree-vect-slp.c (vect_analyze_slp): When reduction group
6722 SLP discovery fails try to handle the reduction as part
6723 of SLP reduction discovery.
6725 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
6727 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
6729 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
6730 attribute if it exists, rather than the insn size. If we use the
6731 insn size, adjust the size to remove the extra size that prefixed
6733 (rs6000_adjust_insn_length): New function.
6734 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
6735 update the instruction sized if prefixed instructions are used.
6736 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
6737 (non_prefixed_length attribute): Delete.
6738 (num_insns attribute): New insn attribute to return the number of
6740 (max_prefixed_insns attribute): New insn attribute to return the
6741 maximum number of prefixed instructions in an insn.
6742 (length attribute): Do not adjust for prefix instructions here,
6743 punt to ADJUST_INSN_LENGTH.
6744 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
6745 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
6746 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
6747 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
6748 max_prefixed_insns and num_insns.
6750 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
6751 (movtd_64bit_nodm): Reformat.
6752 (mov<mode>_32bit): Reformat.
6753 (mov<mode>_softfloat): Reformat.
6754 (FMOVE128_GPR splitter): Reformat.
6755 (DIFD splitter): Reformat.
6756 (TI2 splitter): Reformat.
6757 * config/rs6000/predicates.md (lwa_operand): If the bottom two
6758 bits of the offset for the memory address are non-zero, use PLWA
6759 if prefixed instructions are available.
6761 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6763 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
6765 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6767 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
6770 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6772 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
6773 (cmp_symbol_files): New.
6774 (lto_output): Copy sections in file order.
6775 * lto-streamer.h (lto_file_decl_data): Add field order.
6777 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6779 * ipa-reference.h (ipa_reference_var_uid): Move offline.
6780 * ipa-reference.c (reference_vars_map_t): new type.
6781 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
6782 (ipa_reference_var_uid): Implement.
6783 (varpool_node_hooks): New static var.
6784 (varpool_removal_hook): New function.
6785 (is_improper): Do not check bitmap for id==-1
6786 (get_static_name): Update.
6787 (ipa_init): Initialize new datastructures.
6788 (analyze_function): Do not recompute ids.
6789 (propagate): Free reference_vars_to_consider.
6790 (stream_out_bitmap): Update.
6791 (ipa_reference_read_optimization_summary): Update.
6793 2019-10-23 qing zhao <qing.zhao@oracle.com>
6795 PR gcov-profile/91971
6796 * coverage.c (coverage_init): Mangle the full path of filename when
6797 filename is a absolute path.
6799 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6801 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
6802 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
6803 (msp430_has_hwmult): New.
6804 (msp430_output_labelref):
6805 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
6806 * config/msp430/msp430.md (mulhisi3): Likewise.
6807 (umulhisi3): Likewise.
6808 (mulsidi3): Likewise.
6809 (umulsidi3): Likewise.
6811 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6814 * params.def (inline-heuristics-hint-percent): Set to 600.
6816 2019-10-23 Richard Biener <rguenther@suse.de>
6818 PR tree-optimization/65930
6819 * tree-vect-loop.c (check_reduction_path): Allow conversions
6820 that only change the sign.
6821 (vectorizable_reduction): Relax latch def stmts we handle further.
6823 2019-10-23 Jakub Jelinek <jakub@redhat.com>
6826 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
6827 (remove_unused_ivs): Use it instead of get_computation_at. When
6828 choosing best candidate, only consider candidates where
6829 get_debug_computation_at actually returns non-NULL.
6831 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
6833 PR tree-optimization/92131
6834 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
6835 range would be symbolic, drop to varying for any explicit overflow
6836 in the constant part or if neither range is a singleton.
6838 2019-10-23 Martin Liska <mliska@suse.cz>
6841 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
6844 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
6846 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
6847 int_mode_for_mode rather than mode_for_int_vector for scalars.
6849 2019-10-23 Richard Biener <rguenther@suse.de>
6851 PR tree-optimization/92179
6852 * tree-vect-stmts.c (vectorizable_shift): For shift args
6853 that are all the same remove type restriction in the SLP case.
6854 Adjust SLP code to handle converting of the shift arg to
6855 only apply in case the modes are different.
6857 2019-10-23 Martin Liska <mliska@suse.cz>
6860 * ipa-inline.c (recursive_inlining): Do not print
6861 when curr->count is not initialized.
6863 2019-10-23 Richard Biener <rguenther@suse.de>
6865 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
6866 op from scalars in case there's a constant operand in its
6869 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
6871 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
6872 against out of range max skip or log values.
6874 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
6876 * cgraph.c (dump_graphviz): Change name to dump_name
6878 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6880 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
6881 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6882 subtraction from a carry operation.
6884 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6886 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
6888 2019-10-22 Richard Biener <rguenther@suse.de>
6890 PR tree-optimization/92173
6891 * tree-vect-loop.c (vectorizable_reduction): If
6892 vect_transform_reduction cannot handle code-generation try without
6893 the single-def-use-cycle optimization. Pass optab_vector to
6894 optab_for_tree_code to get vector shifts as that's what we'd
6897 2019-10-22 Michael Matz <matz@suse.de>
6900 * gimple-loop-jam.c (any_access_function_variant_p): New function.
6901 (adjust_unroll_factor): Use it to constrain safety, new parameter.
6902 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
6904 2019-10-22 Richard Biener <rguenther@suse.de>
6906 PR tree-optimization/92173
6907 * tree-vect-loop.c (vectorizable_reduction): If
6908 vect_transform_reduction cannot handle code-generation try without
6909 the single-def-use-cycle optimization. Pass optab_vector to
6910 optab_for_tree_code to get vector shifts as that's what we'd
6913 2019-10-22 Martin Liska <mliska@suse.cz>
6915 * diagnostic-format-json.cc (json_from_expanded_location):
6916 Use json::integer_number.
6917 * gcov.c (output_intermediate_json_line): Use new
6918 json::integer_number.
6919 (output_json_intermediate_file): Likewise.
6920 * json.cc (number::print): Move to ...
6921 (float_number::print): ... this.
6922 (integer_number::print): New.
6923 (test_writing_numbers): Move to ...
6924 (test_writing_float_numbers): ... this.
6925 (test_writing_integer_numbers): New.
6926 (json_cc_tests): Register test_writing_integer_numbers.
6927 * json.h (class value): Add forward declaration
6928 for float_number and integer_number.
6929 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
6930 (class number): Move to ...
6931 (class float_number): ... this.
6932 (class integer_number): New.
6933 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
6934 Use json::integer_number.
6935 (optrecord_json_writer::location_to_json): Likewise.
6936 (optrecord_json_writer::profile_count_to_json): Likewise.
6937 (optrecord_json_writer::pass_to_json): Likewise.
6939 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
6941 * tree-vect-slp.c (vect_slp_bb_region): Check whether
6942 autodetected_vector_size rather than vector_size is zero.
6943 * tree-vect-loop.c (vect_analyze_loop): Likewise.
6944 Set autodetected_vector_size immediately after calling
6945 vect_analyze_loop_2. Check for a fatal error before advancing
6948 2019-10-21 Jason Merrill <jason@redhat.com>
6950 * lock-and-run.sh: Check for process existence rather than timeout.
6952 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6954 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
6955 widening multiplication.
6957 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
6959 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
6960 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
6962 (subsi3_carryin_shift): Separate into register and constant controlled
6963 alternatives. Use shift_amount_operand for operand 4. Set shift
6964 attribute and simplify type attribute.
6965 (subsi3_carryin_shift_alt): Likewise.
6966 (rsbsi3_carryin_shift): Likewise.
6967 (rsbsi3_carryin_shift_alt): Likewise.
6968 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
6969 and register controlled shifts into distinct alternatives.
6970 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
6971 (andsi_not_shiftsi_si_scc): Likewise.
6972 (arm_cmpsi_negshiftsi_si): Likewise.
6973 (not_shiftsi): Remove redundant M constraint from alternative 1.
6974 (not_shiftsi_compare0): Likewise.
6975 (arm_cmpsi_insn): Remove redundant alternative 2.
6976 (cmpsi_shift_swp): Likewise.
6977 (sub_shiftsi): Likewise.
6978 (sub_shiftsi_compare0_scratch): Likewise.
6979 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
6980 (thumb2_cmpsi_neg_shiftsi): Likewise.
6982 2019-10-21 Richard Biener <rguenther@suse.de>
6984 PR tree-optimization/92162
6985 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
6986 STMT_VINFO_REDUC_IDX in reduc_info.
6987 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6989 2019-10-21 Richard Biener <rguenther@suse.de>
6991 * tree-vectorizer.h (_slp_tree::ops): New member.
6992 (SLP_TREE_SCALAR_OPS): New.
6993 (vect_get_slp_defs): Adjust prototype.
6994 * tree-vect-slp.c (vect_free_slp_tree): Release
6995 SLP_TREE_SCALAR_OPS.
6996 (vect_create_new_slp_node): Initialize it. New overload for
6997 initializing by an operands array.
6998 (_slp_oprnd_info::ops): New member.
6999 (vect_create_oprnd_info): Initialize it.
7000 (vect_free_oprnd_info): Release it.
7001 (vect_get_and_check_slp_defs): Populate the operands array.
7002 Do not swap operands in the IL when not necessary.
7003 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7004 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7005 swap operands in the operands array. Do not swap operands in
7007 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7008 (vect_gather_slp_loads): Fix.
7009 (vect_detect_hybrid_slp_stmts): Likewise.
7010 (vect_slp_analyze_node_operations_1): Search for a internal
7011 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7012 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7013 the def-type push/pop dance.
7014 (vect_get_constant_vectors): Compute number_of_vectors here.
7015 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7016 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7017 (vect_get_slp_defs): Simplify greatly.
7018 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7019 (vect_transform_reduction): Likewise.
7020 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7021 (vectorizable_call): Likewise.
7022 (vectorizable_operation): Likewise.
7023 (vectorizable_load): Likewise.
7024 (vectorizable_condition): Likewise.
7025 (vectorizable_comparison): Likewise.
7027 2019-10-21 Richard Biener <rguenther@suse.de>
7029 PR tree-optimization/92161
7030 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7033 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7035 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7036 (aarch64_rndr): New define_insn.
7037 (aarch64_rndrrs): Likewise.
7038 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7039 (TARGET_RNG): Likewise.
7040 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7042 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7043 Add fourth argument in prototype.
7044 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7045 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7046 (aarch64_init_rng_builtins): Define.
7047 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7048 (aarch64_expand_rng_builtin): Define.
7049 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7051 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7052 __ARM_FEATURE_RNG when TARGET_RNG.
7053 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7055 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7057 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7058 alignment is more restrictive.
7060 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7062 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7063 (vect_update_max_nunits): Update comment.
7064 (current_vector_size): Delete.
7065 * tree-vect-stmts.c (current_vector_size): Likewise.
7066 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7067 of current_vector_size.
7068 (get_mask_type_for_scalar_type): Likewise.
7069 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7070 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7071 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7072 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7073 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7074 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7076 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7078 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7079 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7080 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7083 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7085 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7086 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7087 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7089 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7091 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7093 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7095 (vect_set_loop_condition_masked): Update call accordingly.
7097 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7099 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7100 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7101 (simple_integer_narrowing): Update call accordingly.
7102 (vectorizable_conversion): Likewise.
7104 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7106 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7107 (vectorizable_call): Update call accordingly.
7109 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7111 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7112 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7113 (duplicate_and_interleave): Update call accordingly.
7114 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7116 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7118 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7119 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7120 (vect_get_constant_vectors): Update call accordingly.
7121 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7123 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7125 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7126 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7127 (vect_prologue_cost_for_slp_op): Update call accordingly.
7128 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7129 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7130 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7131 (get_mask_type_for_scalar_type): Likewise.
7132 (vect_get_vector_types_for_stmt): Likewise.
7133 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7134 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7135 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7136 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7137 (vect_split_statement, vect_convert_input): Likewise.
7138 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7139 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7140 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7141 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7142 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7143 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7144 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7145 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7146 (vect_recog_mask_conversion_pattern): Likewise.
7147 (vect_add_conversion_to_pattern): Likewise.
7148 (vect_recog_gather_scatter_pattern): Likewise.
7149 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7150 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7152 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7154 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7155 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7156 (vect_check_load_store_mask): Update call accordingly.
7157 (vect_get_mask_type_for_stmt): Likewise.
7158 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7159 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7160 (vect_convert_mask_for_vectype): Likewise.
7162 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7164 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7166 (vect_recog_dot_prod_pattern): Update call accordingly.
7167 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7168 (vect_recog_widen_sum_pattern): Likewise.
7170 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7172 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7173 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7174 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7177 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7179 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7180 get_vectype_for_scalar_type_and_size instead of
7181 get_vectype_for_scalar_type.
7183 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7185 * common.opt (-fcommon): Fix description.
7187 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7189 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7190 * config/i386/i386.c (ix86_pre_reload_split): New function.
7191 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7192 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7193 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7194 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7195 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7196 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7197 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7198 *<shift_insn><dwi>3_doubleword_mask,
7199 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7200 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7201 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7202 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7203 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7204 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7205 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7206 *avx2_<code>v8qiv8si2<mask_name>_2,
7207 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7208 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7209 *avx512f_<code>v8qiv8di2<mask_name>_2,
7210 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7211 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7212 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7213 sse4_2_pcmpistr): Likewise.
7215 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7217 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7218 now defaults to https.
7220 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7222 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7223 skip non-zero array accesses.
7225 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7227 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7228 and return a boolean success value. Move the allocation and
7229 initialization of the bb_vec_info to...
7230 (vect_slp_bb_region): ...here. Update call accordingly.
7231 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7232 than in vect_slp_analyze_bb_1.
7234 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7236 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7237 when processing the given datarefs for the first time and
7238 check_datarefs subsequently.
7239 (vect_slp_bb_region): New function, split out of...
7240 (vect_slp_bb): ...here. Don't recompute the region bounds and
7241 dataref sets when retrying with a different vector size.
7243 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7244 Uroš Bizjak <ubizjak@gmail.com>
7247 * config/i386/predicates.md (int_nonimmediate_operand): New special
7249 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7250 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7251 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7252 define_insn_and_split patterns.
7254 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7256 * config/rs6000/rs6000.md: Delete out--of-date comment about
7257 special-casing integer loads.
7259 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7261 * escaped_string.h (escaped_string): New header.
7262 * tree.c (escaped_string): Remove escaped_string class.
7264 2019-10-18 Martin Sebor <msebor@redhat.com>
7266 PR tree-optimization/92157
7267 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7268 compute_string_length to return a negative result.
7270 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7272 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7273 (negvsi3, negvdi3): Delete.
7274 (negdi2_compare): Delete.
7276 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7278 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7280 (subdi3_compare1): Delete pattern.
7281 (subvsi3_borrow): New insn pattern.
7282 (subvsi3_borrow_imm): Likewise.
7284 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7286 * config/arm/arm.md (subv<mode>4): Delete.
7287 (subvdi4): New expander pattern.
7288 (subvsi4): Likewise. Handle some immediate values.
7289 (subvsi3_intmin): New insn pattern.
7290 (subvsi3): Likewise.
7291 (subvsi3_imm1): Likewise.
7292 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7295 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7297 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7298 incoming operands. Early split the calculation into SImode
7300 (usubvsi3_borrow): New insn pattern.
7301 (usubvsi3_borrow_imm): Likewise.
7303 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7305 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7306 (usubvsi4): New pattern. Allow some immediate values for inputs.
7307 (usubvdi4): New pattern.
7309 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7311 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7312 or second operand of the PLUS inside a DImode equality test to be
7313 sign-extend when selecting CC_Vmode.
7314 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7316 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7318 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7319 (addsi3_cin_vout_0): Likewise.
7320 (adddi3_compareV): Delete.
7322 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7324 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7325 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7326 to transform this back into the summation version when that leads
7329 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7331 * config/arm/arm.md (addv<mode>4): Delete.
7332 (addvsi4): New pattern. Handle immediate values that the architecture
7334 (addvdi4): New pattern.
7335 (addsi3_compareV): Rename to ...
7336 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7337 and use COMPARE rather than NE.
7338 (addsi3_compareV_imm): New pattern.
7339 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7340 a signed-overflow check.
7342 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7344 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7345 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7347 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7348 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7350 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7352 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7353 (addsi3_cin_cout_imm_insn): Likewise.
7354 (adddi3_compareC): Delete insn.
7355 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7357 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7359 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7360 * (uaddv<mode>4): Delete expansion pattern.
7361 (uaddvsi4): New pattern.
7362 (uaddvdi4): Likewise.
7363 (addsi3_compareC): Delete pattern, change callers to use
7365 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7366 reduce the number of alternatives and re-work type attribute handling.
7367 (addsi3_compare_op2): Clean up constraints to reduce the number of
7368 alternatives and re-work type attribute handling.
7369 (compare_addsi2_op0): Likewise.
7370 (compare_addsi2_op1): Likewise.
7372 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7374 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7375 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7376 for DImode operands.
7377 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7378 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7380 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7381 (arm_cmpdi_unsigned): Delete.
7383 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7385 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7386 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7387 unchanged only if that will be cheaper.
7388 (arm_select_cc_mode): Recognize a swapped comparison that will
7389 be regenerated using RSBS or RSCS. Relax restriction on selecting
7391 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7393 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7395 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7397 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7398 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7400 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7402 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7403 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7405 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7406 of EQ, NE, LT, GE, LTU and GEU.
7407 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7408 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7409 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7410 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7411 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7413 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7415 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7417 (cstoredi4): Similarly, but for operand 3.
7418 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7419 canonicalization of unsigned compares with a constant on Arm.
7420 Prefer using const+1 and adjusting the comparison over swapping the
7421 operands whenever the original constant was not valid.
7422 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7424 (arm_validize_comparison): Do not force invalid DImode operands to
7427 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7429 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7430 return CC_Zmode if comparing against a constant where one word is
7432 (arm_gen_compare_reg): Split DImode handling to ...
7433 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7434 against simple constants.
7435 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7437 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7439 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7440 (rsbsi3_carryin_shift_alt): Likewise.
7442 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7444 * config/arm/arm.md (negscc_borrow): New pattern.
7445 (mov_negscc): Don't split if the insn would match negscc_borrow.
7446 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7447 (thumb2_mov_negscc_strict_it): Likewise.
7449 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7451 * config/arm/arm.c (arm_insn_cost): New function.
7452 (TARGET_INSN_COST): Override default definition.
7454 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7456 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7459 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7461 * config/arm/arm.c (strip_carry_operation): New function.
7462 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7465 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7467 * config/arm/predicates.md (arm_carry_operation): New special
7469 * config/arm/iterators.md (LTUGEU): Delete iterator.
7470 (cnb): Delete code attribute.
7471 (optab): Delete ltu and geu elements.
7472 * config/arm/arm.md (addsi3_carryin): Renamed from
7473 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7474 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7475 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7476 (addsi3_carryin_clobercc): Similarly.
7477 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7480 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7482 * config/arm/arm.md (arm_subdi3): Delete insn.
7483 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7485 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7487 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7488 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7489 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7491 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7492 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7494 (subdi3): Rewrite to early-expand the sub-operations.
7495 (rsb_im_compare): New pattern.
7497 (negdi2_insn): Delete.
7498 (arm_negsi2): Correct type attribute to alu_imm.
7499 (negsi2_0compare): New insn pattern.
7500 (negsi2_carryin): New insn pattern.
7502 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7504 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7507 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7509 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7510 to match canonical form.
7512 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7514 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7515 (extend<mode>di2): Likewise.
7517 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7519 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7520 * config/arm/arm.c (arm_decompose_di_binop): New function.
7521 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7522 If not generating Thumb-1 code, decompose the operation into 32-bit
7524 * add0si_carryin_<optab>: New pattern.
7526 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7528 * arm.md (adddi3): Only accept register operands.
7529 (arm_adddi3): Convert to simple insn with no split. Do not accept
7531 (adddi_sesidi_di): Delete patern.
7532 (adddi_zesidi_di): Likewise.
7533 (uaddv<mode>4): Use LTU as condition for branch.
7534 (adddi3_compareV): Convert to simple insn with no split.
7535 (addsi3_compareV_upper): Delete pattern.
7536 (adddi3_compareC): Convert to simple insn with no split. Correct
7537 flags setting expression.
7538 (addsi3_compareC_upper): Delete pattern.
7539 (addsi3_compareC): Correct flags setting expression.
7540 (subdi3_compare1): Convert to simple insn with no split.
7541 (subsi3_carryin_compare): Delete pattern.
7542 (arm_subdi3): Convert to simple insn with no split.
7543 (subdi_zesidi): Delete pattern.
7544 (subdi_di_sesidi): Delete pattern.
7545 (subdi_zesidi_di): Delete pattern.
7546 (subdi_sesidi_di): Delete pattern.
7547 (subdi_zesidi_zesidi): Delete pattern.
7548 (negvdi3): Use s_register_operand.
7549 (negdi2_compare): Convert to simple insn with no split.
7550 (negdi2_insn): Likewise.
7551 (negsi2_carryin_compare): Delete pattern.
7552 (negdi_zero_extendsidi): Delete pattern.
7553 (arm_cmpdi_insn): Convert to simple insn with no split.
7554 (negdi2): Don't call gen_negdi2_neon.
7555 * config/arm/neon.md (adddi3_neon): Delete pattern.
7556 (subdi3_neon): Delete pattern.
7557 (negdi2_neon): Delete pattern.
7558 (splits for negdi2_neon): Delete splits.
7560 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7563 * ggc-page.c (release_pages): Read g->alloc_size before free rather
7566 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
7568 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
7569 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
7570 new multilib variants and new mappings.
7572 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7575 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
7577 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7578 Richard Sandiford <richard.sandiford@arm.com>
7581 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
7582 and define hashmap traits for it.
7583 (loop_vec_info::scalar_cond_masked_set): New member.
7584 (vect_record_loop_mask): Adjust prototype.
7585 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
7587 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
7588 vect_record_loop_mask.
7589 (vectorizable_live_operation): Likewise.
7590 (vect_record_loop_mask): New param scalar_mask. Add entry
7591 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
7592 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
7593 Pass it as last arg to vect_record_loop_mask.
7594 (vectorizable_call): Pass scalar_mask as last arg to
7595 vect_record_loop_mask.
7596 (vectorizable_store): Likewise.
7597 (vectorizable_load): Likewise.
7598 (vectorizable_condition): Check if another part of vectorized code
7599 applies loop_mask to condition or to it's inverse, and if yes,
7600 apply loop_mask to result of vector comparison.
7602 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
7604 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
7606 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7608 PR tree-optimization/92056
7609 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
7610 before calling compute_builtin_object_size.
7612 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
7615 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
7616 (movdi_low_st): Delete.
7617 * config/rs6000/rs6000.c
7618 (darwin_rs6000_legitimate_lo_sum_const_p): New.
7619 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
7620 * config/rs6000/rs6000.md (movsi_low): Delete.
7622 2019-10-17 Jason Merrill <jason@redhat.com>
7624 * gimplify.h (get_initialized_tmp_var): Add default argument to
7626 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
7627 NULL post_p argument.
7628 * targhooks (std_gimplify_va_arg_expr): Likewise.
7630 2019-10-17 Richard Biener <rguenther@suse.de>
7632 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
7633 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
7634 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
7635 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
7636 * tree-vect-loop.c (vect_is_simple_reduction): Set
7637 STMT_VINFO_REDUC_CODE.
7638 (vectorizable_reduction): Remove dead and redundant code, use
7639 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
7641 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
7643 Fix breakage introduced by r276985.
7645 * config/avr/avr.c (avr_option_override): Remove set of
7646 PARAM_ALLOW_STORE_DATA_RACES.
7647 * common/config/avr/avr-common.c (avr_option_optimization_table)
7648 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
7650 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
7652 * config/i386/i386.h (processor_costs): Add clear_ratio.
7653 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
7654 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
7655 of 6 and move_ratio in all cost models.
7657 2019-10-17 Richard Biener <rguenther@suse.de>
7659 * tree-vect-loop.c (check_reduction_path): Compute reduction
7661 (vect_is_simple_reduction): Remove special-case of single-stmt
7662 reduction path detection.
7664 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
7666 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
7668 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
7670 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
7671 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
7672 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
7673 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
7674 New combine patterns.
7675 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
7677 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
7679 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
7681 * tree-vrp.c (value_range_base::dump): Display +INF for both
7682 pointers and integers when appropriate.
7684 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7686 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
7687 when to use versioning threshold.
7689 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7691 * tree-vect-loop.c (determine_peel_for_niter): New function contained
7692 outlined code from ...
7693 (vect_analyze_loop_2): ... here.
7695 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7697 * tree-vect-loop.c (vect_transform_loop): Move code from here...
7698 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
7699 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
7701 2019-10-17 Richard Biener <rguenther@suse.de>
7703 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
7704 (vect_is_simple_reduction): Move all validity checks ...
7705 (vectorizable_reduction): ... here. Compute whether we
7706 need a fold-left reduction here.
7707 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
7708 both overloads, check needs_fold_left_reduction_p directly.
7709 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
7711 2019-10-17 Richard Biener <rguenther@suse.de>
7713 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
7714 TARGET_MEM_REF creation.
7716 2019-10-17 Richard Biener <rguenther@suse.de>
7718 PR tree-optimization/92129
7719 * tree-vect-loop.c (vectorizable_reduction): Also fail
7720 on GIMPLE_SINGLE_RHS.
7722 2019-10-17 Jakub Jelinek <jakub@redhat.com>
7724 PR tree-optimization/92056
7725 * tree-object-size.c (cond_expr_object_size): Return early if then_
7726 processing resulted in unknown size.
7728 PR tree-optimization/92115
7729 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
7730 temporary if it could trap.
7732 2019-10-17 Richard Biener <rguenther@suse.de>
7735 * dwarf2out.c (gen_formal_parameter_die): Also try to match
7736 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7738 2019-10-16 Jakub Jelinek <jakub@redhat.com>
7740 * tree-ssa-strlen.c (maybe_invalidate): Use
7741 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
7743 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
7744 Jim Wilson <jimw@sifive.com>
7746 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
7747 regs to SIBCALL_REGS.
7748 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
7749 passing regs to SIBCALL_REGS.
7751 2019-10-16 Martin Sebor <msebor@redhat.com>
7753 PR tree-optimization/83821
7754 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
7755 the length of a string when available.
7756 (handle_builtin_memset) Add argument.
7757 (handle_store, strlen_check_and_optimize_call): Same.
7758 (check_and_optimize_stmt): Same. Pass it to callees.
7760 2019-10-16 Martin Sebor <msebor@redhat.com>
7762 PR tree-optimization/91996
7763 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
7765 (compare_nonzero_chars): Add an overload.
7766 (count_nonzero_bytes): Add an argument. Call overload above.
7767 Handle non-constant lengths in some range.
7768 (handle_store): Add an argument.
7769 (check_and_optimize_stmt): Pass an argument to handle_store.
7771 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
7773 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
7775 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7777 * config/mips/mips.c (mips_expand_builtin_insn): Force the
7778 operands which correspond to the same input-output register to
7779 have the same pseudo assigned to them.
7781 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
7783 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
7785 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
7787 * config/aarch64/aarch64.c (aarch64_classify_symbol):
7788 Apply reasonable limit to symbol offsets.
7790 2019-10-16 Richard Biener <rguenther@suse.de>
7792 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
7793 (vect_is_simple_reduction): Delay checking to
7794 vectorizable_reduction and relax the checking.
7795 (vectorizable_reduction): Check we have a simple use. Check
7796 for bogus condition reductions.
7797 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
7798 are looking at the last stmt in a pattern sequence when
7799 filling in backedge PHI values.
7801 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
7802 Jiufu Guo <guojiufu@linux.ibm.com>
7805 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
7806 the callee explicitly disables some isa_flags the caller is using.
7808 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7810 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
7812 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7814 * genmodes.c (mode_data::order): New field.
7815 (blank_mode): Update accordingly.
7816 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
7817 (make_vector_modes): Likewise.
7818 (VECTOR_MODES): Update use accordingly.
7819 (cmp_modes): Sort by the new order field ahead of sorting by size.
7820 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
7821 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
7822 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
7823 (aarch64_classify_vector_mode): Handle the new partial modes.
7824 (aarch64_vl_bytes): New function.
7825 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
7826 when counting the number of registers in an SVE mode.
7827 (aarch64_class_max_nregs): Likewise.
7828 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
7830 (aarch64_classify_address): Treat partial vectors analogously
7832 (aarch64_print_address_internal): Consolidate the printing of
7833 MUL VL addresses, using aarch64_vl_bytes as the number of
7834 bytes represented by "VL".
7835 (aarch64_vector_mode_supported_p): Reject partial vector modes.
7837 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7839 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
7840 rather than known_lt when choosing frame layouts.
7842 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7844 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
7845 that all the adjustments add up to the full frame size.
7846 Use crtl->outgoing_args_size directly as the final adjustment
7849 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7851 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
7852 "frame" reference instead of always referring directly to
7853 "cfun->machine->frame".
7855 2019-10-16 Richard Biener <rguenther@suse.de>
7857 PR tree-optimization/92119
7858 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
7859 against missing bswap lhs.
7861 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7864 * poly-int.h (constant_lower_bound_with_limit): New function.
7865 (constant_upper_bound_with_limit): Likewise.
7866 * doc/poly-int.texi: Document them.
7867 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
7868 into the worst-case INTEGER_CST bounds.
7870 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
7873 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
7874 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
7875 * ipa-predicat.h (struct expr_eval_op): New struct.
7876 (expr_eval_ops): New typedef.
7877 (struct condition): Add type and param_ops fields, remove size field.
7878 (add_condition): Replace size parameter with type parameter, add
7879 param_ops parameter.
7880 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
7881 (predicate::add_clause): Add comparisons on type and param_ops.
7882 (dump_condition): Add debug dump for param_ops.
7883 (remap_after_inlining): Adjust call arguments to add_condition.
7884 (add_condition): Replace size parameter with type parameter, add
7885 param_ops parameter. Unshare constant value used in conditions.
7886 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
7887 parameter expressions using param_ops.
7888 (decompose_param_expr): New function.
7889 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
7890 to replace call to unmodified_parm_or_parm_agg_item.
7891 (set_switch_stmt_execution_predicate): Likewise.
7892 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
7894 (inline_read_section): Read param_ops from summary stream.
7895 (ipa_fn_summary_write): Write param_ops to summary stream.
7897 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
7899 PR rtl-optimization/92107
7900 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
7903 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7905 * config/darwin.c: Update description of fix and continue.
7907 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7909 * config/darwin.c (darwin_binds_local_p): Update to call
7910 default_binds_local_p_3 () directly. amend comments.
7912 2019-10-15 Richard Biener <rguenther@suse.de>
7914 * lto-streamer-out.c (lto_variably_modified_type_p): New.
7915 (tree_is_indexable): Use it.
7916 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7917 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
7918 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7920 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7922 * config/msp430/msp430.md (zero_extendqipsi2): New.
7923 (zero_extendqisi2): Optimize case where src register and base dst
7924 register are the same.
7925 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
7926 (zero_extendpsisi2): Optimize r->m case.
7927 Add unnamed insn patterns to catch insns combine searches for when
7928 optimizing pointer manipulation.
7930 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7932 * config/msp430/msp430.md: Group zero_extend* insns together.
7934 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7936 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
7938 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
7940 (msp430_subreg): Likewise.
7941 (msp430_split_addsi): Likewise.
7942 (msp430_print_operand_addr): Likewise.
7943 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
7944 (USE_STORE_POST_INCREMENT): Define.
7945 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
7946 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
7947 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
7948 (msp430_general_dst_operand): New.
7949 (msp430_general_dst_nonv_operand): New.
7950 (msp430_nonsubreg_operand): Remove.
7951 (msp430_nonsubreg_dst_operand): New.
7952 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
7953 of defunct msp430_nonsubreg_operand.
7954 (msp430_nonsubregnonpostinc_or_imm_operand): New.
7956 2019-10-15 Richard Biener <rguenther@suse.de>
7958 PR tree-optimization/91929
7959 * tree-ssa-pre.c (pre_expr_d::loc): New member.
7960 (get_or_alloc_expr_for_name): Initialize it.
7961 (get_or_alloc_expr_for_constant): Likewise.
7962 (phi_translate_1): Copy it.
7963 (create_expression_by_pieces): Use the original location
7964 of the expression for the inserted stmt.
7965 (compute_avail): Record the location of the stmt for the
7966 expressions created.
7968 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
7970 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
7971 before using tree_to_uhwi.
7973 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
7975 * config/s390/s390.md: Run %a0:DI splitters only after reload.
7977 2019-10-15 Richard Biener <rguenther@suse.de>
7979 PR tree-optimization/92094
7980 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
7981 do not adjust the reduction definition def type.
7982 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
7983 defines the latch argument of the PHI.
7985 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
7988 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
7989 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
7990 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
7991 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
7992 _mm_maskz_roundscale_round_sd): New intrinsics.
7993 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
7994 __builtin_ia32_rndscales?_mask_round builtins instead of
7995 __builtin_ia32_rndscales?_round.
7996 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
7997 __builtin_ia32_rndscalesd_round): Remove.
7998 (__builtin_ia32_rndscaless_mask_round,
7999 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8000 * config/i386/sse.md
8001 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8002 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8003 ... this, adjust and add subst atrributes to make it maskable.
8005 2019-10-15 Richard Biener <rguenther@suse.de>
8008 * common.opt (fallow-store-data-races): New.
8009 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8010 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8011 * doc/invoke.texi (fallow-store-data-races): Document.
8012 (--param allow-store-data-races): Remove docs.
8013 * opts.c (default_options_table): Enable -fallow-store-data-races
8015 (default_options_optimization): Do not enable --param
8016 allow-store-data-races at -Ofast.
8017 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8018 instead of PARAM_ALLOW_STORE_DATA_RACES.
8019 * tree-ssa-loop-im.c (execute_sm): Likewise.
8021 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8023 PR tree-optimization/92085
8024 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8025 instead of calling it unconditionally after
8026 delete_dead_or_redundant_assignment and fix indentation.
8028 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8030 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8032 (*fmsub<SDF:mode>4): Likewise.
8033 *fnmsub<SDF:mode>4): Likewise.
8034 (*fnmadd<SDF:mode>4): Likewise.
8036 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8038 * doc/tree-ssa.texi: Update renamed macro name.
8040 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8042 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8045 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8047 * config/darwin.c: Use unsigned ints for the picbase label
8048 counters, initialise the vars explicitly.
8049 (update_pic_label_number_if_needed): Move a variable declaration
8050 to where it's needed.
8051 (machopic_output_function_base_name): Use a more strict checking
8052 assert, and and unsigned int for the picbase label counter.
8053 (machopic_get_function_picbase): Likewise.
8055 2019-10-14 Richard Biener <rguenther@suse.de>
8058 * dse.c (scan_insn): Use param max_active_local_stores.
8059 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8060 based on optimization level.
8061 * loop-invariant.c (move_loop_invariants): Adjust
8062 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8063 * opts.c (default_options_optimization): Do not adjust
8064 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8065 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8067 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8069 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8071 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8073 * config/arm/arm.c (arm_option_override): Don't override sched
8076 2019-10-14 Richard Biener <rguenther@suse.de>
8078 PR tree-optimization/92069
8079 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8080 cycles do not set vect_nested_cycle on the latch definition.
8082 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8084 * function-abi.h (expr_callee_abi): Declare.
8085 * function-abi.cc (expr_callee_abi): New function.
8087 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8089 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8091 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8092 non-zero being represented as [1,MAX].
8094 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8096 * tree-sra.c (dump_access): Add missing braces.
8098 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8100 * config/darwin.c (machopic_indirection_name): Rework the
8101 function to emit linker-visible symbols only for indirections
8102 in the data section. Clean up the code and update comments.
8104 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8106 * config/darwin.c (machopic_indirect_data_reference): Remove
8109 2019-10-13 Nathan Sidwell <nathan@acm.org>
8111 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8113 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8115 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8118 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8120 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8121 so non-virutal are before virutals.
8122 (output_function): Avoid body modifications.
8124 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8126 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8127 %r22. Load function address before global pointer.
8128 (pa_attr_length_indirect_call): Adjust length of inline versions of
8130 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8131 before normal cases. Update inline $$dyncall sequences to preserve
8132 function descriptor address in register %r22.
8133 (TRAMPOLINE_CODE_SIZE): Adjust.
8134 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8135 register %r22 contains trampoline address.
8136 (pa_trampoline_init): Adjust offsets.
8137 (pa_trampoline_adjust_address): Likewise.
8138 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8140 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8143 * config/darwin.c (machopic_indirection): New field to flag
8144 non-lazy-symbol-pointers in the data section.
8145 (machopic_indirection_name): Compute if an indirection should
8146 appear in the data section.
8147 (machopic_output_data_section_indirection): New callback split
8148 from machopic_output_indirection.
8149 (machopic_output_stub_indirection): Likewise.
8150 (machopic_output_indirection): Retain the code for non-lazy
8151 symbol pointers in their regular section.
8152 (machopic_finish): Use the new callbacks to order the indirection
8155 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8157 * config/darwin-protos.h (machopic_finish): Delete.
8158 * config/darwin.c (machopic_finish): Make static.
8160 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8162 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8163 sections when building kernel extension code.
8165 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8167 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8170 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8172 * config/pa/pa.c (pa_option_override): Remove trailing comma
8175 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8178 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8179 <case VEC_COND_EXPR>: Return false with *handled = false.
8180 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8181 recursing on the first operand.
8182 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8183 instead of tree_could_trap_p.
8184 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8186 2019-10-11 Jim Wilson <jimw@sifive.com>
8188 PR rtl-optimization/91860
8189 * combine.c (subst): If new_rtx is a constant, also check for
8190 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8192 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8194 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8195 INTVAL when calling store_bit_field.
8197 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8199 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8202 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8204 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8205 vectorizable_live_operation.
8206 (vectorizable_live_operation): Adjust parameters.
8207 * tree-vect-stmts.c (vect_init_vector,
8208 vect_gen_widened_results_half): Fix typo in function comment.
8209 (can_vectorize_live_stmts): Adjust function comment.
8210 Adjust parameters. Adjust call to vectorizable_live_operation.
8211 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8212 (vect_transform_stmt): Adjust function comment. Adjust call to
8213 can_vectorize_live_stmts.
8214 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8216 2019-10-11 Richard Biener <rguenther@suse.de>
8218 PR tree-optimization/90883
8219 PR tree-optimization/91091
8220 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8221 alias-sets both for recording VN table entries and continuing
8222 walking after translating through copies. Handle same-sized
8223 reads from SSA names by returning the plain SSA name.
8224 (eliminate_dom_walker::eliminate_stmt): Properly handle
8225 non-size precision stores in redundant store elimination.
8227 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8229 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8230 (ggc_collect): Dump later to not interfere with release_page dump.
8231 (ggc_trim): New function.
8232 * ggc-none.c (ggc_trim): New.
8233 * ggc.h (ggc_trim): Declare.
8235 2019-10-11 Richard Biener <rguenther@suse.de>
8237 PR tree-optimization/92066
8238 PR tree-optimization/92046
8239 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8240 Fix bogus cost model check.
8242 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8244 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8245 (LANG_HOOKS_DECLS): Add it.
8246 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8247 update comment for omp_is_optional_argument.
8248 * omp-general.c (omp_is_allocatable_or_ptr): New.
8249 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8250 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8251 Fortran's optional arguments and allocatable/pointer scalars
8252 with use_device_addr.
8254 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8257 * config/s390/2827.md: Add new opcodes.
8258 * config/s390/2964.md: Likewise.
8259 * config/s390/3906.md: Likewise.
8260 * config/s390/8561.md: Likewise.
8261 * config/s390/s390-builtins.def (s390_vfchesb): Use
8262 the new vec_cmpgev4sf_quiet_nocc.
8263 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8264 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8265 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8266 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8267 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8268 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8269 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8270 * config/s390/s390-modes.def (CCSFPS): New mode.
8271 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8272 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8273 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8274 (s390_expand_vec_compare): Use non-signaling patterns where
8276 (s390_reverse_condition): Support CCSFPS.
8277 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8278 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8279 (asm_fcmp_op): Likewise.
8280 (*smaxv2df3_vx): Use pattern for quiet comparison.
8281 (*sminv2df3_vx): Likewise.
8282 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8283 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8284 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8285 (vec_cmplt<mode>_quiet_nocc): New expander.
8286 (vec_cmpge<mode>_quiet_nocc): New pattern.
8287 (vec_cmple<mode>_quiet_nocc): New expander.
8288 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8289 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8290 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8291 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8292 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8293 (vec_cmpungt<mode>): New expander.
8294 (vec_cmpunge<mode>): Likewise.
8295 (vec_cmpuneq<mode>): Use quiet patterns.
8296 (vec_cmpltgt<mode>): Allow only on z14+.
8297 (vec_cmpordered<mode>): Use quiet patterns.
8298 (vec_cmpunordered<mode>): Likewise.
8299 (VEC_CMP_EXPAND): Add ungt and unge.
8301 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8303 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8305 * lto-streamer-out.c: Include tree-dfa.h.
8306 (output_cfg): Do not use cfun.
8307 (lto_prepare_function_for_streaming): New.
8308 (output_function): Do not push cfun; do not initialize loop optimizer.
8309 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8310 * passes.c (ipa_write_summaries): Use it.
8311 (ipa_write_optimization_summaries): Do not modify bodies.
8312 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8313 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8314 * tree-ssa-dse.c (pass_dse::execute): Update use of
8315 renumber_gimple_stmt_uids.
8316 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8318 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8320 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8321 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8323 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8325 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8327 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8328 Also define DFP macros for these conditions.
8329 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8330 DEC128_SUBNORMAL_MIN): Do not define.
8331 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8332 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8334 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8335 Sandra Loosemore <sandra@codesourcery.com>
8338 * doc/lto.texi (IPA): Reference to the IPA passes.
8339 * doc/passes.texi (Pass manager): Add node IPA passes and
8340 description for each IPA pass.
8342 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8344 * ipa-reference.c: Do not include splay-tree.h
8345 (reference_vars_to_consider): Turn to hash map.
8346 (get_static_name, ipa_init, analyze_function, propagate,
8347 stream_out_bitmap, ipa_reference_write_optimization_summary,
8348 ipa_reference_write_optimization_summary): Update.
8350 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8352 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8354 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8356 * config/darwin.c: Lookup Objective C metadata and force indirection
8359 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8361 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8363 (mem_operand_gpr): Add check for prefixed addresses.
8364 (mem_operand_ds_form): Add check for prefixed addresses.
8365 (rs6000_legitimate_offset_address_p): If we support prefixed
8366 addresses, check for a 34-bit offset instead of 16-bit.
8367 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8368 Do not allow load/store with update if the address is prefixed.
8369 (rs6000_mode_dependent_address): If we support prefixed
8370 addresses, check for a 34-bit offset instead of 16-bit.
8372 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8375 * config/s390/vector.md (vcond_comparison_operator): New
8377 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8379 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8382 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8384 * configure.ac (--with-documentation-root-url): New option.
8385 * configure: Regenerate.
8386 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8387 option URL, add it as a new string field of the diagnostic option.
8388 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8389 (print_option_information): If get_option_url is non-NULL, call
8390 it, and if the result is non-NULL, potentially emit an escape
8391 sequence to markup the option text with the resulting URL.
8392 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8393 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8394 example of JSON output.
8395 * opts-diagnostic.h (get_option_url): New decl.
8396 * opts.c (get_option_url): New function.
8397 * toplev.c (general_init): Initialize the get_option_url callback.
8399 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8402 * common.opt (fdiagnostics-urls=): New option.
8403 (diagnostic-url.h): Add SourceInclude.
8404 (diagnostic_url_rule): New enum.
8405 * diagnostic-color.c: Include "diagnostic-url.h".
8406 (diagnostic_urls_enabled_p): New function.
8407 * diagnostic-url.h: New file.
8408 * diagnostic.c: Include "diagnostic-url.h".
8409 (diagnostic_urls_init): New function.
8410 * diagnostic.h (diagnostic_urls_init): New decl.
8411 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8412 -fdiagnostics-urls to the list.
8413 (-fdiagnostics-urls): New option.
8414 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8415 (driver::global_initializations): Call diagnostic_urls_init.
8416 * opts-global.c (init_options_once): Likewise.
8417 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8418 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8420 (pp_begin_url): New function.
8421 (pp_end_url): New function.
8422 (selftest::test_urls): New selftest.
8423 (selftest::pretty_print_c_tests): Call it.
8424 * pretty-print.h (pretty_printer::show_urls): New field.
8425 (pp_begin_url): New decl.
8426 (pp_end_url): New decl.
8428 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8431 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8433 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8436 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8437 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8438 also for TARGET_FPU_SH4_300.
8439 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8441 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8442 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8443 (*negsf2_i): Split into ...
8444 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8445 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8446 (**abssf2_i): Split into ...
8447 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8448 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8449 (*negdf2_i): Split into ...
8450 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8451 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8452 (**abssf2_i): Split into ...
8453 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8455 2019-10-10 Richard Biener <rguenther@suse.de>
8458 * opts.c (finish_options): Do not influence global --params
8459 from options that are adjustable per function.
8460 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8461 Apply --param adjustment based on active cost-model.
8462 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8463 further store-sinking when vectorization or if-conversion
8466 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8469 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8470 rather than ggc_alloc_cleared to alloc symbol table.
8471 * toplev.c (general_init): Likewise.
8472 * cgraph.h (symbol_table): Explicitly construct every field.
8474 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8476 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8478 * config.gcc: Add z15 as option for --with-arch and --with-tune
8480 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8481 error reporting for unsupported builtins.
8482 * config/s390/s390-opts.h (enum processor_type): Rename
8483 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8484 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8485 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8487 * config/s390/s390-builtins.def: Likewise.
8488 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8489 (s390_expand_builtin): Add missing check for unsupported builtins.
8490 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8491 (s390_rtx_costs): Likewise.
8492 (s390_get_sched_attrmask): Rename arch13 to z15.
8493 (s390_get_unit_mask): Likewise.
8494 (s390_is_fpd): Likewise.
8495 (s390_is_fxd): Likewise.
8496 * config/s390/s390.h (enum processor_flags): Likewise.
8497 * config/s390/s390.md: Likewise.
8498 * config/s390/vector.md: Likewise.
8499 * config/s390/vx-builtins.md: Likewise.
8500 * config/s390/s390.opt: Add z15 to processor_type value.
8502 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8505 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8507 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8508 ("split_stack_data", "split_stack_call")
8509 ("split_stack_call_<mode>", "split_stack_cond_call")
8510 ("split_stack_cond_call_<mode>"): Remove.
8511 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8513 * config/s390/s390.c (s390_output_split_stack_data): New function.
8514 (s390_expand_split_stack_prologue): Use the merged expander.
8516 2019-10-09 Martin Sebor <msebor@redhat.com>
8518 PR tree-optimization/90879
8519 * builtins.c (check_access): Avoid using maxbound when null.
8520 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8521 * doc/invoke.texi (-Wstring-compare): Document new warning option.
8522 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8524 (get_range_strlen): Overwrite initial maxbound when non-null.
8525 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8527 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8528 (used_only_for_zero_equality): New function.
8529 (handle_builtin_memcmp): Call it.
8530 (determine_min_objsize): Return an integer instead of tree.
8531 (get_len_or_size, strxcmp_eqz_result): New functions.
8532 (maybe_warn_pointless_strcmp): New function.
8533 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
8534 between a longer string and a smaller array.
8535 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
8537 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8539 * config/darwin.c (darwin_override_options): Make the check for
8540 Objective-C ABI version more specific for 64bit code.
8542 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8544 * config/darwin.c (machopic_indirect_data_reference): Set flag to
8545 indicate that the new symbol is an indirection.
8546 (machopic_indirect_call_target): Likewise.
8547 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
8548 (MACHO_SYMBOL_INDIRECTION_P): New.
8549 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
8551 2019-10-08 Jason Merrill <jason@redhat.com>
8553 * doc/invoke.texi: Document -fconcepts-ts.
8555 2019-10-09 Richard Biener <rguenther@suse.de>
8557 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
8558 allow stmts other than GIMPLE_ASSIGN in nested cycles.
8560 2019-10-08 Richard Biener <rguenther@suse.de>
8562 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
8563 (_stmt_vec_info::force_single_cycle): Likewise.
8564 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
8565 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
8566 * tree-vect-loop.c (vectorizable_reduction): Set
8567 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
8568 (vect_transform_reduction): Use them to remove redundant code.
8569 (vect_transform_cycle_phi): Likewise.
8571 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8573 PR tree-optimization/90836
8574 * match.pd (popcount): New pattern.
8576 2019-10-08 Martin Sebor <msebor@redhat.com>
8580 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
8581 again once nbytes has been set. Set the access size when not yet set.
8583 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8585 * config/darwin.c (machopic_select_section): Remove dead code for
8586 old Objective-C section selection method, replace with unreachable.
8588 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8590 * config/darwin.c (machopic_indirect_data_reference): Check for
8591 required indirections before making direct access to defined
8593 (machopic_output_indirection): Place the indirected pointes for
8594 required indirections into the non-lazy symbol pointers section.
8595 (darwin_encode_section_info):
8596 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
8597 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
8599 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
8602 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
8603 instead of ALL_SSE_REG to check if function call preserves some
8604 256-bit SSE registers.
8606 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8608 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
8609 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
8610 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
8612 2019-10-08 Richard Biener <rguenther@suse.de>
8614 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
8615 (_stmt_vec_info::is_reduc_info): Add.
8616 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
8617 (vectorizable_condition): Remove.
8618 (vectorizable_shift): Likewise.
8619 (vectorizable_reduction): Adjust.
8620 (info_for_reduction): New.
8621 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
8622 (vect_analyze_scalar_cycles_1): ... here.
8623 (vect_analyze_loop_operations): Adjust.
8624 (needs_fold_left_reduction_p): Simplify for single caller.
8625 (vect_is_simple_reduction): Likewise. Remove stmt restriction
8626 for nested cycles not part of double reductions.
8627 (vect_model_reduction_cost): Pass in the reduction type.
8628 (info_for_reduction): New function.
8629 (vect_create_epilog_for_reduction): Use it, access reduction
8630 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
8631 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8632 (vectorize_fold_left_reduction): Remove pointless assert.
8633 (vectorizable_reduction): Analyze the full reduction when
8634 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
8635 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
8636 stmt code-generation to vectorizable_* in most cases. Verify
8637 code-generation only for cases handled by
8638 vect_transform_reductuon.
8639 (vect_transform_reduction): Use info_for_reduction to get at
8640 reduction meta. Simplify.
8641 (vect_transform_cycle_phi): Likewise.
8642 (vectorizable_live_operation): Likewise.
8643 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
8644 at the PHI node for STMT_VINFO_REDUC_TYPE.
8645 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
8646 longer necessary code.
8647 * tree-vect-stmts.c (vectorizable_shift): Make static again.
8648 (vectorizable_condition): Likewise. Get at reduction related
8649 info via info_for_reduction.
8650 (vect_analyze_stmt): Adjust.
8651 (vect_transform_stmt): Likewise.
8652 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8653 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8655 2019-10-08 Joseph Myers <joseph@codesourcery.com>
8657 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
8658 -fno-fp-int-builtin-inexact default for C2X.
8660 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8661 Richard Biener <rguenther@suse.de>
8663 PR tree-optimization/91532
8664 * tree-if-conv.c: Include tree-ssa-dse.h.
8665 (ifcvt_local_dce): Change param from bb to loop,
8666 and call dse_classify_store.
8667 (tree_if_conversion): Pass loop instead of loop->header as arg
8669 * tree-ssa-dse.c: Include tree-ssa-dse.h.
8670 (delete_dead_or_redundant_assignment): Remove static qualifier from
8671 declaration, and add prototype in tree-ssa-dse.h.
8672 (dse_store_status): Move to tree-ssa-dse.h.
8673 (dse_classify_store): Remove static qualifier and add new tree param
8674 stop_at_vuse, and add prototype in tree-ssa-dse.h.
8675 * tree-ssa-dse.h: New header.
8677 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8679 * config/darwin.c (machopic_output_indirection): Don't put
8680 hidden symbol indirections into the .data section, use the
8681 non-lazy symbol pointers section as normal.
8682 (darwin_encode_section_info): Record if a symbol is hidden.
8683 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
8684 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
8686 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8688 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
8689 predicates instead of accessing bits directly.
8690 (machopic_indirect_call_target): Likewise.
8691 (machopic_output_indirection): Likewise.
8692 (darwin_encode_section_info): Improve description. Use renamed
8693 symbol flags. Use predicate macros for variables and functions.
8695 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
8696 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
8697 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
8698 (MACHO_SYMBOL_VARIABLE_P): New.
8699 (MACHO_SYMBOL_DEFINED_P):New.
8700 (MACHO_SYMBOL_STATIC_P): New.
8701 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
8702 (SYMBOL_FLAG_SUBT_DEP): New.
8703 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
8705 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8707 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
8708 (msp430_expand_epilogue): Likewise.
8709 * config/msp430/predicates.md: Likewise.
8710 * config/msp430/msp430.md: Likewise.
8711 Replace blocks of 8 spaces with tabs.
8713 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8715 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
8716 * config/msp430/msp430.c (msp430_split_addsi): New.
8717 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
8718 a block of C code for splitting addsi.
8720 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
8722 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
8723 ix86_expand_rounddf_32): Reorder functions.
8724 * config/i386/i386-protos.h: Update.
8726 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8728 * config.in: Regenerate.
8729 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
8730 Add new "Yx" constraint.
8731 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
8733 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
8735 * config/msp430/msp430.c (msp430_option_override): Allow the lower
8736 code/data region to be selected in the small memory model.
8737 (msp430_section_attr): Don't warn if the "section" and "lower"
8738 attributes are used together.
8739 (msp430_handle_generic_attribute): Likewise.
8740 (msp430_var_in_low_mem): New function.
8741 (TARGET_ENCODE_SECTION_INFO): Define.
8742 (msp430_encode_section_info): New function.
8743 (gen_prefix): Return early in the small memory model.
8744 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
8745 ".lower" prefix if -m{code,data}-region=lower have been passed.
8746 (msp430_output_aligned_decl_common): Emit common symbols when
8747 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
8749 (TARGET_ASM_FILE_END): Define.
8750 (msp430_file_end): New function.
8751 (msp430_do_not_relax_short_jumps): Allow relaxation when
8752 function will be in the lower region.
8753 (msp430_op_not_in_high_mem): New function.
8754 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
8755 the 'X' operand selector.
8756 Clarify comment for 'x' operand selector.
8757 * config/msp430/msp430.h (LINK_SPEC): Propagate
8758 -m{code,data}-region to the linker via spec function
8759 msp430_propagate_region_opt.
8760 (msp430_propagate_region_opt): New prototype.
8761 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
8762 (SYMBOL_FLAG_LOW_MEM): Define.
8763 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
8765 (zero_extendqihi2): Fix operand number used by "%X" selector.
8766 (zero_extendqisi2): Likewise.
8767 (zero_extendhisi2): Likewise.
8768 (movqi): Use "Yx" constraint in place of "%X" operand selector.
8773 (addhi3_cy): Likewise.
8774 (addchi4_cy): Likewise.
8778 (bic<mode>3): Likewise.
8779 (and<mode>3): Likewise.
8780 (ior<mode>3): Likewise.
8781 (xor<mode>3): Likewise.
8782 (slli_1): Add missing "%X" operand selector.
8790 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
8792 (cbranchhi4_real): Likewise.
8793 (cbranchqi4_reversed): Likewise.
8794 (cbranchhi4_reversed): Likewise.
8795 (*bitbranch<mode>4): Likewise.
8796 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
8797 * config/msp430/msp430.opt (mcode-region=): Set default to
8798 MSP430_REGION_LOWER. Improve docstring.
8799 (mdata-region=): Likewise.
8800 (muse-lower-region-prefix): New option.
8801 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
8802 mdata-region=none multilib.
8803 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
8804 mdata-region=none multilib.
8805 MULTILIB_EXCEPTIONS: Remove.
8806 MULTILIB_REQUIRED: Define.
8807 * configure: Regenerate.
8808 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
8809 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
8810 * doc/extend.texi: Clarify comment for {upper,lower,either}
8811 function attributes.
8812 Add separate description for "lower" variable attribute.
8814 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8817 * optabs-tree.c (vcond_icode_p): New function.
8818 (vcond_eq_icode_p): Likewise.
8819 (expand_vec_cond_expr_p): Use vcond_icode_p and
8821 * optabs.c (can_vcond_compare_p): New function.
8822 * optabs.h (can_vcond_compare_p): Likewise.
8824 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8827 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
8828 caller passes a non-trapping condition.
8829 (is_gimple_condexpr): Allow trapping conditions.
8830 (is_gimple_condexpr_1): New helper function.
8831 (is_gimple_condexpr_for_cond): New function, acts like old
8833 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
8834 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
8835 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
8836 * gimplify.c (gimplify_cond_expr): Use
8837 is_gimple_condexpr_for_cond.
8838 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
8839 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
8841 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
8842 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
8843 is_gimple_condexpr_for_cond, remove pointless tmp check
8844 (forward_propagate_into_cond): Remove pointless tmp check.
8846 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8848 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
8849 match that of other gsi_next_* functions. Adjust the comment.
8850 (gsi_start_nonvirtual_phis): New function.
8851 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
8852 gsi_next_nonvirtual_phi accordingly. (No functional change.)
8854 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8856 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
8857 setjmp situation here. Fix a verb's ending: "the exact variables or
8858 elements for which there are warnings depends" -> "... depend".
8860 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8862 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
8864 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8866 * ipa-prop.c (ipa_vr::nonzero_p): New.
8867 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
8869 * ipa-prop.h (class ipa_vr): Add nonzero_p.
8870 * tree-vrp.c (range_has_numeric_bounds_p): New.
8871 (range_int_cst_p): Use range_has_numeric_bounds_p.
8872 (get_range_op_handler): New.
8873 (supported_types_p): New.
8874 (defined_ranges_p): New.
8875 (drop_undefines_to_varying): New.
8876 (range_fold_binary_symbolics_p): New.
8877 (range_fold_unary_symbolics_p): New.
8878 (range_fold_unary_expr): Extract out into above functions.
8879 (range_fold_binary_expr): Same.
8880 (value_range_base::normalize_addresses): New.
8881 (value_range_base::normalize_symbolics): Normalize addresses.
8882 * tree-vrp.h (class value_range_base): Add normalize_addresses.
8884 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8886 * tree-vrp.c (value_range_base::singleton_p): Use
8887 value_range_base::num_pairs instead of vrp_val_is* to check
8888 if a range has one sub-range.
8890 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8892 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
8893 DEF is not a true earlyclobber but is tied to a specific input
8894 operand, and so is effectively earlyclobber wrt inputs that have
8896 (make_early_clobber_and_input_conflicts): Pass this case to the above.
8898 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8900 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
8901 (pod_mode): Mark operators likewise.
8902 (scalar_int_mode): Mark non-default constructors and
8903 operators with CONSTEXPR.
8904 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
8905 (fixed_size_mode): Likewise.
8907 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8910 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
8911 and wrap the unspec_volatile in a parallel.
8912 (*avx_vzeroupper): New define_insn. Use a match_parallel around
8913 the unspec_volatile.
8914 * config/i386/predicates.md (vzeroupper_pattern): Expect the
8915 unspec_volatile to be wrapped in a parallel.
8916 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
8917 (ix86_add_reg_usage_to_vzerouppers): New functions.
8918 (rest_of_handle_insert_vzeroupper): Use them to add register
8919 usage information to the vzeroupper instructions.
8921 2019-10-07 Richard Biener <rguenther@suse.de>
8923 PR tree-optimization/91975
8924 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
8927 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
8929 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
8930 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
8932 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
8934 * config/darwin.c (darwin_override_options): Adjust objective-c
8935 ABI version error messages to avoid punctuation and contracted
8938 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
8940 * ipa-inline.c: Fix type; compute size rather than self_size
8941 for size of caller function.
8943 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
8946 * config/darwin.c (darwin_rodata_section): Add relocation flag,
8947 choose const_data section for constants with relocations.
8948 (machopic_select_section): Pass relocation flag to
8949 darwin_rodata_section ().
8951 2019-10-05 Jakub Jelinek <jakub@redhat.com>
8953 PR tree-optimization/91734
8954 * generic-match-head.c: Include fold-const-call.h.
8955 * match.pd (sqrt(x) cmp c): Check the boundary value and
8956 in case inexact computation of c*c affects comparison of the boundary,
8957 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
8958 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
8959 for -frounding-math. For c2, try the next smaller or larger floating
8960 point constant depending on comparison code and if it has the same
8961 sqrt as c2, use it instead of c2.
8963 2019-10-04 Martin Sebor <msebor@redhat.com>
8966 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
8967 MEM_REF right operand. Avoid failing for MEM_REF assignments from
8968 uninitialized objects.
8970 2019-10-04 Martin Sebor <msebor@redhat.com>
8972 * builtins.c (compute_objsize): Add an argument.
8973 * tree-object-size.c (addr_object_size): Same.
8974 (compute_builtin_object_size): Same.
8975 * tree-object-size.h (compute_builtin_object): Same.
8977 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
8979 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
8981 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
8983 * match.pd (sinh (x) / cosh (x)): New simplification rule.
8985 2019-10-04 Martin Jambor <mjambor@suse.cz>
8987 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
8988 fntype when switching to calling memcpy instead of memset.
8990 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8992 * hash-table.h (hash_table::empty_slow): Don't assign
8993 size_t values to int variables.
8995 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8997 * expr.c (convert_mode_scalar): Remove shadowing local var.
8998 (emit_block_move): Rename local vars.
8999 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9000 (emit_push_insn): Rename local vars.
9001 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9002 shadowing local vars.
9003 (store_constructor): Remove shadowing local vars. Rename local var.
9004 (store_field, expand_cond_expr_using_cmove,
9005 expand_expr_real_2): Remove shadowing local vars.
9006 (expand_expr_real_1,
9007 do_store_flag): Remove shadowing local vars. Rename local vars.
9009 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9011 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9013 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9015 * genmatch.c (commutate): Rename local var.
9016 (lower_cond): Reuse local var.
9017 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9018 dt_operand::gen, dt_operand::gen_gimple_expr,
9019 dt_simplify::gen): Add a param. Rename generated vars.
9020 (decision_tree::insert_operand,
9021 (capture_info::walk_match, capture_info::walk_result,
9022 capture_info::walk_c_expr): Rename local vars.
9023 (expr::gen_transform): Rename generated vars.
9024 Use snprintf. Rename local vars.
9025 (capture::gen_transform, dt_operand::get_name,
9026 dt_operand::gen_opname): Rename generated vars.
9027 (write_predicate): Adjust call to gen_kids.
9028 (parser::get_internal_capture_id): Rename generated vars.
9029 (parser::parse_expr): Rename local vars.
9030 (parser::parse_if): Remove local var.
9031 (parser::parse_pattern, add_operator): Rename local vars.
9033 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9035 * builtins.def (DEF_C2X_BUILTIN): New macro.
9036 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9037 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9038 (strndup): Use DEF_C2X_BUILTIN.
9039 * coretypes.h (enum function_class): Add function_c2x_misc.
9041 2019-10-04 Maya Rashish <coypu@sdf.org>
9043 * ira-color.c (update_costs_from_allocno): Call
9044 ira_init_register_move_cost_if_necessary.
9046 2019-10-04 Jeff Law <law@redhat.com>
9048 * config/h8300/h8300.md (cpymemsi): Disable.
9049 (movmd, movmd_internal_<mode>, movstr, movsd):
9050 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9051 (movmd splitter, movsd splitter): Likewise.
9053 * range-op.cc (range_tests): Avoid two tests when ints and
9054 shorts are the same size.
9056 2019-10-04 Richard Biener <rguenther@suse.de>
9059 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9062 2019-10-04 Richard Biener <rguenther@suse.de>
9064 PR tree-optimization/91982
9065 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9066 against EXTRACT_LAST_REDUCTION.
9067 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9069 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9071 * range-op.o (value_range_from_overflowed_bounds): Rename from
9072 adjust_overflow_bound.
9073 (value_range_with_overflow): Rename from
9074 create_range_with_overflow.
9075 (create_possibly_reversed_range): Adjusted for above renames.
9076 (operator_*::wi_fold): Same.
9077 (cross_product_operator::wi_cross_productor): Same.
9079 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9081 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9082 -Wshadow=compatible-local): Fix description.
9083 Add an example where -Wshadow=compatible-local does not
9086 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9088 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9090 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9091 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9093 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9095 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9096 can_move_by_pieces issue.
9098 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9101 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9102 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9103 is available and the user has not set one on the command line.
9105 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9108 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9109 instead of REGNO equality check on addr.reg.
9111 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9113 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9114 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9115 * doc/invoke.texi (inline-heuristics-hint-percent,
9116 inline-heuristics-hint-percent-O2): Document.
9117 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9119 (can_inline_edge_by_limits_p): Use it.
9121 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9123 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9124 to print CONST_DOUBLEs.
9126 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9128 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9129 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9130 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9132 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9134 * Makefile.in (OBJS): Add range.o and range-op.o.
9135 Remove wide-int-range.o.
9136 * function-tests.c (test_ranges): New.
9137 (function_tests_c_tests): Call test_ranges.
9138 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9139 range_fold_unary_expr instead of extract_range_from_unary_expr.
9140 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9141 * range-op.cc: New file.
9142 * range-op.h: New file.
9143 * range.cc: New file.
9144 * range.h: New file.
9145 * selftest.h (range_tests): New prototype.
9146 * ssa.h: Include range.h.
9147 * tree-vrp.c (value_range_base::value_range_base): New
9149 (value_range_base::singleton_p): Do not call
9150 ranges_from_anti_range until sure we will need to.
9151 (value_range_base::type): Rename gcc_assert to
9152 gcc_checking_assert.
9153 (vrp_val_is_max): New argument.
9154 (vrp_val_is_min): Same.
9155 (wide_int_range_set_zero_nonzero_bits): Move from
9157 (extract_range_into_wide_ints): Remove.
9158 (extract_range_from_multiplicative_op): Remove.
9159 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9160 from extract_range_from_binary_expr.
9161 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9162 from extract_range_from_binary_expr.
9163 (extract_range_from_binary_expr): Remove.
9164 (normalize_for_range_ops): New.
9165 (range_fold_binary_expr): New.
9166 (range_fold_unary_expr): New.
9167 (value_range_base::num_pairs): New.
9168 (value_range_base::lower_bound): New.
9169 (value_range_base::upper_bound): New.
9170 (value_range_base::upper_bound): New.
9171 (value_range_base::contains_p): New.
9172 (value_range_base::invert): New.
9173 (value_range_base::union_): New.
9174 (value_range_base::intersect): New.
9175 (range_compatible_p): New.
9176 (value_range_base::operator==): New.
9177 (determine_value_range_1): Call range_fold_*expr instead of
9178 extract_range_from_*expr.
9179 * tree-vrp.h (class value_range_base): Add new constructors.
9180 Add methods for union_, intersect, operator==, contains_p,
9181 num_pairs, lower_bound, upper_bound, invert.
9182 (vrp_val_is_min): Add handle_pointers argument.
9183 (vrp_val_is_max): Same.
9184 (extract_range_from_unary_expr): Remove.
9185 (extract_range_from_binary_expr): Remove.
9186 (range_fold_unary_expr): New.
9187 (range_fold_binary_expr): New.
9188 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9189 range_fold_binary_expr instead of extract_range_from_binary_expr.
9190 (vr_values::extract_range_basic): Same.
9191 (vr_values::extract_range_from_unary_expr): Call
9192 range_fold_unary_expr instead of extract_range_from_unary_expr.
9193 * wide-int-range.cc: Remove.
9194 * wide-int-range.h: Remove.
9196 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9198 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9199 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9200 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9201 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9204 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9206 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9207 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9208 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9209 * glimits.h: Likewise.
9211 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9213 PR rtl-optimization/91976
9214 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9215 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9216 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9218 2019-10-02 Martin Sebor <msebor@redhat.com>
9220 PR tree-optimization/80936
9221 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9223 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9225 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9226 instead of reg_class_contents[ALL_REGS].
9228 2019-09-30 Jason Merrill <jason@redhat.com>
9230 Add some hash_map_safe_* functions like vec_safe_*.
9231 * hash-map.h (default_hash_map_size): New variable.
9232 (create_ggc): Use it as default argument.
9233 (hash_map_maybe_create, hash_map_safe_get)
9234 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9236 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9238 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9239 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9240 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9241 (can_inline_edge_by_limits_p): Use it.
9242 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9243 (want_inline_small_function_p): Use O2 bounds.
9244 (edge_badness): LIkewise.
9245 * opts.c (default_options): Add OPT_finline_functions.
9246 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9247 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9249 * doc/invoke.texi (-finline-functions): Update documentation.
9250 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9251 inline-min-speedup-O2): Document.
9252 (early-inlining-insns-O2): Simplify docs.
9254 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9256 PR rtl-optimization/87047
9257 * ifcvt.c (average_cost): New static function. Use it...
9258 (noce_process_if_block): ... here.
9260 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9262 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9263 * config/rs6000/rs6000-string.c (expand_block_move): Add
9265 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9266 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9268 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9270 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9271 (expand_builtin_memcpy): Use might_overlap parm.
9272 (expand_builtin_mempcpy_args): Use might_overlap parm.
9273 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9274 (expand_builtin_memory_copy_args): Add might_overlap parm.
9275 * expr.c (emit_block_move_via_cpymem): Rename to
9276 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9277 or movmem optab as appropriate.
9278 (emit_block_move_hints): Add might_overlap parm, do the right
9279 thing for might_overlap==true.
9280 * expr.h (emit_block_move_hints): Update prototype.
9282 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9284 * tree-eh.h (unsplit_eh_edges): Declare.
9285 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9286 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9287 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9288 (struct store_immediate_info): Add lp_nr field.
9289 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9290 initialize lp_nr with it.
9291 (struct merged_store_group): Add lp_nr and only_constants fields.
9292 (merged_store_group::merged_store_group): Initialize them.
9293 (merged_store_group::can_be_merged_into): Deal with them.
9294 (pass_store_merging): Rename terminate_and_release_chain into
9295 terminate_and_process_chain.
9296 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9297 renaming and remove useless assertions.
9298 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9299 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9300 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9301 instead of always recomputing it and compare lp_nr.
9302 (imm_store_chain_info::output_merged_store): If the group is in an
9303 active EH region, register new stores if they can throw. Moreover,
9304 if the insertion has created new basic blocks, adjust the PHI nodes
9305 of the post landing pad.
9306 (imm_store_chain_info::output_merged_stores): If the original stores
9307 are in an active EH region, deregister them.
9308 (lhs_valid_for_store_merging_p): Prettify.
9309 (adjust_bit_pos): New function extracted from...
9310 (mem_valid_for_store_merging): ...here. Use it for the base address
9311 and also for the offset if it is the addition of a constant.
9312 (lp_nr_for_store): New function.
9313 (pass_store_merging::process_store): Change return type to bool.
9314 Call lp_nr_for_store to initialize the store info. Propagate the
9315 return status of various called functions to the return value.
9316 (store_valid_for_store_merging_p): New predicate.
9317 (enum basic_block_status): New enumeration.
9318 (get_status_for_store_merging): New function.
9319 (pass_store_merging::execute): If the function can throw and catch
9320 non-call exceptions, unsplit the EH edges on entry and clean up the
9321 CFG on exit if something changed. Call get_status_for_store_merging
9322 for every basic block and keep the chains open across basic blocks
9323 when possible. Terminate and process open chains at the end, if any.
9325 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9327 * reginfo.c (globalize_reg): Fix shadowed variable in
9330 2019-10-02 Martin Jambor <mjambor@suse.cz>
9332 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9333 do not compute some stuff when set.
9334 (cgraph_node::create_edge): Likewise.
9335 (cgraph_node::create_indirect_edge): Renamed last parameter to
9336 coning_p and flipped its meaning, don't even calculate
9337 inline_failed when set.
9338 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9339 (symbol_table::::create_edge): Likewise.
9340 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9342 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9343 call graph edge creating functions.
9345 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9348 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9351 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9353 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9355 2019-10-02 Richard Biener <rguenther@suse.de>
9357 * tree-vectorizer.h (vect_transform_reduction): Declare.
9358 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9359 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9360 stmt transform to ...
9361 (vect_transform_reduction): ... this.
9363 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9365 * omp-low.c (lower_omp_target): Dereference optional argument
9366 to work with the right pointer.
9368 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9370 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9372 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9373 * langhooks.h (omp_is_optional_argument): New hook.
9374 * omp-general.c (omp_is_optional_argument): New.
9375 * omp-general.h (omp_is_optional_argument): New declaration.
9376 * omp-low.c (lower_omp_target): Create temporary for received value
9377 and take the address for new_var if the original variable was a
9378 DECL_BY_REFERENCE. Use size of referenced object when a
9379 pass-by-reference optional argument used as argument to firstprivate.
9381 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9383 PR tree-optimization/91940
9384 * tree-vect-patterns.c: Include tree-vector-builder.h and
9386 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9387 unpromoting the argument back to uint16_t, or by converting into a
9388 rotate, or into shifts plus ior.
9390 2019-10-02 Richard Biener <rguenther@suse.de>
9392 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9394 (vect_transform_cycle_phi): Declare.
9395 * tree-vect-stmts.c (vect_transform_stmt): Call
9396 vect_transform_cycle_phi.
9397 * tree-vect-loop.c (vectorizable_reduction): Split out
9398 PHI transformation stage to ...
9399 (vect_transform_cycle_phi): ... here.
9401 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9404 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9405 eliminable registers.
9406 (make_hard_regno_live): Likewise, and don't make them live.
9408 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9410 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9411 Call pp_emit_prefix.
9412 (layout::print_source_line): Likewise.
9413 (layout::start_annotation_line): Likewise.
9414 (diagnostic_show_locus): Remove call to temporarily clear the
9416 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9417 interaction of pp_set_prefix with rulers and fix-it hints.
9418 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9419 prefix when calling diagnostic_show_locus, rather than destroying
9421 (print_parseable_fixits): Temporarily clear prefix.
9422 * pretty-print.c (pp_format): Save and restore line_length, rather
9423 than assuming it is zero.
9424 (pp_output_formatted_text): Remove assertion that line_length is
9427 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9429 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9431 (nonoverlapping_refs_since_match_p): ... this; handle also
9433 (alias_stats): Update stats.
9434 (dump_alias_stats): Likewise.
9435 (cheap_array_ref_low_bound): New function.
9436 (aliasing_matching_component_refs_p): Add partial_overlap
9438 pass it to nonoverlapping_refs_since_match_p.
9439 (aliasing_component_refs_walk): Update call of
9440 aliasing_matching_component_refs_p
9441 (nonoverlapping_array_refs_p): New function.
9442 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9443 indirect_refs_may_alias_p): Update calls of
9444 nonoverlapping_refs_since_match_p.
9446 2019-10-01 Maya Rashish <coypu@sdf.org>
9449 * ira-color.c (allocno_copy_cost_saving): Call
9450 ira_init_register_move_cost_if_necessary.
9452 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9454 * Makefile.in (gnat_install_lib): New variable.
9455 * configure.ac: Substitute it.
9456 * configure: Regenerate.
9458 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9461 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9462 is matched with non-C++ type
9464 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9466 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9469 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9471 * doc/invoke.texi (early-inlining-insns-O2): Document.
9472 (early-inlining-insns): Update.
9473 * params.def (early-inlining-insns-O2): New bound.
9474 (early-inlining-insns): Update docs.
9475 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9477 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9480 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9481 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9482 a memory access insn.
9484 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9486 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9489 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9492 * config/s390/s390.c (s390_expand_vec_compare): Use
9493 gen_vec_cmpordered and gen_vec_cmpunordered.
9494 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9495 vec_unordered): Delete.
9496 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9497 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9498 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9499 (vec_cmp<code>): Generic dispatcher.
9501 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9504 * config/s390/vector.md (V_HW): Add V1TI in order to make
9505 vcond$a$b generate vcondv1tiv1tf.
9507 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9509 PR rtl-optimization/91948
9510 * ira-build.c (ira_create_allocno): Initialize
9511 ALLOCNO_CROSSED_CALLS_ABIS.
9512 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9513 than regno to ira_need_caller_save_p.
9515 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9517 * config/i386/i386-options.c
9518 (ix86_recompute_optlev_based_flags): New, moved out of...
9519 (ix86_option_override_internal): ... this. Call it.
9520 (ix86_override_options_after_change): Call it here too.
9523 * dwarf2out.c (override_type_for_decl_p): New.
9524 (gen_variable_die): Use it.
9526 2019-10-01 Richard Biener <rguenther@suse.de>
9528 * tree-vect-loop.c (vectorizable_reduction): Move variables
9529 to where they are used.
9531 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9533 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
9534 (build_def_use): Use PC instead of CC0 in a comment.
9536 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9538 * rtl.def (CLOBBER_HIGH): Delete.
9539 * doc/rtl.texi (clobber_high): Remove documentation.
9540 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
9541 (reg_is_clobbered_by_clobber_high): Delete.
9542 (gen_hard_reg_clobber_high): Likewise.
9543 * alias.c (record_set): Remove CLOBBER_HIGH handling.
9544 * cfgexpand.c (expand_gimple_stmt): Likewise.
9545 * combine-stack-adj.c (single_set_for_csa): Likewise.
9546 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
9547 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
9548 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
9549 * cse.c (invalidate_reg): Remove clobber_high parameter.
9550 (invalidate): Update call accordingly.
9551 (canonicalize_insn): Remove CLOBBER_HIGH handling.
9552 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
9553 (count_reg_usage, insn_live_p): Likewise.
9554 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
9555 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
9556 (cselib_invalidate_rtx_note_stores): Update call accordingly.
9557 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
9558 (cselib_invalidate_regno, cselib_process_insn): Likewise.
9559 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
9560 (mark_nonreg_stores_2): Likewise.
9561 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
9562 (df_get_call_refs): Likewise.
9563 * dwarf2out.c (mem_loc_descriptor): Likewise.
9564 * emit-rtl.c (verify_rtx_sharing): Likewise.
9565 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
9566 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
9567 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
9568 * genemit.c (gen_exp, gen_insn): Likewise.
9569 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
9570 * haifa-sched.c (haifa_classify_rtx): Likewise.
9571 * ira-build.c (create_insn_allocnos): Likewise.
9572 * ira-costs.c (scan_one_insn): Likewise.
9573 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
9574 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
9575 * jump.c (mark_jump_label_1): Likewise.
9576 * lra-int.h (lra_insn_reg::clobber_high): Delete.
9577 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
9579 (mark_not_eliminable): Likewise.
9580 * lra-lives.c (process_bb_lives): Likewise.
9581 * lra.c (new_insn_reg): Remove clobber_high parameter.
9582 (collect_non_operand_hard_regs): Likewise. Update call to new
9583 insn_reg. Remove CLOBBER_HIGH handling.
9584 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
9585 to collect_non_operand_hard_regs.
9586 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
9587 Update call to new_insn_reg.
9588 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
9589 * postreload.c (reload_cse_simplify, reload_combine_note_use)
9590 (move2add_note_store): Likewise.
9591 * print-rtl.c (print_pattern): Likewise.
9592 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
9593 (if_test_bypass_p): Likewise.
9594 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
9595 * reginfo.c (reg_scan_mark_refs): Likewise.
9596 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
9597 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
9598 (forget_old_reloads_1): Likewise.
9599 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
9600 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
9601 (dbr_schedule): Likewise.
9602 * resource.c (update_live_status, mark_referenced_resources)
9603 (mark_set_resources): Likewise.
9604 * rtl.c (copy_rtx): Likewise.
9605 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
9606 (note_pattern_stores): Likewise.
9607 (reg_is_clobbered_by_clobber_high): Delete.
9608 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
9609 CLOBBER_HIGH handling.
9611 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9614 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
9615 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
9616 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9617 Handle ARM_PCS_TLSDESC.
9618 (aarch64_tlsdesc_abi_id): New function.
9619 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
9620 rtx instead of a list of clobbers and clobber_highs.
9621 (tlsdesc_small_<mode>): Update accordingly.
9623 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9625 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
9626 extra callee_abi argument.
9627 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
9628 Insert a CALLEE_ABI unspec into the call pattern as the second
9629 element in the PARALLEL.
9630 (aarch64_simd_call_p): Delete.
9631 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
9632 the new CALLEE_ABI element of the PARALLEL.
9633 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
9634 from the function type, if given.
9635 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
9636 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
9637 when passed the function_arg_info end marker.
9638 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
9639 final argument of gen_sibcall.
9640 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
9641 (call): Make operand 2 a const_int_operand and pass it to expand_call.
9642 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
9644 (call_value): Likewise operand 3.
9645 (sibcall): Likewise operand 2. Place the unspec before rather than
9647 (sibcall_value): Likewise operand 3.
9648 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
9649 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
9650 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
9652 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
9654 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9656 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
9657 choose_hard_reg_mode.
9658 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9660 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9662 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
9663 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
9664 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
9666 2019-09-30 David Malcolm <dmalcolm@redhat.com>
9668 * diagnostic-show-locus.c (line_label::line_label): Initialize
9670 (line_label::comparator): Reverse the sort order by m_state_idx,
9671 so that when the list is walked backwards the labels appear in
9672 order of insertion into the rich_location.
9673 (line_label::m_has_vbar): New field.
9674 (layout::print_any_labels): When dealing with multiple labels at
9675 the same line and column, only print vertical bars for the one
9676 with the highest label_line.
9677 (selftest::test_one_liner_labels): Update test for multiple labels
9678 to expect the labels to be in the order of insertion into the
9679 rich_location. Add a test for many such labels, where the column
9680 numbers are out-of-order relative to the insertion order.
9682 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9684 * config/i386/i386.h (ix86_frame::expensive_p): New field.
9685 (ix86_frame::expensive_count): Likewise.
9686 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
9687 of use_fast_prologue_epilogue robust against incidental changes
9690 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9693 * config/s390/vector.md (vec_unordered<mode>): Call
9694 gen_vec_ordered<mode>.
9696 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
9698 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
9699 New pattern for ASRD.
9700 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
9701 * internal-fn.def (IFN_DIV_POW2): New internal function.
9702 * optabs.def (sdiv_pow2_optab): New optab.
9703 * tree-vect-patterns.c (vect_recog_divmod_pattern):
9704 Modify pattern to support new operation.
9705 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
9706 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
9707 Document new target selector.
9709 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9711 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
9712 to test whether we're compiling a vector PCS function and to test
9713 whether the function needs to save a particular register.
9714 Remove the vector PCS handling of df_set_regs_ever_live.
9715 (aarch64_components_for_bb): Use crtl->abi to test whether
9716 the function needs to save a particular register.
9717 (aarch64_process_components): Use crtl->abi to test whether
9718 we're compiling a vector PCS function.
9719 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
9720 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
9722 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9724 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
9726 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
9727 whether the block calls a function that clobbers more registers
9728 than the current function is allowed to.
9729 (aarch64_use_simple_return_insn_p): Delete.
9730 * config/aarch64/aarch64.md (simple_return): Remove condition.
9732 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9734 * function-abi.h (function_abi_aggregator): New class.
9735 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
9737 * ira.c (update_equiv_regs_prescan): New function. Call
9738 set_paradoxical_subreg here rather than...
9739 (update_equiv_regs): ...here.
9740 (ira): Call update_equiv_regs_prescan.
9742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9744 * hard-reg-set.h (regs_invalidated_by_call): Only define if
9746 (call_used_or_fixed_regs): Likewise.
9747 (call_used_or_fixed_reg_p): Likewise.
9748 * reginfo.c (regs_invalidated_by_call): New macro.
9750 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9752 * shrink-wrap.c: Include function-abi.h.
9753 (requires_stack_frame_p): Use crtl->abi to test whether the
9754 current function can use a register without saving it first.
9756 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9758 * sel-sched-ir.h (_def::crosses_call): Replace with...
9759 (_def::crossed_call_abis): ..this new field.
9760 (def_list_add): Take a mask of ABIs instead of a crosses_call
9762 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
9763 of _def accordingly.
9764 * sel-sched.c: Include function-abi.h.
9765 (hard_regs_data::regs_for_call_clobbered): Delete.
9766 (reg_rename::crosses_call): Replace with...
9767 (reg_rename::crossed_call_abis): ...this new field.
9768 (fur_static_params::crosses_call): Replace with...
9769 (fur_static_params::crossed_call_abis): ...this new field.
9770 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
9771 (init_hard_regs_data): Use crtl->abi to test which registers the
9772 current function would need to save before it uses them.
9773 (mark_unavailable_hard_regs): Update handling of call-clobbered
9774 registers, using call_clobbers_in_region to find out which registers
9775 might be call-clobbered (but without taking -fipa-ra into account
9776 for now). Remove separate handling of partially call-clobbered
9778 (verify_target_availability): Use crossed_call_abis instead of
9780 (get_spec_check_type_for_insn, find_used_regs): Likewise.
9781 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
9783 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9785 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
9786 function to test whether a register is fully or partly clobbered.
9788 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9790 * rtlanal.c: Include function-abi.h.
9791 (reg_set_p): Use insn_callee_abi to get the ABI of the called
9792 function and clobbers_reg_p to test whether the register
9794 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
9795 to get the ABI of the called function and full_reg_clobbers to
9796 get the set of fully call-clobbered registers. Warn about the
9797 pitfalls of using this mode.
9799 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9801 * reload.c: Include function-abi.h.
9802 (find_equiv_reg): Use clobbers_reg_p to test whether either
9803 of the equivalent registers is clobbered by a call.
9804 * reload1.c: Include function-abi.h.
9805 (reg_reloaded_call_part_clobbered): Delete.
9806 (reload): Use crtl->abi to test which registers would need
9807 saving in the prologue before use.
9808 (find_reg): Likewise.
9809 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
9810 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
9811 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
9813 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9815 * regrename.h (du_head::call_clobber_mask): New field.
9816 (du_head::need_caller_save_reg): Replace with...
9817 (du_head::call_abis): ...this new field.
9818 * regrename.c: Include function-abi.h.
9819 (call_clobbered_in_chain_p): New function.
9820 (check_new_reg_p): Use crtl->abi when deciding whether a register
9821 is free for use after RA. Use call_clobbered_in_chain_p to test
9822 whether a candidate register would be clobbered by a call.
9823 (find_rename_reg): Don't add call-clobber conflicts here.
9824 (rename_chains): Check call_abis instead of need_caller_save_reg.
9825 (merge_chains): Update for changes to du_head.
9826 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
9827 target. Record the ABI identifier in call_abis and the set of
9828 fully or partially clobbered registers in call_clobber_mask.
9829 Add fully-clobbered registers to hard_conflicts here rather
9830 than in find_rename_reg.
9831 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
9832 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
9833 * config/aarch64/falkor-tag-collision-avoidance.c: Include
9835 * config/c6x/c6x.c: Likewise.
9837 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9839 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
9840 mode of the register when deciding whether it is no longer
9841 available after a call.
9843 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9845 * recog.c: Include function-abi.h.
9846 (peep2_find_free_register): Use crtl->abi when deciding whether
9847 a register is free for use after RA.
9849 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9851 * postreload-gcse.c: Include regs.h and function-abi.h.
9852 (record_opr_changes): Use insn_callee_abi to get the ABI of the
9853 call insn target. Conservatively assume that partially-clobbered
9854 registers are altered.
9856 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9858 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
9859 when deciding whether a register is free for use after RA.
9860 (reload_combine): Remove unnecessary use of fixed_reg_set.
9861 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
9862 call insn target. Use reg_mode when testing whether a register
9863 is no longer available.
9865 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9867 * target.def (return_call_with_max_clobbers): Delete.
9868 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9869 * doc/tm.texi: Regenerate.
9870 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
9871 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9872 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
9873 (lra_reg::call_insn): Delete.
9874 * lra.c: Include function-abi.h.
9875 (initialize_lra_reg_info_element): Don't initialize the fields above.
9876 (lra): Use crtl->abi to test whether the current function needs to
9877 save a register in the prologue. Remove special pre-inheritance
9878 lra_create_live_ranges pass for flag_ipa_ra.
9879 * lra-assigns.c: Include function-abi.h
9880 (find_hard_regno_for_1): Use crtl->abi to test whether the current
9881 function needs to save a register in the prologue.
9882 (lra_assign): Assert that registers aren't allocated to a
9883 conflicting register, rather than checking only for overlaps
9884 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
9885 and for registers that are not live across a call.
9886 * lra-constraints.c (last_call_for_abi): New variable.
9887 (full_and_partial_call_clobbers): Likewise.
9888 (setup_next_usage_insn): Remove the register from
9889 full_and_partial_call_clobbers.
9890 (need_for_call_save_p): Use call_clobbered_in_region_p to test
9891 whether the register needs a caller save.
9892 (need_for_split_p): Use full_and_partial_reg_clobbers instead
9893 of call_used_or_fixed_regs.
9894 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
9895 full_and_partial_call_clobbers.
9896 * lra-lives.c (check_pseudos_live_through_calls): Replace
9897 last_call_used_reg_set and call_insn arguments with an abi argument.
9898 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
9899 as the set of conflicting registers.
9900 (calls_have_same_clobbers_p): Delete.
9901 (process_bb_lives): Track the ABI of the last call instead of an
9902 insn/HARD_REG_SET pair. Update calls to
9903 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
9904 the set of registers that could be clobbered by an EH edge.
9905 Include partially-clobbered as well as fully-clobbered registers.
9906 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
9907 * lra-remat.c: Include function-abi.h.
9908 (call_used_regs_arr_len, call_used_regs_arr): Delete.
9909 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
9910 registers and bitmap_view to combine them into dead_regs.
9911 (call_used_input_regno_present_p): Take a function_abi argument
9912 and use it to test whether a register is call-clobbered.
9913 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
9914 call insn target. Update tje call to call_used_input_regno_present_p.
9915 (do_remat): Likewise.
9916 (lra_remat): Remove the initialization of call_used_regs_arr_len
9917 and call_used_regs_arr.
9919 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9921 * loop-iv.c: Include regs.h and function-abi.h.
9922 (simplify_using_initial_values): Use insn_callee_abi to get the
9923 ABI of the call insn target. Conservatively assume that
9924 partially-clobbered registers are altered.
9926 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9928 * function-abi.h (call_clobbers_in_region): Declare.
9929 (call_clobbered_in_region_p): New function.
9930 * function-abi.cc (call_clobbers_in_region): Likewise.
9931 * ira-int.h: Include function-abi.h.
9932 (ira_allocno::crossed_calls_abis): New field.
9933 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
9934 (ira_need_caller_save_regs): New function.
9935 (ira_need_caller_save_p): Likewise.
9936 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
9937 of call_used_or_fixed_regs.
9938 (do_reload): Use crtl->abi to test whether the current function
9939 needs to save a register in the prologue. Count registers that
9940 need to be saved rather than registers that don't.
9941 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
9942 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9943 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
9944 (propagate_some_info_from_allocno): Likewise.
9945 (copy_info_to_removed_store_destinations): Likewise.
9946 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
9947 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
9948 (ira_build): Use ira_need_caller_save_regs instead of
9949 call_used_or_fixed_regs.
9950 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
9951 whether the current function would need to save a register
9953 (calculate_spill_cost): Likewise.
9954 (allocno_reload_assign): Use ira_need_caller_save_regs and
9955 ira_need_caller_save_p instead of call_used_or_fixed_regs.
9956 * ira-conflicts.c (ira_build_conflicts): Use
9957 ira_need_caller_save_regs rather than call_used_or_fixed_regs
9958 as the set of call-clobbered registers. Remove the
9959 call_used_or_fixed_regs mask from the calculation of
9960 temp_hard_reg_set and mask its use instead. Remove special
9961 handling of partially-clobbered registers.
9962 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
9963 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
9964 calculate the set of conflicting registers for calls that
9965 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
9966 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
9967 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9968 Use eh_edge_abi to calculate the set of registers that could
9969 be clobbered by an EH edge. Include partially-clobbered as
9970 well as fully-clobbered registers.
9972 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9974 * haifa-sched.c: Include function-abi.h.
9975 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
9976 the function would need to save a register before using it.
9978 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9980 * gcse.c: Include function-abi.h.
9981 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
9982 the call insn target. Invalidate partially call-clobbered
9983 registers as well as fully call-clobbered ones.
9985 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9987 * function.c (aggregate_value_p): Work out which ABI the
9988 function is using before testing which registers are at least
9989 partly preserved by a call.
9991 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9993 * early-remat.c: Include regs.h and function-abi.h.
9994 (early_remat::maybe_add_candidate): Don't check for call-clobbered
9996 (early_remat::restrict_remat_for_unavail_regs): New function.
9997 (early_remat::restrict_remat_for_call): Likewise.
9998 (early_remat::process_block): Before calling emit_remat_insns
9999 for a previous call in the block, invalidate any candidates
10000 that would clobber call-preserved registers.
10001 (early_remat::emit_remat_insns_for_block): Likewise for the
10002 final call in a block. Do the same thing for live-in registers
10003 when calling emit_remat_insns at the head of a block.
10005 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10007 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10008 whether the current function needs to save at least part of a
10009 register before using it.
10010 (df_get_exit_block_use_set): Likewise for epilogue restores.
10012 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10014 * df-problems.c: Include regs.h and function-abi.h.
10015 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10016 sparse_invalidated_by_eh and dense_invalidated_by_call to
10017 dense_invalidated_by_eh.
10018 (df_print_bb_index): Update accordingly.
10019 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10020 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10021 that are clobbered by an EH edge. Clobber partially-clobbered
10022 registers as well as fully-clobbered ones.
10023 (df_md_confluence_n): Likewise.
10024 (df_rd_local_compute): Likewise. Update for changes to
10025 df_rd_problem_data.
10026 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10027 of registers that are clobbered by an EH edge. Includde partially-
10028 clobbered registers as well as fully-clobbered ones.
10030 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10032 * cselib.c (cselib_process_insn): If we know what mode a
10033 register was set in, check whether it is clobbered in that
10034 mode by a call. Only fall back to reg_raw_mode if that fails.
10036 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10038 * cse.c: Include regs.h and function-abi.h.
10039 (invalidate_for_call): Take the call insn as an argument.
10040 Use insn_callee_abi to get the ABI of the call and invalidate
10041 partially clobbered registers as well as fully clobbered ones.
10042 (cse_insn): Update call accordingly.
10044 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10046 * combine.c: Include function-abi.h.
10047 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10048 of the target of call insns. Invalidate partially-clobbered
10049 registers as well as fully-clobbered ones.
10051 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10053 * cfgloopanal.c: Include regs.h and function-abi.h.
10054 (init_set_costs): Use default_function_abi to test whether
10055 a general register is call-clobbered.
10057 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10059 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10060 instead of the call-clobbered sets.
10062 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10064 * caller-save.c (setup_save_areas): Remove redundant |s of
10066 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10067 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10070 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10072 * rtl.h (predefined_function_abi): Declare.
10073 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10074 instead of a boolean call_save flag.
10075 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10077 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10078 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10079 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10080 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10081 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10082 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10083 * reginfo.c (init_reg_modes_target): Likewise.
10084 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10085 instead of a boolean call_save flag.
10086 * targhooks.c: Include function-abi.h.
10087 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10088 using eh_edge_abi to choose the mode.
10090 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10092 * target.def (hard_regno_call_part_clobbered): Take an ABI
10093 identifier instead of an rtx_insn.
10094 * doc/tm.texi: Regenerate.
10095 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10096 (hook_bool_uint_uint_mode_false): New function.
10097 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10098 (hook_bool_uint_uint_mode_false): New function.
10099 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10100 Take an ABI identifier instead of an rtx_insn.
10101 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10102 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10103 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10104 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10105 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10107 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10108 * cselib.c: Include function-abi.h.
10109 (cselib_process_insn): Update call to
10110 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10111 to get the appropriate ABI identifier.
10112 * function-abi.cc (predefined_function_abi::initialize): Update call
10113 to targetm.hard_regno_call_part_clobbered.
10114 * ira-conflicts.c (ira_build_conflicts): Likewise.
10115 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10116 * lra-constraints.c: Include function-abi.h.
10117 (need_for_call_save_p): Update call to
10118 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10119 to get the appropriate ABI identifier.
10120 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10121 * regcprop.c (copyprop_hardreg_forward_1): Update call
10122 to targetm.hard_regno_call_part_clobbered.
10123 * reginfo.c (choose_hard_reg_mode): Likewise.
10124 * regrename.c (check_new_reg_p): Likewise.
10125 * reload.c (find_equiv_reg): Likewise.
10126 * reload1.c (emit_reload_insns): Likewise.
10127 * sched-deps.c: Include function-abi.h.
10128 (deps_analyze_insn): Update call to
10129 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10130 to get the appropriate ABI identifier.
10131 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10132 call to targetm.hard_regno_call_part_clobbered.
10133 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10137 * config/i386/i386.c: Include function-abi.h.
10138 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10139 if they preserve some 256-bit or 512-bit SSE registers.
10141 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10143 * target.def (insn_callee_abi): New hook.
10144 (remove_extra_call_preserved_regs): Delete.
10145 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10146 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10147 * doc/tm.texi: Regenerate.
10148 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10149 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10150 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10152 (aarch64_remove_extra_call_preserved_regs): Delete.
10153 (aarch64_insn_callee_abi): New function.
10154 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10155 (TARGET_INSN_CALLEE_ABI): New macro.
10156 * rtl.h (get_call_fndecl): Declare.
10157 (cgraph_rtl_info): Fix formatting. Tweak comment for
10158 function_used_regs. Remove function_used_regs_valid.
10159 * rtlanal.c (get_call_fndecl): Moved from final.c
10160 * function-abi.h (insn_callee_abi): Declare.
10161 (target_function_abi_info): Mention insn_callee_abi.
10162 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10163 way to get_call_reg_set_usage did.
10164 (insn_callee_abi): New function.
10165 * regs.h (get_call_reg_set_usage): Delete.
10166 * final.c: Include function-abi.h.
10167 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10168 function_used_regs before the main loop rather than afterwards.
10169 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10170 if function_used_regs ends up not being useful.
10171 (get_call_fndecl): Move to rtlanal.c
10172 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10173 * caller-save.c: Include function-abi.h.
10174 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10175 instead of get_call_reg_set_usage.
10176 * cfgcleanup.c: Include function-abi.h.
10177 (old_insns_match_p): Use insn_callee_abi instead of
10178 get_call_reg_set_usage.
10179 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10181 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10182 function_used_regs.
10183 * df-scan.c: Include function-abi.h.
10184 (df_get_call_refs): Use insn_callee_abi instead of
10185 get_call_reg_set_usage.
10186 * ira-lives.c: Include function-abi.h.
10187 (process_bb_node_lives): Use insn_callee_abi instead of
10188 get_call_reg_set_usage.
10189 * lra-lives.c: Include function-abi.h.
10190 (process_bb_lives): Use insn_callee_abi instead of
10191 get_call_reg_set_usage.
10192 * postreload.c: Include function-abi.h.
10193 (reload_combine): Use insn_callee_abi instead of
10194 get_call_reg_set_usage.
10195 * regcprop.c: Include function-abi.h.
10196 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10197 get_call_reg_set_usage.
10198 * resource.c: Include function-abi.h.
10199 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10200 instead of get_call_reg_set_usage.
10201 * var-tracking.c: Include function-abi.h.
10202 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10203 get_call_reg_set_usage.
10205 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10207 * target.def (fntype_abi): New target hook.
10208 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10209 * doc/tm.texi: Regenerate.
10210 * target.h (predefined_function_abi): Declare.
10211 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10213 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10214 * config/aarch64/aarch64.c: Include function-abi.h.
10215 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10216 (TARGET_FNTYPE_ABI): Define.
10218 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10220 * Makefile.in (OBJS): Add function-abi.o.
10221 (GTFILES): Add function-abi.h.
10222 * function-abi.cc: New file.
10223 * function-abi.h: Likewise.
10224 * emit-rtl.h (rtl_data::abi): New field.
10225 * function.c: Include function-abi.h.
10226 (prepare_function_start): Initialize crtl->abi.
10227 * read-rtl-function.c: Include regs.h and function-abi.h.
10228 (read_rtl_function_body): Initialize crtl->abi.
10229 (read_rtl_function_body_from_file_range): Likewise.
10230 * reginfo.c: Include function-abi.h.
10231 (init_reg_sets_1): Initialize default_function_abi.
10232 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10233 when making a register global.
10234 * target-globals.h (this_target_function_abi_info): Declare.
10235 (target_globals::function_abi_info): New field.
10236 (restore_target_globals): Copy it.
10237 * target-globals.c: Include function-abi.h.
10238 (default_target_globals): Initialize the function_abi_info field.
10239 (target_globals): Allocate it.
10240 (save_target_globals): Free it.
10242 2019-09-30 Nick Clifton <nickc@redhat.com>
10245 * config/frv/frv.c (frv_register_move_cost): Add break statements
10246 to avoid falling through to the wrong cases. Tidy code.
10248 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10250 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10251 For multi-registers modes, test how big each register part is.
10253 2019-09-30 Nick Clifton <nickc@redhat.com>
10256 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10257 (TARGET_ASM_SELECT_SECTION): Remove definition.
10258 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10260 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10262 * emit-rtl.c (init_raw_REG): New function.
10263 (gen_raw_REG): Use init_raw_REG.
10264 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10266 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10267 * rtl.h (rtx_init): New function.
10268 (rtx_alloca): New function.
10269 (init_raw_REG): New function.
10270 (alloca_raw_REG): New macro.
10272 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10274 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10275 (pcrel_local_address): Replace pcrel_address predicate, use the
10276 new function address_to_insn_form.
10277 (pcrel_external_address): Replace with new implementation using
10278 address_to_insn_form..
10279 (prefixed_mem_operand): Delete predicate which is now unused.
10280 (pcrel_external_mem_operand): Delete predicate which is now
10282 * config/rs6000/rs6000-protos.h (enum insn_form): New
10284 (enum non_prefixed_form): New enumeration.
10285 (address_to_insn_form): New declaration.
10286 (prefixed_load_p): New declaration.
10287 (prefixed_store_p): New declaration.
10288 (prefixed_paddi_p): New declaration.
10289 (rs6000_asm_output_opcode): New declaration.
10290 (rs6000_final_prescan_insn): Move declaration and update calling
10292 (address_is_prefixed): New helper inline function.
10293 * config/rs6000/rs6000.c(print_operand_address): Check for either
10294 PC-relative local symbols or PC-relative external symbols.
10295 (rs6000_emit_move): Support loading PC-relative addresses.
10296 (mode_supports_prefixed_address_p): Delete, no longer used.
10297 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10298 (address_to_insn_form): New function to decode an address format.
10299 (reg_to_non_prefixed): New function to identify what the
10300 non-prefixed memory instruction format is for a register.
10301 (prefixed_load_p): New function to identify prefixed loads.
10302 (prefixed_store_p): New function to identify prefixed stores.
10303 (prefixed_paddi_p): New function to identify prefixed load
10305 (next_insn_prefixed_p): New static state variable.
10306 (rs6000_final_prescan_insn): New function to determine if an insn
10307 uses a prefixed instruction.
10308 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10309 prefixed instruction.
10310 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10311 (ASM_OUTPUT_OPCODE): New target hook.
10312 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10313 prefixed instructions.
10314 (prefixed_length): New insn attribute for the size of prefixed
10316 (non_prefixed_length): New insn attribute for the size of
10317 non-prefixed instructions.
10318 (pcrel_local_addr): New insn to load up a local PC-relative
10320 (pcrel_extern_addr): New insn to load up an external PC-relative
10322 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10323 GPR and loading a 128-bit floating point type to a GPR.
10325 2019-09-30 Richard Biener <rguenther@suse.de>
10327 * gimple.c (gimple_get_lhs): For PHIs return the result.
10328 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10329 SLP instance as argument.
10330 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10331 double-reduction PHIs with vectorizable_lc_phi.
10332 (vect_analyze_loop_operations): Adjust.
10333 (vect_create_epilog_for_reduction): Remove all code not dealing
10334 with reduction LC PHI or epilogue generation.
10335 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10336 for live stmts of reductions.
10337 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10338 do not handle defs that are not vect_internal_def.
10339 (can_vectorize_live_stmts): Adjust.
10340 (vect_analyze_stmt): When the vectorized stmt defined a value
10341 used on backedges adjust the backedge uses of vectorized PHIs.
10343 2019-09-30 Martin Jambor <mjambor@suse.cz>
10346 * tree-inline.c (force_value_to_type): New function.
10347 (setup_one_parameter): Use force_value_to_type to convert type.
10348 * tree-inline.c (force_value_to_type): Declare.
10349 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10350 with register type mismatches.
10352 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10354 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10356 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10357 * config/rs6000/t-freebsd64: Make use of the above define and build
10358 the 32-bit libraries with secure-plt.
10360 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10363 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10364 gen_int_mode instead of GEN_INT.
10366 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10368 * config/darwin.c (gen_macho_low): Amend to include the mode
10370 (machopic_indirect_data_reference): Amend gen_macho_low call
10371 to include mode argument
10372 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10373 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10374 the macho_high expander and two define_insn entries.
10376 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10379 * optc-save-gen.awk: Fix up printing string option differences.
10381 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10383 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10384 vec_perm cost to 1 for non-Power7 VSX architectures.
10386 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10388 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10389 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10390 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10392 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10394 * config/darwin.c (gen_macho_high): Amend to include the mode
10396 (machopic_indirect_data_reference): Amend gen_macho_high call
10397 to include mode argument.
10398 (machopic_legitimize_pic_address): Likewise.
10399 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10400 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10401 the macho_high expander and two define_insn entries.
10403 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10406 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10408 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10411 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10412 std::string::compare instead of std::string::find.
10414 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10416 * configure: Regenerate.
10418 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10420 PR middle-end/91920
10421 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10422 variables as shared.
10424 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10426 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10427 replaces the expander and two define_insn entries.
10428 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10430 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10432 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10434 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10435 (fibonacci_heap::nodes): Likewise.
10436 (fibonacci_heap::min_key): Likewise.
10437 (fibonacci_heap::min): Likewise.
10439 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10441 * cgraph.c (cgraph_node::get_fun): Make const.
10442 * cgraph.h (cgraph_node::get_fun): Likewise.
10444 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10447 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10450 2019-09-27 Richard Biener <rguenther@suse.de>
10452 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10453 (STMT_VINFO_REDUC_FN): Likewise.
10454 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10455 STMT_VINFO_REDUC_FN.
10456 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10457 for condition reductions.
10458 (vect_create_epilog_for_reduction): Compute all required state
10459 from the stmt to be vectorized.
10460 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10461 invocation and remove then dead code. For single def-use chains
10462 record only a single vector stmt.
10464 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10466 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10467 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10468 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10469 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10470 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10471 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10472 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10473 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10474 (aarch64_general_builtin_rsqrt): Declare.
10475 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10477 (aarch64_mangle_builtin_type): Rename to...
10478 (aarch64_general_mangle_builtin_type): ...this.
10479 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10480 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10481 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10482 aarch64_general_add_builtin instead of add_builtin_function.
10483 (aarch64_init_builtins): Rename to...
10484 (aarch64_general_init_builtins): ...this. Use
10485 aarch64_general_add_builtin instead of add_builtin_function.
10486 (aarch64_builtin_decl): Rename to...
10487 (aarch64_general_builtin_decl): ...this and remove the unused
10489 (aarch64_expand_builtin): Rename to...
10490 (aarch64_general_expand_builtin): ...this and remove the unused
10492 (aarch64_builtin_rsqrt): Rename to...
10493 (aarch64_general_builtin_rsqrt): ...this.
10494 (aarch64_fold_builtin): Rename to...
10495 (aarch64_general_fold_builtin): ...this. Take the function subcode
10496 and return type as arguments. Remove the "ignored" argument.
10497 (aarch64_gimple_fold_builtin): Rename to...
10498 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10499 subcode and gcall as arguments, and return the new function call.
10500 * config/aarch64/aarch64.c (aarch64_init_builtins)
10501 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10502 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10503 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10504 instead of aarch64_builtin_rsqrt.
10505 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10506 instead of aarch64_mangle_builtin_type.
10508 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10510 * target.def (check_builtin_call): New target hook.
10511 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10512 * doc/tm.texi: Regenerate.
10514 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10516 PR tree-optimization/91909
10517 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10518 reduc_index parameter. When handling COND_REDUCTION, make sure
10519 that the reduction phi operand is in the correct arm of the
10521 (vectorizable_reduction): Pass reduc_index to the above.
10523 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
10525 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10526 New combine pattern.
10528 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
10530 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10531 loop instruction into new basic block before the loop when basic
10532 block that precedes the loop is empty.
10534 2019-09-26 Jakub Jelinek <jakub@redhat.com>
10536 * function.c (gimplify_parameters): Use build_clobber function.
10537 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10538 * tree-inline.c (expand_call_inline): Likewise.
10539 * tree-sra.c (clobber_subtree): Likewise.
10540 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
10541 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
10542 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
10543 lower_omp_target): Likewise.
10544 * omp-expand.c (expand_omp_for_generic): Likewise.
10545 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
10547 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
10549 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
10550 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
10551 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
10552 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
10553 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
10554 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
10555 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
10556 LD_ELEMREV_V16QI): Use the PURE attribute.
10558 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
10560 * config/rs6000/darwin.md: Replace the expanders for
10561 load_macho_picbase and reload_macho_picbase with use of '@'
10562 and <mode> in their respective define_insns.
10563 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
10564 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
10565 Pmode to gen_load_macho_picbase.
10566 * config/rs6000/rs6000.md: Likewise.
10568 2019-09-25 Richard Biener <rguenther@suse.de>
10570 PR tree-optimization/91896
10571 * tree-vect-loop.c (vectorizable_reduction): The single
10572 def-use cycle optimization cannot apply when there's more
10573 than one pattern stmt involved.
10575 2019-09-26 Richard Biener <rguenther@suse.de>
10577 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
10578 loop-closed PHIs that are vect_internal_def.
10579 (vect_create_epilog_for_reduction): Exit early for nested cycles.
10581 (vectorizable_lc_phi): New.
10582 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
10583 (vect_transform_stmt): Likewise.
10584 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
10585 (vectorizable_lc_phi): Declare.
10587 2019-09-26 Richard Biener <rguenther@suse.de>
10589 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
10590 vectorizable_reduction for vect_double_reduction_def.
10591 (vect_transform_loop): Likewise.
10592 (vect_create_epilog_for_reduction): Move double-reduction
10593 PHI creation and preheader argument setting of PHIs ...
10594 (vectorizable_reduction): ... here. Also process
10595 vect_double_reduction_def PHIs, creating the vectorized
10596 PHI nodes, remembering the scalar adjustment computed for
10597 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
10598 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
10599 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
10600 Initialize STMT_VINFO_REDUC_CODE.
10601 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
10602 (_stmt_vec_info::reduc_code): Likewise.
10603 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
10604 (STMT_VINFO_REDUC_CODE): Likewise.
10606 2019-09-26 Matt Turner <mattst88@gmail.com>
10609 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
10610 (mtune=): Add Negative(mtune=).
10611 (mcpu=): Add Negative(mcpu=).
10612 * config/arm/arm.opt: Likewise.
10614 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10616 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10617 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
10619 * config/arm/arm_acle.h: Define builtins for the above.
10620 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
10621 (simd32_op): Handle the above.
10622 * config/arm/unspecs.md: Define unspecs for the above.
10624 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10626 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10627 (arm_<sup>xtb16): Likewise.
10628 (arm_usada8): Likewise.
10629 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
10630 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
10631 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
10632 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
10633 __sxtb16, __uxtab16, __uxtb16): Define.
10634 * config/arm/arm_acle_builtins.def: Define builtins for the above.
10635 * config/arm/unspecs.md: Define unspecs for the above.
10636 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
10637 (USXTB16): Likewise.
10638 (simd32_op): New int_attribute.
10639 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
10640 * doc/sourcebuild.exp (arm_simd32_ok): Document.
10642 2019-09-26 Martin Jambor <mjambor@suse.cz>
10644 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
10647 2019-09-26 Martin Jambor <mjambor@suse.cz>
10649 * ipa-sra.c (process_scan_results): Fix continue condition.
10651 2019-09-26 Martin Liska <mliska@suse.cz>
10653 PR tree-optimization/91885
10654 * tree-vectorizer.c (try_vectorize_loop_1): Add
10655 TODO_update_ssa_only_virtuals similarly to what slp pass does.
10657 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
10659 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
10660 aarch64_plus_immediate rather than aarch64_uimm12_shift
10661 to test for valid PLUS immediates.
10663 2019-09-25 Martin Jambor <mjambor@suse.cz>
10665 * tree-sra.c (no_accesses_p): Remove.
10666 (no_accesses_representant): Likewise.
10668 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10670 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
10672 (vaba_s16): Likewise.
10673 (vaba_s32): Likewise.
10674 (vaba_u8): Likewise.
10675 (vaba_u16): Likewise.
10676 (vaba_u32): Likewise.
10677 (vabal_high_s8): Likewise.
10678 (vabal_high_s16): Likewise.
10679 (vabal_high_s32): Likewise.
10680 (vabal_high_u8): Likewise.
10681 (vabal_high_u16): Likewise.
10682 (vabal_high_u32): Likewise.
10683 (vabal_s8): Likewise.
10684 (vabal_s16): Likewise.
10685 (vabal_s32): Likewise.
10686 (vabal_u8): Likewise.
10687 (vabal_u16): Likewise.
10688 (vabal_u32): Likewise.
10689 (vabaq_s8): Likewise.
10690 (vabaq_s16): Likewise.
10691 (vabaq_s32): Likewise.
10692 (vabaq_u8): Likewise.
10693 (vabaq_u16): Likewise.
10694 (vabaq_u32): Likewise.
10695 (vabd_s8): Likewise.
10696 (vabd_s16): Likewise.
10697 (vabd_s32): Likewise.
10698 (vabd_u8): Likewise.
10699 (vabd_u16): Likewise.
10700 (vabd_u32): Likewise.
10701 (vabdl_high_s8): Likewise.
10702 (vabdl_high_s16): Likewise.
10703 (vabdl_high_s32): Likewise.
10704 (vabdl_high_u8): Likewise.
10705 (vabdl_high_u16): Likewise.
10706 (vabdl_high_u32): Likewise.
10707 (vabdl_s8): Likewise.
10708 (vabdl_s16): Likewise.
10709 (vabdl_s32): Likewise.
10710 (vabdl_u8): Likewise.
10711 (vabdl_u16): Likewise.
10712 (vabdl_u32): Likewise.
10713 (vabdq_s8): Likewise.
10714 (vabdq_s16): Likewise.
10715 (vabdq_s32): Likewise.
10716 (vabdq_u8): Likewise.
10717 (vabdq_u16): Likewise.
10718 (vabdq_u32): Likewise.
10719 (vaddlv_s8): Likewise.
10720 (vaddlv_s16): Likewise.
10721 (vaddlv_u8): Likewise.
10722 (vaddlv_u16): Likewise.
10723 (vaddlvq_s8): Likewise.
10724 (vaddlvq_s16): Likewise.
10725 (vaddlvq_s32): Likewise.
10726 (vaddlvq_u8): Likewise.
10727 (vaddlvq_u16): Likewise.
10728 (vaddlvq_u32): Likewise.
10729 (vcvtx_f32_f64): Likewise.
10730 (vcvtx_high_f32_f64): Likewise.
10731 (vcvtxd_f32_f64): Likewise.
10732 (vmla_n_f32): Likewise.
10733 (vmla_n_s16): Likewise.
10734 (vmla_n_s32): Likewise.
10735 (vmla_n_u16): Likewise.
10736 (vmla_n_u32): Likewise.
10737 (vmla_s8): Likewise.
10738 (vmla_s16): Likewise.
10739 (vmla_s32): Likewise.
10740 (vmla_u8): Likewise.
10741 (vmla_u16): Likewise.
10742 (vmla_u32): Likewise.
10743 (vmlal_high_n_s16): Likewise.
10744 (vmlal_high_n_s32): Likewise.
10745 (vmlal_high_n_u16): Likewise.
10746 (vmlal_high_n_u32): Likewise.
10747 (vmlal_high_s8): Likewise.
10748 (vmlal_high_s16): Likewise.
10749 (vmlal_high_s32): Likewise.
10750 (vmlal_high_u8): Likewise.
10751 (vmlal_high_u16): Likewise.
10752 (vmlal_high_u32): Likewise.
10753 (vmlal_n_s16): Likewise.
10754 (vmlal_n_s32): Likewise.
10755 (vmlal_n_u16): Likewise.
10756 (vmlal_n_u32): Likewise.
10757 (vmlal_s8): Likewise.
10758 (vmlal_s16): Likewise.
10759 (vmlal_s32): Likewise.
10760 (vmlal_u8): Likewise.
10761 (vmlal_u16): Likewise.
10762 (vmlal_u32): Likewise.
10763 (vmlaq_n_f32): Likewise.
10764 (vmlaq_n_s16): Likewise.
10765 (vmlaq_n_s32): Likewise.
10766 (vmlaq_n_u16): Likewise.
10767 (vmlaq_n_u32): Likewise.
10768 (vmlaq_s8): Likewise.
10769 (vmlaq_s16): Likewise.
10770 (vmlaq_s32): Likewise.
10771 (vmlaq_u8): Likewise.
10772 (vmlaq_u16): Likewise.
10773 (vmlaq_u32): Likewise.
10774 (vmls_n_f32): Likewise.
10775 (vmls_n_s16): Likewise.
10776 (vmls_n_s32): Likewise.
10777 (vmls_n_u16): Likewise.
10778 (vmls_n_u32): Likewise.
10779 (vmls_s8): Likewise.
10780 (vmls_s16): Likewise.
10781 (vmls_s32): Likewise.
10782 (vmls_u8): Likewise.
10783 (vmls_u16): Likewise.
10784 (vmls_u32): Likewise.
10785 (vmlsl_high_n_s16): Likewise.
10786 (vmlsl_high_n_s32): Likewise.
10787 (vmlsl_high_n_u16): Likewise.
10788 (vmlsl_high_n_u32): Likewise.
10789 (vmlsl_high_s8): Likewise.
10790 (vmlsl_high_s16): Likewise.
10791 (vmlsl_high_s32): Likewise.
10792 (vmlsl_high_u8): Likewise.
10793 (vmlsl_high_u16): Likewise.
10794 (vmlsl_high_u32): Likewise.
10795 (vmlsl_n_s16): Likewise.
10796 (vmlsl_n_s32): Likewise.
10797 (vmlsl_n_u16): Likewise.
10798 (vmlsl_n_u32): Likewise.
10799 (vmlsl_s8): Likewise.
10800 (vmlsl_s16): Likewise.
10801 (vmlsl_s32): Likewise.
10802 (vmlsl_u8): Likewise.
10803 (vmlsl_u16): Likewise.
10804 (vmlsl_u32): Likewise.
10805 (vmlsq_n_f32): Likewise.
10806 (vmlsq_n_s16): Likewise.
10807 (vmlsq_n_s32): Likewise.
10808 (vmlsq_n_u16): Likewise.
10809 (vmlsq_n_u32): Likewise.
10810 (vmlsq_s8): Likewise.
10811 (vmlsq_s16): Likewise.
10812 (vmlsq_s32): Likewise.
10813 (vmlsq_u8): Likewise.
10814 (vmlsq_u16): Likewise.
10815 (vmlsq_u32): Likewise.
10816 (vmovl_high_s8): Likewise.
10817 (vmovl_high_s16): Likewise.
10818 (vmovl_high_s32): Likewise.
10819 (vmovl_high_u8): Likewise.
10820 (vmovl_high_u16): Likewise.
10821 (vmovl_high_u32): Likewise.
10822 (vmovl_s8): Likewise.
10823 (vmovl_s16): Likewise.
10824 (vmovl_s32): Likewise.
10825 (vmovl_u8): Likewise.
10826 (vmovl_u16): Likewise.
10827 (vmovl_u32): Likewise.
10828 (vmovn_high_s16): Likewise.
10829 (vmovn_high_s32): Likewise.
10830 (vmovn_high_s64): Likewise.
10831 (vmovn_high_u16): Likewise.
10832 (vmovn_high_u32): Likewise.
10833 (vmovn_high_u64): Likewise.
10834 (vmovn_s16): Likewise.
10835 (vmovn_s32): Likewise.
10836 (vmovn_s64): Likewise.
10837 (vmovn_u16): Likewise.
10838 (vmovn_u32): Likewise.
10839 (vmovn_u64): Likewise.
10840 (vmull_high_n_s16): Likewise.
10841 (vmull_high_n_s32): Likewise.
10842 (vmull_high_n_u16): Likewise.
10843 (vmull_high_n_u32): Likewise.
10844 (vmull_high_p8): Likewise.
10845 (vmull_high_s8): Likewise.
10846 (vmull_high_s16): Likewise.
10847 (vmull_high_s32): Likewise.
10848 (vmull_high_u8): Likewise.
10849 (vmull_high_u16): Likewise.
10850 (vmull_high_u32): Likewise.
10851 (vmull_n_s16): Likewise.
10852 (vmull_n_s32): Likewise.
10853 (vmull_n_u16): Likewise.
10854 (vmull_n_u32): Likewise.
10855 (vmull_p8): Likewise.
10856 (vmull_s8): Likewise.
10857 (vmull_s16): Likewise.
10858 (vmull_s32): Likewise.
10859 (vmull_u8): Likewise.
10860 (vmull_u16): Likewise.
10861 (vmull_u32): Likewise.
10862 (vpadal_s8): Likewise.
10863 (vpadal_s16): Likewise.
10864 (vpadal_s32): Likewise.
10865 (vpadal_u8): Likewise.
10866 (vpadal_u16): Likewise.
10867 (vpadal_u32): Likewise.
10868 (vpadalq_s8): Likewise.
10869 (vpadalq_s16): Likewise.
10870 (vpadalq_s32): Likewise.
10871 (vpadalq_u8): Likewise.
10872 (vpadalq_u16): Likewise.
10873 (vpadalq_u32): Likewise.
10874 (vpaddl_s8): Likewise.
10875 (vpaddl_s16): Likewise.
10876 (vpaddl_s32): Likewise.
10877 (vpaddl_u8): Likewise.
10878 (vpaddl_u16): Likewise.
10879 (vpaddl_u32): Likewise.
10880 (vpaddlq_s8): Likewise.
10881 (vpaddlq_s16): Likewise.
10882 (vpaddlq_s32): Likewise.
10883 (vpaddlq_u8): Likewise.
10884 (vpaddlq_u16): Likewise.
10885 (vpaddlq_u32): Likewise.
10886 (vpaddq_s8): Likewise.
10887 (vpaddq_s16): Likewise.
10888 (vpaddq_s32): Likewise.
10889 (vpaddq_s64): Likewise.
10890 (vpaddq_u8): Likewise.
10891 (vpaddq_u16): Likewise.
10892 (vpaddq_u32): Likewise.
10893 (vpaddq_u64): Likewise.
10894 (vqdmulh_n_s16): Likewise.
10895 (vqdmulh_n_s32): Likewise.
10896 (vqdmulhq_n_s16): Likewise.
10897 (vqdmulhq_n_s32): Likewise.
10898 (vqmovn_high_s16): Likewise.
10899 (vqmovn_high_s32): Likewise.
10900 (vqmovn_high_s64): Likewise.
10901 (vqmovn_high_u16): Likewise.
10902 (vqmovn_high_u32): Likewise.
10903 (vqmovn_high_u64): Likewise.
10904 (vqmovun_high_s16): Likewise.
10905 (vqmovun_high_s32): Likewise.
10906 (vqmovun_high_s64): Likewise.
10907 (vqrdmulh_n_s16): Likewise.
10908 (vqrdmulh_n_s32): Likewise.
10909 (vqrdmulhq_n_s16): Likewise.
10910 (vqrdmulhq_n_s32): Likewise.
10911 (vrsqrte_u32): Likewise.
10912 (vrsqrteq_u32): Likewise.
10913 (vtst_p8): Likewise.
10914 (vtst_p16): Likewise.
10915 (vtst_p64): Likewise.
10916 (vtstq_p8): Likewise.
10917 (vtstq_p16): Likewise.
10918 (vtstq_p64): Likewise.
10919 (vaddlv_s32): Likewise.
10920 (vaddlv_u32): Likewise.
10921 (vqtbl1_p8): Likewise.
10922 (vqtbl1_s8): Likewise.
10923 (vqtbl1_u8): Likewise.
10924 (vqtbl1q_p8): Likewise.
10925 (vqtbl1q_s8): Likewise.
10926 (vqtbl1q_u8): Likewise.
10927 (vqtbx1_s8): Likewise.
10928 (vqtbx1_u8): Likewise.
10929 (vqtbx1_p8): Likewise.
10930 (vqtbx1q_s8): Likewise.
10931 (vqtbx1q_u8): Likewise.
10932 (vqtbx1q_p8): Likewise.
10933 (vtbl1_s8): Likewise.
10934 (vtbl1_u8): Likewise.
10935 (vtbl1_p8): Likewise.
10936 (vtbl2_s8): Likewise.
10937 (vtbl2_u8): Likewise.
10938 (vtbl2_p8): Likewise.
10939 (vtbl3_s8): Likewise.
10940 (vtbl3_u8): Likewise.
10941 (vtbl3_p8): Likewise.
10942 (vtbl4_s8): Likewise.
10943 (vtbl4_u8): Likewise.
10944 (vtbl4_p8): Likewise.
10945 (vtbx2_s8): Likewise.
10946 (vtbx2_u8): Likewise.
10947 (vtbx2_p8): Likewise.
10948 (vld1_f32): Likewise.
10949 (vld1_f64): Likewise.
10950 (vld1_p8): Likewise.
10951 (vld1_p16): Likewise.
10952 (vld1_p64): Likewise.
10953 (vld1_s8): Likewise.
10954 (vld1_s16): Likewise.
10955 (vld1_s32): Likewise.
10956 (vld1_s64): Likewise.
10957 (vld1_u8): Likewise.
10958 (vld1_u16): Likewise.
10959 (vld1_u32): Likewise.
10960 (vld1_u64): Likewise.
10961 (vld1q_f32): Likewise.
10962 (vld1q_f64): Likewise.
10963 (vld1q_p8): Likewise.
10964 (vld1q_p16): Likewise.
10965 (vld1q_p64): Likewise.
10966 (vld1q_s8): Likewise.
10967 (vld1q_s16): Likewise.
10968 (vld1q_s32): Likewise.
10969 (vld1q_s64): Likewise.
10970 (vld1q_u8): Likewise.
10971 (vld1q_u16): Likewise.
10972 (vld1q_u32): Likewise.
10973 (vld1q_u64): Likewise.
10974 (vpmax_s8): Likewise.
10975 (vpmax_s16): Likewise.
10976 (vpmax_s32): Likewise.
10977 (vpmax_u8): Likewise.
10978 (vpmax_u16): Likewise.
10979 (vpmax_u32): Likewise.
10980 (vpmaxq_s8): Likewise.
10981 (vpmaxq_s16): Likewise.
10982 (vpmaxq_s32): Likewise.
10983 (vpmaxq_u8): Likewise.
10984 (vpmaxq_u16): Likewise.
10985 (vpmaxq_u32): Likewise.
10986 (vpmax_f32): Likewise.
10987 (vpmaxq_f32): Likewise.
10988 (vpmaxq_f64): Likewise.
10989 (vpmaxqd_f64): Likewise.
10990 (vpmaxs_f32): Likewise.
10991 (vpmaxnm_f32): Likewise.
10992 (vpmaxnmq_f32): Likewise.
10993 (vpmaxnmq_f64): Likewise.
10994 (vpmaxnmqd_f64): Likewise.
10995 (vpmaxnms_f32): Likewise.
10996 (vpmin_s8): Likewise.
10997 (vpmin_s16): Likewise.
10998 (vpmin_s32): Likewise.
10999 (vpmin_u8): Likewise.
11000 (vpmin_u16): Likewise.
11001 (vpmin_u32): Likewise.
11002 (vpminq_s8): Likewise.
11003 (vpminq_s16): Likewise.
11004 (vpminq_s32): Likewise.
11005 (vpminq_u8): Likewise.
11006 (vpminq_u16): Likewise.
11007 (vpminq_u32): Likewise.
11008 (vpmin_f32): Likewise.
11009 (vpminq_f32): Likewise.
11010 (vpminq_f64): Likewise.
11011 (vpminqd_f64): Likewise.
11012 (vpmins_f32): Likewise.
11013 (vpminnm_f32): Likewise.
11014 (vpminnmq_f32): Likewise.
11015 (vpminnmq_f64): Likewise.
11016 (vpminnmqd_f64): Likewise.
11017 (vpminnms_f32): Likewise.
11018 (vmla_f32): Likewise.
11019 (vmlaq_f32): Likewise.
11020 (vmlaq_f64): Likewise.
11021 (vmls_f32): Likewise.
11022 (vmlsq_f32): Likewise.
11023 (vmlsq_f64): Likewise.
11024 (vqtbl2_s8): Likewise.
11025 (vqtbl2_u8): Likewise.
11026 (vqtbl2_p8): Likewise.
11027 (vqtbl2q_s8): Likewise.
11028 (vqtbl2q_u8): Likewise.
11029 (vqtbl2q_p8): Likewise.
11030 (vqtbl3_s8): Likewise.
11031 (vqtbl3_u8): Likewise.
11032 (vqtbl3_p8): Likewise.
11033 (vqtbl3q_s8): Likewise.
11034 (vqtbl3q_u8): Likewise.
11035 (vqtbl3q_p8): Likewise.
11036 (vqtbl4_s8): Likewise.
11037 (vqtbl4_u8): Likewise.
11038 (vqtbl4_p8): Likewise.
11039 (vqtbl4q_s8): Likewise.
11040 (vqtbl4q_u8): Likewise.
11041 (vqtbl4q_p8): Likewise.
11042 (vqtbx2_s8): Likewise.
11043 (vqtbx2_u8): Likewise.
11044 (vqtbx2_p8): Likewise.
11045 (vqtbx2q_s8): Likewise.
11046 (vqtbx2q_u8): Likewise.
11047 (vqtbx2q_p8): Likewise.
11048 (vqtbx3_s8): Likewise.
11049 (vqtbx3_u8): Likewise.
11050 (vqtbx3_p8): Likewise.
11051 (vqtbx3q_s8): Likewise.
11052 (vqtbx3q_u8): Likewise.
11053 (vqtbx3q_p8): Likewise.
11054 (vqtbx4_s8): Likewise.
11055 (vqtbx4_u8): Likewise.
11056 (vqtbx4_p8): Likewise.
11057 (vqtbx4q_s8): Likewise.
11058 (vqtbx4q_u8): Likewise.
11059 (vqtbx4q_p8): Likewise.
11060 (vrev16_p8): Likewise.
11061 (vrev16_s8): Likewise.
11062 (vrev16_u8): Likewise.
11063 (vrev16q_p8): Likewise.
11064 (vrev16q_s8): Likewise.
11065 (vrev16q_u8): Likewise.
11066 (vrev32_p8): Likewise.
11067 (vrev32_p16): Likewise.
11068 (vrev32_s8): Likewise.
11069 (vrev32_s16): Likewise.
11070 (vrev32_u8): Likewise.
11071 (vrev32_u16): Likewise.
11072 (vrev32q_p8): Likewise.
11073 (vrev32q_p16): Likewise.
11074 (vrev32q_s8): Likewise.
11075 (vrev32q_s16): Likewise.
11076 (vrev32q_u8): Likewise.
11077 (vrev32q_u16): Likewise.
11078 (vrev64_f32): Likewise.
11079 (vrev64_p8): Likewise.
11080 (vrev64_p16): Likewise.
11081 (vrev64_s8): Likewise.
11082 (vrev64_s16): Likewise.
11083 (vrev64_s32): Likewise.
11084 (vrev64_u8): Likewise.
11085 (vrev64_u16): Likewise.
11086 (vrev64_u32): Likewise.
11087 (vrev64q_f32): Likewise.
11088 (vrev64q_p8): Likewise.
11089 (vrev64q_p16): Likewise.
11090 (vrev64q_s8): Likewise.
11091 (vrev64q_s16): Likewise.
11092 (vrev64q_s32): Likewise.
11093 (vrev64q_u8): Likewise.
11094 (vrev64q_u16): Likewise.
11095 (vrev64q_u32): Likewise.
11096 (vsha1cq_u32): Likewise.
11097 (vsha1mq_u32): Likewise.
11098 (vsha1pq_u32): Likewise.
11099 (vsha1h_u32): Likewise.
11100 (vsha1su0q_u32): Likewise.
11101 (vsha1su1q_u32): Likewise.
11102 (vsha256hq_u32): Likewise.
11103 (vsha256h2q_u32): Likewise.
11104 (vsha256su0q_u32): Likewise.
11105 (vsha256su1q_u32): Likewise.
11106 (vmull_p64): Likewise.
11107 (vmull_high_p64): Likewise.
11108 (vsqrt_f32): Likewise.
11109 (vsqrtq_f32): Likewise.
11110 (vsqrt_f64): Likewise.
11111 (vsqrtq_f64): Likewise.
11112 (vst1_f32): Likewise.
11113 (vst1_f64): Likewise.
11114 (vst1_p8): Likewise.
11115 (vst1_p16): Likewise.
11116 (vst1_p64): Likewise.
11117 (vst1_s8): Likewise.
11118 (vst1_s16): Likewise.
11119 (vst1_s32): Likewise.
11120 (vst1_s64): Likewise.
11121 (vst1_u8): Likewise.
11122 (vst1_u16): Likewise.
11123 (vst1_u32): Likewise.
11124 (vst1_u64): Likewise.
11125 (vst1q_f32): Likewise.
11126 (vst1q_f64): Likewise.
11127 (vst1q_p8): Likewise.
11128 (vst1q_p16): Likewise.
11129 (vst1q_p64): Likewise.
11130 (vst1q_s8): Likewise.
11131 (vst1q_s16): Likewise.
11132 (vst1q_s32): Likewise.
11133 (vst1q_s64): Likewise.
11134 (vst1q_u8): Likewise.
11135 (vst1q_u16): Likewise.
11136 (vst1q_u32): Likewise.
11137 (vst1q_u64): Likewise.
11138 (vst1_s64_x2): Likewise.
11139 (vst1_u64_x2): Likewise.
11140 (vst1_f64_x2): Likewise.
11141 (vst1_s8_x2): Likewise.
11142 (vst1_p8_x2): Likewise.
11143 (vst1_s16_x2): Likewise.
11144 (vst1_p16_x2): Likewise.
11145 (vst1_s32_x2): Likewise.
11146 (vst1_u8_x2): Likewise.
11147 (vst1_u16_x2): Likewise.
11148 (vst1_u32_x2): Likewise.
11149 (vst1_f16_x2): Likewise.
11150 (vst1_f32_x2): Likewise.
11151 (vst1_p64_x2): Likewise.
11152 (vst1q_s8_x2): Likewise.
11153 (vst1q_p8_x2): Likewise.
11154 (vst1q_s16_x2): Likewise.
11155 (vst1q_p16_x2): Likewise.
11156 (vst1q_s32_x2): Likewise.
11157 (vst1q_s64_x2): Likewise.
11158 (vst1q_u8_x2): Likewise.
11159 (vst1q_u16_x2): Likewise.
11160 (vst1q_u32_x2): Likewise.
11161 (vst1q_u64_x2): Likewise.
11162 (vst1q_f16_x2): Likewise.
11163 (vst1q_f32_x2): Likewise.
11164 (vst1q_f64_x2): Likewise.
11165 (vst1q_p64_x2): Likewise.
11166 (vst1_s64_x3): Likewise.
11167 (vst1_u64_x3): Likewise.
11168 (vst1_f64_x3): Likewise.
11169 (vst1_s8_x3): Likewise.
11170 (vst1_p8_x3): Likewise.
11171 (vst1_s16_x3): Likewise.
11172 (vst1_p16_x3): Likewise.
11173 (vst1_s32_x3): Likewise.
11174 (vst1_u8_x3): Likewise.
11175 (vst1_u16_x3): Likewise.
11176 (vst1_u32_x3): Likewise.
11177 (vst1_f16_x3): Likewise.
11178 (vst1_f32_x3): Likewise.
11179 (vst1_p64_x3): Likewise.
11180 (vst1q_s8_x3): Likewise.
11181 (vst1q_p8_x3): Likewise.
11182 (vst1q_s16_x3): Likewise.
11183 (vst1q_p16_x3): Likewise.
11184 (vst1q_s32_x3): Likewise.
11185 (vst1q_s64_x3): Likewise.
11186 (vst1q_u8_x3): Likewise.
11187 (vst1q_u16_x3): Likewise.
11188 (vst1q_u32_x3): Likewise.
11189 (vst1q_u64_x3): Likewise.
11190 (vst1q_f16_x3): Likewise.
11191 (vst1q_f32_x3): Likewise.
11192 (vst1q_f64_x3): Likewise.
11193 (vst1q_p64_x3): Likewise.
11194 (vst2_s64): Likewise.
11195 (vst2_u64): Likewise.
11196 (vst2_f64): Likewise.
11197 (vst2_s8): Likewise.
11198 (vst2_p8): Likewise.
11199 (vst2_s16): Likewise.
11200 (vst2_p16): Likewise.
11201 (vst2_s32): Likewise.
11202 (vst2_u8): Likewise.
11203 (vst2_u16): Likewise.
11204 (vst2_u32): Likewise.
11205 (vst2_f16): Likewise.
11206 (vst2_f32): Likewise.
11207 (vst2_p64): Likewise.
11208 (vst2q_s8): Likewise.
11209 (vst2q_p8): Likewise.
11210 (vst2q_s16): Likewise.
11211 (vst2q_p16): Likewise.
11212 (vst2q_s32): Likewise.
11213 (vst2q_s64): Likewise.
11214 (vst2q_u8): Likewise.
11215 (vst2q_u16): Likewise.
11216 (vst2q_u32): Likewise.
11217 (vst2q_u64): Likewise.
11218 (vst2q_f16): Likewise.
11219 (vst2q_f32): Likewise.
11220 (vst2q_f64): Likewise.
11221 (vst2q_p64): Likewise.
11222 (vst3_s64): Likewise.
11223 (vst3_u64): Likewise.
11224 (vst3_f64): Likewise.
11225 (vst3_s8): Likewise.
11226 (vst3_p8): Likewise.
11227 (vst3_s16): Likewise.
11228 (vst3_p16): Likewise.
11229 (vst3_s32): Likewise.
11230 (vst3_u8): Likewise.
11231 (vst3_u16): Likewise.
11232 (vst3_u32): Likewise.
11233 (vst3_f16): Likewise.
11234 (vst3_f32): Likewise.
11235 (vst3_p64): Likewise.
11236 (vst3q_s8): Likewise.
11237 (vst3q_p8): Likewise.
11238 (vst3q_s16): Likewise.
11239 (vst3q_p16): Likewise.
11240 (vst3q_s32): Likewise.
11241 (vst3q_s64): Likewise.
11242 (vst3q_u8): Likewise.
11243 (vst3q_u16): Likewise.
11244 (vst3q_u32): Likewise.
11245 (vst3q_u64): Likewise.
11246 (vst3q_f16): Likewise.
11247 (vst3q_f32): Likewise.
11248 (vst3q_f64): Likewise.
11249 (vst3q_p64): Likewise.
11250 (vst4_s64): Likewise.
11251 (vst4_u64): Likewise.
11252 (vst4_f64): Likewise.
11253 (vst4_s8): Likewise.
11254 (vst4_p8): Likewise.
11255 (vst4_s16): Likewise.
11256 (vst4_p16): Likewise.
11257 (vst4_s32): Likewise.
11258 (vst4_u8): Likewise.
11259 (vst4_u16): Likewise.
11260 (vst4_u32): Likewise.
11261 (vst4_f16): Likewise.
11262 (vst4_f32): Likewise.
11263 (vst4_p64): Likewise.
11264 (vst4q_s8): Likewise.
11265 (vst4q_p8): Likewise.
11266 (vst4q_s16): Likewise.
11267 (vst4q_p16): Likewise.
11268 (vst4q_s32): Likewise.
11269 (vst4q_s64): Likewise.
11270 (vst4q_u8): Likewise.
11271 (vst4q_u16): Likewise.
11272 (vst4q_u32): Likewise.
11273 (vst4q_u64): Likewise.
11274 (vst4q_f16): Likewise.
11275 (vst4q_f32): Likewise.
11276 (vst4q_f64): Likewise.
11277 (vst4q_p64): Likewise.
11278 (vtbx4_s8): Likewise.
11279 (vtbx4_u8): Likewise.
11280 (vtbx4_p8): Likewise.
11281 (vtrn_f32): Likewise.
11282 (vtrn_p8): Likewise.
11283 (vtrn_p16): Likewise.
11284 (vtrn_s8): Likewise.
11285 (vtrn_s16): Likewise.
11286 (vtrn_s32): Likewise.
11287 (vtrn_u8): Likewise.
11288 (vtrn_u16): Likewise.
11289 (vtrn_u32): Likewise.
11290 (vtrnq_f32): Likewise.
11291 (vtrnq_p8): Likewise.
11292 (vtrnq_p16): Likewise.
11293 (vtrnq_s8): Likewise.
11294 (vtrnq_s16): Likewise.
11295 (vtrnq_s32): Likewise.
11296 (vtrnq_u8): Likewise.
11297 (vtrnq_u16): Likewise.
11298 (vtrnq_u32): Likewise.
11299 (vrsqrte_f16): Likewise.
11300 (vrsqrteq_f16): Likewise.
11301 (vsqrt_f16): Likewise.
11302 (vsqrtq_f16): Likewise.
11303 (vabd_f16): Likewise.
11304 (vabdq_f16): Likewise.
11305 (vpadd_f16): Likewise.
11306 (vpaddq_f16): Likewise.
11307 (vpmax_f16): Likewise.
11308 (vpmaxq_f16): Likewise.
11309 (vpmaxnm_f16): Likewise.
11310 (vpmaxnmq_f16): Likewise.
11311 (vpmin_f16): Likewise.
11312 (vpminq_f16): Likewise.
11313 (vpminnm_f16): Likewise.
11314 (vpminnmq_f16): Likewise.
11315 (vrsqrts_f16): Likewise.
11316 (vrsqrtsq_f16): Likewise.
11318 2019-09-25 Richard Biener <rguenther@suse.de>
11320 PR tree-optimization/91896
11321 * tree-vect-loop.c (vectorizable_reduction): The single
11322 def-use cycle optimization cannot apply when there's more
11323 than one pattern stmt involved.
11325 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11327 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11328 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11329 (reload_macho_picbase_<mode>): Likewise.
11331 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11333 * config/rs6000/rs6000.md: Move darwin.md include until
11334 after the definition of the mode iterators.
11336 2019-09-23 Martin Sebor <msebor@redhat.com>
11338 PR tree-optimization/91570
11339 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11340 non-constant minlen, maxlen and maxbound.
11342 2019-09-24 Richard Biener <rguenther@suse.de>
11344 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11346 (_stmt_vec_info::cond_reduc_code): ... this.
11347 (_stmt_vec_info::induc_cond_initial_val): Add.
11348 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11349 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11350 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11351 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11352 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11353 the reduction code.
11354 (vect_create_epilog_for_reduction): Drop special
11355 induction condition reduction params, pass in reduction code
11357 (vectorizable_reduction): Perform condition reduction kind
11358 selection only at analysis time. Adjust passing on state.
11360 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11362 * config/aarch64/aarch64.md (mov<mode>): Don't call
11363 aarch64_split_dimode_const_store on volatile MEM.
11365 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11367 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11368 Update hwcap string for fp16fml.
11370 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11372 PR middle-end/91866
11373 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11374 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11376 2019-09-24 Martin Liska <mliska@suse.cz>
11378 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11379 instead of if-elseif-elseif-...
11380 * gimple-expr.c (extract_ops_from_tree): Likewise.
11381 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11382 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11384 2019-09-24 Martin Jambor <mjambor@suse.cz>
11387 * ipa-param-manipulation.c (carry_over_param): Make a method of
11388 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11389 in case of a context mismatch.
11390 (ipa_param_body_adjustments::common_initialization): Adjust call to
11392 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11393 private method carry_over_param.
11395 2019-09-24 Martin Jambor <mjambor@suse.cz>
11398 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11400 2019-09-24 Richard Biener <rguenther@suse.de>
11402 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11405 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11407 * config/arm/t-arm (arm-builtins.o): Add dependency on
11408 arm_acle_builtins.def.
11410 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11413 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11414 canonical CONST_INTs. Use gen_rtvec.
11416 2019-09-23 Richard Biener <rguenther@suse.de>
11418 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11419 avoid adjusting by + 0 or * 1.
11420 (vect_create_epilog_for_reduction): Get reduction code only
11421 when necessary. Deal with adjustment_def only when necessary.
11423 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11425 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11428 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11431 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11434 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11436 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11437 code. Merge code blocks with common conditionals. Use declared
11438 macro instead of a magic number for PIC level.
11440 2019-09-21 Martin Sebor <msebor@redhat.com>
11442 PR middle-end/91830
11443 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11444 Simplify computation of the offset of the referenced subobject.
11446 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11448 * config/darwin.c (machopic_legitimize_pic_address): Check
11449 for lra not reload.
11451 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11453 * ira-conflicts.c (can_use_same_reg_p): New function.
11454 (process_reg_shuffles): Take an insn parameter. Ignore cases
11455 in which input operand op_num could seemingly never be allocated
11456 to the same register as the destination.
11457 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11459 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11461 * simplify-rtx.c (neg_const_int): Replace with...
11462 (neg_poly_int_rtx): ...this new function.
11463 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11464 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11465 (simplify_plus_minus): Likewise for constant terms here.
11467 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11469 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11470 HOST_WIDE_PRINT_UNSIGNED.
11472 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11474 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11477 2019-09-20 Maya Rashish <coypu@sdf.org>
11480 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11481 Define to speculation_safe_value_not_needed.
11483 2019-09-20 Richard Biener <rguenther@suse.de>
11484 Uros Bizjak <ubizjak@gmail.com>
11487 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11489 (general_scalar_chain::convert_op): Force not suitable memory
11490 operands to a register.
11492 2019-09-20 Richard Biener <rguenther@suse.de>
11494 PR tree-optimization/91821
11495 * tree-vect-loop.c (check_reduction_path): Check we can compute
11497 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11498 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11499 operands in canonical order.
11500 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11501 STMT_VINFO_REDUC_IDX.
11502 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11503 (STMT_VINFO_REDUC_IDX): Likewise.
11505 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11508 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11510 2019-09-20 Richard Biener <rguenther@suse.de>
11512 PR tree-optimization/91822
11513 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11515 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11516 for reduc_index in nested cycles, adjust vectorizable_condition
11518 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11520 (vect_analyze_stmt): Adjust.
11521 (vect_transform_stmt): Likewise.
11523 2019-09-20 Richard Biener <rguenther@suse.de>
11526 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11527 Ensure there's a sequence point between allocating the new register
11528 and passing a reference to a reg via regno_reg_rtx.
11530 2019-09-20 Martin Jambor <mjambor@suse.cz>
11532 * coretypes.h (cgraph_edge): Declare.
11533 * ipa-param-manipulation.c: Rewrite.
11534 * ipa-param-manipulation.h: Likewise.
11535 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
11536 (OBJS): Added ipa-sra.o.
11537 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
11538 and ref_p, added fields param_adjustments and performed_splits.
11539 (struct cgraph_clone_info): Remove ags_to_skip and
11540 combined_args_to_skip, new field param_adjustments.
11541 (cgraph_node::create_clone): Changed parameters to use
11542 ipa_param_adjustments.
11543 (cgraph_node::create_virtual_clone): Likewise.
11544 (cgraph_node::create_virtual_clone_with_body): Likewise.
11545 (tree_function_versioning): Likewise.
11546 (cgraph_build_function_type_skip_args): Removed.
11547 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
11548 using ipa_param_adjustments.
11549 (clone_of_p): Likewise.
11550 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
11551 (build_function_decl_skip_args): Likewise.
11552 (duplicate_thunk_for_node): Adjust parameters using
11553 ipa_param_body_adjustments, copy param_adjustments instead of
11555 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
11556 (cgraph_node::create_virtual_clone): Likewise.
11557 (cgraph_node::create_version_clone_with_body): Likewise.
11558 (cgraph_materialize_clone): Likewise.
11559 (symbol_table::materialize_all_clones): Likewise.
11560 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
11561 ipa_replace_map check.
11562 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
11563 (initialize_node_lattices): Make aware that some parameters might have
11564 already been removed.
11565 (want_remove_some_param_p): New function.
11566 (create_specialized_node): Convert to using ipa_param_adjustments and
11567 deal with possibly pre-existing adjustments.
11568 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
11569 (output_node_opt_summary): Do not stream removed fields. Stream
11570 parameter adjustments instead of argumetns to skip.
11571 (input_node_opt_summary): Likewise.
11572 (input_node_opt_summary): Likewise.
11573 * lto-section-in.c (lto_section_name): Added ipa-sra section.
11574 * lto-streamer.h (lto_section_type): Likewise.
11575 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
11577 (copy_decl_to_var): Declare.
11578 * tree-inline.c (update_clone_info): Do not remap old_tree.
11579 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
11580 statements, walk all extra generated statements and remap their
11582 (redirect_all_calls): Add killed SSA names to a hash set.
11583 (remap_ssa_name): Do not remap killed SSA names.
11584 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
11585 half of functionality moved to ipa_param_body_adjustments.
11586 (copy_decl_to_var): Make exported.
11587 (copy_body): Destroy killed_new_ssa_names hash set.
11588 (expand_call_inline): Remap performed splits.
11589 (update_clone_info): Likewise.
11590 (tree_function_versioning): Simplify tree_map processing. Updated to
11591 accept ipa_param_adjustments and use ipa_param_body_adjustments.
11592 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
11593 for the new interface.
11594 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
11595 (simd_clone_compute_base_data_type): Likewise.
11596 (simd_clone_init_simd_arrays): Adjust for the new interface.
11597 (simd_clone_adjust_argument_types): Likewise.
11598 (struct modify_stmt_info): Likewise.
11599 (ipa_simd_modify_stmt_ops): Likewise.
11600 (ipa_simd_modify_function_body): Likewise.
11601 (simd_clone_adjust): Likewise.
11602 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
11603 (type_internals_preclude_sra_p): Make public.
11604 * tree-sra.h: New file.
11605 * ipa-inline-transform.c (save_inline_function_body): Update to
11606 refelct new tree_function_versioning signature.
11607 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
11608 ipa_param_adjustments to get current parameter indices.
11609 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11610 (ipcp_update_bits): Likewise.
11611 (ipcp_update_vr): Likewise.
11612 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
11613 * ipa-sra.c: New file.
11614 * multiple_target.c (create_target_clone): Update to reflet new type
11615 of create_version_clone_with_body.
11616 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
11617 tree_function_versioning.
11618 (modify_function): Update to reflect new type of
11619 tree_function_versioning.
11620 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
11621 * passes.def: Remove old IPA-SRA and add new one.
11622 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
11623 (make_pass_ipa_sra): Declare.
11624 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
11626 * doc/invoke.texi (ipa-sra-max-replacements): New.
11628 2019-09-19 Martin Sebor <msebor@redhat.com>
11630 PR middle-end/91631
11631 * builtins.c (component_size): Correct trailing array computation,
11632 rename to component_ref_size and move...
11633 (compute_objsize): Adjust.
11634 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
11635 (builtin_access::strict): Do not consider memmove.
11636 (builtin_access::write_off): New function.
11637 (builtin_memref::builtin_memref): Initialize refsize.
11638 (builtin_memref::set_base_and_offset): Adjust refoff and compute
11640 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
11642 (builtin_access::builtin_access): Initialize dstoff to destination
11643 refeence offset here instead of in maybe_diag_overlap. Adjust
11644 referencess even to unrelated objects. Adjust sizrange of bounded
11645 string functions to reflect bound. For strcat, adjust destination
11646 sizrange by that of source.
11647 (builtin_access::strcat_overlap): Adjust offsets and sizes
11648 to reflect the increase in destination sizrange above.
11649 (builtin_access::overlap): Do not set dstoff here but instead
11650 in builtin_access::builtin_access.
11651 (check_bounds_or_overlap): Use builtin_access::write_off.
11652 (maybe_diag_access_bounds): Add argument. Add informational notes.
11653 (dump_builtin_memref, dump_builtin_access): New functions.
11654 * tree.c (component_ref_size): ...to here.
11655 * tree.h (component_ref_size): Declare.
11656 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
11657 nul in the size of the source string.
11659 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
11662 * doc/cpp.texi: Document support for extended characters in
11664 * doc/cppopts.texi: Likewise.
11666 2019-09-19 Richard Biener <rguenther@suse.de>
11668 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
11669 (check_reduction_path): New overload having the path as result.
11670 (vect_is_simple_reduction): From the detected reduction
11671 path build a SLP reduction chain if possible.
11673 2019-09-19 Richard Biener <rguenther@suse.de>
11676 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
11677 Force operand to a register if it isn't nonimmediate_operand.
11679 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11681 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
11682 * config/arm/iterators.md (optab): Add and, ior, xor entries.
11683 (logical_op): Remove code attribute.
11684 (logical_OP): Likewise.
11686 2019-09-19 Martin Liska <mliska@suse.cz>
11688 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
11689 Use proper casting.
11691 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
11693 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
11696 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
11697 for NE comparison of TImode values.
11698 (aarch64_emit_load_exclusive): Add support for TImode.
11699 (aarch64_emit_store_exclusive): Likewise.
11700 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
11701 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
11702 Change iterator from ALLI to ALLI_TI.
11703 (@atomic_compare_and_swap<JUST_TI>): New.
11704 (@atomic_compare_and_swap<JUST_TI>_lse): New.
11705 (aarch64_load_exclusive_pair): New.
11706 (aarch64_store_exclusive_pair): New.
11707 * config/aarch64/iterators.md (JUST_TI): New.
11709 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
11710 strong_zero_p for aarch64_track_speculation; unify some code paths;
11711 use aarch64_gen_compare_reg instead of open-coding.
11713 * config/aarch64/aarch64.opt (-moutline-atomics): New.
11714 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
11715 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
11716 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
11717 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
11718 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
11719 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
11720 (atomic_<atomic_op><ALLI>): Likewise.
11721 (atomic_fetch_<atomic_op><ALLI>): Likewise.
11722 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
11723 * doc/invoke.texi: Document -moutline-atomics.
11725 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
11727 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
11728 trivial predicate for condition branch.
11729 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
11731 (compute_bb_predicates): Update predicate based on post-dominating
11733 (analyze_function_body): Calculate post-dominating information.
11735 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11737 * tree-vectorizer.h (vectorizable_condition): Take an int
11738 reduction index instead of a boolean flag.
11739 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11740 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
11741 reductions if the reduction accumulator is the "then" rather
11742 than the "else" value.
11743 (vect_analyze_stmt): Update call accordingly.
11744 (vect_transform_stmt): Likewise.
11745 * tree-vect-loop.c (vectorizable_reduction): Likewise,
11746 asserting that the index is > 0.
11748 2019-09-19 Martin Liska <mliska@suse.cz>
11750 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
11751 (sort_congruence_classes_by_decl_uid): Likewise.
11752 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
11754 (sem_item_optimizer::merge_classes): Likewise.
11756 2019-09-19 Richard Biener <rguenther@suse.de>
11758 PR tree-optimization/91812
11759 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
11762 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11764 * defaults.h (TARGET_UNIT): New macro.
11765 (target_unit): New type.
11766 * rtl.h (native_encode_rtx, native_decode_rtx)
11767 (native_decode_vector_rtx, subreg_size_lsb): Declare.
11768 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
11769 * rtlanal.c (subreg_lsb_1): Delete.
11770 (subreg_size_lsb): New function.
11771 * simplify-rtx.c: Include rtx-vector-builder.h
11772 (simplify_immed_subreg): Delete.
11773 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
11774 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
11776 (simplify_subreg): Use them.
11777 (test_vector_subregs_modes, test_vector_subregs_repeating)
11778 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
11779 (test_vector_subregs): New functions.
11780 (test_vector_ops): Call test_vector_subregs for integer vector
11781 modes with at least 2 elements.
11783 2019-09-19 Richard Biener <rguenther@suse.de>
11785 * tree-parloops.c (parloops_is_slp_reduction): Do not set
11786 LOOP_VINFO_OPERANDS_SWAPPED.
11787 (parloops_is_simple_reduction): Likewise.
11788 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
11789 initialize operands_swapped.
11790 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
11791 (vect_is_slp_reduction): Do not swap operands.
11792 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
11793 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
11795 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
11798 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
11799 Add avx_partial_xmm_update.
11801 2019-09-18 Jim Wilson <jimw@sifive.com>
11804 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
11805 (riscv_move_integer): Likewise.
11806 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
11807 riscv_move_integer arg.
11808 (riscv_legitimize_move): Likewise.
11809 (riscv_force_temporary): New parameter in_splitter. Don't call
11811 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
11813 (riscv_add_offset): Likewise.
11814 (riscv_split_symbol): New parameter in_splitter. Pass to
11815 riscv_force_temporary.
11816 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
11818 (riscv_move_integer): New parameter in_splitter. New local
11819 can_create_psuedo. Don't call riscv_split_integer or force_reg when
11821 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
11822 riscv_split_symbol, and riscv_force_temporary args.
11823 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
11824 riscv_move_integer arg.
11825 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
11827 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11830 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
11831 hard register store cost to 6.
11833 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11836 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
11837 pseudo register store cost from 3 to 6 to make it the same as
11840 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11843 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
11844 (one_cmpldi2): Likewise.
11845 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
11846 of the constant parts is simple.
11847 * config/arm/iterators.md (LOGICAL): Add new code iterator.
11848 (logical_op): Add new code attribute.
11849 (logical_OP): Likewise.
11850 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
11851 (arm_iordi_operand): Add predicate.
11852 (arm_xordi_operand): Add predicate.
11854 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11856 * config/arm/arm.md (maddsidi4): Remove expander.
11857 (mulsidi3adddi): Remove pattern.
11858 (mulsidi3adddi_v6): Likewise.
11859 (mulsidi3_nov6): Likewise.
11860 (mulsidi3_v6): Likewise.
11861 (umulsidi3): Remove expander.
11862 (umulsidi3_nov6): Remove pattern.
11863 (umulsidi3_v6): Likewise.
11864 (umulsidi3adddi): Likewise.
11865 (umulsidi3adddi_v6): Likewise.
11866 (<Us>mulsidi3): Add combined expander.
11867 (<Us>maddsidi4): Likewise.
11868 (<US>mull): Add combined umull and smull pattern.
11869 (<US>mlal): Likewise.
11870 * config/arm/iterators.md (Us): Add new iterator.
11872 2019-09-18 Richard Biener <rguenther@suse.de>
11874 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
11876 (vectorize_fold_left_reduction): Remove assert.
11877 (vectorizable_reduction): Also expect COND_EXPR non-reduction
11878 operand in position 2. Remove assert.
11880 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11882 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
11883 (smulsi3_highpart_nov6): Remove pattern.
11884 (smulsi3_highpart_v6): Likewise.
11885 (umulsi3_highpart): Likewise.
11886 (umulsi3_highpart_nov6): Likewise.
11887 (umulsi3_highpart_v6): Likewise.
11888 (<US>mull_high): Add new combined multiply pattern.
11890 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11892 * config/arm/arm.md (arm_mulsi3): Remove pattern.
11893 (arm_mulsi3_v6): Likewise.
11894 (mulsi3addsi_v6): Likewise.
11895 (mulsi3subsi): Likewise.
11896 (mul): Add new multiply pattern.
11900 2019-09-18 Richard Biener <rguenther@suse.de>
11902 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
11903 (parloops_valid_reduction_input_p): Copy from
11904 valid_reduction_input_p.
11905 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
11906 (parloops_needs_fold_left_reduction_p): Copy from
11907 needs_fold_left_reduction_p.
11908 (parloops_is_simple_reduction): Copy from
11909 vect_is_simple_reduction.
11910 (parloops_force_simple_reduction): Copy from
11911 vect_force_simple_reduction.
11912 (gather_scalar_reductions): Adjust.
11913 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
11914 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
11916 2019-09-18 Richard Biener <rguenther@suse.de>
11918 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
11919 * tree-vect-loop.c (get_initial_def_for_reduction): Make
11921 (vect_create_epilog_for_reduction): Remove dead code.
11923 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11925 * varasm.c (assemble_real): Generate canonical const_ints.
11927 2019-09-18 Richard Biener <rguenther@suse.de>
11930 * lto-streamer-in.c (input_eh_regions): Move EH init to
11931 lto_materialize_function.
11932 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
11935 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11937 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
11940 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11942 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
11943 of checking specifically for INTEGER_CST.
11945 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11947 * stor-layout.c (compute_record_mode): Operate on poly_uint64
11948 sizes instead of uhwi sizes.
11950 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11952 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
11953 (add_const_value_attribute): Handle CONST_POLY_INT.
11955 2019-09-18 Martin Liska <mliska@suse.cz>
11957 * dbgcnt.def (store_merging): New counter.
11958 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
11959 Use it in store merging.
11961 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11963 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
11965 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11966 * config/arm/arm.c (arm_sched_variable_issue): New function.
11967 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11969 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11971 * config/arm/types.md (no_reservation): New reservation.
11972 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
11974 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
11975 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
11976 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
11977 * config/arm/arm1020e.md (1020alu_op): Likewise.
11978 * config/arm/arm1026ejs.md (alu_op): Likewise.
11979 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11980 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11981 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11982 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
11983 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11984 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11985 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
11986 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
11987 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11988 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11989 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11990 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
11991 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
11992 * config/arm/fa526.md (526_alu_op): Likewise.
11993 * config/arm/fa606te.md (606te_alu_op): Likewise.
11994 * config/arm/fa626te.md (626te_alu_op): Likewise.
11995 * config/arm/fa726te.md (726te_alu_op): Likewise.
11996 * config/arm/xgene1.md (xgene1_nop): Likewise.
11998 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12000 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12001 "no_insn" to "branch".
12003 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12005 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12007 2019-09-17 Richard Biener <rguenther@suse.de>
12010 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12011 was missing generate locations only once.
12013 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12016 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12018 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12019 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12020 for switch default case using range analysis information.
12022 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12025 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12026 mode attributed is supported by FDPIC.
12028 2019-09-17 Richard Biener <rguenther@suse.de>
12030 PR tree-optimization/91790
12031 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12032 use the correct DR for setting up realignment.
12034 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12037 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12038 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12039 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12040 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12042 2019-09-16 Jason Merrill <jason@redhat.com>
12044 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12046 2019-09-16 Martin Liska <mliska@suse.cz>
12048 * gimple-fold.c (or_comparisons_1): Remove rules moved
12050 * match.pd: ... here.
12052 2019-09-16 Martin Liska <mliska@suse.cz>
12054 * gimple-fold.c (or_comparisons_1): Remove rules
12056 * match.pd: ... here.
12058 2019-09-16 Martin Liska <mliska@suse.cz>
12060 * genmatch.c (dt_node::append_simplify): Do not print
12061 warning when we have duplicate patterns belonging
12062 to a same simplify rule.
12063 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12064 (maybe_fold_comparisons_from_match_pd): Handle
12065 tcc_comparison as a results.
12066 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12068 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12069 Qi Feng <ffengqi@linux.ibm.com>
12071 PR middle-end/88784
12072 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12073 (x > y && x == XXX_MIN): Optimize into 'false'.
12074 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12075 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12076 (x < y && x == XXX_MAX): Optimize into 'false'.
12077 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12078 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12079 (x <= y || x != XXX_MIN): Optimize into 'true'.
12080 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12081 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12082 (x >= y || x != XXX_MAX): Optimize into 'true'.
12083 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12085 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12086 Martin Liska <mliska@suse.cz>
12088 * gimple-fold.c (and_comparisons_1): Add type as first
12090 (and_var_with_comparison): Likewise.
12091 (and_var_with_comparison_1): Likewise.
12092 (or_comparisons_1): Likewise.
12093 (or_var_with_comparison): Likewise.
12094 (or_var_with_comparison_1): Likewise.
12095 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12096 (maybe_fold_or_comparisons): Likewise.
12097 (maybe_fold_comparisons_from_match_pd): New.
12098 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12099 (maybe_fold_or_comparisons): Likewise.
12100 * gimple.c (gimple_size): Make it public and add num_ops argument.
12101 (gimple_init): New function.
12102 (gimple_alloc): Call gimple_init.
12103 * gimple.h (gimple_size): New.
12104 (gimple_init): Likewise.
12105 * tree-if-conv.c (fold_or_predicates): Pass type.
12106 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12107 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12108 (optimize_vec_cond_expr): Likewise.
12109 (ovce_extract_ops): Return type of conditional expression.
12110 * tree-ssanames.c (init_ssa_name_imm_use): New.
12111 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12112 * tree-ssanames.h (init_ssa_name_imm_use): New.
12114 2019-09-16 Richard Biener <rguenther@suse.de>
12116 PR tree-optimization/91756
12117 PR tree-optimization/87132
12118 * tree-ssa-alias.h (enum translate_flags): New.
12119 (get_continuation_for_phi): Use it instead of simple bool flag.
12120 (walk_non_aliased_vuses): Likewise.
12121 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12122 (get_continuation_for_phi): When looking across backedges only
12123 disallow valueization.
12124 (walk_non_aliased_vuses): Adjust.
12125 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12128 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12130 PR middle-end/80791
12131 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12132 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12133 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12134 * target.def (have_count_reg_decr_p): New hook.
12135 (doloop_cost_for_generic): Likewise.
12136 (doloop_cost_for_address): Likewise.
12137 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12138 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12139 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12140 * doc/tm.texi: Regenerate.
12141 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12143 (record_group): Init doloop_p.
12144 (add_candidate_1): Add optional argument doloop, change the handlings
12146 (add_candidate): Likewise.
12147 (generic_predict_doloop_p): Update attribute.
12148 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12149 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12150 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12152 (get_computation_cost): Update for doloop IV cand extra cost.
12153 (determine_group_iv_cost_cond): Update for doloop IV cand.
12154 (determine_iv_cost): Likewise.
12155 (ivopts_estimate_reg_pressure): Likewise.
12156 (may_eliminate_iv): Update handlings for doloop IV cand.
12157 (add_iv_candidate_for_doloop): New function.
12158 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12159 (iv_ca_set_no_cp): Update for doloop IV cand.
12160 (iv_ca_set_cp): Likewise.
12161 (iv_ca_dump): Dump register cost.
12162 (find_doloop_use): New function.
12163 (analyze_and_mark_doloop_use): Likewise.
12164 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12166 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12168 PR middle-end/91708
12169 * cse.c (cse_insn): Do not replace anything with a
12172 2019-09-13 Ian Lance Taylor <iant@golang.org>
12174 * doc/invoke.texi (Optimize Options): Fix typo.
12176 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12178 PR tree-optimization/89386
12179 * config/i386/sse.md (smulhrs<mode>3): New expander.
12180 (smulhrsv4hi3): Ditto.
12182 2019-09-12 Richard Biener <rguenther@suse.de>
12184 PR tree-optimization/91750
12185 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12186 in the type of the evolution.
12188 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12190 PR tree-optimization/89386
12191 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12192 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12193 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12194 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12195 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12196 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12197 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12198 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12199 (su, r): Handle the unspecs above.
12200 (bt): New int attribute.
12201 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12202 * internal-fn.c (first_commutative_argument): Commutativity info for
12204 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12205 (umulhrs_optab): New optabs.
12206 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12207 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12208 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12210 (vect_vect_recog_func_ptrs): Add it.
12212 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12214 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12217 2019-09-11 Nathan Sidwell <nathan@acm.org>
12219 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12220 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12222 2019-09-11 Richard Biener <rguenther@suse.de>
12224 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12225 * lto-wrapper.c (merge_and_complain): Pick up -g.
12226 (append_compiler_options): Likewise.
12227 (run_gcc): Re-instantiate handling -g0 at link-time.
12228 * doc/invoke.texi (flto): Document debug info generation.
12230 2019-09-11 Richard Biener <rguenther@suse.de>
12232 PR tree-optimization/90387
12233 * vr-values.c (vr_values::extract_range_basic): After inlining
12234 simplify non-constant __builtin_constant_p to false.
12236 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12238 PR rtl-optimization/89795
12239 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12240 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12242 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12244 PR tree-optimization/91723
12245 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12246 instead of pointer equality when checking if argument vectypes are
12249 PR middle-end/91725
12250 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12251 of get_nonzero_bits, only call it for integral types.
12253 2019-09-11 Richard Biener <rguenther@suse.de>
12256 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12258 * match.pd: Add flag_unsafe_math_optimizations check
12259 before deciding on the widest type in a binary math operation.
12261 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12263 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12264 and CALL_REALLY_USED_REGISTERS must be defined, and that
12265 CALL_REALLY_USED_REGISTERS is preferred.
12266 * doc/tm.texi: Regenerate.
12267 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12268 (call_really_used_regs): Likewise.
12269 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12270 CALL_REALLY_USED_REGISTERS are defined.
12271 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12272 initial value if defined.
12273 (initial_call_really_used_regs): Delete.
12274 (saved_call_really_used_regs): Likewise.
12275 (CALL_REALLY_USED_REGNO_P): Likewise.
12276 (init_reg_sets): Remove handling of call_really_used_regs.
12277 (save_register_info, restore_register_info, globalize_reg): Likewise.
12278 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12279 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12280 outside operand_reg_set.
12281 (fix_register): Don't change call_used_regs if
12282 CALL_REALLY_USED_REGISTERS is defined.
12283 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12284 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12285 instead of call_really_used_regs.
12286 (csky_conditional_register_usage): Remove the old handling of
12287 call_used_regs and change the handling of call_really_used_regs
12288 to use call_used_regs instead.
12289 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12290 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12291 making a register fixed.
12292 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12293 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12294 instead of call_really_used_regs.
12295 (m32r_conditional_register_usage): Don't set call_used_regs when
12296 making a register fixed.
12297 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12298 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12299 instead of call_really_used_regs.
12300 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12301 (mips_cfun_call_saved_reg_p): Likewise.
12302 (mips_swap_registers): Remove the old handling of call_used_regs
12303 and change the handling of call_really_used_regs to use call_used_regs
12305 (mips_conditional_register_usage): Likewise.
12306 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12307 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12308 instead of call_really_used_regs.
12309 (mn10300_get_live_callee_saved_regs): Likewise.
12310 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12311 (mn10300_conditional_register_usage): Don't set call_used_regs when
12312 making a register fixed.
12313 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12314 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12315 Remove the old handling of call_used_regs and change the handling
12316 of call_really_used_regs to use call_used_regs instead.
12317 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12318 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12319 instead of call_really_used_regs.
12320 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12321 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12322 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12323 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12324 (s390_conditional_register_usage): Remove the old handling of
12325 call_used_regs and change the handling of call_really_used_regs
12326 to use call_used_regs instead.
12327 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12328 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12329 (sh_fix_range, reg_unused_after): Likewise.
12330 (sh_conditional_register_usage): Remove the old handling of
12331 call_used_regs and change the handling of call_really_used_regs
12332 to use call_used_regs instead.
12333 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12334 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12335 call_used_regs when making a register fixed.
12336 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12337 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12338 call_used_regs when making a register fixed.
12339 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12340 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12341 set call_used_regs when making a register fixed.
12342 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12343 * config/visium/visium.c (visium_conditional_register_usage): Remove
12344 the old handling of call_used_regs and change the handling of
12345 call_really_used_regs to use call_used_regs instead.
12347 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12349 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12350 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12351 * reginfo.c (call_used_regs): New macro.
12353 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12355 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12357 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12358 (bpf_expand_epilogue): Likewise.
12359 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12360 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12361 (ft32_expand_epilogue): Likewise.
12362 * config/i386/i386.c (ix86_save_reg): Likewise.
12363 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12364 (moxie_expand_epilogue): Likewise.
12365 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12366 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12367 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12369 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12371 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12372 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12373 instead of testing call_used_regs directly.
12374 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12375 (aarch64_components_for_bb): Likewise.
12376 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12377 * config/arc/arc.c (arc_must_save_register): Likewise.
12378 (arc_epilogue_uses): Likewise.
12379 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12380 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12381 (arm_compute_save_reg0_reg12_mask): Likewise.
12382 (arm_compute_save_core_reg_mask): Likewise.
12383 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12384 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12385 (cmse_nonsecure_entry_clear_before_return): Likewise.
12386 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12387 (arm_expand_epilogue): Likewise.
12388 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12389 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12390 (_reg_unused_after): Likewise.
12391 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12392 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12393 (add_to_reg, hwloop_optimize): Likewise.
12394 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12395 (bpf_expand_epilogue): Likewise.
12396 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12397 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12398 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12399 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12400 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12401 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12402 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12403 * config/frv/frv.c (frv_stack_info): Likewise.
12404 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12405 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12406 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12407 (move_callee_saved_registers): Likewise.
12408 * config/h8300/h8300.c (byte_reg): Likewise.
12409 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12410 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12411 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12412 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12413 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12414 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12415 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12416 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12417 * config/m32c/m32c.c (need_to_save): Likewise.
12418 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12419 * config/mcore/mcore.c (calc_live_regs): Likewise.
12420 * config/microblaze/microblaze.c (microblaze_must_save_register):
12422 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12423 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12424 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12425 (mmix_expand_epilogue): Likewise.
12426 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12427 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12428 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12429 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12430 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12431 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12432 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12433 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12434 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12435 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12436 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12437 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12438 * config/rl78/rl78.c (need_to_save): Likewise.
12439 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12440 (rs6000_stack_info, generate_set_vrsave): Likewise.
12441 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12442 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12443 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12444 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12445 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12446 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12447 (save_local_or_in_reg_p): Likewise.
12448 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12449 (xstormy16_epilogue_uses): Likewise.
12450 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12451 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12452 * config/v850/v850.c (compute_register_save_size): Likewise.
12453 * config/vax/vax.c (vax_expand_prologue): Likewise.
12454 * config/visium/visium.c (visium_save_reg_p): Likewise.
12455 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12456 * cselib.c (cselib_process_insn): Likewise.
12457 * df-scan.c (df_get_entry_block_def_set): Likewise.
12458 * function.c (aggregate_value_p): Likewise.
12459 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12460 * ira-lives.c (process_bb_node_lives): Likewise.
12461 * ira.c (do_reload): Likewise.
12462 * lra-lives.c (process_bb_lives): Likewise.
12463 * lra-remat.c (lra_remat): Likewise.
12464 * lra.c (lra): Likewise.
12465 * postreload.c (reload_combine_recognize_pattern): Likewise.
12466 (reload_cse_move2add): Likewise.
12467 * recog.c (peep2_find_free_register): Likewise.
12468 * regrename.c (check_new_reg_p): Likewise.
12469 * reload.c (find_equiv_reg): Likewise.
12470 * reload1.c (reload, find_reg): Likewise.
12471 * sel-sched.c (init_hard_regs_data): Likewise.
12473 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12475 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12476 regs_invalidated_by_call & ~fixed_reg_set instead of
12477 call_used_or_fixed_regs & ~fixed_reg_set.
12478 * config/sh/sh.c (output_stack_adjust): Likewise.
12480 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12482 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12483 (call_used_reg_set): Delete.
12484 (call_used_or_fixed_regs): New macro.
12485 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12486 of call_used_reg_set.
12487 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12488 instead of call_used_regs.
12489 (save_call_clobbered_regs): Likewise.
12490 * cfgcleanup.c (old_insns_match_p): Likewise.
12491 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12492 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12494 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12495 * config/sh/sh.c (output_stack_adjust): Likewise.
12496 * final.c (collect_fn_hard_reg_usage): Likewise.
12497 * ira-build.c (ira_build): Likewise.
12498 * ira-color.c (calculate_saved_nregs): Likewise.
12499 (allocno_reload_assign, calculate_spill_cost): Likewise.
12500 * ira-conflicts.c (ira_build_conflicts): Likewise.
12501 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12502 * ira-lives.c (process_bb_node_lives): Likewise.
12503 * ira.c (setup_reg_renumber): Likewise.
12504 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12505 * lra-constraints.c (need_for_call_save_p): Likewise.
12506 (need_for_split_p, inherit_in_ebb): Likewise.
12507 * lra-lives.c (process_bb_lives): Likewise.
12508 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12509 * postreload.c (reload_combine): Likewise.
12510 * regrename.c (find_rename_reg): Likewise.
12511 * reload1.c (reload_as_needed): Likewise.
12512 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12513 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12514 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12516 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12518 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12519 (no_caller_save_reg_set): Delete.
12520 * caller-save.c (init_caller_save): Don't initialize it.
12521 * ira-conflicts.c (ira_build_conflicts): Calculate
12522 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12524 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12526 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12527 (target_hard_regs::x_savable_regs): New field.
12528 (call_fixed_reg_set): Delete.
12529 (savable_regs): New macro,
12530 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12531 (init_reg_sets_1): Likewise. Initialize savable_regs.
12532 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12533 for all registers. Set savable_regs instead of call_fixed_reg_set.
12534 (setup_save_areas, save_call_clobbered_regs): Replace uses of
12535 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
12536 * config/sh/sh.c (output_stack_adjust): Likewise.
12538 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12540 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
12541 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
12542 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
12544 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12546 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
12547 * rtlanal.c (get_call_rtx_from): Likewise.
12548 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
12549 than the pattern to get_call_rtx_from.
12550 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
12551 an rtx_insn * instead of an rtx.
12552 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
12554 2019-09-10 Martin Liska <mliska@suse.cz>
12556 * common.opt: Use newly added WarnRemoved.
12557 * config/aarch64/aarch64.opt: Likewise.
12558 * config/arm/arm.opt: Likewise.
12559 * config/i386/i386.opt: Likewise.
12560 * config/ia64/ia64.opt: Likewise.
12561 * config/rs6000/rs6000.opt: Likewise.
12562 * doc/options.texi: Document WarnRemoved properly.
12563 * dwarf2out.c (gen_producer_string): Handle renamed
12564 OPT_SPECIAL_warn_removed.
12565 * lto-opts.c (lto_write_options): Likewise.
12566 * lto-wrapper.c (merge_and_complain): Likewise.
12567 * opts-common.c (decode_cmdline_option): Likewise.
12568 (prune_options): Likewise.
12569 (read_cmdline_option): Likewise.
12570 (control_warning_option): Likewise.
12571 * opts.c (print_filtered_help): Likewise.
12572 * optc-gen.awk: Parse for WarnRemoved and make usage
12573 of Deprecated an error.
12574 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
12576 2019-09-10 Arnaud Charlet <charlet@adacore.com>
12578 * doc/install.texi: Fix syntax for html generation.
12580 2019-09-10 Jakub Jelinek <jakub@redhat.com>
12582 PR middle-end/91680
12583 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
12584 the shift type to type.
12586 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12588 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
12590 (stack_protect_combined_test_insn): Likewise.
12592 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12593 Mickaël Guêné <mickael.guene@st.com>
12595 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
12596 * config/arm/arm.md (FDPIC_REGNUM): New constant.
12597 (load_tp_soft_fdpic): New pattern.
12598 (load_tp_soft): Disable in FDPIC mode.
12600 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12601 Mickaël Guêné <mickael.guene@st.com>
12603 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
12604 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
12605 (arm_call_tls_get_addr): Add FDPIC support.
12606 (legitimize_tls_address): Likewise.
12607 (arm_emit_tls_decoration): Likewise.
12609 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12610 Mickaël Guêné <mickael.guene@st.com>
12612 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
12614 (arm_trampoline_init): Likewise.
12615 (arm_trampoline_adjust_address): Likewise.
12616 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
12618 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12619 Mickaël Guêné <mickael.guene@st.com>
12621 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
12622 (legitimize_pic_address): Enforce binding rules on function
12623 pointers in FDPIC mode.
12624 (arm_assemble_integer): Likewise.
12626 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12627 Mickaël Guêné <mickael.guene@st.com>
12629 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
12630 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
12633 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12634 Mickaël Guêné <mickael.guene@st.com>
12636 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
12639 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12640 Mickaël Guêné <mickael.guene@st.com>
12642 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
12644 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
12646 * config/arm/arm.c (arm_option_override): Define pic register to
12648 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
12649 have no decl or go through PLT.
12650 (calculate_pic_address_constant): New function.
12651 (legitimize_pic_address): Call calculate_pic_address_constant.
12652 (arm_load_pic_register): Handle TARGET_FDPIC.
12653 (arm_is_segment_info_known): New function.
12654 (arm_pic_static_addr): Add support for FDPIC.
12655 (arm_load_function_descriptor): New function.
12656 (arm_emit_call_insn): Add support for FDPIC.
12657 (arm_assemble_integer): Add support for FDPIC.
12658 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
12659 Define. (FDPIC_REGNUM): New define.
12660 * config/arm/arm.md (call): Add support for FDPIC.
12661 (call_value): Likewise.
12662 (restore_pic_register_after_call): New pattern.
12663 (untyped_call): Disable if FDPIC.
12664 (untyped_return): Likewise.
12665 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
12667 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12668 Mickaël Guêné <mickael.guene@st.com>
12670 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
12671 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
12672 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
12673 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
12674 (CC1_SPEC): Use FDPIC_CC1_SPEC.
12675 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
12676 * config/arm/uclinuxfdpiceabi.h: New file.
12678 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12680 * config.gcc: Handle *-*-uclinuxfdpiceabi.
12682 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12683 Mickaël Guêné <mickael.guene@st.com>
12685 * config/arm/arm.opt: Add -mfdpic option.
12686 * doc/invoke.texi: Add documentation for -mfdpic.
12688 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12690 * expmed.c (extract_bit_field): Update function comment
12692 * expr.c (expand_expr_real): Update function comment
12694 (expand_misaligned_mem_ref): New helper function.
12695 (expand_expr_real_2): Use expand_misaligned_mem_ref.
12696 Remove duplicate assignment to "base" at case MEM_REF.
12697 Remove a shadowed variable "unsignedp" at case VCE.
12699 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12701 * regset.h (regs_invalidated_by_call_regset): Delete.
12702 (fixed_reg_set_regset): Likewise.
12703 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
12704 (fixed_reg_set_regset, persistent_obstack): Likewise.
12705 (init_reg_sets_1, globalize_reg): Update accordingly.
12706 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
12707 instead of a bitmap.
12708 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
12709 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
12710 instead of regs_invalidated_by_call_regset.
12711 (df_lr_confluence_n, df_md_confluence_n): Likewise.
12712 * df-scan.c (df_scan_start_dump): Likewise.
12713 * dse.c (copy_fixed_regs): Likewise.
12714 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
12716 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12718 * array-traits.h: New file.
12719 * coretypes.h (array_traits, bitmap_view): New types.
12720 * bitmap.h: Include "array-traits.h"
12721 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12722 (base_bitmap_view, bitmap_view): New classes.
12723 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12724 * hard-reg-set.h: Include array-traits.h.
12725 (array_traits<HARD_REG_SET>): New struct.
12726 * regset.h (IOR_REG_SET_HRS): New macro.
12727 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
12728 rather than iterating over each hard register.
12729 * sched-deps.c (sched_analyze_insn): Likewise.
12730 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
12732 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12734 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
12735 instead of a HARD_REG_SET *.
12736 * ira-build.c (ior_hard_reg_conflicts): Likewise.
12737 (ira_build): Update call accordingly.
12738 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12740 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12742 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
12743 (HARD_REG_SET::operator!=): Likewise.
12744 (hard_reg_set_equal_p): Delete.
12745 * cfgcleanup.c (old_insns_match_p): Use == instead of
12746 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
12747 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
12748 (add_allocno_hard_regs_to_forest): Likewise.
12749 (setup_allocno_available_regs_num): Likewise.
12750 * ira.c (setup_pressure_classes): Likewise.
12751 (setup_allocno_and_important_classes): Likewise.
12752 (setup_reg_class_relations): Likewise.
12753 * lra-lives.c (process_bb_lives): Likewise.
12754 * reg-stack.c (change_stack, convert_regs_1): Likewise.
12756 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12758 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
12759 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
12760 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
12761 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
12763 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
12764 * ira.c (setup_reg_renumber): Likewise.
12765 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12766 * regrename.c (regrename_find_superclass): Likewise.
12767 * reload1.c (find_reg): Likewise.
12769 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12771 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
12772 * caller-save.c (setup_save_areas): Use "&~" instead of
12773 AND_COMPL_HARD_REG_SET.
12774 (save_call_clobbered_regs): Likewise.
12775 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12777 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12778 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12779 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
12780 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12781 (mips_conditional_register_usage): Likewise.
12782 * config/sh/sh.c (output_stack_adjust): Likewise.
12783 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
12784 (setup_profitable_hard_regs): Likewise.
12785 (get_conflict_and_start_profitable_regs): Likewise.
12786 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12787 (ira_build_conflicts): Likewise.
12788 * ira-costs.c (restrict_cost_classes): Likewise.
12789 (setup_regno_cost_classes_by_aclass): Likewise.
12790 * ira-lives.c (process_bb_node_lives): Likewise.
12791 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
12792 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
12793 (setup_allocno_and_important_classes, setup_class_translate_array)
12794 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
12796 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12797 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12798 (process_alt_operands, inherit_in_ebb): Likewise.
12799 * lra-eliminations.c (update_reg_eliminate): Likewise.
12800 * lra-lives.c (process_bb_lives): Likewise.
12801 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
12802 * resource.c (find_dead_or_set_registers): Likewise.
12803 (mark_target_live_regs): Likewise.
12804 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
12805 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12806 (implicit_clobber_conflict_p): Likewise.
12807 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12808 (try_shrink_wrapping): Likewise.
12810 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12812 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
12813 (HARD_REG_SET::operator|=): Likewise.
12814 (IOR_HARD_REG_SET): Delete.
12815 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
12817 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12818 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
12819 * final.c (collect_fn_hard_reg_usage): Likewise.
12820 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
12821 * ira-build.c (merge_hard_reg_conflicts): Likewise.
12822 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
12823 (propagate_some_info_from_allocno): Likewise.
12824 (copy_info_to_removed_store_destinations): Likewise.
12825 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
12826 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
12827 (fast_allocation): Likewise.
12828 * ira-conflicts.c (ira_build_conflicts): Likewise.
12829 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
12830 (process_bb_node_lives): Likewise.
12831 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
12832 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12833 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12834 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
12835 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
12836 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
12837 (process_bb_lives): Likewise.
12838 * lra-spills.c (assign_spill_hard_regs): Likewise.
12839 * postreload.c (reload_combine): Likewise.
12840 * reginfo.c (init_reg_sets_1): Likewise.
12841 * regrename.c (merge_overlapping_regs, find_rename_reg)
12842 (merge_chains): Likewise.
12843 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
12844 (find_reload_regs, finish_spills, choose_reload_regs_init)
12845 (emit_reload_insns): Likewise.
12846 * reorg.c (redundant_insn): Likewise.
12847 * resource.c (find_dead_or_set_registers, mark_set_resources)
12848 (mark_target_live_regs): Likewise.
12849 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12850 * sched-deps.c (sched_analyze_insn): Likewise.
12851 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12852 (find_best_reg_for_expr): Likewise.
12853 * shrink-wrap.c (try_shrink_wrapping): Likewise.
12855 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12857 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
12858 (HARD_REG_SET::operator&): Likewise.
12859 (AND_HARD_REG_SET): Delete.
12860 * caller-save.c (setup_save_areas): Use "&" instead of
12862 (save_call_clobbered_regs): Likewise.
12863 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12864 * config/m32c/m32c.c (reduce_class): Likewise.
12865 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12866 * final.c (get_call_reg_set_usage): Likewise.
12867 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
12868 (setup_left_conflict_sizes_p): Likewise.
12869 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12870 (ira_build_conflicts): Likewise.
12871 * ira-costs.c (restrict_cost_classes): Likewise.
12872 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
12873 (setup_reg_class_relations): Likewise.
12874 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
12875 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
12876 * resource.c (find_dead_or_set_registers): Likewise.
12877 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12879 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12881 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
12882 (COMPL_HARD_REG_SET): Delete.
12883 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
12884 of COMPL_HARD_REG_SET.
12885 (try_rename_operands): Likewise.
12886 * config/sh/sh.c (push_regs): Likewise.
12887 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12888 * lra-constraints.c (contains_reg_p): Likewise.
12889 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
12891 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12893 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
12894 * caller-save.c (save_call_clobbered_regs): Use assignment instead
12895 of COPY_HARD_REG_SET.
12896 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
12897 (epiphany_conditional_register_usage): Likewise.
12898 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12899 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12900 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12901 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12902 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
12903 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12904 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
12905 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12906 * config/sh/sh.c (output_stack_adjust): Likewise.
12907 * final.c (collect_fn_hard_reg_usage): Likewise.
12908 (get_call_reg_set_usage): Likewise.
12909 * ira-build.c (ira_create_object, remove_low_level_allocnos)
12910 (ira_flattening): Likewise.
12911 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
12912 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
12913 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
12914 (ira_reassign_pseudos): Likewise.
12915 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12916 (ira_build_conflicts): Likewise.
12917 * ira-costs.c (restrict_cost_classes): Likewise.
12918 (setup_regno_cost_classes_by_aclass): Likewise.
12919 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
12920 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
12921 (setup_stack_reg_pressure_class, setup_pressure_classes)
12922 (setup_allocno_and_important_classes, setup_class_translate_array)
12923 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
12924 (ira_setup_eliminable_regset): Likewise.
12925 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12926 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12927 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12928 (process_alt_operands, inherit_in_ebb): Likewise.
12929 * lra-lives.c (process_bb_lives): Likewise.
12930 * lra-spills.c (assign_spill_hard_regs): Likewise.
12931 * lra.c (lra): Likewise.
12932 * mode-switching.c (new_seginfo): Likewise.
12933 * postreload.c (reload_combine): Likewise.
12934 * reg-stack.c (straighten_stack): Likewise.
12935 * reginfo.c (save_register_info, restore_register_info): Likewise.
12936 (init_reg_sets_1, record_subregs_of_mode): Likewise
12937 * regrename.c (create_new_chain, rename_chains): Likewise.
12938 * reload1.c (order_regs_for_reload, find_reg): Likewise.
12939 (find_reload_regs): Likewise.
12940 * resource.c (find_dead_or_set_registers): Likewise.
12941 (mark_target_live_regs): Likewise.
12942 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12944 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12946 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
12947 (note_pattern_stores): Declare.
12948 (note_stores): Take an rtx_insn *.
12949 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
12950 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
12951 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
12952 (note_stores): Take an rtx_insn * as argument and process
12953 CALL_INSN_FUNCTION_USAGE. Rename old function to...
12954 (note_pattern_stores): ...this.
12955 (find_first_parameter_load): Pass the insn rather than
12956 its pattern to note_stores.
12957 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
12958 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
12959 (insert_one_insn): Likewise.
12960 * combine.c (combine_instructions): Likewise.
12961 (likely_spilled_retval_p): Likewise.
12962 (try_combine): Use note_pattern_stores instead of note_stores.
12963 (record_dead_and_set_regs): Pass the insn rather than its pattern
12965 (reg_dead_at_p): Likewise.
12966 * config/bfin/bfin.c (workaround_speculation): Likewise.
12967 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
12968 rather than an rtx.
12969 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
12970 instead of note_stores.
12971 (frv_optimize_membar_local): Pass the insn rather than its pattern
12973 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12974 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
12975 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
12976 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
12977 (mips_reorg_process_insns): Likewise.
12978 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
12979 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
12981 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
12982 its pattern to note_stores.
12983 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
12985 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
12986 the insn to note_stores.
12987 (prescan_insns_for_dce): Update call accordingly.
12988 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
12990 * df-problems.c (can_move_insns_across): Likewise.
12991 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
12992 * function.c (assign_parm_setup_reg): Likewise.
12993 * gcse-common.c (record_last_mem_set_info_common): Likewise.
12994 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
12995 (single_set_gcse): Likewise.
12996 * ira.c (validate_equiv_mem): Likewise.
12997 (update_equiv_regs): Use note_pattern_stores rather than note_stores
12999 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13000 pattern to note_stores.
13001 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13002 * loop-iv.c (simplify_using_initial_values): Likewise.
13003 * mode-switching.c (optimize_mode_switching): Likewise.
13004 * optabs.c (emit_libcall_block_1): Likewise.
13005 (expand_atomic_compare_and_swap): Likewise.
13006 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13007 (record_opr_changes): Likewise. Remove explicit handling of
13008 CALL_INSN_FUNCTION_USAGE.
13009 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13010 * regcprop.c (kill_clobbered_values): Likewise.
13011 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13013 * regrename.c (build_def_use): Likewise.
13014 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13015 for mark_not_eliminable.
13016 (reload_as_needed): Pass the insn rather than its pattern
13018 (emit_output_reload_insns): Likewise.
13019 * resource.c (mark_target_live_regs): Likewise.
13020 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13021 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13022 instead of note_stores.
13023 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13024 its pattern to note_stores.
13025 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13026 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13028 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13030 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13031 than a #define. Use a structure rather than an array as the
13032 fallback definition. Remove special cases for low array sizes.
13033 (const_hard_reg_set): New typedef.
13034 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13035 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13036 (hard_reg_set_empty_p): Likewise.
13037 (SET_HARD_REG_BIT): Use a function rather than a macro to
13038 handle the case in which HARD_REG_SET is a structure.
13039 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13040 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13041 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13042 (IOR_COMPL_HARD_REG_SET): Likewise.
13043 (hard_reg_set_iterator::pset): Constify the pointer target.
13044 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13045 of a "const HARD_REG_SET". Update the handling of non-integer
13047 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13048 * reload.h: Likewise.
13049 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13050 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13051 of a "const HARD_REG_SET".
13052 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13053 (range_in_hard_reg_set_p): Likewise.
13054 * ira-costs.c (restrict_cost_classes): Likewise.
13055 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13056 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13057 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13058 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13059 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13060 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13061 take an unsigned int and open-code the HARD_REG_SET operations.
13063 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13065 * Makefile.in (OBJS): Remove bt-load.o.
13066 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13067 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13068 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13069 document that the option no longer does anything.
13070 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13071 * target.def (branch_target_register_class): Delete.
13072 (branch_target_register_callee_saved): Likewise.
13073 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13074 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13075 * doc/tm.texi: Regenerate.
13076 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13077 (make_pass_branch_target_load_optimize2): Likewise.
13078 * passes.def (pass_branch_target_load_optimize1): Likewise.
13079 (pass_branch_target_load_optimize2): Likewise.
13080 * targhooks.h (default_branch_target_register_class): Likewise.
13081 * targhooks.c (default_branch_target_register_class): Likewise.
13082 * opt-suggestions.c (test_completion_valid_options): Remove
13083 -fbtr-bb-exclusive from the list of test options.
13084 * bt-load.c: Remove.
13086 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13088 * match.pd: Add flag_unsafe_math_optimizations check
13089 before deciding on the widest type in a binary math operation.
13091 2019-09-09 Martin Liska <mliska@suse.cz>
13093 * config/i386/i386.opt: Update comment of removed
13094 options that are preserved only for backward
13097 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13100 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13101 instead of __v16qs.
13104 * config/i386/avxintrin.h (__v32qs): New typedef.
13105 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13106 instead of __v32qi.
13108 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13110 * doc/invoke.texi (Option Summary): Cover eBPF.
13111 (eBPF Options): New section.
13112 * doc/extend.texi (BPF Built-in Functions): Likewise.
13113 (BPF Kernel Helpers): Likewise.
13115 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13117 * config.gcc: Support for bpf-*-* targets.
13118 * common/config/bpf/bpf-common.c: New file.
13119 * config/bpf/t-bpf: Likewise.
13120 * config/bpf/predicates.md: Likewise.
13121 * config/bpf/constraints.md: Likewise.
13122 * config/bpf/bpf.opt: Likewise.
13123 * config/bpf/bpf.md: Likewise.
13124 * config/bpf/bpf.h: Likewise.
13125 * config/bpf/bpf.c: Likewise.
13126 * config/bpf/bpf-protos.h: Likewise.
13127 * config/bpf/bpf-opts.h: Likewise.
13128 * config/bpf/bpf-helpers.h: Likewise.
13129 * config/bpf/bpf-helpers.def: Likewise.
13131 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13133 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13136 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13138 * opt-functions.awk (integer_range_info): Make sure values are in
13139 numeric context before operating with them.
13141 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13143 * genemit.c (gen_split): Print the filename and line number where the
13144 splitter (or peephole2) was defined, to the dump file.
13146 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13148 PR tree-optimization/91665
13149 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13150 incompatible with the type of PHI result.
13152 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13155 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13156 gen_unaligned_storedi for 4-byte aligned addresses.
13158 2019-09-06 Jim Wilson <jimw@sifive.com>
13160 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13163 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13165 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13167 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13169 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13170 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13172 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13175 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13176 cost of SSE->integer and integer->SSE moves from 2 to 6.
13177 (core_cost): Ditto.
13179 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13181 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13182 before testing TYPE_TRANSPARENT_AGGR.
13183 * calls.c (initialize_argument_information, load_register_parameters):
13186 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13188 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13190 (cmp_ior): Likewise.
13192 2019-09-06 Martin Liska <mliska@suse.cz>
13194 * doc/match-and-simplify.texi: Separate tuples with ;.
13196 2019-09-06 Martin Liska <mliska@suse.cz>
13199 * Makefile.in: Remove tlink.o.
13200 * collect2.c (do_link): New function isolated
13203 * collect2.h (do_tlink): Remove declaration of do_tlink.
13204 * doc/extend.texi: Remove documentation of -frepo.
13205 * doc/invoke.texi: Likewise.
13206 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13209 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13210 Jim Wilson <jimw@sifive.com>
13213 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13214 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13215 paradoxical_subreg_p (operands[0]).
13216 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13217 use as intermediate value.
13219 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13221 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13222 (sync_compare_and_swap<mode>_insn): Likewise.
13224 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13226 PR middle-end/91615
13227 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13228 without movmisalign optab.
13230 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13232 PR middle-end/91001
13233 PR middle-end/91105
13234 PR middle-end/91106
13235 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13236 types, use type of their first field instead of type of
13237 args[i].tree_value.
13239 2019-09-05 Richard Biener <rguenther@suse.de>
13241 PR rtl-optimization/91656
13242 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13245 2019-09-05 Richard Biener <rguenther@suse.de>
13247 PR middle-end/90501
13248 * tree-inline.c (declare_return_variable): Mark the return
13249 slot as addressable after building an address of it.
13251 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13253 * doc/install.texi: Update and clarify requirements to build GNAT.
13255 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13257 PR middle-end/91577
13258 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13259 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13260 call to be in memory.
13261 (pass_expand::execute): Call discover_nonconstant_array_refs before
13262 setting currently_expanding_to_rtl.
13264 2019-09-04 Caroline Tice <cmtice@google.com>
13266 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13267 specified together.
13269 2019-09-04 Marek Polacek <polacek@redhat.com>
13271 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13273 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13276 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13277 for QI and HImode moves between SSE and general registers.
13279 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13282 * doc/invoke.texi: Document -Wenum-conversion.
13284 2019-09-04 Richard Biener <rguenther@suse.de>
13286 PR rtl-optimization/36262
13287 * postreload-gcse.c: Include intl.h and gcse.h.
13288 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13289 to avoid linear list walk.
13290 (record_last_mem_set_info): Gate off if not computing transparentness.
13291 (get_bb_avail_insn): If transparentness isn't computed give up
13293 (gcse_after_reload_main): Skip compute_transp and extended PRE
13294 if gcse_or_cprop_is_too_expensive says so.
13296 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13298 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13300 (msp430_select_section): Handle decls with the "noinit" attribute with
13301 default_elf_select_section.
13302 Handle SECCAT_RODATA_MERGE_* section types with
13303 default_elf_select_section.
13304 Add comments about handling of unsupported section types.
13305 (msp430_section_type_flags): Remove handling of the noinit section.
13307 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13309 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13310 conflicting msp430-specific attributes.
13311 (msp430_section_attr): Likewise.
13312 Add warnings about conflicts with generic "noinit" and "section"
13314 Fix grammar in -mlarge error message.
13315 (msp430_data_attr): Rename to msp430_persist_attr.
13316 Add warnings about conflicts with generic "noinit" and "section"
13318 Add warning for when variable is not initialized.
13319 Chain conditionals which prevent the attribute being added.
13320 (ATTR_EXCL): New helper.
13321 (attr_reent_exclusions): New exclusion table.
13322 (attr_naked_exclusions): Likewise.
13323 (attr_crit_exclusions): Likewise.
13324 (attr_lower_exclusions): Likewise.
13325 (attr_upper_exclusions): Likewise.
13326 (attr_either_exclusions): Likewise.
13327 (attr_persist_exclusions): Likewise.
13328 (msp430_attribute_table): Update with exclusion rules.
13329 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13332 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13334 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13335 (msp430_handle_generic_attribute): New function.
13336 * doc/tm.texi: Regenerate.
13337 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13338 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13339 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13340 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13342 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13344 PR tree-optimization/91504
13345 * match.pd: Add ((~a & b) ^a) --> (a | b).
13347 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13350 * config/i386/i386-expand.c (split_double_mode): If there is more than
13351 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13352 already split matching MEM operand instead of calling adjust_address
13355 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13357 * config.gcc: Obsolete spu target. Remove references to spu.
13358 * configure.ac: Remove references to spu.
13359 * configure: Regenerate.
13360 * config/spu/: Remove directory.
13361 * common/config/spu/: Remove directory.
13363 * doc/extend.texi: Remove references to spu.
13364 * doc/invoke.texi: Likewise.
13365 * doc/md.texi: Likewise.
13366 * doc/sourcebuild.texi: Likewise.
13368 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13370 PR middle-end/91603
13371 PR middle-end/91612
13372 PR middle-end/91613
13373 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13374 and SSA_NAME referring to CONSTANT_P correctly.
13376 2019-09-03 Richard Biener <rguenther@suse.de>
13378 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13379 (vn_nary_op_insert): Likewise.
13380 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13381 (vn_nary_op_lookup): Likewise.
13382 (vn_nary_op_insert): Likewise.
13384 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13386 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13387 (*op0, 1) instead of XEXP (*op1, 0).
13389 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13391 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13392 (aarch64_fjcvtzs): New define_insn.
13393 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13394 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13396 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13397 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13398 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13399 __ARM_FEATURE_JCVT where appropriate.
13400 * config/aarch64/arm_acle.h (__jcvt): Define.
13402 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13404 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13405 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13406 (aarch64_<frintnzs_op><mode>): New define_insn.
13407 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13408 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13409 __ARM_FEATURE_FRINT when appropriate.
13410 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13411 frint32x, frint64z, frint64x.
13412 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13413 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13414 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13415 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13416 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13417 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13418 * config/aarch64/iterators.md (VSFDF): Define.
13419 (FRINTNZX): Likewise.
13420 (frintnzs_op): Likewise.
13422 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13424 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13425 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13427 * config/aarch64/aarch64-tune.md: Regenerated.
13428 * doc/invoke.texi: Document the new processors.
13430 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13432 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13436 (sve2-sm4): Likewise.
13437 (sveaes): Likewise.
13438 (svesha3): Likewise.
13439 (svebitperm): Likewise.
13441 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13442 Richard Biener <rguenther@suse.de>
13444 PR tree-optimization/91597
13445 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13446 BIT_AND_EXPR optimization for pointers, even if both operand
13447 ranges don't include NULL, the result can be NULL.
13449 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13451 PR middle-end/91605
13452 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13453 (non_mem_decl_p): ...this.
13454 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13455 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13456 unconditionally as before.
13458 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13461 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13462 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13463 * tree.def (LTGT_EXPR): Likewise.
13464 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13466 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13469 * fold-const.c (range_check_type): For enumeral and boolean
13470 type, pass 1 to type_for_size langhook instead of
13471 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13472 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13473 (build_range_check): Don't call unsigned_type_for for pointer types.
13474 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13475 range_check_type result.
13477 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13479 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13480 (replace_ref): Do not replace a chain of only two candidates which are
13481 valid memory references.
13483 2019-09-02 Martin Liska <mliska@suse.cz>
13485 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13486 Bail out when we'll end up with the same number of clusters as
13488 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13489 (jump_table_cluster::can_be_handled): Remove the guard
13490 as it's already handled in ::is_enabled. Allocate output
13491 after early bail out.
13493 2019-09-02 Martin Liska <mliska@suse.cz>
13495 PR gcov-profile/91601
13496 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13497 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13498 also negative edges.
13499 (circuit): Handle also negative edges as they can happen
13500 in some situations.
13502 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13505 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13506 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13507 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13509 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13511 PR middle-end/91623
13512 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13513 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13514 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13518 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13519 GIMPLE_ASM TREE_LIST operands.
13521 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13523 * doc/generic.texi (Unary and Binary Expressions): Mark up
13524 an instance of TYPE_MIN.
13526 2019-08-31 Stafford Horne <shorne@gmail.com>
13528 * config/or1k/constraints.md (t): New constraint.
13529 * config/or1k/or1k.h (GOT_REGS): New register class.
13530 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13532 2019-08-30 Jim Wilson <jimw@sifive.com>
13534 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
13535 and -fpic and -mplt then disable -msave-restore and warn.
13537 2019-08-30 Martin Sebor <msebor@redhat.com>
13539 PR middle-end/91599
13540 * tree-ssa-strlen.c (handle_store): Use a fallback location if
13541 the statement doesn't have one.
13542 * gimple-pretty-print.c (percent_G_format): Same.
13544 PR middle-end/91584
13545 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
13546 before using them to validate MEM_REF offset.
13548 2019-08-30 Marek Polacek <polacek@redhat.com>
13550 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
13552 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13554 * config/arm/arm.md (unaligned_loaddi,
13555 unaligned_storedi): New unspec insn patterns.
13556 * config/arm/neon.md (unaligned_storev8qi): Likewise.
13557 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
13558 and unaligned_storedi for 4-byte aligned memory.
13559 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
13560 4-byte aligned memory.
13562 2019-08-30 Martin Jambor <mjambor@suse.cz>
13564 tree-optimization/91579
13565 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
13566 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
13568 (arg_needs_copy_p): Removed.
13569 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
13571 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
13573 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13575 * config/i386/i386-features.c
13576 (general_scalar_chain::compute_convert_gain):
13577 Correct cost for double-word shifts.
13578 (general_scalar_to_vector_candidate_p): Reject count operands
13579 greater or equal to mode bitsize.
13581 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13583 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13584 for moves between SSE and non-general registers and between
13585 mask and non-general registers.
13586 (ix86_register_move_cost): Remove stalled comment.
13588 2019-08-29 Richard Biener <rguenther@suse.de>
13590 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13591 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
13593 2019-08-29 Richard Biener <rguenther@suse.de>
13596 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13597 Do not emit scalar copies for debug-insns, instead replace
13598 their uses with the reg copy used in the chain or reset them
13599 if there is a reaching definition outside of the chain as well.
13601 2019-08-29 Jakub Jelinek <jakub@redhat.com>
13604 * config/i386/i386-expand.c (expand_vec_perm_movs,
13605 expand_vec_perm_blend, expand_vec_perm_vpermil,
13606 expand_vec_perm_pshufb, expand_vec_perm_1,
13607 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
13608 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
13609 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
13610 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
13611 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
13612 comments - replace ix86_expand_vec_perm_builtin_1 with
13613 ix86_expand_vec_perm_const_1.
13614 (expand_vec_perm2_vperm2f128_vblend): New function.
13615 (ix86_expand_vec_perm_const_1): New forward declaration. Call
13616 expand_vec_perm2_vperm2f128_vblend as last resort.
13617 (canonicalize_perm): Formatting fix.
13619 PR tree-optimization/91351
13620 * tree-cfg.c (generate_range_test): Use range_check_type instead of
13622 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
13623 range_check_type returns NULL.
13624 * tree-switch-conversion.c (switch_conversion::build_one_array):
13625 Use range_check_type instead of unsigned_type_for, don't perform
13626 linear opt if it returns NULL.
13627 (bit_test_cluster::find_bit_tests): Formatting fix.
13628 (bit_test_cluster::emit): Use range_check_type instead of
13630 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
13633 2019-08-29 Richard Biener <rguenther@suse.de>
13635 PR tree-optimization/91568
13636 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
13637 (vect_update_max_nunits): Add overload for poly_uint64.
13638 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
13639 (vect_build_slp_tree): Record max_nunits into the subtree
13640 and merge it upwards.
13641 (vect_print_slp_tree): Print max_nunits.
13643 2019-08-28 Marek Polacek <polacek@redhat.com>
13645 Implement P1152R4: Deprecating some uses of volatile.
13647 * doc/invoke.texi: Document -Wvolatile.
13649 2019-08-28 Marek Polacek <polacek@redhat.com>
13651 PR c++/91360 - Implement C++20 P1143R2: constinit.
13652 * doc/invoke.texi: Document -Wc++20-compat.
13654 2019-08-28 Martin Sebor <msebor@redhat.com>
13656 PR tree-optimization/91457
13657 * builtins.c (component_size): New function.
13658 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
13659 * builtins.h (compute_objsize): Add argument.
13660 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
13661 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
13662 (vrp_prop::check_mem_ref): Same.
13663 (vrp_prop::search_for_addr_array): Set no-warning bit.
13664 (check_array_bounds): Same.
13666 2019-08-28 Martin Sebor <msebor@redhat.com>
13669 * opts-common.c (option_enabled): Correct checking for language
13672 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
13674 * config/i386/i386.c (ix86_register_move_cost): Do not
13675 limit the cost of moves to/from XMM register to minimum 8.
13677 2019-08-28 Martin Jambor <mjambor@suse.cz>
13680 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
13681 checking assert a normal assert to test it really is redundant.
13682 * ipa-prop.c (compute_complex_assign_jump_func): Removed
13684 (update_jump_functions_after_inlining): Removed combining unary
13685 arithmetic operations with an ancestor jump function.
13686 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13689 2019-08-28 Richard Biener <rguenther@suse.de>
13691 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
13692 add the MD problem.
13694 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13695 Richard Biener <rguenther@suse.de>
13697 * expr.c (expand_assignment): Handle misaligned DECLs.
13698 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
13699 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
13701 (assign_parm_setup_stack): Allocate properly aligned stack slots.
13702 * varasm.c (build_constant_desc): Align constants of misaligned types.
13703 * config/arm/predicates.md (aligned_operand): New predicate.
13704 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
13705 aligned_operand to check restrictions on memory addresses.
13706 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
13707 * config/arm/vec-common.md (mov<VALL>): Likewise.
13709 2019-08-28 Jakub Jelinek <jakub@redhat.com>
13712 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
13713 V_128 iterator instead of VI_128.
13715 2019-08-28 Martin Liska <mliska@suse.cz>
13717 PR tree-optimization/90970
13718 * builtins.c (check_access): Remove assignment to maxread
13719 as it hasn't been used since when it was introduced in r255755.
13721 2019-08-27 Martin Sebor <msebor@redhat.com>
13723 PR tree-optimization/91567
13724 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
13725 of unknown strings.
13726 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
13727 to PTRDIFF_MAX - 2.
13729 2019-08-27 Jeff Law <law@redhat.com>
13731 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
13732 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13734 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
13737 * config/i386/i386-features.c (convert_scalars_to_vector):
13738 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
13739 crtl->stack_realign_processed. Update crtl->drap_reg by calling
13740 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
13741 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
13743 2019-08-27 Richard Biener <rguenther@suse.de>
13745 * config/i386/i386-features.h
13746 (general_scalar_chain::~general_scalar_chain): Add.
13747 (general_scalar_chain::insns_conv): New bitmap.
13748 (general_scalar_chain::n_sse_to_integer): New.
13749 (general_scalar_chain::n_integer_to_sse): Likewise.
13750 (general_scalar_chain::make_vector_copies): Adjust signature.
13751 * config/i386/i386-features.c
13752 (general_scalar_chain::general_scalar_chain): Outline,
13753 initialize new members.
13754 (general_scalar_chain::~general_scalar_chain): New.
13755 (general_scalar_chain::mark_dual_mode_def): Record insns
13756 we need to insert conversions at and count them.
13757 (general_scalar_chain::compute_convert_gain): Account
13758 for conversion instructions at chain boundary.
13759 (general_scalar_chain::make_vector_copies): Generate a single
13760 copy for a def by a specific insn.
13761 (general_scalar_chain::convert_registers): First populate
13762 defs_map, then make copies at out-of chain insns.
13764 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
13766 * config/arm/arm.md (stack_protect_set_insn): Add security-related
13768 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
13770 2019-08-27 Martin Liska <mliska@suse.cz>
13772 * cgraph.c (cgraph_node::remove): Remove dead assignment before
13774 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
13775 Enclose in anonymous namespace.
13776 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
13777 hard_register initialization in braces.
13778 * tree-vrp.h (value_range_base::supports_type_p): Return false
13779 for function with boolean return type.
13781 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
13783 * config/i386/i386.c (emit_i387_cw_initialization)
13784 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
13786 2019-08-26 Martin Sebor <msebor@redhat.com>
13789 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
13790 (sprintf_dom_walker): Remove class.
13791 (get_int_range): Make argument const.
13792 (directive::fmtfunc, directive::set_precision): Same.
13793 (format_none): Same.
13794 (build_intmax_type_nodes): Same.
13795 (adjust_range_for_overflow): Same.
13796 (format_floating): Same.
13797 (format_character): Same.
13798 (format_string): Same.
13799 (format_plain): Same.
13800 (get_int_range): Cast away constness.
13801 (format_integer): Same.
13802 (get_string_length): Call get_range_strlen_dynamic. Handle
13803 null lendata.maxbound.
13804 (should_warn_p): Adjust argument scope qualifier.
13805 (maybe_warn): Same.
13806 (format_directive): Same.
13807 (parse_directive): Same.
13808 (is_call_safe): Same.
13809 (try_substitute_return_value): Same.
13810 (sprintf_dom_walker::handle_printf_call): Rename...
13811 (handle_printf_call): ...to this. Initialize target to host charmap
13812 here instead of in pass_sprintf_length::execute.
13813 (struct call_info): Make global.
13814 (sprintf_dom_walker::compute_format_length): Make global.
13815 (sprintf_dom_walker::handle_gimple_call): Same.
13816 * passes.def (pass_sprintf_length): Replace with pass_strlen.
13817 * print-rtl.c (print_pattern): Reduce the number of spaces to
13818 avoid -Wformat-truncation.
13819 * tree-pass.h (make_pass_warn_printf): New function.
13820 * tree-ssa-strlen.c (strlen_optimize): New variable.
13821 (get_string_length): Add comments.
13822 (get_range_strlen_dynamic): New function.
13823 (check_and_optimize_call): New function.
13824 (handle_integral_assign): New function.
13825 (strlen_check_and_optimize_stmt): Factor code out into
13826 strlen_check_and_optimize_call and handle_integral_assign.
13827 (strlen_dom_walker::evrp): New member.
13828 (strlen_dom_walker::before_dom_children): Use evrp member.
13829 (strlen_dom_walker::after_dom_children): Use evrp member.
13830 (printf_strlen_execute): New function.
13831 (pass_strlen::gate): Update to handle printf calls.
13832 (dump_strlen_info): New function.
13833 (pass_data_warn_printf): New variable.
13834 (pass_warn_printf): New class.
13835 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
13836 (handle_printf_call): Same.
13837 * tree-vrp.c (value_range_base::type): Adjust assertion.
13838 * vr-values.c (vr_values::update_value_range): Use type of the first
13839 argument rather than the second.
13841 2019-08-26 Richard Biener <rguenther@suse.de>
13843 * config/i386/i386-features.c (general_remove_non_convertible_regs):
13845 (convert_scalars_to_vector): Do not call it.
13847 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13848 Uros Bizjak <ubizjak@gmail.com>
13850 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
13851 CASE_MATHFN_FLOATN for roundeven.
13852 * config/i386/i386.c (ix86_i387_mode_needed): Add case
13854 (ix86_mode_needed): Likewise.
13855 (ix86_mode_after): Likewise.
13856 (ix86_mode_entry): Likewise.
13857 (ix86_mode_exit): Likewise.
13858 (ix86_emit_mode_set): Likewise.
13859 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
13860 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
13861 (ix86_entity): Add I387_ROUNDEVEN.
13862 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
13863 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
13864 (define_int_iterator): Likewise.
13865 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
13866 (define_constant): Define ROUND_ROUNDEVEN mode.
13867 (define_attr): Add roundeven mode for i387_cw.
13868 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
13869 * internal-fn.def (ROUNDEVEN): New builtin function.
13870 * optabs.def (roundeven_optab): New optab.
13872 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13874 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
13876 * builtins.def: Added function definitions for roundeven function
13878 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
13879 function call. Adjust condition for floor, ceil, trunc and round.
13880 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
13881 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
13882 (integer_valued_real_call_p): Added case for roundeven function.
13883 * real.c (is_even): New function. Returns true if real number is even,
13884 otherwise returns false.
13885 (is_halfway_below): New function. Returns true if real number is
13886 halfway between two integers, else return false.
13887 (real_roundeven): New function. Round real number to nearest integer,
13888 rounding halfway cases towards even.
13889 * real.h (real_value): Added descriptive comments. Added function
13890 declaration for roundeven function.
13891 * doc/extend.texi (Other Builtins): List roundeven variants among
13892 functions which can be handled as builtins.
13894 2019-08-26 Richard Biener <rguenther@suse.de>
13898 * config/i386/i386-features.h (general_scalar_chain::defs_map):
13900 (general_scalar_chain::replace_with_subreg): Remove.
13901 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13902 (general_scalar_chain::convert_reg): Adjust signature.
13903 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
13904 iterate over all defs of a reg.
13905 (general_scalar_chain::replace_with_subreg): Remove.
13906 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13907 (general_scalar_chain::make_vector_copies): Populate defs_map,
13908 place copy only after defs that are used as vectors in the chain.
13909 (general_scalar_chain::convert_reg): Emit a copy for a specific
13910 def in a specific instruction.
13911 (general_scalar_chain::convert_op): All reg uses are converted here.
13912 (general_scalar_chain::convert_insn): Emit copies for scalar
13913 uses of defs here. Replace uses with the copies we created.
13914 Replace and convert the def. Adjust REG_DEAD notes, remove
13915 REG_EQUIV/EQUAL notes.
13916 (general_scalar_chain::convert_registers): Only handle copies
13917 into the chain here.
13919 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13921 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
13923 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13925 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
13926 Add nop_convert case.
13927 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
13928 Fold all statements if requested.
13929 * tree-ssa-propagate.h (class substitute_and_fold_engine):
13930 Allow to fold all statements.
13931 * tree-vrp.c (class vrp_folder):
13932 Let substitute_and_fold_engine fold all statements.
13934 2019-08-26 Richard Biener <rguenther@suse.de>
13936 PR tree-optimization/91526
13937 * passes.def: Note that after late FRE we do TODO_update_address_taken.
13938 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
13939 TODO_update_address_taken.
13941 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
13943 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
13946 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13948 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
13949 machine mode for unspec_volatile operand.
13951 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13953 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
13954 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
13955 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
13956 (prefer_neon_for_64bits): Remove.
13957 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
13958 (tune_params): Remove PREF_NEON_64_FALSE uses.
13959 (arm_option_override): Remove prefer_neon selection code.
13960 (arm_print_tune_info): Remove prefer_neon_for_64bits.
13961 * config/arm/arm-protos.h (tune_params): Remove
13962 prefer_neon_for_64bits.
13963 (prefer_neon_for_64bits): Remove.
13965 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
13968 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
13969 and issue any diagnostics needed before collecting the pre-PCH
13972 2019-08-23 Jakub Jelinek <jakub@redhat.com>
13974 PR middle-end/91283
13975 * common.opt (fexcess-precision=): Add Optimization flag. Use
13976 flag_excess_precision variable instead of
13977 flag_excess_precision_cmdline.
13978 * flags.h (class target_flag_state): Remove x_flag_excess_precision
13980 (flag_excess_precision): Don't define.
13981 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
13982 flag_excess_precision_cmdline. Remove comment.
13983 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
13984 and x_flag_excess_precision instead of
13985 frontend_set_flag_excess_precision_cmdline and
13986 x_flag_excess_precision_cmdline.
13987 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
13988 x_flag_excess_precision_cmdline.
13989 * toplev.c (init_excess_precision): Remove.
13990 (lang_dependent_init_target): Don't call it.
13992 2019-08-23 Martin Liska <mliska@suse.cz>
13994 * lto-wrapper.c (run_gcc): When setting jobserver
13995 set also parallel to 1. This was done so before r273908.
13997 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
13999 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14000 (cortex-a76ae): Likewise.
14001 (cortex-a77): Likewise
14002 * config/arm/arm-tables.opt: Regenerate.
14003 * config/arm/arm-tune.md: Likewise.
14004 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14005 cortex-a77 CPU options.
14007 2019-08-23 Martin Liska <mliska@suse.cz>
14009 * profile.c (instrument_values): Do not set
14010 0 as last argument.
14011 * tree-profile.c (gimple_gen_interval_profiler): Remove
14013 (gimple_gen_pow2_profiler): Likewise.
14014 (gimple_gen_topn_values_profiler): Likewise.
14015 (gimple_gen_ic_profiler): Likewise.
14016 (gimple_gen_time_profiler): Likewise.
14017 (gimple_gen_average_profiler): Likewise.
14018 (gimple_gen_ior_profiler): Likewise.
14019 * value-prof.c (dump_histogram_value): Use default
14020 in switch statement instead of HIST_TYPE_MAX.
14021 (stream_in_histogram_value): Likewise.
14022 (gimple_duplicate_stmt_histograms): Do not
14023 use NULL for implicitly set arguments.
14024 (gimple_divmod_values_to_profile): Do not use
14025 reserve+quick_push.
14026 (gimple_indirect_call_to_profile): Likewise.
14027 (gimple_find_values_to_profile): Use implicit
14028 function call arguments.
14029 * value-prof.h (gimple_alloc_histogram_value):
14030 Set default values.
14031 (gimple_gen_interval_profiler): Remove last argument.
14032 (gimple_gen_pow2_profiler): Likewise.
14033 (gimple_gen_topn_values_profiler): Likewise.
14034 (gimple_gen_ic_profiler): Likewise.
14035 (gimple_gen_time_profiler): Likewise.
14036 (gimple_gen_average_profiler): Likewise.
14037 (gimple_gen_ior_profiler): Likewise.
14039 2019-08-22 Martin Sebor <msebor@redhat.com>
14041 PR middle-end/91490
14042 * builtins.c (c_strlen): Rename argument and introduce new local.
14043 Set no-warning bit on original argument.
14044 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14045 Fold empty and zero constructors into empty strings.
14046 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14047 for missing initializers.
14048 * tree.c (build_string_literal): Handle optional argument.
14049 * tree.h (build_string_literal): Add defaulted argument.
14050 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14051 no-warning bit on original expression.
14053 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14056 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14057 and UNSPEC_DARN_RAW.
14058 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14060 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14061 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14062 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14064 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14066 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14067 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14068 * config/rs6000/rs6000.md (unspec): ... here.
14069 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14070 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14071 cmpeqb, *cmpeqb_internal): Delete, move to...
14072 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14073 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14074 cmpeqb, *cmpeqb_internal): ... here.
14076 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14078 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14079 intrinsics if __ARM_FP.
14080 Use __ARM_FEATURE_CRC32 ifdef guard.
14082 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14084 * config/arm/arm.md (neon_for_64bits): Remove.
14085 (avoid_neon_for_64bits): Remove.
14086 (arm_adddi3): Always split early.
14087 (arm_subdi3): Always split early.
14088 (negdi2): Remove Neon expansion.
14089 (split zero_extend): Split before reload.
14090 (split sign_extend): Split before reload.
14092 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14094 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14095 (qhs_extenddi_cstr): Likewise.
14096 * config/arm/arm.md (ashldi3): Always expand early.
14097 (ashlsi3): Likewise.
14098 (ashrsi3): Likewise.
14099 (zero_extend<mode>di2): Remove Neon variants.
14100 (extend<mode>di2): Likewise.
14101 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14102 (signed_shift_di3_neon): Likewise.
14103 (unsigned_shift_di3_neon): Likewise.
14104 (ashrdi3_neon_imm_noclobber): Likewise.
14105 (lshrdi3_neon_imm_noclobber): Likewise.
14106 (<shift>di3_neon): Likewise.
14107 (split extend): Remove DI extend split patterns.
14109 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14111 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14112 (split not): Add DImode not splitter.
14113 (anddi3): Remove pattern.
14114 (anddi3_insn): Likewise.
14115 (anddi_zesidi_di): Likewise.
14116 (anddi_sesdi_di): Likewise.
14117 (anddi_notdi_di): Likewise.
14118 (anddi_notzesidi_di): Likewise.
14119 (anddi_notsesidi_di): Likewise.
14120 (iordi3): Likewise.
14121 (iordi3_insn): Likewise.
14122 (iordi_zesidi_di): Likewise.
14123 (iordi_sesidi_di): Likewise.
14124 (xordi3): Likewise.
14125 (xordi3_insn): Likewise.
14126 (xordi_sesidi_di): Likewise.
14127 (xordi_zesidi_di): Likewise.
14128 (one_cmpldi2): Likewise.
14129 (one_cmpldi2_insn): Likewise.
14130 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14131 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14133 (iwmmxt_xordi3): Likewise.
14134 (iwmmxt_anddi3): Likewise.
14135 * config/arm/neon.md (orndi3_neon): Remove pattern.
14136 (anddi_notdi_di): Likewise.
14137 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14138 (arm_iordi_operand_neon): Likewise.
14139 (arm_xordi_operand_neon): Likewise.
14140 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14141 (iordi_notzesidi_di): Likewise.
14142 (iordi_notdi_zesidi): Likewise.
14143 (iordi_notsesidi_di): Likewise.
14145 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14147 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14149 (iorsi3_compare0_scratch): Likewise.
14151 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14153 * config/aarch64/aarch64-simd-builtins.def:
14156 * config/aarch64/aarch64-simd.md:
14157 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14158 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14159 (aarch64_ld1_x4_<mode>): Likewise.
14160 (aarch64_st1_x4_<mode>): Likewise.
14161 * config/aarch64/arm_neon.h:
14162 (vld1_s8_x4): New function.
14163 (vld1q_s8_x4): Likewise.
14164 (vld1_s16_x4): Likewise.
14165 (vld1q_s16_x4): Likewise.
14166 (vld1_s32_x4): Likewise.
14167 (vld1q_s32_x4): Likewise.
14168 (vld1_u8_x4): Likewise.
14169 (vld1q_u8_x4): Likewise.
14170 (vld1_u16_x4): Likewise.
14171 (vld1q_u16_x4): Likewise.
14172 (vld1_u32_x4): Likewise.
14173 (vld1q_u32_x4): Likewise.
14174 (vld1_f16_x4): Likewise.
14175 (vld1q_f16_x4): Likewise.
14176 (vld1_f32_x4): Likewise.
14177 (vld1q_f32_x4): Likewise.
14178 (vld1_p8_x4): Likewise.
14179 (vld1q_p8_x4): Likewise.
14180 (vld1_p16_x4): Likewise.
14181 (vld1q_p16_x4): Likewise.
14182 (vld1_s64_x4): Likewise.
14183 (vld1_u64_x4): Likewise.
14184 (vld1_p64_x4): Likewise.
14185 (vld1q_s64_x4): Likewise.
14186 (vld1q_u64_x4): Likewise.
14187 (vld1q_p64_x4): Likewise.
14188 (vld1_f64_x4): Likewise.
14189 (vld1q_f64_x4): Likewise.
14190 (vst1_s8_x4): Likewise.
14191 (vst1q_s8_x4): Likewise.
14192 (vst1_s16_x4): Likewise.
14193 (vst1q_s16_x4): Likewise.
14194 (vst1_s32_x4): Likewise.
14195 (vst1q_s32_x4): Likewise.
14196 (vst1_u8_x4): Likewise.
14197 (vst1q_u8_x4): Likewise.
14198 (vst1_u16_x4): Likewise.
14199 (vst1q_u16_x4): Likewise.
14200 (vst1_u32_x4): Likewise.
14201 (vst1q_u32_x4): Likewise.
14202 (vst1_f16_x4): Likewise.
14203 (vst1q_f16_x4): Likewise.
14204 (vst1_f32_x4): Likewise.
14205 (vst1q_f32_x4): Likewise.
14206 (vst1_p8_x4): Likewise.
14207 (vst1q_p8_x4): Likewise.
14208 (vst1_p16_x4): Likewise.
14209 (vst1q_p16_x4): Likewise.
14210 (vst1_s64_x4): Likewise.
14211 (vst1_u64_x4): Likewise.
14212 (vst1_p64_x4): Likewise.
14213 (vst1q_s64_x4): Likewise.
14214 (vst1q_u64_x4): Likewise.
14215 (vst1q_p64_x4): Likewise.
14216 (vst1_f64_x4): Likewise.
14217 (vst1q_f64_x4): Likewise.
14219 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14221 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14223 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14224 Richard Sandiford <richard.sandiford@arm.com>
14227 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14228 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14230 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14233 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14234 in reg if it fails aarch64_plus_operand predicate.
14236 2019-08-21 Richard Biener <rguenther@suse.de>
14238 PR tree-optimization/91482
14239 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14240 BUILT_IN_ASSUME_ALIGNED calls.
14242 2019-08-21 Richard Biener <rguenther@suse.de>
14246 * config/i386/i386-features.c
14247 (general_scalar_chain::make_vector_copies): Copy stack temporary
14248 rtx when using it multiple times.
14249 (general_scalar_chain::convert_reg): Likewise.
14251 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14253 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14255 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14257 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14258 catch more redundant zero initialization cases.
14259 (dse_dom_walker::dse_optimize_stmt): Likewise.
14261 2019-08-20 Richard Biener <rguenther@suse.de>
14264 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14265 by collect2 when targetm.have_ctors_dtors which avoids dragging
14266 in temporary filenames from LTO input objects.
14268 2019-08-20 Richard Biener <rguenther@suse.de>
14270 PR tree-optimization/37242
14271 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14272 to (T)a + (T)b if we know that a + b does not overflow.
14274 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14276 PR rtl-optimization/91347
14277 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14278 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14280 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14282 * calls.h (function_arg_info): Add a pass_by_reference field,
14283 defaulting to false.
14284 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14285 when applying pass-by-reference semantics.
14286 (initialize_argument_information): Likewise.
14287 (emit_library_call_value_1): Likewise.
14288 * function.c (assign_parm_data_one): Remove passed_pointer field.
14289 (assign_parm_find_data_types): Don't set it.
14290 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14291 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14292 arg.pass_by_reference instead of passed_pointer.
14294 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14296 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14297 into a single function_arg_info, updating its fields when we
14298 apply pass-by-reference and promotion semantics. Use the
14299 function_arg_info to track the mode rather than keeping it in
14300 a separate local variable.
14301 (initialize_argument_information): Likewise. Base the final
14302 arg_to_skip on this new function_arg_info rather than creating
14303 a new one from scratch.
14305 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14307 * function.c (assign_parm_data_one): Replace passed_type,
14308 promoted_mode and named_arg with a function_arg_info field.
14309 (assign_parm_find_data_types): Remove local variables and
14310 assign directly to "data". Make data->passed_mode shadow
14311 data->arg.mode until promotion, then assign the promoted
14312 mode to data->arg.mode.
14313 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14314 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14315 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14316 (assign_parm_setup_block, assign_parm_setup_reg)
14317 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14318 arg.mode instead of promoted_mode, arg.type instead of passed_type
14319 and arg.named instead of named_arg. Use data->arg for
14320 function_arg_info structures that had the field values passed_type,
14321 promoted_mode and named_arg. Base other function_arg_infos on
14322 data->arg, changing the necessary properties.
14324 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14326 * calls.h (apply_pass_by_reference_rules): Declare.
14327 * calls.c (apply_pass_by_reference_rules): New function.
14328 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14329 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14330 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14331 * function.c (assign_parm_find_data_types): Likewise.
14332 * var-tracking.c (prepare_call_arguments): Likewise.
14334 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14336 * target.def (must_pass_in_stack): Take a function_arg_info instead
14337 of a mode and a type.
14338 * doc/tm.texi: Regenerate.
14339 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14340 instead of a mode and a type.
14341 (must_pass_in_stack_var_size_or_pad): Likewise.
14342 * calls.c (must_pass_in_stack_var_size): Likewise.
14343 (must_pass_in_stack_var_size_or_pad): Likewise.
14344 (initialize_argument_information): Update call to
14345 targetm.calls.must_pass_in_stack.
14346 (must_pass_va_arg_on_stack): Likewise.
14347 * function.c (assign_parm_find_entry_rtl): Likewise.
14348 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14349 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14350 (alpha_function_arg_advance): Likewise.
14351 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14352 (cr16_function_arg_advance): Likewise.
14353 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14354 (cris_arg_partial_bytes): Likewise.
14355 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14356 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14357 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14358 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14359 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14360 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14361 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14362 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14363 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14364 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14365 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14366 instead of a mode and a type.
14367 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14368 (fr30_num_arg_regs): Likewise.
14369 (fr30_setup_incoming_varargs): Update calls accordingly.
14370 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14371 (fr30_function_arg_advance): Likewise.
14372 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14373 instead of a mode and a type.
14374 * config/gcn/gcn.c (num_arg_regs): Likewise.
14375 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14376 num_arg_regs and targetm.calls.must_pass_in_stack.
14377 (gcn_arg_partial_bytes): Likewise.
14378 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14379 function_arg_info instead of a mode and a type.
14380 (classify_argument): Update call accordingly.
14381 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14382 function_arg_info instead of a mode and a type.
14383 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14385 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14386 (rs6000_parm_needs_stack): Update call accordingly.
14387 (setup_incoming_varargs): Likewise.
14389 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14391 * target.def (callee_copies): Take a function_arg_info instead
14392 of a mode, type and named flag.
14393 * doc/tm.texi: Regenerate.
14394 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14395 instead of a mode, type and named flag.
14396 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14397 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14398 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14399 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14400 instead of a mode, type and named flag.
14401 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14402 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14403 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14404 * calls.h (reference_callee_copied): Take a function_arg_info
14405 instead of a mode, type and named flag.
14406 * calls.c (reference_callee_copied): Likewise.
14407 (initialize_argument_information): Update call accordingly.
14408 (emit_library_call_value_1): Likewise.
14409 * function.c (gimplify_parameters): Likewise.
14410 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14411 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14412 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14413 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14414 (TARGET_CALLEE_COPIES): Define to
14415 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14416 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14417 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14418 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14419 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14420 instead of a mode, type and named flag.
14421 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14422 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14423 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14424 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14425 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14426 (TARGET_CALLEE_COPIES): Define to
14427 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14428 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14429 instead of a mode, type and named flag.
14430 * config/sh/sh.c (sh_callee_copies): Likewise.
14431 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14432 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14433 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14435 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14437 * target.def (function_arg_advance): Take a function_arg_info instead
14438 of a mode, type and named flag.
14439 * doc/tm.texi: Regenerate.
14440 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14441 instead of a mode, type and named flag.
14442 * targhooks.c (default_function_arg_advance): Likewise.
14443 * calls.c (initialize_argument_information): Update call to
14444 targetm.calls.function_arg_advance.
14445 (emit_library_call_value_1): Likewise.
14446 * dse.c (get_call_args): Likewise.
14447 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14448 * function.c (assign_parms, gimplify_parameters): Likewise.
14449 * var-tracking.c (prepare_call_arguments): Likewise.
14450 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14451 function_arg_info instead of a mode, type and named flag.
14452 (aarch64_setup_incoming_varargs): Update call accordingly.
14453 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14454 function_arg_info instead of a mode, type and named flag.
14455 (alpha_setup_incoming_varargs): Update call accordingly.
14456 * config/arc/arc.c (arc_function_arg_advance): Take a
14457 function_arg_info instead of a mode, type and named flag.
14458 (arc_setup_incoming_varargs): Update call accordingly.
14459 * config/arm/arm.c (arm_function_arg_advance): Take a
14460 function_arg_info instead of a mode, type and named flag.
14461 (cmse_func_args_or_return_in_stack): Update call accordingly.
14462 (arm_function_ok_for_sibcall): Likewise.
14463 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14464 * config/avr/avr.c (avr_function_arg_advance): Take a
14465 function_arg_info instead of a mode, type and named flag.
14466 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14467 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14468 (c6x_call_saved_register_used): Update call accordingly.
14469 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14470 function_arg_info instead of a mode, type and named flag.
14471 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14472 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14473 (csky_setup_incoming_varargs): Update call accordingly.
14474 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14475 function_arg_info instead of a mode, type and named flag.
14476 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14477 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14478 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14479 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14480 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14481 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14482 (ix86_setup_incoming_varargs): Update call accordingly.
14483 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14484 function_arg_info instead of a mode, type and named flag.
14485 (ia64_setup_incoming_varargs): Update call accordingly.
14486 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14487 function_arg_info instead of a mode, type and named flag.
14488 (iq2000_expand_prologue): Update call accordingly.
14489 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14490 function_arg_info instead of a mode, type and named flag.
14491 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14492 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14493 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14494 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14495 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14497 (microblaze_expand_prologue): Update call accordingly.
14498 * config/mips/mips.c (mips_function_arg_advance): Take a
14499 function_arg_info instead of a mode, type and named flag.
14500 (mips_setup_incoming_varargs): Update call accordingly.
14501 (mips_output_args_xfer): Likewise.
14502 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14503 function_arg_info instead of a mode, type and named flag.
14504 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14505 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14506 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14507 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14508 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14509 (nios2_setup_incoming_varargs): Update call accordingly.
14510 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14511 function_arg_info instead of a mode, type and named flag.
14512 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14513 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14514 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14515 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14516 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14517 (riscv_setup_incoming_varargs): Update call accordingly.
14518 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14519 function_arg_info instead of a mode, type and named flag.
14520 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14522 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14523 (rs6000_parm_needs_stack): Update call accordingly.
14524 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14525 instead of a mode, type and named flag.
14526 * config/s390/s390.c (s390_function_arg_advance): Likewise.
14527 (s390_call_saved_register_used): Update call accordingly.
14528 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14529 instead of a mode, type and named flag.
14530 (sh_output_mi_thunk): Update call accordingly.
14531 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14532 function_arg_info instead of a mode, type and named flag.
14533 * config/spu/spu.c (spu_function_arg_advance): Likewise.
14534 (spu_setup_incoming_varargs): Update call accordingly.
14535 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
14536 function_arg_info instead of a mode, type and named flag.
14537 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
14538 (tilegx_setup_incoming_varargs): Update call accordingly.
14539 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
14540 function_arg_info instead of a mode, type and named flag.
14541 (tilegx_setup_incoming_varargs): Update call accordingly.
14542 * config/v850/v850.c (v850_function_arg_advance): Take a
14543 function_arg_info instead of a mode, type and named flag.
14544 * config/vax/vax.c (vax_function_arg_advance): Likewise.
14545 * config/visium/visium.c (visium_function_arg_advance): Likewise.
14546 (visium_setup_incoming_varargs): Update call accordingly.
14547 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
14548 function_arg_info instead of a mode, type and named flag.
14550 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14552 * target.def (function_arg, function_incoming_arg): Take a
14553 function_arg_info instead of a mode, tree and named flag.
14554 * doc/tm.texi: Regenerate.
14555 * targhooks.h (default_function_arg): Take a function_arg_info
14556 instead of a mode, tree and named flag.
14557 (default_function_incoming_arg): Likewise.
14558 * targhooks.c (default_function_arg): Likewise.
14559 (default_function_incoming_arg): Likewise.
14560 * calls.h (function_arg_info::end_marker_p): New function.
14561 (function_arg_info::end_marker): Likewise.
14562 * calls.c (prepare_call_address, initialize_argument_information)
14563 (expand_call, emit_library_call_value_1): Update calls to
14564 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
14565 * dse.c: Include calls.h.
14566 (get_call_args): Update call to targetm.calls.function_arg.
14567 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14568 * var-tracking.c (prepare_call_arguments): Likewise.
14569 * function.c (assign_parm_find_entry_rtl): Update call to
14570 targetm.calls.function_incoming_arg.
14571 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
14572 function_arg_info instead of a mode, tree and named flag.
14573 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14574 * config/arc/arc.c (arc_function_arg): Likewise.
14575 * config/arm/arm.c (arm_function_arg): Likewise.
14576 (cmse_func_args_or_return_in_stack): Update call accordingly.
14577 (arm_function_ok_for_sibcall): Likewise.
14578 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14579 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
14580 instead of a mode, tree and named flag.
14581 * config/bfin/bfin.c (bfin_function_arg): Likewise.
14582 * config/c6x/c6x.c (c6x_function_arg): Likewise.
14583 (c6x_call_saved_register_used): Update call accordingly.
14584 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
14585 instead of a mode, tree and named flag.
14586 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
14587 (cris_function_arg_1): Likewise.
14588 * config/csky/csky.c (csky_function_arg): Likewise.
14589 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
14590 * config/fr30/fr30.c (fr30_function_arg): Likewise.
14591 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
14592 (frv_function_arg_1): Likewise.
14593 * config/ft32/ft32.c (ft32_function_arg): Likewise.
14594 * config/gcn/gcn.c (gcn_function_arg): Likewise.
14595 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14596 * config/i386/i386.c (ix86_function_arg): Likewise.
14597 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
14598 (ia64_function_arg_1): Likewise.
14599 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
14600 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
14602 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
14603 instead of a mode, tree and named flag.
14604 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14605 * config/m32r/m32r.c (m32r_function_arg): Likewise.
14606 * config/m68k/m68k.c (m68k_function_arg): Likewise.
14607 * config/mcore/mcore.c (mcore_function_arg): Likewise.
14608 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
14609 (microblaze_expand_prologue): Update call accordingly.
14610 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
14611 instead of a mode, tree and named flag.
14612 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
14613 (mmix_function_arg_1): Likewise.
14614 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
14615 * config/moxie/moxie.c (moxie_function_arg): Likewise.
14616 * config/msp430/msp430.c (msp430_function_arg): Likewise.
14617 * config/nds32/nds32.c (nds32_function_arg): Likewise.
14618 * config/nios2/nios2.c (nios2_function_arg): Likewise.
14619 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
14620 (nvptx_function_incoming_arg): Likewise.
14621 * config/or1k/or1k.c (or1k_function_arg): Likewise.
14622 * config/pa/pa.c (pa_function_arg): Likewise.
14623 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14624 * config/pru/pru.c (pru_function_arg): Likewise.
14625 * config/riscv/riscv.c (riscv_function_arg): Likewise.
14626 * config/rl78/rl78.c (rl78_function_arg): Likewise.
14627 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
14628 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
14629 (rs6000_parm_needs_stack): Update call accordingly.
14630 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
14631 instead of a mode, tree and named flag.
14632 * config/s390/s390.c (s390_function_arg): Likewise.
14633 (s390_call_saved_register_used): Update call accordingly.
14634 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
14635 instead of a mode, tree and named flag.
14636 (sh_output_mi_thunk): Update call accordingly.
14637 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
14638 (sparc_function_incoming_arg): Take a function_arg_info instead of
14639 a mode, tree and named flag.
14640 * config/spu/spu.c (spu_function_arg): Likewise.
14641 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14642 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
14643 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
14644 * config/v850/v850.c (v850_function_arg): Likewise.
14645 * config/vax/vax.c (vax_function_arg): Likewise.
14646 * config/visium/visium.c (visium_function_arg): Likewise.
14647 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
14648 (xtensa_function_incoming_arg): Likewise.
14650 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14652 * target.def (setup_incoming_varargs): Take a function_arg_info
14653 instead of a mode and tree.
14654 * doc/tm.texi: Regenerate.
14655 * targhooks.h (default_setup_incoming_varargs): Take a
14656 function_arg_info instead of a mode and tree.
14657 * targhooks.c (default_setup_incoming_varargs): Likewise.
14658 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
14659 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
14660 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14661 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
14662 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
14663 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14664 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
14665 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
14667 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14668 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14669 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
14670 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
14671 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14672 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14673 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14674 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14675 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14676 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
14677 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14678 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14679 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
14680 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
14681 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
14682 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
14683 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
14684 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14685 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
14686 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
14687 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
14688 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
14689 * function.c (assign_parms_setup_varargs): Update call to
14690 targetm.calls.setup_incoming_varargs.
14692 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14694 * target.def (pass_by_reference): Take a function_arg_info instead
14695 of a mode, type and named flag.
14696 * doc/tm.texi: Regenerate.
14697 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
14699 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
14700 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
14701 function_arg_info instead of a mode, type and named flag.
14702 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
14703 * calls.h (pass_by_reference): Take a function_arg_info instead of a
14704 mode, type and named flag.
14705 * calls.c (pass_by_reference): Likewise.
14706 (pass_va_arg_by_reference): Update call accordingly.
14707 (initialize_argument_information): Likewise.
14708 (emit_library_call_value_1): Likewise.
14709 * function.c (assign_parm_find_data_types): Likewise.
14710 * var-tracking.c (prepare_call_arguments): Likewise.
14711 * stor-layout.c: Include calls.h.
14712 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
14713 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
14714 function_arg_info instead of a mode, type and named flag.
14715 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
14716 * config/arc/arc.c (arc_pass_by_reference): Likewise.
14717 * config/arm/arm.c (arm_pass_by_reference): Likewise.
14718 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
14719 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
14720 (c6x_call_saved_register_used): Update call to pass_by_reference.
14721 * config/cris/cris.c (cris_pass_by_reference): Take a
14722 function_arg_info instead of a mode, type and named flag.
14723 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
14724 function_arg_info instead of a mode, type and named flag.
14725 (epiphany_arg_partial_bytes): Update call accordingly.
14726 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
14727 function_arg_info instead of a mode, type and named flag.
14728 (ft32_arg_partial_bytes): Update call accordingly.
14729 * config/i386/i386.c (ix86_pass_by_reference): Take a
14730 function_arg_info instead of a mode, type and named flag.
14731 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14732 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
14733 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
14734 (m32r_return_in_memory): Update call accordingly.
14735 * config/mips/mips.c (mips_pass_by_reference): Take a
14736 function_arg_info instead of a mode, type and named flag.
14737 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
14738 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
14739 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
14740 (moxie_arg_partial_bytes): Update call accordingly.
14741 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
14742 function_arg_info instead of a mode, type and named flag.
14743 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
14744 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
14745 * config/pa/pa.c (pa_pass_by_reference): Likewise.
14746 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
14747 (riscv_return_in_memory): Update call accordingly.
14748 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
14749 function_arg_info instead of a mode, type and named flag.
14750 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
14751 (rs6000_parm_needs_stack): Update call to pass_by_reference.
14752 * config/s390/s390.c (s390_pass_by_reference): Take a
14753 function_arg_info instead of a mode, type and named flag.
14754 (s390_call_saved_register_used): Update call accordingly.
14755 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
14756 instead of a mode, type and named flag.
14757 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
14758 * config/spu/spu.c (spu_pass_by_reference): Likewise.
14759 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
14760 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
14761 * config/v850/v850.c (v850_pass_by_reference): Likewise.
14762 * config/visium/visium.c (visium_pass_by_reference): Likewise.
14764 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14766 * target.def (arg_partial_bytes): Take a function_arg_info instead
14767 of a mode, type and named flag.
14768 * doc/tm.texi: Regenerate.
14769 * target.h (function_arg_info): Declare.
14770 * calls.h (function_arg_info): New class.
14771 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14772 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
14773 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14774 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
14775 * calls.c (initialize_argument_information): Update call to
14776 targetm.calls.partial_bytes.
14777 (emit_library_call_value_1): Likewise.
14778 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14779 * function.c (assign_parm_find_entry_rtl): Likewise.
14780 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
14781 function_arg_info instead of a mode, type and named flag.
14782 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
14783 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
14784 (cmse_func_args_or_return_in_stack): Update accordingly.
14785 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
14786 function_arg_info instead of a mode, type and named flag.
14787 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
14788 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
14789 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
14790 * config/fr30/fr30.c: Include calls.h.
14791 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
14792 type and named flag.
14793 * config/frv/frv.c: Include calls.h.
14794 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
14795 type and named flag.
14796 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
14797 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
14798 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
14799 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
14800 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
14801 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
14802 * config/microblaze/microblaze.c (function_arg_partial_bytes):
14804 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
14805 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
14806 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
14807 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
14808 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
14809 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
14810 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
14811 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
14812 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
14813 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
14814 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
14815 (rs6000_parm_needs_stack): Update call accordingly.
14816 * config/sh/sh.c (sh_arg_partial_bytes): Take a
14817 function_arg_info instead of a mode, type and named flag.
14818 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
14819 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
14821 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14823 * calls.h (must_pass_va_arg_in_stack): Declare.
14824 * calls.c (must_pass_va_arg_in_stack): New function.
14825 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
14826 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14827 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
14829 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14831 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14833 * calls.h (pass_va_arg_by_reference): Declare.
14834 * calls.c (pass_va_arg_by_reference): New function.
14835 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
14836 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
14837 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
14838 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14839 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14840 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
14841 (mips_gimplify_va_arg_expr): Likewise.
14842 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
14843 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14844 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
14845 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14846 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14847 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14848 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
14849 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
14850 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
14851 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14852 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14854 2019-08-20 Richard Biener <rguenther@suse.de>
14857 * config/i386/i386-features.c (general_scalar_chain::convert_op):
14858 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
14859 (convert_scalars_to_vector): Add timode_p parameter and use it
14860 to guard TImode-only operation.
14861 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
14862 (pass_stv::execute): Pass down timode_p.
14864 2019-08-20 Lili Cui <lili.cui@intel.com>
14866 * common/config/i386/i386-common.c
14867 (processor_names): Add tigerlake and cooperlake.
14868 (processor_alias_table): Add tigerlake and cooperlake.
14869 * config.gcc: Add -march=tigerlake and cooperlake.
14870 * config/i386/driver-i386.c
14871 (host_detect_local_cpu): Detect tigerlake and cooperlake.
14872 Add "has_avx" to classify processor.
14873 * config/i386/i386-builtins.c (processor_model) :
14874 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
14875 (arch_names_table): Add tigerlake and cooperlake.
14876 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
14877 and PROCESSOR_COOPERLAKE.
14878 * config/i386/i386-c.c
14879 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
14880 * config/i386/i386-options.c
14881 (m_TIGERLAKE): Define.
14882 (m_COOPERLAKE): Ditto.
14883 (m_CORE_AVX512): Ditto.
14884 (processor_cost_table): Add cascadelake.
14885 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
14886 * config/i386/i386.h
14887 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
14888 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14889 (PTA_MOVDIRI): Ditto.
14890 (PTA_MOVDIR64B): Ditto.
14891 (PTA_COOPERLAKE): Ditto.
14892 (PTA_TIGERLAKE): Ditto.
14893 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14894 * doc/extend.texi: Add tigerlake and cooperlake.
14895 * doc/invoke.texi: Add tigerlake and cooperlake.
14897 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
14899 * doc/install.texi (Specific, alpha): Remove note to use
14900 binutils 2.11.2 or later.
14902 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14904 PR middle-end/89544
14905 * function.c (assign_parm_find_stack_rtl): Use larger alignment
14908 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
14910 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
14911 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
14912 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
14913 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
14914 * config/aarch64/constraints.md (Dt): New constraint
14915 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
14917 2019-08-19 Richard Biener <rguenther@suse.de>
14919 PR tree-optimization/91403
14920 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
14921 cases we can handle with tail-recursion...
14922 (follow_ssa_edge_expr): ... here. Do so.
14924 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
14927 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
14928 implemented for -fsanitize=kernel-address, and merge check logic
14929 with -fsanitize=address.
14931 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
14933 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
14934 for cpu and machine. Factor 64/32b builtins.
14936 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
14938 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
14939 gone, point to sourceforge.net.
14941 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14943 * doc/ux.texi (User Experience Guidelines): Update reference.
14945 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14947 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
14950 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
14952 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
14953 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
14955 2019-08-16 Martin Sebor <msebor@redhat.com>
14957 * tree.def (TYPE_SIZE): Clarify.
14958 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
14960 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
14962 PR tree-optimization/91109
14963 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
14964 * lra.c (lra): Use lra_need_for_scratch_reg_p.
14965 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
14967 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
14969 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
14970 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
14971 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
14972 (uavg<mode>3_ceil): New expander.
14973 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
14974 mode iterator when creating CONST1_RTX.
14975 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
14976 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
14977 mode iterator for const1_operand predicate.
14979 2019-08-16 Richard Biener <rguenther@suse.de>
14981 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
14982 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
14984 (follow_ssa_edge_in_condition_phi_branch): Likewise.
14985 (analyze_evolution_in_loop): Likewise.
14986 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
14987 (follow_ssa_edge_expr): ... here. Refactor code.
14989 2019-08-16 Richard Biener <rguenther@suse.de>
14992 * config/i386/i386-features.c
14993 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
14995 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14998 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
14999 only if subst_name matches curr_attr string.
15001 2019-08-16 Richard Biener <rguenther@suse.de>
15003 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15004 stmt at gsi_p, instead replace it with a NOP removed later.
15005 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15006 that became dead because of that.
15008 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15010 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15011 for which we can't represent a range.
15012 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15014 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15015 Set VR_UNDEFINED if type is not supported.
15016 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15017 * tree-vrp.c (value_range_base::check): Assert that a varying has
15019 (value_range_base::equal_p): Early bail for undefines.
15020 (value_range_base::set_varying): Accept a type.
15021 (value_range::set_varying): Same.
15022 (value_range_base::type): VARYING can have a type, while UNDEFINE
15024 (value_range_base::dump): Print type for VARYING nodes.
15025 (value_range_base::set): Add type to VARYING.
15026 (extract_range_from_multiplicative_op): Pass type to set_varying.
15027 (extract_range_from_binary_expr): Same.
15028 (value_range_base::intersect_helper): Same.
15029 (value_range_base::union_helper): Same.
15030 (value_range_base::normalize_symbolics): Same.
15031 (determine_value_range_1): Same.
15032 * tree-vrp.h (class value_range_base): Add type to set_varying.
15033 Add prototype for dump(void).
15034 Add prototype for supports_type_p.
15035 (class value_range): Add type to set_varying.
15036 Add prototype for dump(void).
15037 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15039 (vr_values::get_lattice_entry): Set varying even if propagation
15041 Pass type to set_varying.
15042 (vr_values::get_value_range): Remove vr_const_varying.
15043 Reallocate the lattice if needed.
15044 (vr_values::update_value_range): Pass type to set_varying.
15045 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15046 (vr_values::extract_range_from_binary_expr): Same.
15047 (vr_values::extract_range_from_unary_expr): Same.
15048 (vr_values::extract_range_from_cond_expr): Same.
15049 (vr_values::check_for_binary_op_overflow): Same.
15050 (vr_values::extract_range_basic): Same.
15051 (vr_values::extract_range_from_assignment): Same.
15052 (vr_values::vr_values): Increase size of num_vr_values.
15053 (vr_values::extract_range_from_phi_node): Pass type to
15056 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15059 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15060 for costs of hard register moves.
15061 (ix86_register_move_cost): Likewise.
15062 * config/i386/i386.h (processor_costs): Move costs of hard
15063 register moves to hard_register. Add int_load, int_store,
15064 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15065 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15066 for costs of RTL expressions.
15067 * config/i386/x86-tune-costs.h: Move costs of hard register
15068 moves to hard_register. Duplicate int_load, int_store,
15069 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15070 sse_load, sse_store for costs of RTL expressions.
15072 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15074 * target.def (setup_incoming_vararg_bounds): Remove.
15075 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15076 * doc/tm.texi: Regenerate.
15077 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15078 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15079 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15080 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15082 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15084 MSP430: Fix lines over 80 characters long in
15085 config/msp430/*.{c,h} files
15087 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15088 specifier in string.
15089 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15090 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15091 redundant old comment.
15092 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15093 Split line more than 80 characters long.
15094 * config/msp430/msp430.c (msp430_option_override): Likewise.
15095 (msp430_return_in_memory): Likewise.
15096 (msp430_gimplify_va_arg_expr): Likewise.
15097 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15098 (msp430_legitimate_constant): Likewise.
15099 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15100 (msp430_attr): Likewise.
15101 (msp430_data_attr): Likewise.
15102 (msp430_start_function): Likewise.
15103 (gen_prefix): Likewise.
15104 (msp430_init_sections): Likewise.
15105 (msp430_select_section): Likewise.
15106 (msp430_function_section): Likewise.
15107 (msp430_unique_section): Likewise.
15108 (msp430_output_aligned_decl_common): Likewise.
15109 (msp430_do_not_relax_short_jumps): Likewise.
15110 (msp430_init_builtins): Likewise.
15111 (msp430_expand_delay_cycles): Likewise.
15112 (msp430_expand_prologue): Likewise.
15113 (msp430_expand_epilogue): Likewise.
15114 (msp430_expand_helper): Likewise.
15115 (msp430_split_movsi): Likewise.
15116 (msp430_print_operand): Likewise.
15117 (msp430_return_addr_rtx): Likewise.
15118 (msp430x_extendhisi): Likewise.
15119 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15120 (ASM_SPEC): Likewise.
15121 Remove very obvious comments.
15122 (LIB_SPEC): Split line more than 80 characters long.
15123 (EH_RETURN_HANDLER_RTX): Likewise.
15124 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15126 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15128 MSP430: Fix whitespace errors and incorrect indentation in
15129 config/msp430/*.{c,h} files
15131 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15132 (msp430_select_hwmult_lib): Likewise.
15133 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15134 (msp430_extract_mcu_data): Likewise.
15135 (struct t_msp430_mcu_data): Likewise.
15136 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15137 before left square bracket.
15138 (msp430_option_override): Fix indentation.
15139 (msp430_hard_regno_nregs_with_padding): Likewise.
15140 (msp430_initial_elimination_offset): Likewise.
15141 (msp430_special_register_convention_p): Remove whitespace before left
15142 square bracket and after exclamation mark.
15143 (msp430_evaluate_arg): Likewise.
15144 (msp430_callee_copies): Fix indentation.
15145 (msp430_gimplify_va_arg_expr): Likewise.
15146 (msp430_function_arg_advance): Remove whitespace before left square
15148 (reg_ok_for_addr): Likewise.
15149 (msp430_preserve_reg_p): Likewise.
15150 (msp430_compute_frame_info): Likewise.
15151 (msp430_asm_output_addr_const_extra): Add space between function name
15152 and open parenthesis.
15153 (has_section_name): Fix indentation.
15154 (msp430_attr): Remove trailing whitespace.
15155 (msp430_section_attr): Likewise.
15156 (msp430_data_attr): Likewise.
15157 (struct msp430_attribute_table): Fix comment and whitespace.
15158 (msp430_start_function): Remove whitespace before left square bracket.
15159 Add space between function name and open parenthesis.
15160 (msp430_select_section): Remove trailing whitespace.
15161 (msp430_section_type_flags): Remove trailing whitespace.
15162 (msp430_unique_section): Remove space before closing parenthesis.
15163 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15164 (msp430_builtins): Remove whitespace before left square bracket.
15165 (msp430_init_builtins): Fix indentation.
15166 (msp430_expand_prologue): Remove whitespace before left square bracket.
15167 Remove space before closing parenthesis.
15168 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15169 (msp430_split_movsi): Remove space before closing parenthesis.
15170 (helper_function_name_mappings): Fix indentation.
15171 (msp430_use_f5_series_hwmult): Fix whitespace.
15172 (use_32bit_hwmult): Likewise.
15173 (msp430_no_hwmult): Likewise.
15174 (msp430_output_labelref): Remove whitespace before left square bracket.
15175 (msp430_print_operand_raw): Likewise.
15176 (msp430_print_operand_addr): Likewise.
15177 (msp430_print_operand): Add two spaces after '.' in comment.
15178 Fix trailing whitespace.
15179 (msp430x_extendhisi): Fix indentation.
15180 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15182 (PC_REGNUM): Likewise.
15183 (STACK_POINTER_REGNUM): Likewise.
15184 (CC_REGNUM): Likewise.
15186 2019-08-15 Richard Biener <rguenther@suse.de>
15189 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15191 (general_scalar_chain::make_vector_copies): Use it.
15193 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15195 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15197 2019-08-15 Martin Liska <mliska@suse.cz>
15199 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15200 operators with no arguments.
15201 (eliminate_unnecessary_stmts): Likewise here.
15203 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15205 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15206 <case COMPARE>: Revert 2019-08-14 change.
15207 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15208 for (TARGET_64BIT || mode != DImode).
15210 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15212 * tree-vrp.c (value_range_base::set): Merge in code from
15213 value_range_base::set_and_canonicalize.
15214 Enforce canonicalization at set time.
15215 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15216 (value_range_base::set_undefined): Inline call to set().
15217 (value_range_base::set_varying): Same.
15218 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15219 (vrp_val_max): New argument handle_pointers.
15220 (vrp_val_min): Same.
15221 (ranges_from_anti_range): Same.
15222 (extract_range_into_wide_ints): Use tree argument instead of sign
15224 (extract_range_from_multiplicative_op): Take in tree type instead
15225 of precision and sign. Adapt function for canonicalized ranges.
15226 (extract_range_from_binary_expr): Pass type to
15227 extract_range_from_multiplicative_op.
15228 Adapt for canonicalized ranges.
15229 (extract_range_from_unary_expr): Same.
15230 (value_range_base::intersect_helper): Adjust for canonicalized
15232 (value_range_base::union_helper): Same.
15233 (value_range_base::normalize_symbolics): New.
15234 * tree-vrp.h (class value_range_base): Remove
15235 set_and_canonicalize.
15236 New prototype for normalize_symbolics.
15237 (class value_range): Remove set_and_canonicalize.
15238 (vrp_val_min): Adjust prototype.
15239 (vrp_val_max): Same.
15241 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15242 instead of set_and_canonicalize.
15244 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15246 PR middle-end/91444
15247 * tree-vect-stmts.c (vectorizable_call): Check that the function
15248 is a BUILT_IN_MD function before passing it to
15249 targetm.vectorize.builtin_md_vectorized_function.
15251 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15253 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15254 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15255 (aarch64_select_early_remat_modes): Use it.
15257 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15259 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15260 16 for SVE predicates even if they are fixed-length.
15262 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15264 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15265 operand order match the MOV /Z alias.
15267 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15269 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15270 the vector pattern as an aarch64_svpattern argument. Update the
15271 overloaded caller accordingly.
15272 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15273 (aarch64_output_sve_vector_inc_dec): Likewise.
15275 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15277 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15278 multiplication case, try to compute VG * (lowest set bit) directly
15279 rather than always basing the multiplication on VG. Use
15280 expand_mult for the multiplication if we can.
15282 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15284 * config/aarch64/aarch64-protos.h
15285 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15286 (aarch64_sve_inc_dec_immediate_p): Rename to...
15287 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15288 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15289 (aarch64_output_sve_scalar_inc_dec): Declare.
15290 (aarch64_output_sve_inc_dec_immediate): Rename to...
15291 (aarch64_output_sve_vector_inc_dec): ...this.
15292 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15293 (aarch64_output_sve_scalar_inc_dec): New functions.
15294 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15295 arguments. Only handle true ADDVL and ADDPL instructions;
15296 don't emit an INC or DEC.
15297 (aarch64_sve_inc_dec_immediate_p): Rename to...
15298 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15299 (aarch64_output_sve_inc_dec_immediate): Rename to...
15300 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15301 aarch64_sve_vector_inc_dec_immediate_p.
15302 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15303 (aarch64_sve_plus_immediate): New predicates.
15304 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15305 rather than aarch64_sve_addvl_addpl_immediate.
15306 (aarch64_sve_inc_dec_immediate): Rename to...
15307 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15308 aarch64_sve_vector_inc_dec_immediate_p.
15309 (aarch64_sve_add_operand): Update accordingly.
15310 * config/aarch64/constraints.md (Uai): New constraint.
15311 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15312 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15313 operand into a register if it satisfies aarch64_sve_plus_immediate.
15314 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15315 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15316 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15317 aarch64_output_sve_vector_inc_dec instead of
15318 aarch64_output_sve_inc_dec_immediate.
15320 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15322 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15323 (UNSPEC_REVW): New constants.
15324 (elem_bits): New mode attribute.
15325 (SVE_INT_UNARY): New int iterator.
15326 (optab): Handle UNSPEC_REV[BHW].
15327 (sve_int_op): New int attribute.
15328 (min_elem_bits): Handle VNx16QI and the predicate modes.
15329 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15330 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15331 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15332 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15333 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15334 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15335 unspecs based on the total width of the reversed data.
15336 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15337 reinterpret followed by a subreg on big-endian targets.
15339 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15340 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15342 * config/aarch64/aarch64-sve.md
15343 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15344 alternatives in which one of the inputs is in the same register
15347 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15349 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15350 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15352 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15354 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15355 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15357 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15358 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15360 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15361 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15362 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15364 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15365 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15367 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15368 Add an alternative that uses reversed shifts.
15370 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15372 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15375 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15377 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15378 a commutativity marker.
15380 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15381 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15383 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15384 (aarch64_prepare_sve_cond_int_fma): Declare.
15385 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15386 (aarch64_prepare_sve_int_fma): New functions.
15387 (aarch64_prepare_sve_cond_int_fma): Likewise.
15388 * config/aarch64/aarch64-sve.md
15389 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15390 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15391 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15392 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15393 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15394 (*madd<mode>): Rename to...
15395 (*fma<mode>4): ...this.
15396 (*msub<mode>): Rename to...
15397 (*fnma<mode>4): ...this.
15399 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15400 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15402 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15403 Print 2.0 naturally.
15404 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15405 * config/aarch64/predicates.md
15406 (aarch64_sve_float_negated_arith_immediate): New predicate,
15407 renamed from aarch64_sve_float_arith_with_sub_immediate.
15408 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15409 positive and negative constants.
15410 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15411 or an aarch64_sve_float_arith_with_sub_immediate.
15412 * config/aarch64/constraints.md (vsN): Use
15413 aarch64_sve_float_negated_arith_immediate.
15414 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15416 (sve_pred_fp_rhs2_immediate): New int attribute.
15417 * config/aarch64/aarch64-sve.md
15418 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15419 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15420 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15421 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15422 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15423 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15425 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15426 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15428 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15429 (*aarch64_cond_abd<SVE_F:mode>_3)
15430 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15432 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15433 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15435 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15436 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15438 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15439 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15441 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15442 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15443 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15444 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15446 * optabs.h (create_convert_operand_from): Expand comment.
15447 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15448 when mapping scalar rtxes to vector operands.
15449 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15450 ashiftrt and lshiftrt.
15451 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15452 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15453 (*cond_<optab><mode>_any_const): New patterns.
15455 2019-08-15 Martin Liska <mliska@suse.cz>
15458 * cgraph.c (cgraph_node::remove): When setting
15459 n->origin = NULL for all nested functions, reset
15462 2019-08-15 Martin Liska <mliska@suse.cz>
15464 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15467 2019-08-15 Martin Liska <mliska@suse.cz>
15470 * passes.c (order): Remove.
15471 (uid_hash_t): Likewise).
15472 (remove_cgraph_node_from_order): Remove from set
15473 of pointers (cgraph_node *).
15474 (insert_cgraph_node_to_order): New.
15475 (duplicate_cgraph_node_to_order): New.
15476 (do_per_function_toporder): Register all 3 cgraph hooks.
15477 Skip removed_nodes now as we know about all of them.
15479 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15481 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15482 <case E_V8QImode>: Use vector_set path for
15483 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15484 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15485 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15487 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15489 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15491 2019-08-14 Martin Sebor <msebor@redhat.com>
15493 PR tree-optimization/91294
15494 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15495 source length as exact.
15497 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15499 * doc/extend.texi: Add "noinit" attribute documentation.
15500 * doc/sourcebuild.texi: Add noinit effective target documentation.
15501 * varasm.c (default_section_type_flags): Add support for "noinit"
15503 (default_elf_select_section): Add support for "noinit" attribute.
15504 * config/msp430/msp430.c (msp430_attribute_table): Remove
15507 2019-08-14 Richard Biener <rguenther@suse.de>
15508 Uroš Bizjak <ubizjak@gmail.com>
15511 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15513 (scalar_chain::smode): New member.
15514 (scalar_chain::vmode): Likewise.
15515 (dimode_scalar_chain): Rename to...
15516 (general_scalar_chain): ... this.
15517 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15518 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15519 base with TImode and V1TImode.
15520 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15521 (general_scalar_chain::vector_const_cost): Adjust for SImode
15523 (general_scalar_chain::compute_convert_gain): Likewise. Add
15524 {S,U}{MIN,MAX} support.
15525 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15526 (general_scalar_chain::make_vector_copies): Likewise. Handle
15527 non-DImode chains appropriately.
15528 (general_scalar_chain::convert_reg): Likewise.
15529 (general_scalar_chain::convert_op): Likewise.
15530 (general_scalar_chain::convert_insn): Likewise. Add
15531 fatal_insn_not_found if the result is not recognized.
15532 (convertible_comparison_p): Pass in the scalar mode and use that.
15533 (general_scalar_to_vector_candidate_p): Likewise. Rename from
15534 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
15535 (scalar_to_vector_candidate_p): Remove by inlining into single
15537 (general_remove_non_convertible_regs): Rename from
15538 dimode_remove_non_convertible_regs.
15539 (remove_non_convertible_regs): Remove by inlining into single caller.
15540 (convert_scalars_to_vector): Handle SImode and DImode chains
15541 in addition to TImode chains.
15542 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
15543 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
15544 (*<maxmin>di3_doubleword): Likewise.
15546 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15547 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15549 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
15550 (*cond_bic<mode>_any): New patterns.
15552 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15554 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
15555 take the equivalent mask, as well as a bit count.
15556 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
15557 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
15558 (aarch64_sve_pred_and_operand): New predicates.
15559 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
15561 * config/aarch64/aarch64-sve.md
15562 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
15563 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
15565 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15567 * config/aarch64/aarch64-sve.md
15568 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15569 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
15572 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15573 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15575 * config/aarch64/aarch64-sve.md
15576 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
15577 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
15579 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15580 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15582 * config/aarch64/aarch64-sve.md
15583 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
15584 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
15586 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15588 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
15589 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
15592 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15593 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15595 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
15597 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15598 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15600 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
15601 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
15602 (aarch64_print_operand): Add support for %I.
15603 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
15604 Bitcast floating-point constants to the corresponding integer constant.
15605 (aarch64_float_const_representable_p): Handle vectors as well
15607 (aarch64_expand_sve_vcond): Make sure that the operands are valid
15608 for the new vcond_mask_<mode><vpred> expander.
15609 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
15610 test aarch64_float_const_representable_p.
15611 (aarch64_sve_reg_or_dup_imm): New predicate.
15612 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
15613 gen_vcond_mask_<mode><vpred> instead of
15614 gen_aarch64_sve_dup<mode>_const.
15615 (vcond_mask_<mode><vpred>): Turn into a define_expand that
15616 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
15617 for operands 1 and 2 respectively. Force operand 2 into a
15618 register if operand 1 is a register. Fold old define_insn...
15619 (aarch64_sve_dup<mode>_const): ...and this define_insn...
15620 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
15621 floating-point constants that can be moved as integers. Add
15622 alternatives for MOV /M and FMOV /M.
15623 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
15624 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
15625 1 and 2 respectively.
15626 * config/aarch64/constraints.md (Ufc): Handle vectors as well
15628 (vss): New constraint.
15630 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15632 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
15633 (aarch64_sve_float_maxmin_operand): New predicates.
15634 * config/aarch64/constraints.md (vsB): New constraint.
15636 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
15637 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
15638 UNSPEC_COND_FMINNM.
15639 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
15640 Use aarch64_sve_float_maxmin_operand for operand 2.
15641 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
15642 Add alternatives for the constant forms.
15644 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15646 * config/aarch64/constraints.md (vsb): New constraint.
15647 (vsm): Generalize description.
15648 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
15650 (sve_imm_con): Handle smax, smin, umax and umin.
15651 (sve_imm_prefix): New code attribute.
15652 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
15653 (aarch64_sve_vsb_operand): New predicates.
15654 (aarch64_sve_mul_immediate): Rename to...
15655 (aarch64_sve_vsm_immediate): ...this.
15656 (aarch64_sve_mul_operand): Rename to...
15657 (aarch64_sve_vsm_operand): ...this.
15658 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
15659 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
15660 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
15661 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
15662 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
15663 add movprfx support for the immediate alternatives.
15664 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
15666 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
15669 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15671 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
15672 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
15673 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15675 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15677 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
15678 (optab, sve_int_op): Handle them.
15679 * config/aarch64/aarch64-sve.md: Expand comment.
15681 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15683 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
15684 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
15685 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
15687 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15689 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
15690 (aarch64_expand_sve_const_pred_trn): New functions.
15691 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
15692 use the above functions when the parameter is true.
15693 (aarch64_expand_sve_const_pred): Update call accordingly.
15694 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
15696 (@aarch64_sve_<perm_insn><mode>): ...this.
15698 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15700 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
15702 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
15703 (aarch64_sve_emit_int_cmp): New functions.
15704 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
15705 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
15706 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
15707 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
15708 (UNSPEC_PRED_Z): New unspec.
15709 (set_clobber_cc_nzc): Delete.
15710 * config/aarch64/aarch64-sve.md: Add a block comment about
15712 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
15713 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
15714 the old pattern with that name. Use UNSPEC_PRED_Z instead of
15715 UNSPEC_MERGE_PTRUE.
15716 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
15717 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
15718 check for compatible predicates.
15719 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
15720 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
15721 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
15724 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15726 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
15727 * config/aarch64/aarch64-sve.md: Add a section describing it.
15728 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
15729 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
15730 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
15731 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
15732 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
15733 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
15734 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
15735 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
15736 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
15737 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15738 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
15739 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
15740 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
15741 (aarch64_evpc_rev_local): Update accordingly.
15743 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15745 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
15747 (SVE_BHSI, SVE_SDI): Tweak comment.
15748 (SVE_HSDI): Likewise. Fix definition.
15749 (SVE_SDF): New mode iterator.
15750 (elem_bits): New mode attribute.
15751 (SVE_COND_FCVT): New int iterator.
15752 * config/aarch64/aarch64-sve.md
15753 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
15754 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
15755 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
15756 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15757 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
15758 ...these new patterns.
15759 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
15760 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
15761 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
15763 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
15764 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
15765 ...these new patterns.
15766 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
15767 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
15768 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
15769 ...this new pattern.
15770 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
15771 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
15772 ...this new pattern.
15773 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
15775 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15777 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
15778 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
15779 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
15781 (optab, su): Handle them.
15782 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
15783 * config/aarch64/aarch64-sve.md
15784 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
15785 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
15786 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
15787 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
15788 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
15789 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
15790 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
15791 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
15792 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
15794 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
15795 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
15796 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
15797 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
15798 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
15799 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
15800 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
15801 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
15802 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
15803 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
15804 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
15805 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
15806 of UNSPEC_FLOAT_CONVERT.
15807 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
15808 aarch64_sve_extend<mode><Vwide>2.
15810 2019-08-14 Richard Biener <rguenther@suse.de>
15813 * config/i386/i386-features.c
15814 (dimode_scalar_chain::compute_convert_gain): Compute and dump
15815 individual instruction gain. Fix reg-reg copy GRP cost. Use
15816 ix86_cost->sse_op for vector instruction costs.
15818 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15820 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
15821 (cmp_op): Handle it.
15822 (SVE_COND_FP_CMP): Rename to...
15823 (SVE_COND_FP_CMP_I0): ...this.
15824 (SVE_FP_CMP): Remove.
15825 * config/aarch64/aarch64-sve.md
15826 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
15827 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
15828 using unspecs to represent the comparison.
15829 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
15830 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
15832 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
15833 (aarch64_unspec_cond_code): Move after integer code. Handle
15835 (aarch64_emit_sve_predicated_cond): Replace with...
15836 (aarch64_emit_sve_fp_cond): ...this new function.
15837 (aarch64_emit_sve_or_conds): Replace with...
15838 (aarch64_emit_sve_or_fp_conds): ...this new function.
15839 (aarch64_emit_sve_inverted_cond): Replace with...
15840 (aarch64_emit_sve_invert_fp_cond): ...this new function.
15841 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
15843 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15845 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
15846 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
15847 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
15848 SVE_HSD instead of SVE_SD.
15850 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15851 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15853 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
15855 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
15857 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
15858 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
15859 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
15860 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
15861 (*div<SVE_F:mode>3): Generalize to...
15862 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
15864 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15865 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15867 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
15869 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
15871 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
15873 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
15875 * config/aarch64/aarch64-sve.md: Add a block comment about the
15876 handling of predicated FP operations.
15877 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
15878 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
15879 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15880 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
15881 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
15883 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
15884 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
15886 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
15887 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
15888 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
15889 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
15890 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
15891 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15892 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15893 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
15894 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
15895 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
15896 strictness operands. Use aarch64_sve_pred_dominates_p to check
15897 whether the predicate on the conditional operation is suitable
15898 for merging. Split patterns into the canonical equal-predicate form.
15899 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
15900 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
15902 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15903 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15905 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
15906 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
15907 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
15909 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
15910 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
15913 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15914 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15916 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
15917 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
15918 actually has, rather than relying on REG_EQUAL notes.
15919 Make the insn operand order match the SVE operand order.
15920 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
15921 the SVE operand order.
15923 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15925 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
15926 (aarch64_emit_set_immediate): Likewise.
15927 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
15928 (aarch64_pfalse_reg): Likewise.
15929 (aarch64_convert_sve_data_to_pred): New function.
15930 (aarch64_sve_move_pred_via_while): Take an optional target register
15931 and the required register mode.
15932 (aarch64_expand_sve_const_pred_1): New function.
15933 (aarch64_expand_sve_const_pred): Likewise.
15934 (aarch64_expand_mov_immediate): Build an all-true predicate
15935 if the significant bits of the immediate are all true. Use
15936 aarch64_expand_sve_const_pred for all compile-time predicate constants.
15937 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
15938 before register allocation.
15939 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
15940 a VNx16BI PTRUE when splitting the memory alternative.
15941 (vec_duplicate<mode>): Update accordingly.
15942 (*pred_cmp<cmp_op><mode>): Rename to...
15943 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
15945 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15947 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
15948 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
15949 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
15950 (UNSPEC_PTEST): New unspec.
15951 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
15952 * config/aarch64/iterators.md (data_bytes): New mode attribute.
15953 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
15954 * config/aarch64/aarch64-sve.md: Add a new section describing the
15955 handling of UNSPEC_PTEST.
15956 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
15957 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
15958 (ptest_ptrue<mode>): Replace with...
15959 (aarch64_ptest<mode>): ...this new pattern.
15960 (cbranch<mode>4): Update after above changes.
15961 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
15962 UNSPEC_PTEST_PTRUE.
15963 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
15964 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
15965 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
15967 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
15970 * builtins.c (builtin_with_linkage_p): New function.
15971 * builtins.h (builtin_with_linkage_p): New function.
15972 * symtab.c (write_symbol): Remove redundant assert.
15973 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
15974 Remove FIXME and use builtin_with_linkage_p.
15976 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15978 PR middle-end/91421
15979 * tree-core.h (function_decl::function_code): Change type to
15981 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
15982 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
15983 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
15984 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
15985 is BUILT_IN_NORMAL.
15986 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
15987 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
15988 (fndecl_built_in_p): Change the type of the "name" argument to
15990 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
15991 after check for DECL_BUILT_IN_CLASS.
15992 * cgraphclones.c (build_function_decl_skip_args): Use
15993 set_decl_built_in_function.
15994 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
15995 * ipa-split.c (split_function): Likewise.
15996 * langhooks.c (add_builtin_function_common): Likewise.
15997 * omp-simd-clone.c (simd_clone_create): Likewise.
15998 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15999 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16000 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16001 DECL_FUNCTION_CODE.
16002 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16003 instead of DECL_FUNCTION_CODE.
16004 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16005 instead of DECL_FUNCTION_CODE.
16006 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16007 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16008 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16009 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16010 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16011 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16012 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16013 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16014 (alpha_gimple_fold_builtin): Likewise.
16015 * config/arc/arc.c (arc_expand_builtin): Likewise.
16016 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16017 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16018 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16019 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16020 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16021 * config/frv/frv.c (frv_expand_builtin): Likewise.
16022 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16023 (gcn_expand_builtin): Likewise.
16024 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16025 (fold_builtin_cpu): Likewise.
16026 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16027 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16028 (ix86_gimple_fold_builtin): Likewise.
16029 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16030 (ia64_expand_builtin): Likewise.
16031 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16032 * config/mips/mips.c (mips_expand_builtin): Likewise.
16033 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16034 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16035 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16036 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16037 * config/pa/pa.c (pa_expand_builtin): Likewise.
16038 * config/pru/pru.c (pru_expand_builtin): Likewise.
16039 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16040 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16042 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16043 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16044 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16045 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16046 (rs6000_builtin_reciprocal): Likewise.
16047 * config/rx/rx.c (rx_expand_builtin): Likewise.
16048 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16049 * config/s390/s390.c (s390_expand_builtin): Likewise.
16050 * config/sh/sh.c (sh_expand_builtin): Likewise.
16051 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16052 (sparc_fold_builtin): Likewise.
16053 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16054 * config/spu/spu.c (spu_expand_builtin): Likewise.
16055 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16056 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16057 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16058 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16059 (xtensa_expand_builtin): Likewise.
16061 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16063 PR middle-end/91421
16064 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16065 before the DECL_FUNCTION_CODE.
16066 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16067 to check for a BUILT_IN_ALLOCA call.
16068 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16069 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16070 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16071 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16072 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16073 for BUILT_IN_NORMAL functions.
16074 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16075 test for BUILT_IN_TM_ABORT.
16076 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16077 to check for a BUILT_IN_STACK_RESTORE call.
16078 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16079 * tree-ssa-threadedge.c
16080 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16081 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16082 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16083 test for a BUILT_IN_NORMAL call instead of a negative test for
16084 an internal function call.
16086 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16088 * tree.h (build_vector_a_then_b): Declare.
16089 * tree.c (build_vector_a_then_b): New function.
16090 * fold-const-call.c (fold_while_ult): Likewise.
16091 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16092 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16093 (aarch64_svpattern): New enum.
16094 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16095 constants through aarch64_expand_mov_immediate.
16096 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16097 than general_operand as the predicate for operand 1.
16098 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16099 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16101 (simd_immediate_info::simd_immediate_info): New overload that
16102 takes a scalar_int_mode and an svpattern.
16103 (simd_immediate_info::u): Add a "pattern" field.
16104 (svpattern_token): New function.
16105 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16106 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16107 (aarch64_sve_move_pred_via_while): New functions.
16108 (aarch64_expand_mov_immediate): Try using
16109 aarch64_sve_move_pred_via_while for predicates that contain N ones
16110 followed by M zeros but that do not correspond to a VLnnn pattern.
16111 (aarch64_sve_pred_valid_immediate): New function.
16112 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16113 with PTRUE and PFALSE.
16114 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16117 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16119 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16121 (darwin_override_options): Likewise.
16122 * config/darwin.h: Likewise.
16123 * config/darwin.opt: Likewise.
16124 * config/i386/i386.c (output_pic_addr_const): Likewise.
16125 * config/rs6000/darwin.h: Likewise.
16126 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16127 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16128 ... this TARGET_MACHO_SYMBOL_STUBS.
16129 (FUNCTION_PROFILER):Likewise.
16130 * config/i386/i386.h: Likewise.
16132 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16134 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16135 <case E_V2SImode>: Use vec_extr path for
16136 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16137 <case E_V8QImode>: Ditto.
16138 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16139 Use SWI48 mode iterator. Use %k to output operand 0.
16140 (*mmx_pextrw): New insn pattern.
16141 (*mmx_pextrb): Ditto.
16142 (*mmx_pextrb_zext): Ditto.
16144 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16146 * target.def (libc_has_function, libc_has_fast_function): Improve
16147 documentation strings.
16148 * doc/tm.texi: Regenerate.
16150 2019-08-13 Caroline Tice <cmtice@google.com>
16153 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16154 vtv_end.o or vtv_end_preinit.o files if !static.
16156 2019-08-13 Olivier Hainque <hainque@adacore.com>
16158 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16160 2019-08-13 Olivier Hainque <hainque@adacore.com>
16162 * rtlanal.c (tablejump_casesi_pattern): New function, to
16163 determine if a tablejump insn is a casesi dispatcher. Extracted
16164 from patch_jump_insn.
16165 * rtl.h (tablejump_casesi_pattern): Declare.
16166 * cfgrtl.c (patch_jump_insn): Use it.
16167 * dwarf2cfi.c (create_trace_edges): Use it.
16169 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16172 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16173 operand is larger than a long int.
16175 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16177 * machmode.h (opt_mode::else_mode): New function.
16178 (opt_mode::else_blk): Use it.
16179 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16180 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16181 (aarch64_gen_stepped_int_parallel): Likewise.
16182 (aarch64_stepped_int_parallel_p): Likewise.
16183 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16185 * config/aarch64/aarch64.c
16186 (aarch64_expand_sve_widened_duplicate): Delete.
16187 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16188 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16189 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16190 argument. Use early returns in the !CONST_INT_P handling.
16191 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16192 than handling some inline.
16193 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16195 (aarch64_simd_container_mode): ...here.
16196 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16197 (aarch64_sve_ld1rq_operand_p): New functions.
16198 * config/aarch64/predicates.md (descending_int_parallel)
16199 (aarch64_sve_ld1rq_operand): New predicates.
16200 * config/aarch64/constraints.md (UtQ): New constraint.
16201 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16202 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16203 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16204 (@aarch64_sve_reinterpret<mode>): New expander.
16205 (*aarch64_sve_reinterpret<mode>): New pattern.
16206 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16207 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16208 (*sve_ld1rq<Vesize>): Replace with...
16209 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16211 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16213 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16216 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16218 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16219 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16220 (msp430_check_path_for_devices): New.
16221 (parse_devices_csv_1): New.
16222 (parse_devices_csv): New.
16223 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16224 MCU data in devices.csv before using the hard-coded data.
16225 Warn if devices.csv isn't found and the MCU wasn't found in the
16226 hard-coded data either.
16227 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16228 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16229 Search for devices.csv on -I and -L paths.
16230 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16231 msp430_set_driver_var.
16232 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16233 -mdevices-csv-loc=.
16234 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16235 searched for devices.csv.
16236 (mwarn-devices-csv): Document option.
16238 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16240 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16241 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16242 Use a single Dn alternative instead of separate Dz and Dm
16243 alternatives. Use aarch64_output_sve_move_immediate.
16244 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16246 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16247 for predicates too.
16248 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16249 (aarch64_output_ptrue): Delete.
16251 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16253 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16255 (simd_immediate_info::value, simd_immediate_info::step)
16256 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16258 (simd_immediate_info::u): ...this new union.
16259 (simd_immediate_info::simd_immediate_info): Update accordingly.
16260 (aarch64_output_simd_mov_immediate): Likewise.
16261 (aarch64_output_sve_mov_immediate): Likewise.
16263 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16265 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16267 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16268 (msp430_select_cpu): New spec function.
16269 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16271 * config/msp430/msp430-devices.c: New file.
16272 * config/msp430/msp430-devices.h: New file.
16273 * config/msp430/msp430.c: Remove msp430_mcu_data.
16274 (msp430_option_override): Use msp430_extract_mcu_data to extract
16276 (msp430_use_f5_series_hwmult): Likewise.
16277 (use_32bit_hwmult): Likewise.
16278 (msp430_no_hwmult): Likewise.
16279 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16281 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16283 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16284 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16285 Remove hard-coded MCU multilib data.
16287 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16289 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16290 based on the mode instead of testing properties of it.
16292 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16294 * doc/md.texi: Document the x and y constraints for AArch64.
16295 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16296 (FP_LO8_REGS): New reg_class.
16297 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16298 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16299 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16300 * config/aarch64/predicates.md (aarch64_simd_register): Use
16301 FP_REGNUM_P instead of checking the classes manually.
16302 * config/aarch64/constraints.md (y): New constraint.
16304 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16306 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16307 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16308 * config/aarch64/aarch64-simd.md
16309 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16310 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16311 from the asm template.
16312 * config/aarch64/aarch64-sve.md
16313 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16314 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16315 from the asm template.
16316 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16317 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16318 from the asm template.
16319 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16321 2019-08-13 Martin Liska <mliska@suse.cz>
16323 * value-prof.c (gimple_ic_transform): Add new line.
16324 Print details with MSG_NOTE.
16326 2019-08-13 Martin Liska <mliska@suse.cz>
16328 * doc/invoke.texi: Document automatic detection of jobserver.
16329 * lto-wrapper.c (run_gcc): Detect jobserver always.
16331 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16333 * config/i386/i386-expand.c (ix86_expand_vector_set)
16334 <case E_V2SImode>: Use vec_merge path for
16335 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16336 <case E_V8QImode>: Ditto.
16337 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16338 (*mmx_pinsrb): Ditto.
16340 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16344 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16345 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16346 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16347 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16348 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16350 2019-08-12 Richard Biener <rguenther@suse.de>
16353 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16356 2019-08-12 Richard Biener <rguenther@suse.de>
16359 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16360 lang_mask option, always use CL_DRIVER.
16361 (get_options_from_collect_gcc_options): Adjust.
16362 (find_and_merge_options): Likewise.
16363 (run_gcc): Likewise.
16365 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16367 * ipa-predicate.c (add_condition): Restore inverted test.
16369 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16371 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16372 (enum omp_clause_device_type_kind): New enum.
16373 (struct tree_omp_clause): Add subcode.device_type_kind.
16374 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16375 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16376 for device_type clause.
16377 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16378 * tree-pretty-print.c (dump_omp_clause): Likewise.
16381 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16384 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16386 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16387 handling spilled pseudos.
16389 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16392 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16393 to preserve the contents of the original insns.
16395 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16397 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16398 (addsi3_compare_op2): Likewise.
16400 2019-08-09 Martin Liska <mliska@suse.cz>
16402 * alias.c (alias_ptr_types_compatible_p): Strengten
16403 type comparison in LTO mode.
16405 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16407 PR middle-end/90313
16408 * tree-tailcall.c (find_tail_calls): Reject calls that might
16409 read from an escaped RESULT_DECL.
16411 2019-08-09 Martin Liska <mliska@suse.cz>
16413 * doc/invoke.texi: Document the option value.
16414 * lto-wrapper.c (run_gcc): Set auto_parallel
16415 only with -flto=auto.
16417 2019-08-09 Martin Liska <mliska@suse.cz>
16419 * opts.c (common_handle_option): Error for an invalid argument
16422 2019-08-09 Martin Liska <mliska@suse.cz>
16424 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16425 use dump_printf to report optimization.
16426 (sem_variable::merge): Likwise.
16427 (sem_item_optimizer::merge_classes): Use dump_printf to report
16430 2019-08-09 Martin Liska <mliska@suse.cz>
16432 * value-prof.c (gimple_divmod_fixed_value_transform):
16433 Use dump_printf_loc.
16434 (gimple_mod_pow2_value_transform): Likewise.
16435 (gimple_mod_subtract_transform): Likewise.
16436 (init_node_map): Likewise.
16437 (gimple_ic_transform): Likewise.
16438 (gimple_stringops_transform): Likewise.
16440 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16442 * doc/extend.texi: Add const qualifier to ld intrinsics.
16444 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16446 * config/rs6000/dfp.md (D64_D128): Rename to ...
16447 (DDTD): ... this, throughout.
16448 (dfp_suffix): Rename to ...
16449 (q): ... this, throughout.
16451 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16453 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16454 (dfp_suffix): Ditto.
16455 (adddd3, addtd3): Merge to ...
16456 (add<mode>3 for D64_D128): ... this.
16457 (subdd3, subtd3): Merge to ...
16458 (sub<mode>3 for D64_D128): ... this.
16459 (muldd3, multd3): Merge to ...
16460 (mul<mode>3 for D64_D128): ... this.
16461 (divdd3, divtd3): Merge to ...
16462 (div<mode>3 for D64_D128): ... this.
16463 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16464 (*cmp<mode>_internal1 for D64_D128): ... this.
16465 (ftruncdd2, ftrunctd2): Merge to ...
16466 (ftrunc<mode>2 for D64_D128): ... this.
16467 (fixdddi2, fixtddi2): Merge to ...
16468 (fix<mode>di2 for D64_D128): ... this.
16470 2019-08-08 Jim Wilson <jimw@sifive.com>
16473 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16474 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16475 Pass into recursive call.
16476 (riscv_flatten_aggregate_argument): New arg. Pass to
16477 riscv_flatten_aggregate_field.
16478 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16479 riscv_flatten_aggregate_argument twice, with false and true as last
16480 arg. Process result twice. Compare results and warn if different.
16481 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16483 2019-08-08 Martin Liska <mliska@suse.cz>
16486 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16487 * lto-wrapper.c (jobserver_active_p): Likewise.
16489 2019-08-08 Martin Liska <mliska@suse.cz>
16491 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16492 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16493 (create_version_clone_with_body): Likewise.
16495 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16497 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16498 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16499 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16500 GOVD_EXPLICIT flags.
16501 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16502 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16503 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16504 call install_var_field with mask 11 instead of 3.
16505 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16506 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16508 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16510 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16511 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16513 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16515 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16516 MOVPRFX alternatives. Make the GPR alternatives more expensive
16519 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16521 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16522 Disparage the GPR alternative relative to the FPR one.
16523 Fix handling of 8-bit and 16-bit FPR values.
16525 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16527 * config/aarch64/iterators.md (BITWISEV): Delete.
16528 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16529 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16530 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16531 UNSPEC_FMINNMV, UNSPEC_FMINV.
16532 (bit_reduc_op): Delete.
16533 (sve_int_op): New int attribute.
16534 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16535 UNSPEC_FMINNMV, UNSPEC_FMINV.
16536 * config/aarch64/aarch64-sve.md
16537 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16538 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16539 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
16540 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
16541 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
16542 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
16544 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
16545 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
16546 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
16547 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
16548 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
16551 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16553 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
16554 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
16555 (fms<mode>4, *fms<mode>4): Replace with...
16556 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16557 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
16558 Use unspecs instead of rtx codes.
16559 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
16560 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
16562 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16564 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
16566 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
16567 * config/aarch64/aarch64-sve.md
16568 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
16569 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
16570 use a single unspec for the rhs.
16571 (*<su><maxmin><mode>3): Delete.
16572 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
16574 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16576 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
16577 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
16578 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
16579 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
16580 (optab, sve_fp_op): Handle them.
16581 (SVE_FP_UNARY): Delete.
16582 (optab): Remove sqrt entry.
16583 (sve_fp_op): Remove neg, abs and sqrt entries.
16584 (SVE_COND_FP_UNARY): New int iterator.
16585 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
16586 (*<frint_pattern><mode>2): Delete.
16587 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16588 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16589 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16590 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16592 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16594 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
16596 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16598 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
16599 (UNSPEC_COND_FADD): ...this.
16600 (UNSPEC_COND_SUB): Rename to...
16601 (UNSPEC_COND_FSUB): ...this.
16602 (UNSPEC_COND_MUL): Rename to...
16603 (UNSPEC_COND_FMUL): ...this.
16604 (UNSPEC_COND_DIV): Rename to...
16605 (UNSPEC_COND_FDIV): ...this.
16606 (UNSPEC_COND_MAX): Rename to...
16607 (UNSPEC_COND_FMAXNM): ...this.
16608 (UNSPEC_COND_MIN): Rename to...
16609 (UNSPEC_COND_FMINNM): ...this.
16610 (UNSPEC_COND_LT): Rename to...
16611 (UNSPEC_COND_FCMLT): ...this.
16612 (UNSPEC_COND_LE): Rename to...
16613 (UNSPEC_COND_FCMLE): ...this.
16614 (UNSPEC_COND_EQ): Rename to...
16615 (UNSPEC_COND_FCMEQ): ...this.
16616 (UNSPEC_COND_NE): Rename to...
16617 (UNSPEC_COND_FCMNE): ...this.
16618 (UNSPEC_COND_GE): Rename to...
16619 (UNSPEC_COND_FCMGE): ...this.
16620 (UNSPEC_COND_GT): Rename to...
16621 (UNSPEC_COND_FCMGT): ...this.
16622 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
16623 (sve_fp_op_rev): Update accordingly.
16624 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
16626 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16628 * config/aarch64/aarch64-sve.md: Reorganize contents and add
16630 * config/aarch64/check-sve-md.awk: New file.
16631 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
16632 (insn-conditions.md): Depend on it.
16634 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
16637 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
16638 (*negsi2_cmpz_zext): Ditto.
16640 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16642 * config/aarch64/iterators.md (commutative): Remove.
16644 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
16647 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
16648 processing COLLECT_GCC_OPTIONS.
16649 (run_gcc): Likewise.
16651 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
16653 PR tree-optimization/91109
16654 * lra-remat.c (update_scratch_ops): Remove assignment of the
16657 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16659 * data-streamer.h (streamer_write_poly_uint64): Declare.
16660 (streamer_read_poly_uint64): Likewise.
16661 * data-streamer-in.c (streamer_read_poly_uint64): New function.
16662 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
16663 * ipa-predicate.h (condition::size): Turn into a poly_int64.
16664 (add_condition): Take a poly_int64 size.
16665 * ipa-predicate.c (add_condition): Likewise.
16666 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
16667 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
16668 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
16669 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
16670 condition::size as a poly_int64.
16671 (unmodified_parm_1): Take a poly_int64 size pointer.
16672 (unmodified_parm): Likewise.
16673 (unmodified_parm_or_parm_agg_item): Likewise.
16674 (set_cond_stmt_execution_predicate): Update accordingly.
16675 (set_switch_stmt_execution_predicate): Likewise.
16676 (will_be_nonconstant_expr_predicate): Likewise.
16677 (will_be_nonconstant_predicate): Likewise.
16678 (inline_read_section): Stream condition::size as a poly_int.
16679 (ipa_fn_summary_write): Likewise.
16681 2019-08-07 Martin Liska <mliska@suse.cz>
16683 * fold-const.c (twoval_comparison_p): Replace int
16684 with bool as a return type.
16685 (simple_operand_p): Likewise.
16686 (operand_equal_p): Replace int with bool as a return type.
16687 * fold-const.h (operand_equal_p): Likewise.
16689 2019-08-07 Jakub Jelinek <jakub@redhat.com>
16691 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
16692 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
16693 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16694 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
16695 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
16696 * tree-pretty-print.c (dump_omp_clause): Likewise.
16697 * tree-nested.c (convert_nonlocal_omp_clauses,
16698 convert_local_omp_clauses): Likewise.
16699 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16701 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
16702 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
16703 clause with array or reference to array types, no matter what type
16704 except for reference it has.
16706 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
16708 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
16710 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
16712 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
16713 (arch_canonicalize): Support rv32g and rv64g and fix error
16716 2019-08-06 Martin Liska <mliska@suse.cz>
16718 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
16719 and DECL_IS_OPERATOR_DELETE_P.
16721 2019-08-06 Jakub Jelinek <jakub@redhat.com>
16723 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
16724 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
16725 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
16726 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
16727 (gimplify_omp_for): Don't do C++ random access iterator clause
16728 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
16729 don't predetermine the artificial iterator in case of C++ random
16730 access iterators as lastprivate, but private. For OMP_LOOP, force
16731 bind expr around simd body and force for_pre_body before the
16732 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
16733 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
16734 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
16735 diff var of C++ random access iterators. Handle
16736 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
16737 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
16738 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
16739 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
16740 * omp-low.c (lower_rec_input_clauses): For
16741 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
16742 variables instead of default constructing them.
16743 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
16744 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
16745 is_taskloop_ctx check from the assert to the guarding condition.
16747 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
16749 * config/riscv/multilib-generator: (canonical_order): New.
16750 (arch_canonicalize): Dito.
16751 Apply arch_canonicalize for alts.
16753 2019-08-05 Martin Sebor <msebor@redhat.com>
16755 * doc/extend.texi (Common Variable Attributes): Document alias
16758 2019-08-05 Marek Polacek <polacek@redhat.com>
16760 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
16761 * doc/invoke.texi: Document -Wcomma-subscript.
16763 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16765 * tree-core.h (tree_function_decl): Make function_code an
16766 independent field. Group the remaining bitfields into bytes
16767 and move decl_type so that it contines to be at a byte boundary.
16768 Leave 12 bits for future expansion.
16770 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16772 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
16773 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
16774 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
16777 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16779 * gimple.h (gimple_move_vops): Declare.
16780 * gimple.c (gimple_move_vops): New function
16781 * gimple-fold.c (replace_call_with_call_and_fold)
16782 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
16783 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
16784 (gimple_fold_call): Use it.
16785 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
16786 * tree-call-cdce.c (use_internal_fn): Likewise.
16787 * tree-if-conv.c (predicate_load_or_store): Likewise.
16788 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
16789 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16790 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
16791 (update_call_from_tree): Likewise.
16792 * tree-vect-stmts.c (vectorizable_load): Likewise.
16793 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
16795 2019-08-05 Martin Liska <mliska@suse.cz>
16798 * tree-ssa-dce.c (propagate_necessity): Handle new operators
16799 with not arguments.
16800 (eliminate_unnecessary_stmts): Likewise.
16802 2019-08-05 Richard Biener <rguenther@suse.de>
16804 PR middle-end/91169
16805 * fold-const.c (get_array_ctor_element_at_index): Create
16806 offset_ints according to the sign of the index type and treat
16807 that as signed if it is obviously so.
16809 2019-08-05 Jakub Jelinek <jakub@redhat.com>
16812 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
16813 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
16814 _mm256_storeu2_m128i): New function.
16816 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
16818 * config/riscv/riscv.c (riscv_promote_function_mode): New.
16819 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
16821 2019-08-05 Alan Modra <amodra@gmail.com>
16824 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
16825 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
16827 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
16829 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
16830 bug that was fixed in Tcl 8.6.1.
16832 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
16834 * config/rs6000/future.md: New file.
16835 * config/rs6000/rs6000.md: Include future.md.
16836 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
16838 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16840 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
16841 check to use targetm.slow_unaligned_access instead.
16843 * function.c (assign_param_data_one): Remove unused data members.
16845 2019-08-02 Steve Ellcey <sellcey@marvell.com>
16847 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
16848 build_distinct_type_copy.
16849 (simd_clone_adjust_argument_types): Ditto.
16850 (simd_clone_adjust): Call build_distinct_type_copy here.
16851 (expand_simd_clones): Ditto.
16853 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16856 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
16858 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
16860 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
16861 from 'const void *'.
16862 (sort_locs_in_loop_postorder_cmp): Likewise.
16864 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
16866 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
16867 (hot-bb-count-ws-permille): Likewise.
16868 (hot-bb-frequency-fraction): Likewise.
16869 (unlikely-bb-count-fraction): Likewise.
16870 * params.def (hot-bb-count-fraction): Rework description.
16871 (hot-bb-count-ws-permille): Likewise.
16872 (hot-bb-frequency-fraction): Likewise.
16873 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
16874 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
16876 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16879 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
16882 2019-08-02 Richard Biener <rguenther@suse.de>
16884 * vec.h (vec::sort): Add gcc_qsort_r support.
16885 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
16886 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
16887 to gcc_qsort_r style callback.
16888 (sort_locs_in_loop_postorder_cmp): Likewise.
16889 (analyze_memory_references): Use gcc_sort_r interfaces.
16890 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
16892 2019-08-02 Martin Liska <mliska@suse.cz>
16895 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
16896 to detect working job server.
16897 (driver::detect_jobserver): Test whether jobserver
16898 is active from GCC driver. That will prevent situation where
16899 GCC is invoked from a LD plugin and the linker already uses
16900 file descriptors suggested by make. That leads to a wrong
16902 * gcc.h (driver): Add detect_jobserver.
16903 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
16904 not scanning for --jobserver-auth prefix.
16906 2019-08-02 Jakub Jelinek <jakub@redhat.com>
16908 PR tree-optimization/91201
16909 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
16910 V16QImode extraction without sse4.1 try to use V4SImode lowpart
16913 2019-08-01 Martin Sebor <msebor@redhat.com>
16916 * tree.c (type_initializer_zero_p): Define.
16917 * tree.h (type_initializer_zero_p): New function.
16919 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16921 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
16923 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16925 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
16926 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
16927 * predict.c (maybe_hot_count_p): Likewise.
16928 (maybe_hot_bb_p): Tweak comment.
16929 (maybe_hot_edge_p): Likewise.
16930 (probably_never_executed): Likewise. Minor tweak.
16931 (probably_never_executed_bb_p): Likewise.
16932 (unlikely_executed_edge_p): Likewise.
16933 (probably_never_executed_edge_p): Likewise.
16934 (optimize_function_for_size_p): Likewise.
16935 (optimize_function_for_speed_p): Likewise.
16936 (function_optimization_type): Likewise.
16937 (optimize_bb_for_size_p): Likewise.
16938 (optimize_bb_for_speed_p): Likewise.
16939 (bb_optimization_type): Likewise.
16940 (optimize_edge_for_size_p): Likewise.
16941 (optimize_edge_for_speed_p): Likewise.
16942 (optimize_insn_for_size_p): Likewise.
16943 (optimize_insn_for_speed_p): Likewise.
16944 (optimize_loop_for_size_p): Likewise.
16945 (optimize_loop_for_speed_p): Likewise.
16946 (optimize_loop_nest_for_speed_p): Likewise.
16947 (optimize_loop_nest_for_size_p): Likewise.
16948 (predictable_edge_p): Likewise.
16949 (handle_missing_profiles): Minor tweak.
16951 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
16953 * config/rs6000/predicates.md (pcrel_external_address): Update
16956 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16959 * config/i386/mmx.md (usadv8qi): New expander.
16961 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
16964 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
16965 with reserved names that are in a system header.
16967 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16969 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
16970 (*vec_extractv2si_0_zext_sse4): New insn pattern.
16971 (*vec_extractv2si_0_zext): Ditto.
16972 (*vec_extractv2si_1): Add (rm,x) alternative.
16973 (*vec_extractv2si_1_zext): New insn pattern.
16974 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
16977 2019-08-01 Richard Biener <rguenther@suse.de>
16979 * domwalk.c (bb_postorder): Remove static variable.
16980 (cmp_bb_postorder): Adjust.
16981 (sort_bbs_postorder): Adjust and use gcc_sort_r.
16982 (dom_walker::walk): Adjust.
16984 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
16986 * sort.cc (sort_r_ctx): New struct.
16987 (reorder23): Make templated on context type.
16988 (reorder45): Ditto.
16989 (cmp1): Ditto. Adjust signature.
16991 (mergesort): Ditto.
16992 [CHECKING_P] (cmp2to3): New static function. Use it...
16993 (gcc_qsort) [CHECKING_P]: ...here.
16994 (gcc_sort_r): New function.
16995 * system.h (sort_r_cmp_fn): New function typedef.
16996 (qsort_chk): Adjust signature.
16997 (gcc_sort_r): Declare.
16998 * vec.c (qsort_chk_error): Adjust.
16999 (qsort_chk): Adjust.
17001 2019-08-01 Richard Biener <rguenther@suse.de>
17003 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17004 (compute_antic): Localize it here.
17006 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17008 * common/config/riscv/riscv-common.c: Check -march string ends
17011 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17013 * ipa-devirt.c (type_warning_cmp): Make static.
17014 (decl_warning_cmp): Ditto.
17016 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17019 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17020 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17021 use of deleted rs6000_dejagnu_cpu_index variable.
17022 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17023 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17024 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17025 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17026 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17027 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17029 2019-07-31 Richard Biener <rguenther@suse.de>
17031 PR tree-optimization/91280
17032 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17033 Decompose MEM_REF manually for offset handling.
17035 2019-07-31 Richard Biener <rguenther@suse.de>
17037 PR tree-optimization/91293
17038 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17039 of reduction stmts.
17041 2019-07-31 Matt Thomas <matt@3am-software.com>
17042 Nick Hudson <nick@nthcliff.demon.co.uk>
17043 Matthew Green <mrg@eterna.com.au>
17044 Maya Rashish <coypu@sdf.org>
17046 * config.gcc (hppa*-*-netbsd*): New target.
17047 * config/pa/pa-netbsd.h: New file.
17048 * config/pa/pa32-netbsd.h: New file.
17050 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17052 PR tree-optimization/91201
17053 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17055 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17057 * config/gcn/gcn-valu.md
17058 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17059 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17060 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17061 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17062 struct ilist. Add nops for delayeduse insns.
17063 * config/gcn/gcn.md (delayeduse): New attribute.
17064 (*movbi): Remove s_waitcnt from stores.
17065 (*mov<mode>_insn): Likewise.
17066 (*movti_insn): Likewise. Add delayeduse attribute.
17067 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17068 (atomic_store<mode>): Remove or adjust s_waitcnt.
17070 2019-07-31 Richard Biener <rguenther@suse.de>
17072 * vr-values.h (vr_values::swap_vr_value): New.
17073 (vr_values::free_value_range): likewise.
17074 * vr-values.c (vr_values::swap_vr_value): Implement.
17075 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17076 Do not return a range or take a var.
17077 (evrp_range_analyzer::stack): Change back to recording a non-const
17079 * gimple-ssa-evrp-analyze.c
17080 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17082 (evrp_range_analyzer::pop_to_marker): Adjust.
17083 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17084 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17085 no longer needed value-range.
17087 2019-07-31 Martin Liska <mliska@suse.cz>
17089 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17090 have size and (or) alignment as 2nd and later arguments.
17091 Mark all of them as necessary.
17093 2019-07-31 Richard Biener <rguenther@suse.de>
17095 PR tree-optimization/91178
17096 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17097 Use tail-recursion.
17099 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17101 PR tree-optimization/91201
17102 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17103 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17105 (reduc_plus_scal_<mode>): Improve formatting by introducing
17108 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17110 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17111 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17112 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17113 (aarch64_init_tme_builtins): New.
17114 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17115 (aarch64_expand_builtin_tme): New.
17116 (aarch64_expand_builtin): Handle TME builtins.
17117 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17118 __ARM_FEATURE_TME when enabled.
17119 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17120 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17122 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17123 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17125 (tstart, ttest, tcommit, tcancel): New instructions.
17126 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17127 (__tcancel, __ttest): New.
17128 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17129 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17130 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17131 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17132 * config/arm/types.md: Add new tme type attr.
17133 * doc/invoke.texi: Document "tme".
17135 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17137 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17138 warn_unused_result attribute.
17139 (cmse_check_address_range): Add warn_unused_result attribute.
17141 2019-07-31 Richard Biener <rguenther@suse.de>
17143 PR tree-optimization/91257
17144 * tree-vrp.c (union_ranges): Unify equality and less tests
17145 by using compare_values. Re-order cheap tests first.
17147 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17149 PR middle-end/91301
17150 * gimplify.c (gimplify_omp_for): If for class iterator on
17151 distribute parallel for there is no data sharing clause
17152 on inner_for_stmt, look for private clause on combined
17153 parallel too and if found, move it to inner_for_stmt.
17155 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17157 * lra-int.h (lra_operand_data): Remove early_clobber field.
17158 (lra_insn_reg): Likewise.
17159 * lra.c (debug_operand_data): Update accordingly.
17160 (setup_operand_alternative): Likewise.
17161 (new_insn_reg): Likewise. Remove early_clobber parameter.
17162 (collect_non_operand_hard_regs): Update call accordingly.
17163 Don't assign to lra_insn_reg::early_clobber.
17164 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17165 and update calls to new_insn_reg.
17166 (lra_update_insn_regno_info): Update calls accordingly.
17167 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17168 alternative number as a parameter and test whether the operand
17169 is earlyclobbered in that particular alternative.
17170 (process_alt_operands): Update call accordingly. Use per-alternative
17171 checks for earyclobber here too.
17172 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17173 against zero for IRA_UNKNOWN_ALT.
17175 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17177 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17179 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17181 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17182 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17184 2019-07-30 Martin Liska <mliska@suse.cz>
17187 * cgraph.c (cgraph_edge::make_direct): Use
17188 edge->indirect_unknown_callee as edge->resolve_speculation can
17189 deallocate edge which is this pointer.
17191 2019-07-30 Richard Biener <rguenther@suse.de>
17193 PR tree-optimization/91257
17194 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17196 2019-07-30 Martin Liska <mliska@suse.cz>
17198 * doc/invoke.texi: Document new behavior.
17199 * lto-wrapper.c (cpuset_popcount): New function
17200 is a copy of libgomp/config/linux/proc.c.
17201 (init_num_threads): Likewise.
17202 (run_gcc): Automatically detect core count for -flto.
17203 (jobserver_active_p): New function.
17205 2019-07-30 Richard Biener <rguenther@suse.de>
17207 PR tree-optimization/91257
17208 * bitmap.h (bitmap_ior_into_and_free): Declare.
17209 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17210 whether to add the unliked element to the freelist.
17211 (bitmap_list_insert_element_after): Add defaulted param for
17212 an already allocated element.
17213 (bitmap_ior_into_and_free): New function.
17214 * tree-ssa-structalias.c (condense_visit): Reduce the
17215 ponts-to and edge bitmaps of the SCC members in a
17216 logarithmic fashion rather than all to one.
17218 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17220 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17221 parameter. When nonnull, make sure that the addition or subtraction
17222 has the same condition.
17223 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17224 for CFN_COND_MUL too.
17226 2019-07-30 Richard Biener <rguenther@suse.de>
17228 PR tree-optimization/91291
17229 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17232 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17234 PR middle-end/91216
17235 * omp-low.c (global_nonaddressable_vars): New variable.
17236 (use_pointer_for_field): For global decls, if they are non-addressable,
17237 remember it in the global_nonaddressable_vars bitmap, if they are
17238 addressable and in the global_nonaddressable_vars bitmap, ignore their
17239 TREE_ADDRESSABLE bit.
17240 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17241 vars in global_nonaddressable_vars bitmap.
17242 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17245 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17246 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17247 comparison to unsigned HOST_WIDE_INT before shifting it left.
17249 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17251 * config/i386/i386.md (movstrict<mode>): Use register_operand
17252 predicate for operand 0. Add expander condition. Assert that
17253 operand 0 is a SUBREG RTX.
17254 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17255 Update operand constraints and insn condition.
17256 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17257 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17258 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17259 Update operand 0 constraints.
17260 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17262 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17264 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17265 when -m{code,data}-region are used without -mlarge.
17266 * config/msp430/msp430.c (msp430_option_override): Error when a
17267 non-default code or data region is used without -mlarge.
17268 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17269 attributes when they are used without -mlarge.
17271 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17274 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17276 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17278 PR middle-end/91242
17279 * wide-int.h (generic_wide_int::sext_elt): New function.
17280 * inchash.h (hash::add_wide_int): Use it instead of elt.
17282 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17284 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17286 * config/arm/arm.md (<crc_variant>): Rename to...
17287 (arm_<crc_variant>): ... This.
17288 (<cdp>): Rename to...
17289 (arm_<cdp>): ... This.
17290 (<ldc>): Rename to...
17291 (arm_<ldc>): ... This.
17292 (<stc>): Rename to...
17293 (arm_<stc>): ... This.
17294 (<mcr>): Rename to...
17295 (arm_<mcr>): ... This.
17296 (<mrc>): Rename to...
17297 (arm_<mrc>): ... This.
17298 (<mcrr>): Rename to...
17299 (arm_<mcrr>): ... This.
17300 (<mrrc>): Rename to...
17301 (arm_<mrrc>): ... This.
17303 2019-07-29 Richard Biener <rguenther@suse.de>
17305 PR tree-optimization/91257
17306 * tree-ssa-sccvn.h (struct vn_avail): New.
17307 (struct vn_ssa_aux): Add avail member.
17308 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17309 member, add m_avail_freelist one.
17310 (rpo_elim::~rpo_elim): Remove.
17311 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17313 (rpo_elim::eliminate_push_avail): Likewise.
17314 (do_unwind): Likewise.
17315 (do_rpo_vn): Likewise.
17317 2019-07-29 Richard Biener <rguenther@suse.de>
17319 PR tree-optimization/91257
17320 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17321 most cases, instead call compare_values which handles the
17322 symbolic ranges we handle specially.
17323 (compare_values_warnv): Do not call operand_less_p but open-code
17324 the effective fold calls. Avoid converting so much.
17326 2019-07-29 Martin Liska <mliska@suse.cz>
17328 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17329 remove LHS of operator new call. It's handled latter.
17331 2019-07-29 Richard Biener <rguenther@suse.de>
17333 PR tree-optimization/91267
17334 * vr-values.c (vr_values::update_value_range): Add early return
17335 for effectively VARYING lattice entry.
17337 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17340 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17341 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17342 necessary if keep_all_vdefs_p is true.
17343 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17344 that keep_all_vdefs_p is false.
17345 (mark_all_reaching_defs_necessary): Likewise.
17346 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17348 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17350 * common.opt (Og): Change the initial value of flag_dse to 0.
17351 * opts.c (default_options_table): Move OPT_ftree_dse from
17352 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17353 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17354 entry before the OPT_ftree_sra entry.
17355 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17356 of flags disabled by Og.
17358 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17360 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17363 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17365 * doc/sourcebuild.texi (check-function-bodies): Document.
17367 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17369 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17370 VEC_DUPLICATE of a fixed-length vector even if the result
17371 is variable-length. Likewise fold a duplicate of a
17372 variable-length vector if the variable-length vector is
17373 itself a duplicate of a fixed-length sequence.
17374 (test_vector_ops_duplicate): Test more cases.
17376 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17378 * vector-builder.h (vector_builder): Add a shape template parameter.
17379 (vector_builder::new_unary_operation): New function, generalizing
17380 the old tree_vector_builder function.
17381 (vector_builder::new_binary_operation): Likewise.
17382 (vector_builder::binary_encoded_nelts): Likewise.
17383 * int-vector-builder.h (int_vector_builder): Update template
17384 parameters to vector_builder.
17385 (int_vector_builder::shape_nelts): New function.
17386 * rtx-vector-builder.h (rtx_vector_builder): Update template
17387 parameters to vector_builder.
17388 (rtx_vector_builder::shape_nelts): New function.
17389 (rtx_vector_builder::nelts_of): Likewise.
17390 (rtx_vector_builder::npatterns_of): Likewise.
17391 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17392 * tree-vector-builder.h (tree_vector_builder): Update template
17393 parameters to vector_builder.
17394 (tree_vector_builder::shape_nelts): New function.
17395 (tree_vector_builder::nelts_of): Likewise.
17396 (tree_vector_builder::npatterns_of): Likewise.
17397 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17398 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17399 (tree_vector_builder::new_binary_operation): Delete.
17400 (tree_vector_builder::binary_encoded_nelts): Likewise.
17401 * simplify-rtx.c: Include rtx-vector-builder.h.
17402 (distributes_over_addition_p): New function.
17403 (simplify_const_unary_operation)
17404 (simplify_const_binary_operation): Generalize handling of vector
17405 constants to include variable-length vectors.
17406 (test_vector_ops_series): Add more tests.
17408 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17411 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17412 than INDENTIFIER_POINTER.
17414 2019-07-28 Martin Liska <mliska@suse.cz>
17417 * cgraph.c (symbol_table::create_edge): Always allocate
17419 (symbol_table::free_edge): Store summary_id to
17420 edge_released_summary_ids if != -1;
17421 * cgraph.h (NEXT_FREE_NODE): Remove.
17422 (SET_NEXT_FREE_NODE): Likewise.
17423 (NEXT_FREE_EDGE): Likewise.
17424 (symbol_table::release_symbol): Store summary_id to
17425 cgraph_released_summary_ids if != -1;
17426 (symbol_table::allocate_cgraph_symbol): Always allocate
17429 2019-07-28 Alan Modra <amodra@gmail.com>
17431 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17434 2019-07-28 Alan Modra <amodra@gmail.com>
17437 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17439 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17440 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17441 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17443 2019-07-28 Alan Modra <amodra@gmail.com>
17446 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17447 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17448 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17449 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17450 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17451 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17452 in asm_default spec.
17453 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17454 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17456 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17458 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17460 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17463 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17464 * config/aarch64/aarch64-option-extensions.def: Add new comments
17465 and restore easier to read options.
17467 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17469 * convert.c (convert_to_real_1): Move part of conversion code...
17470 * match.pd: ...To here.
17472 2019-07-26 Martin Jambor <mjambor@suse.cz>
17475 * ipa-inline-transform.c (check_speculations_1): New function.
17476 (push_all_edges_in_set_to_vec): Likewise.
17477 (check_speculations): Use check_speculations_1, new parameter
17479 (inline_call): Pass new_edges to check_speculations.
17480 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17482 (speculation_useful_p): Early return true if edge is inlined, remove
17483 later checks for inline_failed.
17485 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17487 PR rtl-optimization/91223
17488 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17489 matching with INOUT operand.
17491 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17493 * stmt.c (expand_case): Try to narrow the index type if it's larger
17494 than a word. Tidy up.
17496 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17498 * cif-code.def (NEVER_CALL): New code.
17499 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17500 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17502 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17504 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17505 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17507 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17509 * ipa-devirt.c (add_type_duplicate): Fix return value.
17511 2019-07-25 Richard Biener <rguenther@suse.de>
17513 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17514 type parameter and use it instead of guessing expression
17515 type from the first operand.
17516 (extract_range_from_binary_expr): Pass expr_type down.
17518 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17520 * config/arm/arm.md (SATrev): Change to code attribute.
17521 (*satsi_<SAT:code>): Adjust for the above.
17522 (*satsi_<SAT:code>_shift): Likewise.
17524 2019-07-25 Richard Biener <rguenther@suse.de>
17526 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17527 Make value_range * temporary const.
17528 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17530 (evrp_range_analyzer::record_ranges_from_): Likewise.
17531 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17532 deal with having recorded a const one.
17533 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
17534 Return a const value_range *.
17535 (evrp_range_analyzer::pop_value_range): Likewise.
17536 (evrp_range_analyzer::stack): Record const value_range *s.
17537 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17539 * gimple-ssa-sprintf.c (get_int_range): Likewise.
17540 (format_integer): Likewise.
17541 (sprintf_dom_walker::handle_gimple_call): Likewise.
17542 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
17543 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
17544 (vrp_prop::get_value_range): Adjust.
17545 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
17546 modifying the lattice in-place.
17547 (vrp_prop::visit_stmt): Likewise.
17548 * vr-values.c (vr_values::get_lattice_entry): New private method.
17549 (vr_values::get_value_range): Wrap it and return a const
17551 (vr_values::set_def_to_varying): New.
17552 (vr_values::set_defs_to_varying): Use it.
17553 (vr_values::update_value_range): Likewise.
17554 (vr_values::vrp_stmt_computes_nonzero): Adjust.
17555 (values::op_with_constant_singleton_va): Likewise.
17556 (vr_values::extract_range_for_var_from_co): Likewise.
17557 (vr_values::extract_range_from_ssa_name): Likewise.
17558 (vr_values::extract_range_from_cond_expr): Likewise.
17559 (vr_values::extract_range_basic): Likewise.
17560 (compare_ranges): Take const value_range *, adjust.
17561 (compare_range_with_value): Likewise.
17562 (vrp_valueize): Adjust.
17563 (vrp_valueize_1): Likewise.
17564 (vr_values::get_vr_for_comparison): Return a const value_range *.
17565 (vr_values::compare_name_with_value): Adjust.
17566 (vr_values::compare_names): Likewise.
17567 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17569 (vr_values::vrp_evaluate_conditional): Likewise.
17570 (find_case_label_ranges): Take a const value_range *.
17571 (vr_values::vrp_visit_switch_stmt): Adjust.
17572 (vr_values::extract_range_from_phi_node): Likewise.
17573 (vr_values::simplify_div_or_mod_using_ran): Likewise.
17574 (vr_values::simplify_abs_using_ranges): Likewise.
17575 (test_for_singularity): Take a const value_range *.
17576 (range_fits_type_p): Likewise.
17577 (vr_values::simplify_cond_using_ranges_1): Adjust.
17578 (vr_values::simplify_cond_using_ranges_2): Likewise.
17579 (vr_values::simplify_switch_using_ranges): Likewise.
17580 (vr_values::simplify_float_conversion_usi): Likewise.
17581 (vr_values::two_valued_val_range_p): Likewise.
17582 * vr-values.h (vr_values::get_value_range): Return a const
17584 (vr_values::set_def_to_varying): New.
17585 (vr_values::get_lattice_entry): New private method.
17586 (vr_values::get_vr_for_comparison): Return a const value_range *.
17588 2019-07-25 Martin Liska <mliska@suse.cz>
17589 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
17592 * common.opt: Add -fallocation-dce
17593 * gimple.c (gimple_call_operator_delete_p): New.
17594 * gimple.h (gimple_call_operator_delete_p): Likewise.
17595 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
17596 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
17597 DECL_IS_OPERATOR_DELETE_P.
17598 (mark_all_reaching_defs_necessary_1): Likewise.
17599 (propagate_necessity): Likewise.
17600 (eliminate_unnecessary_stmts): Handle
17601 gimple_call_operator_delete_p.
17602 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
17603 Add packing of OPERATOR_DELETE.
17604 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
17606 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
17607 (DECL_SET_IS_OPERATOR_DELETE): New.
17608 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
17610 2019-07-25 Martin Liska <mliska@suse.cz>
17612 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
17613 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
17614 * coverage.c (coverage_begin_function): Likewise.
17615 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
17616 * gimple.c (gimple_call_nonnull_result_p): Likewise.
17617 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
17618 (sem_item::hash_referenced_symbol_properties): Likewise.
17619 * lto-streamer-out.c (hash_tree): Likewise.
17620 * predict.c (expr_expected_value_1): Likewise.
17621 * tree-inline.c (expand_call_inline): Likewise.
17622 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17623 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17624 * tree-core.h (enum function_decl_type): New enum.
17625 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
17626 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
17627 (set_function_decl_type): Likewise.
17628 (DECL_IS_OPERATOR_NEW_P): New.
17629 (DECL_SET_IS_OPERATOR_NEW): Likewise.
17630 (DECL_LAMBDA_FUNCTION): Likewise.
17631 (DECL_LAMBDA_FUNCTION_P): Likewise.
17632 (DECL_IS_OPERATOR_NEW): Remove.
17633 (DECL_SET_LAMBDA_FUNCTION): Likewise.
17635 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
17637 * ipa-profile.c (get_most_common_single_value): Use
17638 get_nth_most_common_value.
17639 * profile.c (sort_hist_value): New function.
17640 (compute_value_histograms): Call sort_hist_value to sort the
17641 values after loading from disk.
17642 * value-prof.c (get_most_common_single_value): Rename to ...
17643 get_nth_most_common_value. Add input params n, return
17644 the n_th value and count.
17645 (gimple_divmod_fixed_value_transform): Use
17646 get_nth_most_common_value.
17647 (gimple_ic_transform): Likewise.
17648 (gimple_stringops_transform): Likewise.
17649 * value-prof.h (get_most_common_single_value): Add input params
17652 2019-07-25 Richard Biener <rguenther@suse.de>
17654 PR tree-optimization/91236
17655 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17656 size of CONSTRUCTOR write. Fix buffer size we pass to
17657 native_encode_expr.
17659 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17661 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
17662 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
17665 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17667 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
17668 explicitly disabled with --disable-initfini-array.
17670 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17672 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
17675 2019-07-24 Martin Sebor <msebor@redhat.com>
17677 PR tree-optimization/91183
17678 PR tree-optimization/86688
17679 * builtins.c (compute_objsize): Handle MEM_REF.
17680 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
17681 (get_min_string_length): Remove.
17682 (count_nonzero_bytes): New function.
17683 (handle_char_store): Rename...
17684 (handle_store): to this. Handle multibyte stores via integer types.
17685 (strlen_check_and_optimize_stmt): Adjust conditional and the called
17688 2019-07-24 Martin Sebor <msebor@redhat.com>
17691 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
17692 (diagnostic_report_diagnostic): Same.
17693 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
17694 (diagnostic_context::lang_mask): New data member.
17695 * ipa-pure-const.c (suggest_attribute): Use
17696 lang_hooks.option_lang_mask ().
17697 * opts-common.c (option_enabled): Handle new argument.
17698 (get_option_state): Pass an additional argument.
17699 * opts.c (print_filtered_help): Print supported languages for
17700 unsupported options. Adjust printing of current state.
17701 * opts.h (option_enabled): Add argument.
17702 * toplev.c (print_switch_values): Use lang_mask.
17703 (general_init): Set global_dc->lang_mask.
17705 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17708 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
17710 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
17712 * cgraphunit.c (symbol_table::compile): Start and stop
17713 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
17714 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
17716 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
17718 * gimplify.c (flag_instrument_functions_exclude_p): Include
17719 namespace/class information in the printable name.
17720 * opts.c (add_comma_separated_to_vector): Add NUL terminator
17721 to tokens entered into the vector.
17723 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
17725 * tree-nested.c (build_simple_mem_ref_notrap): New function.
17726 (get_static_chain): Call it instead of build_simple_mem_ref.
17727 (get_frame_field): Likewise.
17728 (get_nonlocal_debug_decl): Likewise.
17729 (convert_nonlocal_reference_op): Likewise.
17731 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17733 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
17735 (arc_compute_frame_size): Millicode is disabled when compiling
17737 (arc_return_address_register): Likewise.
17738 (arc_compute_function_type): Likewise.
17739 (arc_compute_frame_size): Likewise.
17740 (secondary_reload_info): Likewise.
17741 (arc_get_unalign): Likewise.
17742 (arc_can_use_return_insn): Declare.
17743 * config/arc/arc.c (AUX_LP_START): Define
17744 (AUX_LP_END): Likewise.
17745 (arc_frame_info): Update gmask member to 64-bit datum.
17746 (GMASK_LEN): Update.
17747 (arc_compute_function_type): Make it static, move it forward.
17748 (arc_must_save_register): Update, consider the extra regs.
17749 (arc_compute_millicode_save_restore_regs): Update to use the 64
17751 (arc_compute_frame_size): Likewise.
17752 (arc_enter_leave_p): Likewise.
17753 (arc_save_callee_saves): Likewise.
17754 (arc_restore_callee_saves): Likewise.
17755 (arc_save_callee_enter): Likewise.
17756 (arc_restore_callee_leave): Likewise.
17757 (arc_save_callee_milli): Likewise.
17758 (arc_restore_callee_milli): Likewise.
17759 (arc_expand_prologue): Add new interrupt handling.
17760 (arc_return_address_register): Make it static, move it forward.
17761 (arc_expand_epilogue): Add new interrupt handling.
17762 (arc_get_unalign): Delete.
17763 (arc_epilogue_uses): Make sure we do not remove the extra
17764 saved/restored registers when interrupt.
17765 (arc_can_use_return_insn): New function.
17766 (push_reg): Likewise.
17767 (pop_reg): Likewise.
17768 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
17770 (arc_restore_callee_saves): Likewise, but restoring.
17771 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
17772 (R33_REG): Likewise.
17773 (R34_REG): Likewise.
17774 (R35_REG): Likewise.
17775 (R36_REG): Likewise.
17776 (R37_REG): Likewise.
17777 (R38_REG): Likewise.
17778 (R39_REG): Likewise.
17779 (R45_REG): Likewise.
17780 (R46_REG): Likewise.
17781 (R47_REG): Likewise.
17782 (R48_REG): Likewise.
17783 (R49_REG): Likewise.
17784 (R50_REG): Likewise.
17785 (R51_REG): Likewise.
17786 (R52_REG): Likewise.
17787 (R53_REG): Likewise.
17788 (R54_REG): Likewise.
17789 (R55_REG): Likewise.
17790 (R56_REG): Likewise.
17791 (R58_REG): Likewise.
17792 (type): Add rtie attribute.
17793 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
17794 (movsi_insn): Accept moves to lp_count.
17795 (rtie): Update pattern.
17796 (simple_return): Simplify it, don't use this pattern as a return
17798 (arc600_rtie): New pattern.
17799 (p_return_i): Clean up.
17800 (return): Likewise.
17801 * config/arc/builtins.def (rtie): Only available for non ARC6xx
17803 * config/arc/predicates.md (move_src_operand): Consider lp_count
17806 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
17808 * config/s390/predicates.md (addv_const_operand): New predicate.
17809 * config/s390/s390-modes.def (CCO): New condition code mode.
17810 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
17811 (s390_branch_condition_mask): Likewise.
17812 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
17813 ("mulv<mode>4"): New expanders.
17814 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
17815 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
17816 pattern definitions.
17818 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17820 PR middle-end/91166
17821 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
17822 (define_predicates): Add entry for uniform_vector_p.
17823 (vec_same_elem_p): New match pattern.
17825 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17828 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
17829 * config/i386/darwin32-biarch.h .. to here.
17830 * config/i386/darwin64-biarch.h: Adjust comments.
17831 * config/rs6000/darwin32-biarch.h: Likewise.
17832 * config/rs6000/darwin64-biarch.h: Likewise.
17833 * config.gcc: Missed commit from r273746
17834 (*-*-darwin*): Don't include CPU t-darwin here.
17835 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17836 an error message if i686-darwin configuration is attempted for
17839 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
17842 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
17843 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17844 an error message if i686-darwin configuration is attempted for
17846 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
17847 (powerpc-*-darwin*): Use biarch files where needed.
17848 (powerpc64-*-darwin*): Likewise.
17849 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
17850 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17852 * config/i386/darwin32-biarch.h: New.
17853 * config/i386/darwin64.h: Rename.
17854 * config/i386/darwin64-biarch.h: To this.
17855 * config/i386/t-darwin: Rename.
17856 * config/i386/t-darwin32-biarch: To this.
17857 * config/i386/t-darwin64: Rename.
17858 * config/i386/t-darwin64-biarch: To this.
17859 * config/rs6000/darwin32-biarch.h: New.
17860 * config/rs6000/darwin64.h: Rename.
17861 * config/rs6000/darwin64-biarch.h: To this.
17862 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17864 * config/rs6000/t-darwin8: Rename.
17865 * config/rs6000/t-darwin32-biarch: To this.
17866 * config/rs6000/t-darwin64 Rename.
17867 * config/rs6000/t-darwin64-biarch: To this.
17869 2019-07-23 Martin Sebor <msebor@redhat.com>
17871 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
17873 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17875 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
17876 (rh): New alias for it.
17878 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17880 * gdbhooks.py: Pass replace=True to
17881 gdb.printing.register_pretty_printer.
17883 2019-07-23 Richard Biener <rguenther@suse.de>
17886 * lto-streamer-in.c (input_function): Drop inline-entry markers
17887 that ended up with an unknown location block.
17889 2019-07-23 Richard Biener <rguenther@suse.de>
17891 PR tree-optimization/83518
17892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
17893 init from a constant even when partial defs are already recorded.
17895 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17897 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
17898 * config/i386/znver1.md: Enable patterns for znver2 and add store
17899 variants which use extra AGU unit.
17901 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17903 * config/i386/i386-options.c (ix86_option_override_internal): Default
17904 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
17905 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
17908 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17910 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
17911 (znver2_costs): Update 256 bit SSE costs and multiplication.
17913 2019-07-23 Jan Beulich <jbeulich@suse.com>
17915 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
17916 Require only AVX512F.
17917 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
17918 alternative expanding to vpternlog.
17920 2019-07-23 Martin Liska <mliska@suse.cz>
17922 * dwarf2out.c (gen_producer_string): Canonize -flto=N
17923 to -flto in dwarf producer string.
17925 2019-07-23 Richard Biener <rguenther@suse.de>
17927 * tree-cfg.c (label_for_bb): Remove global var.
17928 (main_block_label): Take label_for_bb as argument.
17929 (cleanup_dead_labels_eh): Likewise, adjust.
17930 (cleanup_dead_labels): Adjust.
17932 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17934 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
17935 Configurations): Add documentation for __builtin_mtfsf.
17937 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
17939 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
17940 * config/riscv/riscv.c (riscv_constant_alignment): Use
17941 riscv_align_data_type.
17942 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
17943 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17944 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17945 * config/riscv/riscv.opt (malign-data): New.
17946 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
17948 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
17950 * cgraph.c (dump_graphviz): New function.
17951 * cgraph.h (dump_graphviz): New function.
17952 * symtab.c (dump_graphviz): New function.
17954 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
17956 * config/aarch64/aarch64-simd.md
17957 (*aarch64_simd_sra<mode>): New.
17958 * config/aarch64/iterators.md
17959 (SHIFTRT): New iterator.
17960 (sra_op): New attribute.
17962 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17964 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
17965 callee-saved regs R4->R10 in an interrupt function that calls another
17968 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17970 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
17971 (_mm_blendv_epi8): New.
17973 2019-07-22 Richard Biener <rguenther@suse.de>
17975 PR tree-optimization/91221
17976 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
17977 restrict partial-def handling of empty constructors and
17978 memset to refs with known offset.
17980 2019-07-22 Jan Beulich <jbeulich@suse.com>
17982 * config/i386/sse.md (ternlogsuffix): New.
17983 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
17985 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
17987 2019-07-22 Martin Liska <mliska@suse.cz>
17989 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
17991 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
17993 2019-07-22 Martin Liska <mliska@suse.cz>
17995 * lto-section-in.c (lto_get_section_data):
17996 Use new function get_compression.
17997 * lto-streamer-out.c (produce_lto_section): Use
17998 set_compression to encode compression algorithm.
17999 * lto-streamer.h (struct lto_section): Do not
18000 use bitfields in the format.
18002 2019-07-22 Martin Liska <mliska@suse.cz>
18005 * opts-common.c (decode_cmdline_option): Decode
18006 argument of -Werror and check it for a wrong language.
18007 * opts-global.c (complain_wrong_lang): Remove such case.
18009 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18011 * config/arc/arc.c (prepare_move_operands): Always use an
18012 intermediate register when storing a TLS symbols.
18014 2019-07-22 Stafford Horne <shorne@gmail.com>
18016 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18019 2019-07-22 Stafford Horne <shorne@gmail.com>
18021 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18022 and munordered-float validations.
18023 * config/or1k/constraints.md (d): New register constraint.
18024 * config/or1k/predicates.md (fp_comparison_operator): New.
18025 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18027 (or1k_expand_compare): Normalize unordered comparisons.
18028 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18029 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18030 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18031 * config/or1k/or1k.md (type): Add fpu.
18032 (fpu): New instruction reservation.
18033 (F, f, fr, fi, FI, FOP, fop): New.
18034 (<fop><F:mode>3): New ALU instruction definition.
18035 (float<fi><F:mode>2): New conversion instruction definition.
18036 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18037 (fpcmpcc): New code iterator.
18038 (*sf_fp_insn): New instruction definition.
18039 (cstore<F:mode>4): New expand definition.
18040 (cbranch<F:mode>4): New expand definition.
18041 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18042 munordered-float): New options.
18043 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18046 2019-07-22 Stafford Horne <shorne@gmail.com>
18048 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18049 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18050 documenation to be more clear.
18051 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18053 * config/or1k/or1k.opt (mrori): New option.
18054 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18055 msfimm, mshftimm): Rewrite documentation to be more clear.
18056 * config/or1k/or1k.md (insn_support): Add ror and rori.
18057 (enabled): Add conditions for ror and rori.
18058 (rotrsi3): Replace condition for shftimm with ror and rori.
18060 2019-07-22 Stafford Horne <shorne@gmail.com>
18063 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18064 (extend<mode>si2): Update predicate.
18065 * config/or1k/predicates.md (volatile_mem_operand): New.
18066 (reg_or_mem_operand): New.
18068 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18070 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18071 * config/rs6000/rs6000-call.c: ... to here.
18073 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18075 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18078 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18080 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18082 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18084 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18086 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18088 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18089 (any_memory_operand): New predicate.
18090 (reg_or_mem_operand): Use it.
18092 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18095 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18097 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18099 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18100 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18102 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18104 * tree.def (OMP_LOOP): New tree code.
18105 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18106 (enum omp_clause_bind_kind): New enum.
18107 (struct tree_omp_clause): Add subcode.bind_kind.
18108 * tree.h (OMP_LOOP_CHECK): Rename to ...
18109 (OMP_LOOPING_CHECK): ... this.
18110 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18111 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18112 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18113 (OMP_CLAUSE_BIND_KIND): Define.
18114 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18115 bind clause entries.
18116 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18117 * tree-pretty-print.c (dump_omp_clause): Likewise.
18118 (dump_generic_node): Handle OMP_LOOP.
18119 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18120 (in_omp_construct): New variable.
18121 (is_gimple_stmt): Handle OMP_LOOP.
18122 (gimplify_scan_omp_clauses): For lastprivate don't set
18123 check_non_private if code == OMP_LOOP. For reduction clause
18124 on OMP_LOOP combined with parallel or teams propagate as shared
18125 on the combined construct. Handle OMP_CLAUSE_BIND.
18126 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18127 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18128 for constructs from a loop construct to gimplify_scan_omp_clauses.
18129 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18130 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18131 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18132 to match the implicit ORT_TARGET construct around whole body.
18133 Temporarily clear in_omp_construct when processing body.
18134 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18135 etc. temporarily set in_omp_construct when processing body.
18136 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18137 * omp-low.c (struct omp_context): Add loop_p.
18138 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18139 in that the original var might be private.
18140 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18141 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18142 addition of loop construct.
18143 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18145 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18146 lastprivate non-addressable iterator of a collapse(1) simd.
18148 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18150 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18153 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18155 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18156 refer to default conditions. Warn for the 'y' spec which is ignored
18157 by current linkers.
18159 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18161 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18162 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18163 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18164 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18165 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18166 init_cumulative_args, rs6000_promote_function_mode,
18167 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18168 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18169 rs6000_function_arg_boundary, rs6000_parm_offset,
18170 rs6000_parm_start, rs6000_arg_size,
18171 rs6000_darwin64_record_arg_advance_flush,
18172 rs6000_darwin64_record_arg_advance_recurse,
18173 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18174 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18175 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18176 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18177 rs6000_finish_function_arg, rs6000_function_arg,
18178 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18179 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18180 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18181 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18182 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18183 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18184 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18185 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18186 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18187 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18188 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18189 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18190 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18191 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18192 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18193 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18194 get_element_number, altivec_expand_vec_set_builtin,
18195 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18196 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18197 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18198 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18199 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18200 rs6000_expand_builtin, rs6000_vector_type,
18201 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18202 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18203 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18205 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18206 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18207 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18208 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18209 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18210 init_cumulative_args, rs6000_promote_function_mode,
18211 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18212 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18213 rs6000_function_arg_boundary, rs6000_parm_offset,
18214 rs6000_parm_start, rs6000_arg_size,
18215 rs6000_darwin64_record_arg_advance_flush,
18216 rs6000_darwin64_record_arg_advance_recurse,
18217 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18218 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18219 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18220 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18221 rs6000_finish_function_arg, rs6000_function_arg,
18222 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18223 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18224 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18225 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18226 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18227 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18228 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18229 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18230 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18231 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18232 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18233 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18234 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18235 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18236 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18237 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18238 get_element_number, altivec_expand_vec_set_builtin,
18239 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18240 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18241 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18242 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18243 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18244 rs6000_expand_builtin, rs6000_vector_type,
18245 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18246 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18247 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18248 to here from rs6000.c.
18249 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18250 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18251 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18252 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18253 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18254 rs6000_return_in_memory, rs6000_return_in_msb,
18255 rs6000_pass_by_reference, setup_incoming_varargs,
18256 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18257 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18258 rs6000_function_arg_padding, rs6000_function_arg,
18259 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18260 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18261 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18262 rs6000_passes_long_double, rs6000_passes_vector,
18263 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18264 altivec_builtin_mask_for_load) Add declarations.
18265 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18266 * config/config.gcc: Add new source file rs6000-call.c to garbage
18267 collector and extra_objs.
18269 2019-07-19 Jeff Law <law@redhat.com>
18271 PR tree-optimization/86061
18272 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18273 strncpy. Drop some trivial dead code.
18274 (maybe_trim_memstar_call): Handle strncpy.
18276 2019-07-19 Richard Biener <rguenther@suse.de>
18278 PR tree-optimization/91211
18279 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18280 memset encoding size.
18282 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18285 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18287 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18290 * ipa-inline.c (recursive_inlining): Fix limits check.
18292 2019-07-19 Richard Biener <rguenther@suse.de>
18294 PR tree-optimization/91200
18295 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18296 no PHI nodes in middle-bb.
18298 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18300 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18302 * config/aarch64/aarch64-option-extensions.def: Likewise.
18304 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18306 PR middle-end/91190
18307 * function.c (insert_temp_slot_address): Store into the hash table
18308 a copy of address to avoid RTL sharing issues.
18310 2019-07-19 Richard Biener <rguenther@suse.de>
18312 PR tree-optimization/91207
18314 2019-07-17 Richard Biener <rguenther@suse.de>
18316 PR tree-optimization/91178
18317 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18318 loads with a gap larger than the vector size always use
18320 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18321 avoid loading vectors that are only contained in the gap
18322 and thus are not needed.
18324 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18326 * config/i386/i386.md (*addqi_2_slp): Remove.
18327 (*<code>qi_2_slp): Ditto.
18329 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18331 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18332 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18333 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18334 Rename function from rs6000_prefixed_address.
18335 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18337 (TARGET_TOC): Likewise.
18338 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18340 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18342 (TARGET_TOC): Likewise.
18343 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18345 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18347 (TARGET_TOC): Likewise.
18348 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18349 check to require -mcmodel=medium for pc-relative addressing.
18350 (create_TOC_reference): Add assertion for TARGET_TOC.
18351 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18353 (rs6000_emit_move): Likewise.
18354 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18355 to 'TOC_alias_set'.
18356 (get_TOC_alias_set): Likewise.
18357 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18359 (rs6000_can_eliminate): Likewise.
18360 (rs6000_prefixed_address_mode_p): Rename function from
18361 rs6000_prefixed_address.
18362 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18363 TARGET_HAS_TOC and not pc-relative.
18364 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18365 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18367 (TARGET_TOC): Likewise.
18368 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18371 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18374 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18375 for operand 0. Do not use (match_dup) to match operand 1 with
18376 operand 0. Add check in insn constraint that either input operand
18377 matches operand 0. Use SWI12 mode iterator to also handle
18379 (*and<mode>_1_slp): Ditto.
18380 (*<code>qi_1_slp): Ditto.
18381 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18382 Do not use (match_dup) to match operand 1 with operand 0. Add
18383 check in insn constraint that operand 1 matches operand 0.
18384 Use SWI12 mode iterator to also handle HImode operands.
18385 (*ashl<mode>3_1_slp): Ditto.
18386 (*<shift_insn><mode>3_1_slp): Ditto.
18387 (*<rotate_insn><mode>3_1_slp): Ditto.
18389 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18391 * config/arm/arm-builtins.c
18392 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18393 (arm_expand_unop_builtin): Likewise.
18394 * config/arm/crypto.md
18395 (crypto_sha1h): Convert from define_insn to define_expand.
18396 (crypto_<crypto_pattern>): Likewise.
18397 (crypto_sha1h_lb): New define_insn.
18398 (crypto_<crypto_pattern>_lb): Likewise.
18400 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18403 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18404 (vsha1cq_u32): Likewise.
18405 (vsha1pq_u32): Likewise.
18406 (vsha1mq_u32): Likewise.
18407 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18409 (crypto_sha1c): Correct vec select.
18410 (crypto_sha1m): Likewise.
18411 (crypto_sha1p): Likewise.
18413 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18415 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18416 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18417 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18418 (subdi_zesidi_zesidi): Likewise.
18419 (negdi2_compare, negdi2_insn): Likewise.
18420 (negdi_extensidi): Likewise.
18421 (negdi_zero_extendsidi): Likewise.
18422 (arm_cmpdi_insn): Likewise.
18423 (subsi3_carryin): Use arm_borrow_operation.
18424 (subsi3_carryin_const): Likewise.
18425 (subsi3_carryin_const0): Likewise.
18426 (subsi3_carryin_compare): Likewise.
18427 (subsi3_carryin_compare_const): Likewise.
18428 (subsi3_carryin_compare_const0): Likewise.
18429 (subsi3_carryin_shift): Likewise.
18430 (rsbsi3_carryin_shift): Likewise.
18431 (negsi2_carryin_compare): Likewise.
18433 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18435 PR tree-optimization/91137
18436 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18437 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18438 Init, use and fini the above new field.
18439 (determine_base_object_1): New function.
18440 (determine_base_object): Reimplement using walk_tree.
18442 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18444 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18445 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18446 CLEANUP_FORCE_FAST_DCE is set.
18447 * ifcvt.c (rest_of_handle_if_conversion): Pass
18448 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18449 if-conversion succeeded.
18451 2019-07-18 Richard Biener <rguenther@suse.de>
18453 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18454 branches to make code less indented.
18456 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18458 PR middle-end/81824
18459 * attribs.c (decls_mismatched_attributes): Simplify the logic
18460 that avoids duplicates and false positives.
18462 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18464 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18465 data into data section when generating PIC code.
18466 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18467 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18468 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18469 return 2 for SOM and 0 for other targets.
18471 2019-07-17 Jeff Law <law@redhat.com>
18473 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18474 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18475 avoid unexpected switch statement fallthru.
18477 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18479 * config/i386/i386.md (*add<dwi>3_doubleword):
18480 Remove redundant constraints.
18481 (*add<mode>_1): Ditto.
18484 (*addqi_1_slp): Ditto.
18485 (*add<mode>_2): Ditto.
18486 (*addv<mode>4): Ditto.
18487 (*sub<dwi>3_doubleword): Ditto.
18488 (*sub<mode>_1): Ditto.
18489 (*subqi_1_slp): Ditto.
18490 (*sub<mode>_2): Ditto.
18491 (*subv<mode>4): Ditto.
18492 (*sub<mode>_3): Ditto.
18493 (@add<mode>3_carry): Ditto.
18494 (@sub<mode>3_carry): Ditto.
18495 (*add<mode>3_cc_overflow_1): Ditto.
18496 (*add<mode>3_zext_cc_overflow_2): Ditto.
18498 (*and<mode>_1): Ditto.
18500 (*andqi_1_slp): Ditto.
18502 (*andqi_2_maybe_si): Ditto.
18503 (*and<mode>_2): Ditto.
18504 (*andqi_2_slp): Ditto.
18505 (*<code><mode>_1): Ditto.
18506 (*<code>qi_1): Ditto.
18507 (*<code>qi_1_slp): Ditto.
18508 (*<code><mode>_2): Ditto.
18509 (*<code>qi_2_slp): Ditto.
18511 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18513 * alias.c (record_component_aliases): Do not simplify pointed-to
18514 types of ODR types.
18516 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18518 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18519 partial reg stall on alternative 2.
18521 2019-07-17 Richard Biener <rguenther@suse.de>
18523 PR tree-optimization/91178
18524 * tree-ssa.c (release_defs_bitset): Iterate from higher to
18525 lower SSA names to avoid quadratic behavior in the common case.
18526 * tree-data-ref.c (split_constant_offset): Add limit argument
18527 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18528 (split_constant_offset_1): Add limit argument and use it to
18529 limit SSA def walking. Optimize the common plus/minus case.
18531 2019-07-17 Richard Biener <rguenther@suse.de>
18533 PR tree-optimization/91178
18534 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18535 loads with a gap larger than the vector size always use
18537 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18538 avoid loading vectors that are only contained in the gap
18539 and thus are not needed.
18541 2019-07-17 Richard Biener <rguenther@suse.de>
18543 PR tree-optimization/91180
18544 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
18545 computation for memset partial defs.
18547 2019-07-17 Jakub Jelinek <jakub@redhat.com>
18549 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
18550 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
18551 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
18552 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
18553 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
18554 * omp-grid.c (grid_process_grid_body,
18555 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
18556 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
18557 == GF_OMP_FOR_KIND_SIMD.
18558 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
18559 check_omp_nesting_restrictions, scan_omp_1_stmt,
18560 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
18561 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
18562 omp_find_scan): Likewise.
18563 * omp-expand.c (expand_omp_for): Likewise.
18564 * omp-general.c (omp_extract_for_data): Likewise.
18566 PR tree-optimization/91157
18567 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
18568 a vector boolean with scalar mode.
18569 (expand_vector_condition): Handle first operand being a vector boolean
18571 (expand_vector_operations_1): For comparisons, don't bail out early
18572 if the return type is vector boolean with scalar mode, but comparison
18573 operand type is not.
18575 2019-07-17 Richard Biener <rguenther@suse.de>
18577 PR tree-optimization/91181
18578 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
18579 IFN_LOADs as calls.
18581 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
18583 * config/i386/i386.md (*testdi_1): Match CCZmode for
18584 constants that might have the SImode sign bit set.
18585 (*testqi_1_maybe_si): Remove "!" constraint modifier.
18586 Use correct constraints for pentium pairing.
18587 (*test<mode>_1): Ditto.
18589 2019-07-16 Jeff Law <law@redhat.com>
18591 PR rtl-optimization/91173
18592 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
18593 SSA_NAME with a constant value, fold its value into the offset
18594 and clear the base before calling gen_addr_rtx.
18596 2019-07-16 Jakub Jelinek <jakub@redhat.com>
18598 PR rtl-optimization/91164
18599 * dse.c (rest_of_handle_dse): If dead edges have been purged,
18600 invalidate dominance info.
18602 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18604 * read-md.h (md_reader::record_potential_iterator_use): Add a
18605 file_location parameter.
18606 * read-rtl.c (attribute_use::loc): New field.
18607 (map_attr_string): Take a file_location parameter. Report cases
18608 in which attributes map to multiple distinct values.
18609 (apply_attribute_uses): Update call accordingly.
18610 (md_reader::handle_overloaded_name): Likewise.
18611 (md_reader::apply_iterator_to_string): Likewise. Skip empty
18613 (record_attribute_use): Take a file_location parameter.
18614 Initialize attribute_use::loc.
18615 (md_reader::record_potential_iterator_use): Take a file_location
18616 parameter. Update call to record_attribute_use.
18617 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
18618 (rtx_reader::read_rtx_code): Likewise.
18619 (rtx_reader::read_rtx_operand): Likewise. Record a location
18620 for implicitly-expanded empty strings.
18622 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18624 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
18625 Use file_location instead of separate fields.
18626 (md_reader::set_md_ptr_loc): Take a file_location instead of a
18627 separate filename and line number.
18628 * read-md.c (ptr_loc): As above.
18629 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
18630 (md_reader::fprint_md_ptr_loc): Likewise.
18631 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
18632 instead of a separate filename and line number.
18633 (md_reader::read_string): Update call accordingly.
18635 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18637 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
18638 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
18639 leaving the choice between SFDF and P implicit.
18640 (*mov<mode>_update2): Likewise.
18641 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
18642 rather than leaving the choice betweem IBM128 and GPR implicit.
18643 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
18644 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
18646 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
18647 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
18648 * config/rs6000/vsx.md
18649 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
18650 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
18651 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18652 and VSX_EXTRACT_I implicit.
18654 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18656 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
18657 Explicitly use <MOVEP1:MODE> for the mode attribute.
18659 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
18662 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
18664 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
18667 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
18668 .machine directive.
18670 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
18672 * config/i386/i386.md (@test<mode>_ccno_1):
18673 Rename from test<mode>_ccno_1.
18674 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
18675 (*testqi_1_maybe_si): Remove modrm attribute.
18676 (*test<mode>_1): Ditto.
18677 * config/i386/i386-expand.c (ix86_split_idivmod): Use
18678 gen_test_ccno_1 and gen_extend_insn.
18680 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
18682 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
18685 2019-07-15 Richard Biener <rguenther@suse.de>
18687 PR middle-end/91162
18688 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
18689 node make sure to replace all uses with something valid.
18691 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
18693 PR tree-optimization/88497
18694 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
18695 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
18696 function undistribute_bitref_for_vector.
18697 (undistribute_bitref_for_vector): New function.
18698 (cleanup_vinfo_map): Likewise.
18699 (sort_by_mach_mode): Likewise.
18701 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
18703 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
18704 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
18705 and testdi_ccno_1 using SWI48 mode attribute.
18706 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
18707 x86_64_szext_general_operand.
18708 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
18709 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
18710 instead of genera_operand mode attribute.
18712 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
18714 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
18715 fopen and fclose to their respective types.
18716 (DotFn.invoke): Ditto.
18718 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
18720 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
18721 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
18722 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
18723 (array_index_predicate): Remove.
18724 (analyze_function_body): Account cost for variable ofsetted array
18726 (estimate_node_size_and_time): Do not compute array index hint.
18727 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
18728 (inline_read_section): Do not read array index hint.
18729 (ipa_fn_summary_write): Do not write array index hint.
18730 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
18731 * ipa-cp.c (hint_time_bonus): Remove.
18732 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
18733 (ipa_fnsummary): Remove array_index.
18734 * ipa-inline.c (want_inline_small_function_p): Do not use
18736 (edge_badness): Likewise.
18737 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
18739 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
18742 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
18743 superfluous "builtin function" phrasing.
18745 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
18747 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
18749 (aliasing_component_refs_walk): Break out from ...
18750 (aliasing_component_refs_p): ... here.
18752 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
18755 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
18756 "builtin function" phrasing.
18758 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18761 * recog.h (temporary_volatile_ok): New class.
18762 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
18763 volatile_ok temporarily to true using temporary_volatile_ok.
18764 * expr.c (emit_block_move_via_cpymem): Likewise.
18765 * optabs.c (maybe_legitimize_operand): Likewise.
18767 2019-07-13 Jakub Jelinek <jakub@redhat.com>
18769 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
18770 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
18771 uses inside of order(concurrent) constructs.
18772 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
18773 OMP_CLAUSE_ORDER is seen.
18774 * omp-low.c (struct omp_context): Add order_concurrent member.
18775 (scan_sharing_clauses): Set ctx->order_concurrent if
18776 OMP_CLAUSE_ORDER is seen.
18777 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
18778 of simd order(concurrent). Diagnose constructs not allowed inside of
18779 for order(concurrent).
18780 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
18781 complaining about static double setjmp (double); or class static
18782 methods or non-global namespace setjmps.
18783 (omp_runtime_api_call): New function.
18784 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
18785 order(concurrent) loops.
18787 2019-07-12 Martin Sebor <msebor@redhat.com>
18789 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
18790 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
18791 * tree-vrp.c (vrp_prop::check_mem_ref): Use
18792 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18794 2019-07-12 Jan Hubicka <jh@suse.cz>
18796 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
18797 (indirect_refs_may_alias_p): ... here.
18798 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
18799 mem refs in the access paths.
18801 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
18803 PR tree-optimization/89430
18804 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
18805 store elimination for local variable without address escape.
18807 2019-07-12 Jeff Law <law@redhat.com>
18809 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
18810 for the ".far" section.
18812 2019-07-12 Richard Biener <rguenther@suse.de>
18814 PR tree-optimization/91145
18815 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
18818 2019-07-12 Alexandre Oliva <oliva@adacore.com>
18820 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
18821 rather than this_state as the lowering context for the ELSE
18822 seq in a GIMPLE_EH_ELSE.
18824 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18826 * vector-builder.h (vector_builder::elt): Allow already-supplied
18827 elements to be read back before building is complete.
18829 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18831 PR rtl-optimization/91136
18832 * df-core.c (ACCESSING REFS): Fix typos in comment.
18833 * resource.c (mark_target_live_reg): Add artificial defs that occur at
18834 the beginning of the block to the initial set of live registers.
18836 2019-07-12 Richard Biener <rguenther@suse.de>
18838 * fold-const.h (get_array_ctor_element_at_index): Adjust.
18839 * fold-const.c (get_array_ctor_element_at_index): Add
18840 ctor_idx output parameter informing the caller where in
18841 the constructor the element was (not) found. Add early exit
18842 for when the ctor is sorted.
18843 * gimple-fold.c (fold_array_ctor_reference): Support constant
18844 folding across multiple array elements.
18846 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18848 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
18849 doesn't have location, set the current location to the function's end.
18851 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18853 * config/aarch64/aarch64.md (*compare_condjump<mode>)
18854 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
18855 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
18856 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
18857 * config/aarch64/aarch64-simd.md
18858 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
18859 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
18860 * config/aarch64/aarch64-sve.md
18861 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
18862 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
18864 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18866 * doc/md.texi: Document that @ patterns can have different
18867 numbers of operands.
18868 * genemit.c (handle_overloaded_gen): Handle this case.
18869 * genopinit.c (handle_overloaded_gen): Likewise.
18870 * gensupport.c (replace_operands_with_dups): Iterate over
18871 the new rtx's format rather than the old one's.
18873 2019-07-12 Jakub Jelinek <jakub@redhat.com>
18875 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
18876 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18877 order clause entries.
18878 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
18879 * tree-pretty-print.c (dump_omp_clause): Likewise.
18880 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18882 * omp-low.c (scan_sharing_clauses): Likewise.
18883 * tree-nested.c (convert_nonlocal_omp_clauses,
18884 convert_local_omp_clauses): Likewise.
18886 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
18888 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
18889 fallthrough target of current basic block isn't the placed
18892 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
18895 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
18896 (_mm512_storeu_epi64): Likewise.
18897 (_mm512_loadu_epi32): Likewise.
18898 (_mm512_storeu_epi32): Likewise.
18899 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
18900 (_mm_storeu_epi64): Likewise.
18901 (_mm256_storeu_epi32): Likewise.
18902 (_mm_storeu_epi32): Likewise.
18904 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18906 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
18908 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18910 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
18913 2019-07-11 Jakub Jelinek <jakub@redhat.com>
18916 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
18917 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18918 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
18919 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
18920 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
18921 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
18923 (ufix_truncv2dfv2si2<mask_name>): Change into ...
18924 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
18925 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
18927 (sse2_cvttpd2dq<mask_name>): Change into ...
18928 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
18929 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
18930 (*sse2_cvtpd2dq<mask_name>): Change into ...
18931 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18932 Add "C" constraint to const0_operand.
18933 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
18934 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
18938 * config/i386/i386-builtin-types.def
18939 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
18940 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
18941 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
18942 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
18943 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
18944 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
18945 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
18946 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
18947 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
18948 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
18949 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
18950 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
18951 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
18952 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
18953 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
18954 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
18955 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
18956 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
18957 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
18958 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
18959 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
18960 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
18961 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
18962 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
18963 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
18964 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
18965 __builtin_ia32_vpdpbusd_v4si_maskz,
18966 __builtin_ia32_vpdpbusds_v16si_mask,
18967 __builtin_ia32_vpdpbusds_v16si_maskz,
18968 __builtin_ia32_vpdpbusds_v8si_mask,
18969 __builtin_ia32_vpdpbusds_v8si_maskz,
18970 __builtin_ia32_vpdpbusds_v4si_mask,
18971 __builtin_ia32_vpdpbusds_v4si_maskz,
18972 __builtin_ia32_vpdpwssd_v16si_mask,
18973 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
18974 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
18975 __builtin_ia32_vpdpwssd_v4si_maskz,
18976 __builtin_ia32_vpdpwssds_v16si_mask,
18977 __builtin_ia32_vpdpwssds_v16si_maskz,
18978 __builtin_ia32_vpdpwssds_v8si_mask,
18979 __builtin_ia32_vpdpwssds_v8si_maskz,
18980 __builtin_ia32_vpdpwssds_v4si_mask,
18981 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
18982 suffixed types rather than *_INT.
18983 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
18984 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
18985 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
18986 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
18987 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
18988 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
18990 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
18992 * tree-vrp.c (intersect_ranges): If we know the intersection is
18993 empty, there is no need to conservatively add anything else to
18996 2019-07-11 Richard Biener <rguenther@suse.de>
18998 PR middle-end/91131
18999 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19000 when the object is volatile and we have not cleared it even though
19001 there are no nonzero elements.
19003 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19005 * config/rs6000/predicates.md (cint34_operand): Update
19006 SIGNED_34BIT_OFFSET_P call.
19007 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19008 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19009 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19010 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19011 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19013 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19014 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19015 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19016 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19017 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19019 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19021 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19022 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19023 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19024 (DEF_MIN_OSX_VERSION): New.
19026 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19028 * fold-const.c (fold_relational_const): Fix folding of
19029 vector-to-scalar NE_EXPRs.
19030 (test_vector_folding): Add more tests.
19032 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19035 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19036 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19037 (vec_setv2di_internal): Reexpress as...
19038 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19039 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19040 rather than gen_neon_vset_lane<mode>.
19042 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19045 * lra-constraints.c (process_alt_operands): Don't match user
19046 defined regs only if they are early clobbers.
19048 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19050 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19052 2019-07-10 Richard Biener <rguenther@suse.de>
19054 PR tree-optimization/91126
19055 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19056 native encoding offset for BYTES_BIG_ENDIAN.
19057 (vn_reference_lookup_3): Likewise.
19059 2019-07-10 Richard Biener <rguenther@suse.de>
19061 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19062 LHS whenever possible.
19064 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19066 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19067 from ...; work also on duplicated types.
19068 (nonoverlapping_component_refs_since_match): ... here
19069 (ncr_type_uid): Break out from ...
19070 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19072 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19073 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19075 2019-07-09 Martin Sebor <msebor@redhat.com>
19077 PR tree-optimization/90989
19078 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19079 optimization to just single character stores.
19081 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19083 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19084 Swap operands only once.
19086 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19088 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19089 for both call instructions.
19091 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19093 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19094 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19096 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19098 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19099 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19100 function from rs6000-logue.c back to rs6000.c.
19101 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19103 2019-07-09 Martin Sebor <msebor@redhat.com>
19106 * auto-profile.c: Change class-key of PODs to struct and others
19108 * basic-block.h: Same.
19109 * bitmap.c (bitmap_alloc): Same.
19111 * builtins.c (expand_builtin_prefetch): Same.
19112 (expand_builtin_interclass_mathfn): Same.
19113 (expand_builtin_strlen): Same.
19114 (expand_builtin_mempcpy_args): Same.
19115 (expand_cmpstr): Same.
19116 (expand_builtin___clear_cache): Same.
19117 (expand_ifn_atomic_bit_test_and): Same.
19118 (expand_builtin_thread_pointer): Same.
19119 (expand_builtin_set_thread_pointer): Same.
19120 * caller-save.c (setup_save_areas): Same.
19121 (replace_reg_with_saved_mem): Same.
19122 (insert_restore): Same.
19123 (insert_save): Same.
19124 (add_used_regs): Same.
19125 * cfg.c (get_bb_copy): Same.
19126 (set_loop_copy): Same.
19129 * cfgexpand.c (alloc_stack_frame_space): Same.
19130 (add_stack_var): Same.
19131 (add_stack_var_conflict): Same.
19132 (add_scope_conflicts_1): Same.
19133 (update_alias_info_with_stack_vars): Same.
19134 (expand_used_vars): Same.
19135 * cfghooks.c (redirect_edge_and_branch_force): Same.
19136 (delete_basic_block): Same.
19137 (split_edge): Same.
19138 (make_forwarder_block): Same.
19139 (force_nonfallthru): Same.
19140 (duplicate_block): Same.
19141 (lv_flush_pending_stmts): Same.
19142 * cfghooks.h: Same.
19143 * cfgloop.c (flow_loops_cfg_dump): Same.
19144 (flow_loop_nested_p): Same.
19145 (superloop_at_depth): Same.
19146 (get_loop_latch_edges): Same.
19147 (flow_loop_dump): Same.
19148 (flow_loops_dump): Same.
19149 (flow_loops_free): Same.
19150 (flow_loop_nodes_find): Same.
19151 (establish_preds): Same.
19152 (flow_loop_tree_node_add): Same.
19153 (flow_loop_tree_node_remove): Same.
19154 (flow_loops_find): Same.
19155 (find_subloop_latch_edge_by_profile): Same.
19156 (find_subloop_latch_edge_by_ivs): Same.
19157 (mfb_redirect_edges_in_set): Same.
19158 (form_subloop): Same.
19159 (merge_latch_edges): Same.
19160 (disambiguate_multiple_latches): Same.
19161 (disambiguate_loops_with_multiple_latches): Same.
19162 (flow_bb_inside_loop_p): Same.
19163 (glb_enum_p): Same.
19164 (get_loop_body_with_size): Same.
19165 (get_loop_body): Same.
19166 (fill_sons_in_loop): Same.
19167 (get_loop_body_in_dom_order): Same.
19168 (get_loop_body_in_custom_order): Same.
19169 (release_recorded_exits): Same.
19170 (get_loop_exit_edges): Same.
19171 (num_loop_branches): Same.
19172 (remove_bb_from_loops): Same.
19173 (find_common_loop): Same.
19174 (delete_loop): Same.
19175 (cancel_loop): Same.
19176 (verify_loop_structure): Same.
19177 (loop_preheader_edge): Same.
19178 (loop_exit_edge_p): Same.
19179 (single_exit): Same.
19180 (loop_exits_to_bb_p): Same.
19181 (loop_exits_from_bb_p): Same.
19182 (get_loop_location): Same.
19183 (record_niter_bound): Same.
19184 (get_estimated_loop_iterations_int): Same.
19185 (max_stmt_executions_int): Same.
19186 (likely_max_stmt_executions_int): Same.
19187 (get_estimated_loop_iterations): Same.
19188 (get_max_loop_iterations): Same.
19189 (get_max_loop_iterations_int): Same.
19190 (get_likely_max_loop_iterations): Same.
19191 * cfgloop.h (simple_loop_desc): Same.
19193 (loop_depth): Same.
19194 (loop_outer): Same.
19195 (loop_iterator::next): Same.
19196 (loop_outermost): Same.
19197 * cfgloopanal.c (mark_irreducible_loops): Same.
19198 (num_loop_insns): Same.
19199 (average_num_loop_insns): Same.
19200 (expected_loop_iterations_unbounded): Same.
19201 (expected_loop_iterations): Same.
19202 (mark_loop_exit_edges): Same.
19203 (single_likely_exit): Same.
19204 * cfgloopmanip.c (fix_bb_placement): Same.
19205 (fix_bb_placements): Same.
19206 (remove_path): Same.
19207 (place_new_loop): Same.
19209 (scale_loop_frequencies): Same.
19210 (scale_loop_profile): Same.
19211 (create_empty_if_region_on_edge): Same.
19212 (create_empty_loop_on_edge): Same.
19215 (fix_loop_placements): Same.
19216 (copy_loop_info): Same.
19217 (duplicate_loop): Same.
19218 (duplicate_subloops): Same.
19219 (loop_redirect_edge): Same.
19220 (can_duplicate_loop_p): Same.
19221 (duplicate_loop_to_header_edge): Same.
19222 (mfb_keep_just): Same.
19223 (has_preds_from_loop): Same.
19224 (create_preheader): Same.
19225 (create_preheaders): Same.
19226 (lv_adjust_loop_entry_edge): Same.
19227 (loop_version): Same.
19228 * cfgloopmanip.h: Same.
19230 * cgraphbuild.c: Same.
19231 * combine.c (make_extraction): Same.
19232 * config/i386/i386-features.c: Same.
19233 * config/i386/i386-features.h: Same.
19234 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19235 (ix86_emit_outlined_ms2sysv_restore): Same.
19236 (ix86_noce_conversion_profitable_p): Same.
19237 (ix86_init_cost): Same.
19238 (ix86_simd_clone_usable): Same.
19239 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19241 * coretypes.h: Same.
19242 * data-streamer-in.c (string_for_index): Change class-key of PODs
19243 to struct and others to class.
19244 (streamer_read_indexed_string): Same.
19245 (streamer_read_string): Same.
19246 (bp_unpack_indexed_string): Same.
19247 (bp_unpack_string): Same.
19248 (streamer_read_uhwi): Same.
19249 (streamer_read_hwi): Same.
19250 (streamer_read_gcov_count): Same.
19251 (streamer_read_wide_int): Same.
19252 * data-streamer.h (streamer_write_bitpack): Same.
19253 (bp_unpack_value): Same.
19254 (streamer_write_char_stream): Same.
19255 (streamer_write_hwi_in_range): Same.
19256 (streamer_write_record_start): Same.
19257 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19258 (add_cross_iteration_register_deps): Same.
19259 (build_intra_loop_deps): Same.
19260 * df-core.c (df_analyze): Same.
19261 (loop_post_order_compute): Same.
19262 (loop_inverted_post_order_compute): Same.
19263 * df-problems.c (df_rd_alloc): Same.
19264 (df_rd_simulate_one_insn): Same.
19265 (df_rd_local_compute): Same.
19266 (df_rd_init_solution): Same.
19267 (df_rd_confluence_n): Same.
19268 (df_rd_transfer_function): Same.
19269 (df_rd_free): Same.
19270 (df_rd_dump_defs_set): Same.
19271 (df_rd_top_dump): Same.
19272 (df_lr_alloc): Same.
19273 (df_lr_reset): Same.
19274 (df_lr_local_compute): Same.
19275 (df_lr_init): Same.
19276 (df_lr_confluence_n): Same.
19277 (df_lr_free): Same.
19278 (df_lr_top_dump): Same.
19279 (df_lr_verify_transfer_functions): Same.
19280 (df_live_alloc): Same.
19281 (df_live_reset): Same.
19282 (df_live_init): Same.
19283 (df_live_confluence_n): Same.
19284 (df_live_finalize): Same.
19285 (df_live_free): Same.
19286 (df_live_top_dump): Same.
19287 (df_live_verify_transfer_functions): Same.
19288 (df_mir_alloc): Same.
19289 (df_mir_reset): Same.
19290 (df_mir_init): Same.
19291 (df_mir_confluence_n): Same.
19292 (df_mir_free): Same.
19293 (df_mir_top_dump): Same.
19294 (df_word_lr_alloc): Same.
19295 (df_word_lr_reset): Same.
19296 (df_word_lr_init): Same.
19297 (df_word_lr_confluence_n): Same.
19298 (df_word_lr_free): Same.
19299 (df_word_lr_top_dump): Same.
19300 (df_md_alloc): Same.
19301 (df_md_simulate_one_insn): Same.
19302 (df_md_reset): Same.
19303 (df_md_init): Same.
19304 (df_md_free): Same.
19305 (df_md_top_dump): Same.
19306 * df-scan.c (df_insn_delete): Same.
19307 (df_insn_rescan): Same.
19308 (df_notes_rescan): Same.
19309 (df_sort_and_compress_mws): Same.
19310 (df_install_mws): Same.
19311 (df_refs_add_to_chains): Same.
19312 (df_ref_create_structure): Same.
19313 (df_ref_record): Same.
19314 (df_def_record_1): Same.
19315 (df_find_hard_reg_defs): Same.
19316 (df_uses_record): Same.
19317 (df_get_conditional_uses): Same.
19318 (df_get_call_refs): Same.
19319 (df_recompute_luids): Same.
19320 (df_get_entry_block_def_set): Same.
19321 (df_entry_block_defs_collect): Same.
19322 (df_get_exit_block_use_set): Same.
19323 (df_exit_block_uses_collect): Same.
19324 (df_mws_verify): Same.
19325 (df_bb_verify): Same.
19326 * df.h (df_scan_get_bb_info): Same.
19327 * doc/tm.texi: Same.
19328 * dse.c (record_store): Same.
19329 * dumpfile.h: Same.
19330 * emit-rtl.c (const_fixed_hasher::equal): Same.
19331 (set_mem_attributes_minus_bitpos): Same.
19332 (change_address): Same.
19333 (adjust_address_1): Same.
19334 (offset_address): Same.
19335 * emit-rtl.h: Same.
19336 * except.c (dw2_build_landing_pads): Same.
19337 (sjlj_emit_dispatch_table): Same.
19338 * explow.c (allocate_dynamic_stack_space): Same.
19339 (emit_stack_probe): Same.
19340 (probe_stack_range): Same.
19341 * expmed.c (store_bit_field_using_insv): Same.
19342 (store_bit_field_1): Same.
19343 (store_integral_bit_field): Same.
19344 (extract_bit_field_using_extv): Same.
19345 (extract_bit_field_1): Same.
19346 (emit_cstore): Same.
19347 * expr.c (emit_block_move_via_cpymem): Same.
19348 (expand_cmpstrn_or_cmpmem): Same.
19349 (set_storage_via_setmem): Same.
19350 (emit_single_push_insn_1): Same.
19351 (expand_assignment): Same.
19352 (store_constructor): Same.
19353 (expand_expr_real_2): Same.
19354 (expand_expr_real_1): Same.
19355 (try_casesi): Same.
19357 * function.c (try_fit_stack_local): Same.
19358 (assign_stack_local_1): Same.
19359 (assign_stack_local): Same.
19360 (cut_slot_from_list): Same.
19361 (insert_slot_to_list): Same.
19362 (max_slot_level): Same.
19363 (move_slot_to_level): Same.
19364 (temp_address_hasher::equal): Same.
19365 (remove_unused_temp_slot_addresses): Same.
19366 (assign_temp): Same.
19367 (combine_temp_slots): Same.
19368 (update_temp_slot_address): Same.
19369 (preserve_temp_slots): Same.
19370 * function.h: Same.
19372 * gcc-rich-location.h: Same.
19374 * genattrtab.c (check_attr_test): Same.
19375 (check_attr_value): Same.
19376 (convert_set_attr_alternative): Same.
19377 (convert_set_attr): Same.
19378 (check_defs): Same.
19379 (copy_boolean): Same.
19380 (get_attr_value): Same.
19381 (expand_delays): Same.
19382 (make_length_attrs): Same.
19384 (make_alternative_compare): Same.
19385 (simplify_test_exp): Same.
19386 (tests_attr_p): Same.
19387 (get_attr_order): Same.
19388 (clear_struct_flag): Same.
19390 (compares_alternatives_p): Same.
19393 (find_attrs_to_cache): Same.
19394 (write_test_expr): Same.
19395 (walk_attr_value): Same.
19396 (write_attr_get): Same.
19397 (eliminate_known_true): Same.
19398 (write_insn_cases): Same.
19399 (write_attr_case): Same.
19400 (write_attr_valueq): Same.
19401 (write_attr_value): Same.
19402 (write_dummy_eligible_delay): Same.
19403 (next_comma_elt): Same.
19405 (make_internal_attr): Same.
19406 (copy_rtx_unchanging): Same.
19407 (gen_insn_reserv): Same.
19408 (check_tune_attr): Same.
19409 (make_automaton_attrs): Same.
19410 (handle_arg): Same.
19411 * genextract.c (gen_insn): Same.
19412 (VEC_char_to_string): Same.
19413 * genmatch.c (print_operand): Same.
19415 (parser::parse_operation): Same.
19416 (parser::parse_capture): Same.
19417 (parser::parse_c_expr): Same.
19418 (parser::parse_simplify): Same.
19420 * genoutput.c (output_operand_data): Same.
19421 (output_get_insn_name): Same.
19422 (compare_operands): Same.
19423 (place_operands): Same.
19424 (process_template): Same.
19425 (validate_insn_alternatives): Same.
19426 (validate_insn_operands): Same.
19427 (gen_expand): Same.
19428 (note_constraint): Same.
19429 * genpreds.c (write_one_predicate_function): Same.
19430 (add_constraint): Same.
19431 (process_define_register_constraint): Same.
19432 (write_lookup_constraint_1): Same.
19433 (write_lookup_constraint_array): Same.
19434 (write_insn_constraint_len): Same.
19435 (write_reg_class_for_constraint_1): Same.
19436 (write_constraint_satisfied_p_array): Same.
19437 * genrecog.c (optimize_subroutine_group): Same.
19438 * gensupport.c (process_define_predicate): Same.
19439 (queue_pattern): Same.
19440 (remove_from_queue): Same.
19441 (process_rtx): Same.
19442 (is_predicable): Same.
19443 (change_subst_attribute): Same.
19444 (subst_pattern_match): Same.
19445 (alter_constraints): Same.
19446 (alter_attrs_for_insn): Same.
19447 (shift_output_template): Same.
19448 (alter_output_for_subst_insn): Same.
19449 (process_one_cond_exec): Same.
19451 (process_define_cond_exec): Same.
19452 (mnemonic_htab_callback): Same.
19453 (gen_mnemonic_attr): Same.
19454 (read_md_rtx): Same.
19455 * ggc-page.c: Same.
19456 * gimple-loop-interchange.cc (dump_reduction): Same.
19457 (dump_induction): Same.
19458 (loop_cand::~loop_cand): Same.
19459 (free_data_refs_with_aux): Same.
19460 (tree_loop_interchange::interchange_loops): Same.
19461 (tree_loop_interchange::map_inductions_to_loop): Same.
19462 (tree_loop_interchange::move_code_to_inner_loop): Same.
19463 (compute_access_stride): Same.
19464 (compute_access_strides): Same.
19465 (proper_loop_form_for_interchange): Same.
19466 (tree_loop_interchange_compute_ddrs): Same.
19467 (prune_datarefs_not_in_loop): Same.
19468 (prepare_data_references): Same.
19469 (pass_linterchange::execute): Same.
19470 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19471 (unroll_jam_possible_p): Same.
19472 (fuse_loops): Same.
19473 (adjust_unroll_factor): Same.
19474 (tree_loop_unroll_and_jam): Same.
19475 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19476 (loop_versioning::expensive_stmt_p): Same.
19477 (loop_versioning::version_for_unity): Same.
19478 (loop_versioning::dump_inner_likelihood): Same.
19479 (loop_versioning::find_per_loop_multiplication): Same.
19480 (loop_versioning::analyze_term_using_scevs): Same.
19481 (loop_versioning::record_address_fragment): Same.
19482 (loop_versioning::analyze_expr): Same.
19483 (loop_versioning::analyze_blocks): Same.
19484 (loop_versioning::prune_conditions): Same.
19485 (loop_versioning::merge_loop_info): Same.
19486 (loop_versioning::add_loop_to_queue): Same.
19487 (loop_versioning::decide_whether_loop_is_versionable): Same.
19488 (loop_versioning::make_versioning_decisions): Same.
19489 (loop_versioning::implement_versioning_decisions): Same.
19490 * gimple-ssa-evrp-analyze.c
19491 (evrp_range_analyzer::record_ranges_from_phis): Same.
19492 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19493 (count_multiple_uses): Same.
19494 (split_group): Same.
19495 (imm_store_chain_info::output_merged_store): Same.
19496 (pass_store_merging::process_store): Same.
19497 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19498 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19500 (alloca_call_type): Same.
19501 (pass_walloca::execute): Same.
19502 * gimple-streamer-in.c (input_phi): Same.
19503 (input_gimple_stmt): Same.
19504 * gimple-streamer.h: Same.
19505 * godump.c (go_force_record_alignment): Same.
19506 (go_format_type): Same.
19507 (go_output_type): Same.
19508 (go_output_fndecl): Same.
19509 (go_output_typedef): Same.
19510 (keyword_hash_init): Same.
19511 (find_dummy_types): Same.
19512 * graph.c (draw_cfg_nodes_no_loops): Same.
19513 (draw_cfg_nodes_for_loop): Same.
19514 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19515 * hsa-brig.c: Same.
19516 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19517 * hsa-dump.c (dump_hsa_cfun): Same.
19518 * hsa-gen.c (gen_function_def_parameters): Same.
19519 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19520 * input.c (dump_line_table_statistics): Same.
19521 (test_lexer): Same.
19523 * internal-fn.c (get_multi_vector_move): Same.
19524 (expand_load_lanes_optab_fn): Same.
19525 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19526 (expand_GOMP_SIMT_EXIT): Same.
19527 (expand_GOMP_SIMT_LAST_LANE): Same.
19528 (expand_GOMP_SIMT_ORDERED_PRED): Same.
19529 (expand_GOMP_SIMT_VOTE_ANY): Same.
19530 (expand_GOMP_SIMT_XCHG_BFLY): Same.
19531 (expand_GOMP_SIMT_XCHG_IDX): Same.
19532 (expand_addsub_overflow): Same.
19533 (expand_neg_overflow): Same.
19534 (expand_mul_overflow): Same.
19535 (expand_call_mem_ref): Same.
19536 (expand_mask_load_optab_fn): Same.
19537 (expand_scatter_store_optab_fn): Same.
19538 (expand_gather_load_optab_fn): Same.
19539 * ipa-cp.c (ipa_get_parm_lattices): Same.
19540 (print_all_lattices): Same.
19541 (ignore_edge_p): Same.
19542 (build_toporder_info): Same.
19543 (free_toporder_info): Same.
19544 (push_node_to_stack): Same.
19545 (ipcp_lattice<valtype>::set_contains_variable): Same.
19546 (set_agg_lats_to_bottom): Same.
19547 (ipcp_bits_lattice::meet_with): Same.
19548 (set_single_call_flag): Same.
19549 (initialize_node_lattices): Same.
19550 (ipa_get_jf_ancestor_result): Same.
19551 (ipcp_verify_propagated_values): Same.
19552 (propagate_scalar_across_jump_function): Same.
19553 (propagate_context_across_jump_function): Same.
19554 (propagate_bits_across_jump_function): Same.
19555 (ipa_vr_operation_and_type_effects): Same.
19556 (propagate_vr_across_jump_function): Same.
19557 (set_check_aggs_by_ref): Same.
19558 (set_chain_of_aglats_contains_variable): Same.
19559 (merge_aggregate_lattices): Same.
19560 (agg_pass_through_permissible_p): Same.
19561 (propagate_aggs_across_jump_function): Same.
19562 (call_passes_through_thunk_p): Same.
19563 (propagate_constants_across_call): Same.
19564 (devirtualization_time_bonus): Same.
19565 (good_cloning_opportunity_p): Same.
19566 (context_independent_aggregate_values): Same.
19567 (gather_context_independent_values): Same.
19568 (perform_estimation_of_a_value): Same.
19569 (estimate_local_effects): Same.
19570 (value_topo_info<valtype>::add_val): Same.
19571 (add_all_node_vals_to_toposort): Same.
19572 (value_topo_info<valtype>::propagate_effects): Same.
19573 (ipcp_propagate_stage): Same.
19574 (ipcp_discover_new_direct_edges): Same.
19575 (same_node_or_its_all_contexts_clone_p): Same.
19576 (cgraph_edge_brings_value_p): Same.
19577 (gather_edges_for_value): Same.
19578 (create_specialized_node): Same.
19579 (find_more_scalar_values_for_callers_subset): Same.
19580 (find_more_contexts_for_caller_subset): Same.
19581 (copy_plats_to_inter): Same.
19582 (intersect_aggregates_with_edge): Same.
19583 (find_aggregate_values_for_callers_subset): Same.
19584 (cgraph_edge_brings_all_agg_vals_for_node): Same.
19585 (decide_about_value): Same.
19586 (decide_whether_version_node): Same.
19587 (spread_undeadness): Same.
19588 (identify_dead_nodes): Same.
19589 (ipcp_store_vr_results): Same.
19590 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
19591 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
19592 (redirect_to_unreachable): Same.
19593 (edge_set_predicate): Same.
19594 (evaluate_conditions_for_known_args): Same.
19595 (evaluate_properties_for_edge): Same.
19596 (ipa_fn_summary_t::duplicate): Same.
19597 (ipa_call_summary_t::duplicate): Same.
19598 (dump_ipa_call_summary): Same.
19599 (ipa_dump_fn_summary): Same.
19600 (eliminated_by_inlining_prob): Same.
19601 (set_cond_stmt_execution_predicate): Same.
19602 (set_switch_stmt_execution_predicate): Same.
19603 (compute_bb_predicates): Same.
19604 (will_be_nonconstant_expr_predicate): Same.
19605 (phi_result_unknown_predicate): Same.
19606 (analyze_function_body): Same.
19607 (compute_fn_summary): Same.
19608 (estimate_edge_devirt_benefit): Same.
19609 (estimate_edge_size_and_time): Same.
19610 (estimate_calls_size_and_time): Same.
19611 (estimate_node_size_and_time): Same.
19612 (remap_edge_change_prob): Same.
19613 (remap_edge_summaries): Same.
19614 (ipa_merge_fn_summary_after_inlining): Same.
19615 (ipa_fn_summary_generate): Same.
19616 (inline_read_section): Same.
19617 (ipa_fn_summary_read): Same.
19618 (ipa_fn_summary_write): Same.
19619 * ipa-fnsummary.h: Same.
19620 * ipa-hsa.c (ipa_hsa_read_section): Same.
19621 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
19622 * ipa-icf.c (sem_function::param_used_p): Same.
19623 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
19624 * ipa-inline.c (edge_badness): Same.
19625 (inline_small_functions): Same.
19626 * ipa-polymorphic-call.c
19627 (ipa_polymorphic_call_context::stream_out): Same.
19628 * ipa-predicate.c (predicate::remap_after_duplication): Same.
19629 (predicate::remap_after_inlining): Same.
19630 (predicate::stream_out): Same.
19631 * ipa-predicate.h: Same.
19632 * ipa-profile.c (ipa_profile_read_summary): Same.
19633 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
19634 (count_formal_params): Same.
19635 (ipa_dump_param): Same.
19636 (ipa_alloc_node_params): Same.
19637 (ipa_print_node_jump_functions_for_edge): Same.
19638 (ipa_print_node_jump_functions): Same.
19639 (ipa_load_from_parm_agg): Same.
19640 (get_ancestor_addr_info): Same.
19641 (ipa_compute_jump_functions_for_edge): Same.
19642 (ipa_analyze_virtual_call_uses): Same.
19643 (ipa_analyze_stmt_uses): Same.
19644 (ipa_analyze_params_uses_in_bb): Same.
19645 (update_jump_functions_after_inlining): Same.
19646 (try_decrement_rdesc_refcount): Same.
19647 (ipa_impossible_devirt_target): Same.
19648 (update_indirect_edges_after_inlining): Same.
19649 (combine_controlled_uses_counters): Same.
19650 (ipa_edge_args_sum_t::duplicate): Same.
19651 (ipa_write_jump_function): Same.
19652 (ipa_write_indirect_edge_info): Same.
19653 (ipa_write_node_info): Same.
19654 (ipa_read_edge_info): Same.
19655 (ipa_prop_read_section): Same.
19656 (read_replacements_section): Same.
19657 * ipa-prop.h (ipa_get_param_count): Same.
19658 (ipa_get_param): Same.
19659 (ipa_get_type): Same.
19660 (ipa_get_param_move_cost): Same.
19661 (ipa_set_param_used): Same.
19662 (ipa_get_controlled_uses): Same.
19663 (ipa_set_controlled_uses): Same.
19664 (ipa_get_cs_argument_count): Same.
19665 * ipa-pure-const.c (analyze_function): Same.
19666 (pure_const_read_summary): Same.
19668 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
19669 * ipa-split.c (test_nonssa_use): Same.
19670 (dump_split_point): Same.
19671 (dominated_by_forbidden): Same.
19672 (split_part_set_ssa_name_p): Same.
19673 (find_split_points): Same.
19674 * ira-build.c (finish_loop_tree_nodes): Same.
19675 (low_pressure_loop_node_p): Same.
19676 * ira-color.c (ira_reuse_stack_slot): Same.
19678 * ira.c (setup_reg_equiv): Same.
19679 (print_insn_chain): Same.
19681 * loop-doloop.c (doloop_condition_get): Same.
19683 (record_reg_sets): Same.
19684 (doloop_optimize): Same.
19685 * loop-init.c (loop_optimizer_init): Same.
19686 (fix_loop_structure): Same.
19687 * loop-invariant.c (merge_identical_invariants): Same.
19688 (compute_always_reached): Same.
19689 (find_exits): Same.
19690 (may_assign_reg_p): Same.
19691 (find_invariants_bb): Same.
19692 (find_invariants_body): Same.
19693 (replace_uses): Same.
19694 (can_move_invariant_reg): Same.
19695 (free_inv_motion_data): Same.
19696 (move_single_loop_invariants): Same.
19697 (change_pressure): Same.
19698 (mark_ref_regs): Same.
19699 (calculate_loop_reg_pressure): Same.
19700 * loop-iv.c (biv_entry_hasher::equal): Same.
19701 (iv_extend_to_rtx_code): Same.
19702 (check_iv_ref_table_size): Same.
19703 (clear_iv_info): Same.
19704 (latch_dominating_def): Same.
19705 (iv_get_reaching_def): Same.
19706 (iv_constant): Same.
19712 (get_biv_step): Same.
19714 (analyzed_for_bivness_p): Same.
19715 (record_biv): Same.
19716 (iv_analyze_biv): Same.
19717 (iv_analyze_expr): Same.
19718 (iv_analyze_def): Same.
19719 (iv_analyze_op): Same.
19720 (iv_analyze): Same.
19721 (iv_analyze_result): Same.
19723 (eliminate_implied_conditions): Same.
19724 (simplify_using_initial_values): Same.
19725 (shorten_into_mode): Same.
19726 (canonicalize_iv_subregs): Same.
19727 (determine_max_iter): Same.
19728 (check_simple_exit): Same.
19729 (find_simple_exit): Same.
19730 (get_simple_loop_desc): Same.
19731 * loop-unroll.c (report_unroll): Same.
19732 (decide_unrolling): Same.
19733 (unroll_loops): Same.
19734 (loop_exit_at_end_p): Same.
19735 (decide_unroll_constant_iterations): Same.
19736 (unroll_loop_constant_iterations): Same.
19737 (compare_and_jump_seq): Same.
19738 (unroll_loop_runtime_iterations): Same.
19739 (decide_unroll_stupid): Same.
19740 (unroll_loop_stupid): Same.
19741 (referenced_in_one_insn_in_loop_p): Same.
19742 (reset_debug_uses_in_loop): Same.
19743 (analyze_iv_to_split_insn): Same.
19744 * lra-eliminations.c (lra_debug_elim_table): Same.
19745 (setup_can_eliminate): Same.
19747 (lra_get_elimination_hard_regno): Same.
19748 (lra_eliminate_regs_1): Same.
19749 (eliminate_regs_in_insn): Same.
19750 (update_reg_eliminate): Same.
19751 (init_elimination): Same.
19752 (lra_eliminate): Same.
19754 * lra-lives.c (initiate_live_solver): Same.
19755 * lra-remat.c (create_remat_bb_data): Same.
19756 * lra-spills.c (lra_spill): Same.
19757 * lra.c (lra_set_insn_recog_data): Same.
19758 (lra_set_used_insn_alternative_by_uid): Same.
19759 (init_reg_info): Same.
19760 (expand_reg_info): Same.
19761 * lto-cgraph.c (output_symtab): Same.
19762 (read_identifier): Same.
19763 (get_alias_symbol): Same.
19764 (input_node): Same.
19765 (input_varpool_node): Same.
19767 (input_edge): Same.
19768 (input_cgraph_1): Same.
19769 (input_refs): Same.
19770 (input_symtab): Same.
19771 (input_offload_tables): Same.
19772 (output_cgraph_opt_summary): Same.
19773 (input_edge_opt_summary): Same.
19774 (input_cgraph_opt_section): Same.
19775 * lto-section-in.c (lto_free_raw_section_data): Same.
19776 (lto_create_simple_input_block): Same.
19777 (lto_free_function_in_decl_state_for_node): Same.
19778 * lto-streamer-in.c (lto_tag_check_set): Same.
19779 (lto_location_cache::revert_location_cache): Same.
19780 (lto_location_cache::input_location): Same.
19781 (lto_input_location): Same.
19782 (stream_input_location_now): Same.
19783 (lto_input_tree_ref): Same.
19784 (lto_input_eh_catch_list): Same.
19785 (input_eh_region): Same.
19786 (lto_init_eh): Same.
19787 (make_new_block): Same.
19789 (fixup_call_stmt_edges): Same.
19790 (input_struct_function_base): Same.
19791 (input_function): Same.
19792 (lto_read_body_or_constructor): Same.
19793 (lto_read_tree_1): Same.
19794 (lto_read_tree): Same.
19795 (lto_input_scc): Same.
19796 (lto_input_tree_1): Same.
19797 (lto_input_toplevel_asms): Same.
19798 (lto_input_mode_table): Same.
19799 (lto_reader_init): Same.
19800 (lto_data_in_create): Same.
19801 * lto-streamer-out.c (output_cfg): Same.
19802 * lto-streamer.h: Same.
19803 * modulo-sched.c (duplicate_insns_of_cycles): Same.
19804 (generate_prolog_epilog): Same.
19805 (mark_loop_unsched): Same.
19806 (dump_insn_location): Same.
19807 (loop_canon_p): Same.
19808 (sms_schedule): Same.
19809 * omp-expand.c (expand_omp_for_ordered_loops): Same.
19810 (expand_omp_for_generic): Same.
19811 (expand_omp_for_static_nochunk): Same.
19812 (expand_omp_for_static_chunk): Same.
19813 (expand_omp_simd): Same.
19814 (expand_omp_taskloop_for_inner): Same.
19815 (expand_oacc_for): Same.
19816 (expand_omp_atomic_pipeline): Same.
19817 (mark_loops_in_oacc_kernels_region): Same.
19818 * omp-offload.c (oacc_xform_loop): Same.
19819 * omp-simd-clone.c (simd_clone_adjust): Same.
19820 * optabs-query.c (get_traditional_extraction_insn): Same.
19821 * optabs.c (expand_vector_broadcast): Same.
19822 (expand_binop_directly): Same.
19823 (expand_twoval_unop): Same.
19824 (expand_twoval_binop): Same.
19825 (expand_unop_direct): Same.
19826 (emit_indirect_jump): Same.
19827 (emit_conditional_move): Same.
19828 (emit_conditional_neg_or_complement): Same.
19829 (emit_conditional_add): Same.
19830 (vector_compare_rtx): Same.
19831 (expand_vec_perm_1): Same.
19832 (expand_vec_perm_const): Same.
19833 (expand_vec_cond_expr): Same.
19834 (expand_vec_series_expr): Same.
19835 (maybe_emit_atomic_exchange): Same.
19836 (maybe_emit_sync_lock_test_and_set): Same.
19837 (expand_atomic_compare_and_swap): Same.
19838 (expand_atomic_load): Same.
19839 (expand_atomic_store): Same.
19840 (maybe_emit_op): Same.
19841 (valid_multiword_target_p): Same.
19842 (create_integer_operand): Same.
19843 (maybe_legitimize_operand_same_code): Same.
19844 (maybe_legitimize_operand): Same.
19845 (create_convert_operand_from_type): Same.
19846 (can_reuse_operands_p): Same.
19847 (maybe_legitimize_operands): Same.
19848 (maybe_gen_insn): Same.
19849 (maybe_expand_insn): Same.
19850 (maybe_expand_jump_insn): Same.
19851 (expand_insn): Same.
19852 * optabs.h (create_expand_operand): Same.
19853 (create_fixed_operand): Same.
19854 (create_output_operand): Same.
19855 (create_input_operand): Same.
19856 (create_convert_operand_to): Same.
19857 (create_convert_operand_from): Same.
19859 * poly-int.h: Same.
19860 * predict.c (optimize_insn_for_speed_p): Same.
19861 (optimize_loop_for_size_p): Same.
19862 (optimize_loop_for_speed_p): Same.
19863 (optimize_loop_nest_for_speed_p): Same.
19864 (get_base_value): Same.
19865 (predicted_by_loop_heuristics_p): Same.
19866 (predict_extra_loop_exits): Same.
19867 (predict_loops): Same.
19868 (predict_paths_for_bb): Same.
19869 (predict_paths_leading_to): Same.
19870 (propagate_freq): Same.
19871 (pass_profile::execute): Same.
19873 * profile-count.c (profile_count::differs_from_p): Same.
19874 (profile_probability::differs_lot_from_p): Same.
19875 * profile-count.h: Same.
19876 * profile.c (branch_prob): Same.
19877 * regrename.c (free_chain_data): Same.
19878 (mark_conflict): Same.
19879 (create_new_chain): Same.
19880 (merge_overlapping_regs): Same.
19881 (init_rename_info): Same.
19882 (merge_chains): Same.
19883 (regrename_analyze): Same.
19884 (regrename_do_replace): Same.
19885 (scan_rtx_reg): Same.
19886 (record_out_operands): Same.
19887 (build_def_use): Same.
19888 * regrename.h: Same.
19890 * reload1.c (init_reload): Same.
19891 (maybe_fix_stack_asms): Same.
19892 (copy_reloads): Same.
19893 (count_pseudo): Same.
19894 (count_spilled_pseudo): Same.
19896 (find_reload_regs): Same.
19897 (select_reload_regs): Same.
19898 (spill_hard_reg): Same.
19899 (fixup_eh_region_note): Same.
19900 (set_reload_reg): Same.
19901 (allocate_reload_reg): Same.
19902 (compute_reload_subreg_offset): Same.
19903 (reload_adjust_reg_for_icode): Same.
19904 (emit_input_reload_insns): Same.
19905 (emit_output_reload_insns): Same.
19906 (do_input_reload): Same.
19907 (inherit_piecemeal_p): Same.
19909 * sanopt.c (maybe_get_dominating_check): Same.
19910 (maybe_optimize_ubsan_ptr_ifn): Same.
19911 (can_remove_asan_check): Same.
19912 (maybe_optimize_asan_check_ifn): Same.
19913 (sanopt_optimize_walker): Same.
19914 * sched-deps.c (add_dependence_list): Same.
19915 (chain_to_prev_insn): Same.
19916 (add_insn_mem_dependence): Same.
19917 (create_insn_reg_set): Same.
19918 (maybe_extend_reg_info_p): Same.
19919 (sched_analyze_reg): Same.
19920 (sched_analyze_1): Same.
19921 (get_implicit_reg_pending_clobbers): Same.
19922 (chain_to_prev_insn_p): Same.
19923 (deps_analyze_insn): Same.
19924 (deps_start_bb): Same.
19925 (sched_free_deps): Same.
19927 (init_deps_reg_last): Same.
19929 * sched-ebb.c: Same.
19930 * sched-int.h: Same.
19931 * sched-rgn.c (add_branch_dependences): Same.
19932 (concat_insn_mem_list): Same.
19934 (sched_rgn_compute_dependencies): Same.
19935 * sel-sched-ir.c (reset_target_context): Same.
19936 (copy_deps_context): Same.
19937 (init_id_from_df): Same.
19938 (has_dependence_p): Same.
19939 (change_loops_latches): Same.
19940 (bb_top_order_comparator): Same.
19941 (make_region_from_loop_preheader): Same.
19942 (sel_init_pipelining): Same.
19943 (get_loop_nest_for_rgn): Same.
19944 (make_regions_from_the_rest): Same.
19945 (sel_is_loop_preheader_p): Same.
19946 * sel-sched-ir.h (inner_loop_header_p): Same.
19947 (get_all_loop_exits): Same.
19948 * selftest.h: Same.
19949 * sese.c (sese_build_liveouts): Same.
19950 (sese_insert_phis_for_liveouts): Same.
19951 * sese.h (defined_in_sese_p): Same.
19952 * sreal.c (sreal::stream_out): Same.
19954 * streamer-hooks.h: Same.
19955 * target-globals.c (save_target_globals): Same.
19956 * target-globals.h: Same.
19957 * target.def: Same.
19959 * targhooks.c (default_has_ifunc_p): Same.
19960 (default_empty_mask_is_expensive): Same.
19961 (default_init_cost): Same.
19962 * targhooks.h: Same.
19964 * tree-affine.c (aff_combination_mult): Same.
19965 (aff_combination_expand): Same.
19966 (aff_combination_constant_multiple_p): Same.
19967 * tree-affine.h: Same.
19968 * tree-cfg.c (build_gimple_cfg): Same.
19969 (replace_loop_annotate_in_block): Same.
19970 (replace_uses_by): Same.
19972 (dump_cfg_stats): Same.
19973 (gimple_duplicate_sese_region): Same.
19974 (gimple_duplicate_sese_tail): Same.
19975 (move_block_to_fn): Same.
19976 (replace_block_vars_by_duplicates): Same.
19977 (move_sese_region_to_fn): Same.
19978 (print_loops_bb): Same.
19979 (print_loop): Same.
19980 (print_loops): Same.
19982 (debug_loops): Same.
19983 * tree-cfg.h: Same.
19984 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
19985 (chrec_fold_multiply_poly_poly): Same.
19986 (chrec_evaluate): Same.
19987 (chrec_component_in_loop_num): Same.
19988 (reset_evolution_in_loop): Same.
19989 (is_multivariate_chrec): Same.
19990 (chrec_contains_symbols): Same.
19991 (nb_vars_in_chrec): Same.
19992 (chrec_convert_1): Same.
19993 (chrec_convert_aggressive): Same.
19994 * tree-chrec.h: Same.
19995 * tree-core.h: Same.
19996 * tree-data-ref.c (dump_data_dependence_relation): Same.
19997 (canonicalize_base_object_address): Same.
19998 (data_ref_compare_tree): Same.
19999 (prune_runtime_alias_test_list): Same.
20000 (get_segment_min_max): Same.
20001 (create_intersect_range_checks): Same.
20002 (conflict_fn_no_dependence): Same.
20003 (object_address_invariant_in_loop_p): Same.
20004 (analyze_ziv_subscript): Same.
20005 (analyze_siv_subscript_cst_affine): Same.
20006 (analyze_miv_subscript): Same.
20007 (analyze_overlapping_iterations): Same.
20008 (build_classic_dist_vector_1): Same.
20009 (add_other_self_distances): Same.
20010 (same_access_functions): Same.
20011 (build_classic_dir_vector): Same.
20012 (subscript_dependence_tester_1): Same.
20013 (subscript_dependence_tester): Same.
20014 (access_functions_are_affine_or_constant_p): Same.
20015 (get_references_in_stmt): Same.
20016 (loop_nest_has_data_refs): Same.
20017 (graphite_find_data_references_in_stmt): Same.
20018 (find_data_references_in_bb): Same.
20019 (get_base_for_alignment): Same.
20020 (find_loop_nest_1): Same.
20021 (find_loop_nest): Same.
20022 * tree-data-ref.h (dr_alignment): Same.
20023 (ddr_dependence_level): Same.
20024 * tree-if-conv.c (fold_build_cond_expr): Same.
20025 (add_to_predicate_list): Same.
20026 (add_to_dst_predicate_list): Same.
20027 (phi_convertible_by_degenerating_args): Same.
20028 (idx_within_array_bound): Same.
20029 (all_preds_critical_p): Same.
20030 (pred_blocks_visited_p): Same.
20031 (predicate_bbs): Same.
20032 (build_region): Same.
20033 (if_convertible_loop_p_1): Same.
20034 (is_cond_scalar_reduction): Same.
20035 (predicate_scalar_phi): Same.
20036 (remove_conditions_and_labels): Same.
20037 (combine_blocks): Same.
20038 (version_loop_for_if_conversion): Same.
20039 (versionable_outer_loop_p): Same.
20040 (ifcvt_local_dce): Same.
20041 (tree_if_conversion): Same.
20042 (pass_if_conversion::gate): Same.
20043 * tree-if-conv.h: Same.
20044 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20045 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20047 (stmt_has_scalar_dependences_outside_loop): Same.
20048 (copy_loop_before): Same.
20049 (create_bb_after_loop): Same.
20050 (const_with_all_bytes_same): Same.
20051 (generate_memset_builtin): Same.
20052 (generate_memcpy_builtin): Same.
20053 (destroy_loop): Same.
20054 (build_rdg_partition_for_vertex): Same.
20055 (compute_access_range): Same.
20056 (data_ref_segment_size): Same.
20057 (latch_dominated_by_data_ref): Same.
20058 (compute_alias_check_pairs): Same.
20059 (fuse_memset_builtins): Same.
20060 (finalize_partitions): Same.
20061 (find_seed_stmts_for_distribution): Same.
20062 (prepare_perfect_loop_nest): Same.
20063 * tree-parloops.c (lambda_transform_legal_p): Same.
20064 (loop_parallel_p): Same.
20065 (reduc_stmt_res): Same.
20066 (add_field_for_name): Same.
20067 (create_call_for_reduction_1): Same.
20068 (replace_uses_in_bb_by): Same.
20069 (transform_to_exit_first_loop_alt): Same.
20070 (try_transform_to_exit_first_loop_alt): Same.
20071 (transform_to_exit_first_loop): Same.
20073 (gen_parallel_loop): Same.
20074 (gather_scalar_reductions): Same.
20075 (get_omp_data_i_param): Same.
20076 (try_create_reduction_list): Same.
20077 (oacc_entry_exit_single_gang): Same.
20078 (parallelize_loops): Same.
20079 * tree-pass.h: Same.
20080 * tree-predcom.c (determine_offset): Same.
20081 (last_always_executed_block): Same.
20082 (split_data_refs_to_components): Same.
20083 (suitable_component_p): Same.
20084 (valid_initializer_p): Same.
20085 (find_looparound_phi): Same.
20086 (insert_looparound_copy): Same.
20087 (add_looparound_copies): Same.
20088 (determine_roots_comp): Same.
20089 (predcom_tmp_var): Same.
20090 (initialize_root_vars): Same.
20091 (initialize_root_vars_store_elim_1): Same.
20092 (initialize_root_vars_store_elim_2): Same.
20093 (finalize_eliminated_stores): Same.
20094 (initialize_root_vars_lm): Same.
20095 (remove_stmt): Same.
20096 (determine_unroll_factor): Same.
20097 (execute_pred_commoning_cbck): Same.
20098 (base_names_in_chain_on): Same.
20099 (combine_chains): Same.
20100 (pcom_stmt_dominates_stmt_p): Same.
20101 (try_combine_chains): Same.
20102 (prepare_initializers_chain_store_elim): Same.
20103 (prepare_initializers_chain): Same.
20104 (prepare_initializers): Same.
20105 (prepare_finalizers_chain): Same.
20106 (prepare_finalizers): Same.
20107 (insert_init_seqs): Same.
20108 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20109 (compute_overall_effect_of_inner_loop): Same.
20110 (add_to_evolution_1): Same.
20111 (add_to_evolution): Same.
20112 (follow_ssa_edge_binary): Same.
20113 (follow_ssa_edge_expr): Same.
20114 (backedge_phi_arg_p): Same.
20115 (follow_ssa_edge_in_condition_phi_branch): Same.
20116 (follow_ssa_edge_in_condition_phi): Same.
20117 (follow_ssa_edge_inner_loop_phi): Same.
20118 (follow_ssa_edge): Same.
20119 (analyze_evolution_in_loop): Same.
20120 (analyze_initial_condition): Same.
20121 (interpret_loop_phi): Same.
20122 (interpret_condition_phi): Same.
20123 (interpret_rhs_expr): Same.
20124 (interpret_expr): Same.
20125 (interpret_gimple_assign): Same.
20126 (analyze_scalar_evolution_1): Same.
20127 (analyze_scalar_evolution): Same.
20128 (analyze_scalar_evolution_for_address_of): Same.
20129 (get_instantiated_value_entry): Same.
20130 (loop_closed_phi_def): Same.
20131 (instantiate_scev_name): Same.
20132 (instantiate_scev_poly): Same.
20133 (instantiate_scev_binary): Same.
20134 (instantiate_scev_convert): Same.
20135 (instantiate_scev_not): Same.
20136 (instantiate_scev_r): Same.
20137 (instantiate_scev): Same.
20138 (resolve_mixers): Same.
20139 (initialize_scalar_evolutions_analyzer): Same.
20140 (scev_reset_htab): Same.
20141 (scev_reset): Same.
20142 (derive_simple_iv_with_niters): Same.
20143 (simple_iv_with_niters): Same.
20144 (expression_expensive_p): Same.
20145 (final_value_replacement_loop): Same.
20146 * tree-scalar-evolution.h (block_before_loop): Same.
20147 * tree-ssa-address.h: Same.
20148 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20149 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20150 (record_edge_info): Same.
20151 * tree-ssa-live.c (var_map_base_fini): Same.
20152 (remove_unused_locals): Same.
20153 * tree-ssa-live.h: Same.
20154 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20155 (pass_ch_vect::execute): Same.
20156 (pass_ch::process_loop_p): Same.
20157 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20158 (movement_possibility): Same.
20159 (outermost_invariant_loop): Same.
20161 (determine_max_movement): Same.
20162 (invariantness_dom_walker::before_dom_children): Same.
20163 (move_computations): Same.
20164 (may_move_till): Same.
20165 (force_move_till_op): Same.
20166 (force_move_till): Same.
20167 (memref_free): Same.
20168 (record_mem_ref_loc): Same.
20169 (set_ref_stored_in_loop): Same.
20170 (mark_ref_stored): Same.
20171 (sort_bbs_in_loop_postorder_cmp): Same.
20172 (sort_locs_in_loop_postorder_cmp): Same.
20173 (analyze_memory_references): Same.
20174 (mem_refs_may_alias_p): Same.
20175 (find_ref_loc_in_loop_cmp): Same.
20176 (rewrite_mem_ref_loc::operator): Same.
20177 (first_mem_ref_loc_1::operator): Same.
20178 (sm_set_flag_if_changed::operator): Same.
20179 (execute_sm_if_changed_flag_set): Same.
20180 (execute_sm): Same.
20181 (hoist_memory_references): Same.
20182 (ref_always_accessed::operator): Same.
20183 (refs_independent_p): Same.
20184 (record_dep_loop): Same.
20185 (ref_indep_loop_p_1): Same.
20186 (ref_indep_loop_p): Same.
20187 (can_sm_ref_p): Same.
20188 (find_refs_for_sm): Same.
20189 (loop_suitable_for_sm): Same.
20190 (store_motion_loop): Same.
20191 (store_motion): Same.
20192 (fill_always_executed_in): Same.
20193 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20194 (estimated_unrolled_size): Same.
20195 (loop_edge_to_cancel): Same.
20196 (remove_exits_and_undefined_stmts): Same.
20197 (remove_redundant_iv_tests): Same.
20198 (unloop_loops): Same.
20199 (estimated_peeled_sequence_size): Same.
20200 (try_peel_loop): Same.
20201 (canonicalize_loop_induction_variables): Same.
20202 (canonicalize_induction_variables): Same.
20203 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20205 (stmt_after_inc_pos): Same.
20206 (contains_abnormal_ssa_name_p): Same.
20207 (niter_for_exit): Same.
20210 (find_givs_in_bb): Same.
20211 (find_induction_variables): Same.
20212 (find_interesting_uses_cond): Same.
20213 (outermost_invariant_loop_for_expr): Same.
20214 (idx_find_step): Same.
20215 (add_candidate_1): Same.
20216 (add_iv_candidate_derived_from_uses): Same.
20217 (alloc_use_cost_map): Same.
20218 (prepare_decl_rtl): Same.
20219 (generic_predict_doloop_p): Same.
20220 (computation_cost): Same.
20221 (determine_common_wider_type): Same.
20222 (get_computation_aff_1): Same.
20223 (get_use_type): Same.
20224 (determine_group_iv_cost_address): Same.
20226 (difference_cannot_overflow_p): Same.
20227 (may_eliminate_iv): Same.
20228 (determine_set_costs): Same.
20229 (cheaper_cost_pair): Same.
20230 (compare_cost_pair): Same.
20231 (iv_ca_cand_for_group): Same.
20232 (iv_ca_recount_cost): Same.
20233 (iv_ca_set_remove_invs): Same.
20234 (iv_ca_set_no_cp): Same.
20235 (iv_ca_set_add_invs): Same.
20236 (iv_ca_set_cp): Same.
20237 (iv_ca_add_group): Same.
20238 (iv_ca_cost): Same.
20239 (iv_ca_compare_deps): Same.
20240 (iv_ca_delta_reverse): Same.
20241 (iv_ca_delta_commit): Same.
20242 (iv_ca_cand_used_p): Same.
20243 (iv_ca_delta_free): Same.
20245 (iv_ca_free): Same.
20246 (iv_ca_dump): Same.
20247 (iv_ca_extend): Same.
20248 (iv_ca_narrow): Same.
20249 (iv_ca_prune): Same.
20250 (cheaper_cost_with_cand): Same.
20251 (iv_ca_replace): Same.
20252 (try_add_cand_for): Same.
20253 (get_initial_solution): Same.
20254 (try_improve_iv_set): Same.
20255 (find_optimal_iv_set_1): Same.
20256 (create_new_iv): Same.
20257 (rewrite_use_compare): Same.
20258 (remove_unused_ivs): Same.
20259 (determine_scaling_factor): Same.
20260 * tree-ssa-loop-ivopts.h: Same.
20261 * tree-ssa-loop-manip.c (create_iv): Same.
20262 (compute_live_loop_exits): Same.
20263 (add_exit_phi): Same.
20264 (add_exit_phis): Same.
20265 (find_uses_to_rename_use): Same.
20266 (find_uses_to_rename_def): Same.
20267 (find_uses_to_rename_in_loop): Same.
20268 (rewrite_into_loop_closed_ssa): Same.
20269 (check_loop_closed_ssa_bb): Same.
20270 (split_loop_exit_edge): Same.
20271 (ip_end_pos): Same.
20272 (ip_normal_pos): Same.
20273 (copy_phi_node_args): Same.
20274 (gimple_duplicate_loop_to_header_edge): Same.
20275 (can_unroll_loop_p): Same.
20276 (determine_exit_conditions): Same.
20277 (scale_dominated_blocks_in_loop): Same.
20278 (niter_for_unrolled_loop): Same.
20279 (tree_transform_and_unroll_loop): Same.
20280 (rewrite_all_phi_nodes_with_iv): Same.
20281 * tree-ssa-loop-manip.h: Same.
20282 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20283 (number_of_iterations_ne): Same.
20284 (assert_no_overflow_lt): Same.
20285 (assert_loop_rolls_lt): Same.
20286 (number_of_iterations_lt): Same.
20287 (adjust_cond_for_loop_until_wrap): Same.
20288 (tree_simplify_using_condition): Same.
20289 (simplify_using_initial_conditions): Same.
20290 (simplify_using_outer_evolutions): Same.
20291 (loop_only_exit_p): Same.
20292 (ssa_defined_by_minus_one_stmt_p): Same.
20293 (number_of_iterations_popcount): Same.
20294 (number_of_iterations_exit): Same.
20295 (find_loop_niter): Same.
20296 (finite_loop_p): Same.
20297 (chain_of_csts_start): Same.
20298 (get_val_for): Same.
20299 (loop_niter_by_eval): Same.
20300 (derive_constant_upper_bound_ops): Same.
20301 (do_warn_aggressive_loop_optimizations): Same.
20302 (record_estimate): Same.
20303 (get_cst_init_from_scev): Same.
20304 (record_nonwrapping_iv): Same.
20305 (idx_infer_loop_bounds): Same.
20306 (infer_loop_bounds_from_ref): Same.
20307 (infer_loop_bounds_from_array): Same.
20308 (infer_loop_bounds_from_pointer_arith): Same.
20309 (infer_loop_bounds_from_signedness): Same.
20310 (bound_index): Same.
20311 (discover_iteration_bound_by_body_walk): Same.
20312 (maybe_lower_iteration_bound): Same.
20313 (estimate_numbers_of_iterations): Same.
20314 (estimated_loop_iterations): Same.
20315 (estimated_loop_iterations_int): Same.
20316 (max_loop_iterations): Same.
20317 (max_loop_iterations_int): Same.
20318 (likely_max_loop_iterations): Same.
20319 (likely_max_loop_iterations_int): Same.
20320 (estimated_stmt_executions_int): Same.
20321 (max_stmt_executions): Same.
20322 (likely_max_stmt_executions): Same.
20323 (estimated_stmt_executions): Same.
20324 (stmt_dominates_stmt_p): Same.
20325 (nowrap_type_p): Same.
20326 (loop_exits_before_overflow): Same.
20327 (scev_var_range_cant_overflow): Same.
20328 (scev_probably_wraps_p): Same.
20329 (free_numbers_of_iterations_estimates): Same.
20330 * tree-ssa-loop-niter.h: Same.
20331 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20332 (idx_analyze_ref): Same.
20333 (analyze_ref): Same.
20334 (gather_memory_references_ref): Same.
20335 (mark_nontemporal_store): Same.
20336 (emit_mfence_after_loop): Same.
20337 (may_use_storent_in_loop_p): Same.
20338 (mark_nontemporal_stores): Same.
20339 (should_unroll_loop_p): Same.
20340 (volume_of_dist_vector): Same.
20341 (add_subscript_strides): Same.
20342 (self_reuse_distance): Same.
20343 (insn_to_prefetch_ratio_too_small_p): Same.
20344 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20345 (patch_loop_exit): Same.
20346 (find_or_create_guard_phi): Same.
20347 (easy_exit_values): Same.
20348 (connect_loop_phis): Same.
20349 (connect_loops): Same.
20350 (compute_new_first_bound): Same.
20351 (split_loop): Same.
20352 (tree_ssa_split_loops): Same.
20353 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20354 (is_maybe_undefined): Same.
20355 (tree_may_unswitch_on): Same.
20356 (simplify_using_entry_checks): Same.
20357 (tree_unswitch_single_loop): Same.
20358 (tree_unswitch_loop): Same.
20359 (tree_unswitch_outer_loop): Same.
20360 (empty_bb_without_guard_p): Same.
20361 (used_outside_loop_p): Same.
20362 (get_vop_from_header): Same.
20363 (hoist_guard): Same.
20364 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20365 (get_lsm_tmp_name): Same.
20366 * tree-ssa-loop.h: Same.
20367 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20368 (build_and_add_sum): Same.
20369 (no_side_effect_bb): Same.
20371 (linearize_expr): Same.
20372 (should_break_up_subtract): Same.
20373 (linearize_expr_tree): Same.
20374 * tree-ssa-scopedtables.c: Same.
20375 * tree-ssa-scopedtables.h: Same.
20376 * tree-ssa-structalias.c (condense_visit): Same.
20377 (label_visit): Same.
20378 (dump_pred_graph): Same.
20379 (perform_var_substitution): Same.
20380 (move_complex_constraints): Same.
20381 (remove_preds_and_fake_succs): Same.
20382 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20383 (determine_bb_domination_status): Same.
20384 (duplicate_thread_path): Same.
20385 (thread_through_all_blocks): Same.
20386 * tree-ssa-threadupdate.h: Same.
20387 * tree-streamer-in.c (streamer_read_string_cst): Same.
20388 (input_identifier): Same.
20389 (unpack_ts_type_common_value_fields): Same.
20390 (unpack_ts_block_value_fields): Same.
20391 (unpack_ts_translation_unit_decl_value_fields): Same.
20392 (unpack_ts_omp_clause_value_fields): Same.
20393 (streamer_read_tree_bitfields): Same.
20394 (streamer_alloc_tree): Same.
20395 (lto_input_ts_common_tree_pointers): Same.
20396 (lto_input_ts_vector_tree_pointers): Same.
20397 (lto_input_ts_poly_tree_pointers): Same.
20398 (lto_input_ts_complex_tree_pointers): Same.
20399 (lto_input_ts_decl_minimal_tree_pointers): Same.
20400 (lto_input_ts_decl_common_tree_pointers): Same.
20401 (lto_input_ts_decl_non_common_tree_pointers): Same.
20402 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20403 (lto_input_ts_field_decl_tree_pointers): Same.
20404 (lto_input_ts_function_decl_tree_pointers): Same.
20405 (lto_input_ts_type_common_tree_pointers): Same.
20406 (lto_input_ts_type_non_common_tree_pointers): Same.
20407 (lto_input_ts_list_tree_pointers): Same.
20408 (lto_input_ts_vec_tree_pointers): Same.
20409 (lto_input_ts_exp_tree_pointers): Same.
20410 (lto_input_ts_block_tree_pointers): Same.
20411 (lto_input_ts_binfo_tree_pointers): Same.
20412 (lto_input_ts_constructor_tree_pointers): Same.
20413 (lto_input_ts_omp_clause_tree_pointers): Same.
20414 (streamer_read_tree_body): Same.
20415 * tree-streamer.h: Same.
20416 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20417 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20418 (vect_analyze_possibly_independent_ddr): Same.
20419 (vect_analyze_data_ref_dependence): Same.
20420 (vect_compute_data_ref_alignment): Same.
20421 (vect_enhance_data_refs_alignment): Same.
20422 (vect_analyze_data_ref_access): Same.
20423 (vect_check_gather_scatter): Same.
20424 (vect_find_stmt_data_reference): Same.
20425 (vect_create_addr_base_for_vector_ref): Same.
20426 (vect_setup_realignment): Same.
20427 (vect_supportable_dr_alignment): Same.
20428 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20429 (adjust_phi_and_debug_stmts): Same.
20430 (vect_set_loop_mask): Same.
20431 (add_preheader_seq): Same.
20432 (vect_maybe_permute_loop_masks): Same.
20433 (vect_set_loop_masks_directly): Same.
20434 (vect_set_loop_condition_masked): Same.
20435 (vect_set_loop_condition_unmasked): Same.
20436 (slpeel_duplicate_current_defs_from_edges): Same.
20437 (slpeel_add_loop_guard): Same.
20438 (slpeel_can_duplicate_loop_p): Same.
20439 (create_lcssa_for_virtual_phi): Same.
20441 (vect_update_ivs_after_vectorizer): Same.
20442 (vect_gen_vector_loop_niters_mult_vf): Same.
20443 (slpeel_update_phi_nodes_for_loops): Same.
20444 (slpeel_update_phi_nodes_for_guard1): Same.
20445 (find_guard_arg): Same.
20446 (slpeel_update_phi_nodes_for_guard2): Same.
20447 (slpeel_update_phi_nodes_for_lcssa): Same.
20448 (vect_do_peeling): Same.
20449 (vect_create_cond_for_alias_checks): Same.
20450 (vect_loop_versioning): Same.
20451 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20452 (vect_inner_phi_in_double_reduction_p): Same.
20453 (vect_analyze_scalar_cycles_1): Same.
20454 (vect_fixup_scalar_cycles_with_patterns): Same.
20455 (vect_get_loop_niters): Same.
20456 (bb_in_loop_p): Same.
20457 (vect_get_max_nscalars_per_iter): Same.
20458 (vect_verify_full_masking): Same.
20459 (vect_compute_single_scalar_iteration_cost): Same.
20460 (vect_analyze_loop_form_1): Same.
20461 (vect_analyze_loop_form): Same.
20462 (vect_active_double_reduction_p): Same.
20463 (vect_analyze_loop_operations): Same.
20464 (neutral_op_for_slp_reduction): Same.
20465 (vect_is_simple_reduction): Same.
20466 (vect_model_reduction_cost): Same.
20467 (get_initial_def_for_reduction): Same.
20468 (get_initial_defs_for_reduction): Same.
20469 (vect_create_epilog_for_reduction): Same.
20470 (vectorize_fold_left_reduction): Same.
20471 (vectorizable_reduction): Same.
20472 (vectorizable_induction): Same.
20473 (vectorizable_live_operation): Same.
20474 (loop_niters_no_overflow): Same.
20475 (vect_get_loop_mask): Same.
20476 (vect_transform_loop_stmt): Same.
20477 (vect_transform_loop): Same.
20478 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20479 (vect_determine_precisions): Same.
20480 (vect_pattern_recog_1): Same.
20481 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20482 * tree-vect-stmts.c (stmt_vectype): Same.
20483 (process_use): Same.
20484 (vect_init_vector_1): Same.
20485 (vect_truncate_gather_scatter_offset): Same.
20486 (get_group_load_store_type): Same.
20487 (vect_build_gather_load_calls): Same.
20488 (vect_get_strided_load_store_ops): Same.
20489 (vectorizable_simd_clone_call): Same.
20490 (vectorizable_store): Same.
20491 (permute_vec_elements): Same.
20492 (vectorizable_load): Same.
20493 (vect_transform_stmt): Same.
20494 (supportable_widening_operation): Same.
20495 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20496 (vec_info::free_stmt_vec_info): Same.
20497 (vect_free_loop_info_assumptions): Same.
20498 (vect_loop_vectorized_call): Same.
20499 (set_uid_loop_bbs): Same.
20500 (vectorize_loops): Same.
20501 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20502 * tree.c (add_tree_to_fld_list): Same.
20503 (fld_type_variant_equal_p): Same.
20504 (fld_decl_context): Same.
20505 (fld_incomplete_type_of): Same.
20506 (free_lang_data_in_binfo): Same.
20507 (need_assembler_name_p): Same.
20508 (find_decls_types_r): Same.
20509 (get_eh_types_for_runtime): Same.
20510 (find_decls_types_in_eh_region): Same.
20511 (find_decls_types_in_node): Same.
20512 (assign_assembler_name_if_needed): Same.
20513 * value-prof.c (stream_out_histogram_value): Same.
20514 * value-prof.h: Same.
20515 * var-tracking.c (use_narrower_mode): Same.
20516 (prepare_call_arguments): Same.
20517 (vt_expand_loc_callback): Same.
20518 (resolve_expansions_pending_recursion): Same.
20519 (vt_expand_loc): Same.
20520 * varasm.c (const_hash_1): Same.
20521 (compare_constant): Same.
20522 (tree_output_constant_def): Same.
20523 (simplify_subtraction): Same.
20524 (get_pool_constant): Same.
20525 (output_constant_pool_2): Same.
20526 (output_constant_pool_1): Same.
20527 (mark_constants_in_pattern): Same.
20528 (mark_constant_pool): Same.
20529 (get_section_anchor): Same.
20530 * vr-values.c (compare_range_with_value): Same.
20531 (vr_values::extract_range_from_phi_node): Same.
20532 * vr-values.h: Same.
20533 * web.c (unionfind_union): Same.
20534 * wide-int.h: Same.
20536 2019-07-09 Martin Sebor <msebor@redhat.com>
20539 * align.h: Change class-key from class to struct and vice versa
20540 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
20541 * alloc-pool.h: Same.
20542 * asan.c (shadow_mem_size): Same.
20543 * auto-profile.c: Same.
20544 * basic-block.h: Same.
20546 * cfgexpand.c (set_rtl): Same.
20547 (expand_one_stack_var_at): Same.
20548 * cfghooks.h: Same.
20551 * config/i386/i386.h: Same.
20552 * df-problems.c (df_print_bb_index): Same.
20554 * df.h (df_single_use): Same.
20555 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
20556 (layout::annotation_line_showed_range_p): Same.
20557 (get_printed_columns): Same.
20558 (correction::ensure_terminated): Same.
20559 (line_corrections::~line_corrections): Same.
20562 * dump-context.h: Same.
20563 * dumpfile.h: Same.
20564 * dwarf2out.c: Same.
20565 * edit-context.c: Same.
20566 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
20568 * function.c (assign_stack_local): Same.
20569 * function.h: Same.
20571 * gcov.c (block_info::block_info): Same.
20572 * genattrtab.c: Same.
20573 * genextract.c: Same.
20574 * genmatch.c (comparison_code_p): Same.
20575 (id_base::id_base): Same.
20576 (decision_tree::print): Same.
20577 * genoutput.c: Same.
20578 * genpreds.c (write_one_predicate_function): Same.
20579 * genrecog.c (validate_pattern): Same.
20580 (find_operand_positions): Same.
20581 (optimize_subroutine_group): Same.
20582 (merge_pattern_transition::merge_pattern_transition): Same.
20583 (merge_pattern_info::merge_pattern_info): Same.
20584 (merge_state_result::merge_state_result): Same.
20585 (merge_into_state): Same.
20586 * gensupport.c: Same.
20587 * gensupport.h: Same.
20588 * ggc-common.c (init_ggc_heuristics): Same.
20589 * ggc-tests.c (test_union): Same.
20590 * gimple-loop-interchange.cc (dump_induction): Same.
20591 * gimple-loop-versioning.cc: Same.
20592 * gimple-match.h (gimple_match_cond::any_else): Same.
20593 * gimple-ssa-backprop.c: Same.
20594 * gimple-ssa-sprintf.c: Same.
20595 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
20597 (store_immediate_info::store_immediate_info): Same.
20598 (merged_store_group::apply_stores): Same.
20599 (get_location_for_stmts): Same.
20600 * gimple-ssa-strength-reduction.c: Same.
20601 * gimple-ssa-warn-alloca.c: Same.
20602 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
20603 * godump.c (go_type_decl): Same.
20604 * hash-map-tests.c (test_map_of_strings_to_int): Same.
20605 * hash-map.h: Same.
20606 * hash-set-tests.c (test_set_of_strings): Same.
20607 * hsa-brig.c: Same.
20608 * hsa-common.h: Same.
20609 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
20610 * input.c (assert_loceq): Same.
20613 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
20614 * ipa-fnsummary.h: Same.
20615 * ipa-inline.h: Same.
20616 * ipa-prop.h: Same.
20617 * ipa-split.c (visit_bb): Same.
20618 * ira-int.h (minmax_set_iter_next): Same.
20619 * loop-invariant.c: Same.
20621 * lra-eliminations.c: Same.
20623 * lra-lives.c (mark_regno_dead): Same.
20624 * lra-remat.c: Same.
20625 * lra-spills.c: Same.
20626 * lto-streamer.h: Same.
20627 * mem-stats.h: Same.
20628 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
20629 * omp-low.c (omp_clause_aligned_alignment): Same.
20630 * optabs-query.h (get_vcond_eq_icode): Same.
20632 * opts.c (wrap_help): Same.
20633 * poly-int.h: Same.
20634 * predict.c (predict_paths_leading_to_edge): Same.
20635 * pretty-print.h: Same.
20636 * profile-count.h: Same.
20638 * read-rtl-function.c: Same.
20641 * regrename.c: Same.
20642 * regrename.h: Same.
20644 * rtl-iter.h: Same.
20645 * rtl.h (costs_add_n_insns): Same.
20647 * sched-int.h: Same.
20648 * sel-sched-ir.h: Same.
20649 * selftest.h: Same.
20650 * sese.h (vec_find): Same.
20652 * target-globals.h: Same.
20653 * tree-affine.c (aff_combination_find_elt): Same.
20654 * tree-affine.h: Same.
20655 * tree-data-ref.h: Same.
20656 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
20657 * tree-predcom.c: Same.
20658 * tree-scalar-evolution.c (find_var_scev_info): Same.
20659 * tree-ssa-alias.h: Same.
20660 * tree-ssa-ccp.c: Same.
20661 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
20662 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
20663 (rewrite_mem_refs): Same.
20664 (execute_sm_if_changed): Same.
20665 (hoist_memory_references): Same.
20666 * tree-ssa-loop-ivopts.c (operator<=): Same.
20667 * tree-ssa-loop.h: Same.
20668 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
20669 * tree-ssa-structalias.c: Same.
20670 * tree-switch-conversion.h (cluster::cluster): Same.
20671 (simple_cluster::simple_cluster): Same.
20672 * tree-vect-patterns.c (type_conversion_p): Same.
20673 * tree-vectorizer.c (dump_stmt_cost): Same.
20674 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
20675 * tree.c (protected_set_expr_location): Same.
20676 * tree.h (desired_pro_or_demotion_p): Same.
20677 (fndecl_built_in_p): Same.
20678 * unique-ptr-tests.cc: Same.
20679 * var-tracking.c (delete_variable_part): Same.
20680 * varasm.c (assemble_real): Same.
20681 (tree_output_constant_def): Same.
20683 * wide-int-bitmask.h: Same.
20684 * wide-int.h (decompose): Same.
20686 2019-07-09 Richard Biener <rguenther@suse.de>
20688 PR tree-optimization/91114
20689 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
20690 find a vector type isn't fatal.
20692 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20694 * config/aarch64/aarch64-simd.md
20695 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
20696 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
20697 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
20698 (*aarch64_crypto_aese_fused,
20699 *aarch64_crypto_aesd_fused): Update to new definition.
20700 * config/aarch64/aarch64.c
20701 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
20703 2019-07-09 Richard Biener <rguenther@suse.de>
20705 * gimple-match.h (gimple_match_op::resimplify): New.
20706 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
20707 gimple_resimplify4, gimple_resimplify5): Remove.
20708 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
20709 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
20711 (gimple_match_op::resimplify): New.
20712 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
20713 according to availability. Use gimple_match_op::resimplify.
20715 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
20717 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
20719 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20721 * config/arm/crypto.md:
20722 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
20723 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
20724 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
20725 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
20727 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
20728 * config/arm/aarch-common-protos.h
20729 (aarch_crypto_can_dual_issue): Remove.
20730 * config/arm/aarch-common.c
20731 (aarch_crypto_can_dual_issue): Likewise.
20732 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
20733 * config/arm/cortex-a53.md: Likewise.
20734 * config/arm/cortex-a57.md: Likewise.
20735 * config/arm/iterators.md:
20736 (CRYPTO_BINARY): Redefine.
20737 (CRYPTO_UNARY): Removed.
20738 (CRYPTO_AES, CRYPTO_AESMC): New.
20740 2019-07-09 Richard Biener <rguenther@suse.de>
20742 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
20743 (vn_reference_lookup_3): If the main ref has no access path recorded
20744 but orig_ref has use it to do access-path based disambiguation.
20745 (vn_reference_lookup_pieces): Adjust.
20746 (vn_reference_lookup): Pass down original ref if we valueized.
20748 2019-07-09 Martin Liska <mliska@suse.cz>
20750 * doc/extend.texi: Document influence on loop
20753 2019-07-09 Martin Liska <mliska@suse.cz>
20755 * lto-compress.c (lto_normalized_zstd_level): Do not use
20756 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
20757 of libzstd. One can use 0 as a default compression level.
20759 2019-07-09 Martin Liska <mliska@suse.cz>
20761 * doc/invoke.texi: Add link from -fprofile-dir option.
20762 Use better wording for 'gcno filename'.
20764 2019-07-08 Martin Sebor <msebor@redhat.com>
20766 PR middle-end/71924
20767 PR middle-end/90549
20768 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
20770 (args_loc_t): New type.
20771 (args_loc_t, locmap_t): same.
20772 (diag_returned_locals): New function.
20773 (is_addr_local): Same.
20774 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
20775 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
20776 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
20778 2019-07-08 Jakub Jelinek <jakub@redhat.com>
20780 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
20781 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
20782 and casts in offset when different, both through gimple stmts
20783 and through trees. Rewritten using loops to minimize code duplication
20786 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
20788 * emit-rtl.c (set_insn_locations): New function moved from...
20789 * function.c (set_insn_locations): ...here.
20790 * ira-emit.c (emit_moves): Propagate location of the first instruction
20791 to the inserted move instructions.
20792 * reg-stack.c (compensate_edge): Set the location if the sequence is
20793 inserted on the edge.
20794 * rtl.h (set_insn_locations): Declare.
20796 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20798 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
20799 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
20802 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20804 PR rtl-optimization/88233
20805 * common.opt (fsplit-wide-types-early): New option.
20806 * common/config/rs6000/rs6000-common.c
20807 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
20809 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
20810 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
20811 flag_split_wide_types_early.
20812 (pass_data_lower_subreg3): New.
20813 (pass_lower_subreg3): New.
20814 (make_pass_lower_subreg3): New.
20815 * passes.def (pass_lower_subreg2): Move after the loop passes.
20816 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
20817 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
20818 the pass pipeline; its previous place is taken by ...
20819 (make_pass_lower_subreg3): ... this.
20821 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20823 * config/s390/s390.c (s390_shift_truncation_mask): Define.
20824 (TARGET_SHIFT_TRUNCATION_MASK): Define.
20826 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20828 * config/s390/constraints.md: Add new jsc constraint.
20829 * config/s390/predicates.md: New predicates.
20830 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
20831 * config/s390/s390.c (s390_valid_shift_count): New function.
20832 (print_shift_count_operand): Use s390_valid_shift_count.
20833 (print_operand): Likewise.
20834 * config/s390/s390.md: Use new predicate.
20835 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
20836 * config/s390/vector.md: Use new predicate.
20838 2019-07-08 Andrew Waterman <andrew@sifive.com>
20839 Jim Wilson <jimw@sifive.com>
20841 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
20842 bitsize instead of BITS_PER_WORD.
20844 2019-07-08 Martin Liska <mliska@suse.cz>
20846 * collect2.c (defined): Revert to before r254460.
20847 (scan_prog_file): Revert to before r254460.
20849 2019-07-08 Richard Biener <rguenther@suse.de>
20851 PR tree-optimization/83518
20852 * tree-ssa-sccvn.c: Include splay-tree.h.
20853 (struct pd_range, struct pd_data): New.
20854 (struct vn_walk_cb_data): Add data to track partial definitions.
20855 (vn_walk_cb_data::~vn_walk_cb_data): New.
20856 (vn_walk_cb_data::push_partial_def): New.
20857 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
20858 (vn_reference_lookup_2): When partial defs are registered give up.
20859 (vn_reference_lookup_3): Track partial defs for memset and
20860 constructor zeroing and for defs from constants.
20862 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20864 * doc/install.texi (bootstrap-Og): Document.
20866 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20868 * config/riscv/pic.md (*local_pic_load_s<mode>)
20869 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
20870 referenced by <mode>, giving...
20871 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
20872 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
20873 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
20874 use <X:MODE> for the mode attribute.
20876 2019-07-07 Jeff Law <law@redhat.com>
20878 PR tree-optimization/91090
20879 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
20880 in handling of ranges to simplify switch statements.
20882 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20884 * config/darwin.c (darwin_override_options): Make a final check on PIC
20887 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20889 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
20890 on for kernel code.
20892 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20895 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
20896 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
20897 instead of matching them to "l" output operands.
20899 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20901 * config/mips/mips.c (mips_split_move): Zero-initialize addr
20902 and check whether addr.reg is nonnull before using it.
20904 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20906 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
20907 ctx->for_simd_scan_phase simd copy the outer var to the privatized
20908 variable(s). For conditional lastprivate look through outer
20909 GIMPLE_OMP_SCAN context.
20910 (lower_omp_1): For conditional lastprivate look through outer
20911 GIMPLE_OMP_SCAN context.
20913 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
20914 member to combined_into_simd_safelen1.
20915 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
20916 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
20917 clauses if ctx->combined_into_simd_safelen1 put statements after the
20918 predicate conditionalized block rather than into it.
20920 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20922 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
20924 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
20925 Make the choice of <mode> explicit, giving...
20926 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
20928 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20930 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
20931 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
20933 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
20934 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
20935 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
20936 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
20937 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
20938 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
20939 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
20940 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
20941 (*avx512f_scatterdi<mode>): Likewise.
20942 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
20944 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20946 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
20947 specify the mode iterator referenced by <mode>, giving...
20948 (*push1_h8300hs_<QHI:mode>): ...this.
20950 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20952 * config/gcn/gcn-valu.md
20953 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
20954 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
20955 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
20956 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
20957 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
20958 but using the _exec comparison patterns.
20959 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
20960 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
20961 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
20962 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
20963 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
20964 but using the _exec comparison patterns.
20966 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20968 * config/arm/sync.md
20969 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
20970 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
20971 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
20972 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
20973 <SIDI:cas_cmp_str>.
20975 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20977 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
20978 (maybe_lookup_ctx): Add forward declaration.
20979 (omp_find_scan): Likewise. Walk into body of simd if composited
20980 with worksharing loop.
20981 (scan_omp_simd_scan): New function.
20982 (scan_omp_1_stmt): Call it.
20983 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
20984 ctx->for_simd_scan_phase.
20985 (lower_rec_input_clauses): Do much less work for inscan reductions
20986 in ctx->for_simd_scan_phase is_simd regions.
20987 (lower_omp_scan): Set is_simd also on simd constructs composited
20988 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
20989 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
20990 emit their body after in simd constructs composited with worksharing
20992 (lower_omp_for_scan): Handle worksharing loop composited with simd.
20994 * omp-low.c (omp_find_scan): Make static.
20995 (lower_omp_for_scan): Fix order of merge arguments in input phase of
20996 the second loop, var2 represents the first partial sum and so needs
20997 to go before rprivb[ivar].
20999 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21001 * config/rs6000/rs6000-logue.c: Remove unused code.
21003 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21005 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21007 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21010 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21011 check with a frame laid out check.
21013 2019-07-05 Richard Biener <rguenther@suse.de>
21015 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21016 when comparing against a store with possibly the same value.
21018 2019-07-05 Richard Biener <rguenther@suse.de>
21020 PR tree-optimization/91091
21021 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21022 (walk_non_aliased_vuses): Likewise.
21023 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21024 (get_continuation_for_phi): New tbaa_p parameter and pass
21026 (walk_non_aliased_vuses): Likewise.
21027 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21028 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21029 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21031 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21032 (adjust_offsets_for_equal_base_address): New function.
21033 (vn_reference_lookup_3): Use it to catch more base equivalences.
21034 Handle and pass down tbaa_p flag.
21035 (vn_reference_lookup_pieces): Adjust.
21036 (vn_reference_lookup): Remove alias-set altering, instead pass
21037 down false as tbaa_p.
21039 2019-07-05 Richard Biener <rguenther@suse.de>
21041 PR tree-optimization/91091
21042 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21043 accesses can happen with -fno-strict-aliasing.
21045 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21047 * tree-ssa-alias.c (alias_stats): Add
21048 nonoverlapping_component_refs_since_match_p_must_overlap.
21049 (dump_alias_stats): Print it.
21050 (nonoverlapping_component_refs_since_match_p): Add early exit.
21051 (nonoverlapping_component_refs_p): Do not account early exit.
21053 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21055 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21056 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21057 (emit_eh_dispatch): Delete.
21058 (lower_catch): Emit the eh_dispatch manually and set the location of
21059 the first catch statement onto it.
21060 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21061 (lower_eh_dispatch): Propagate location.
21062 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21063 (eliminate_build): Likewise.
21065 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21067 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21068 phi nodes if possible.
21069 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21070 location info on the newly created statement.
21071 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21072 newly created increment if needed.
21074 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21076 PR middle-end/78884
21077 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21078 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21079 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21080 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21081 ctx->add_safelen1 is set.
21083 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21084 GOMP_loop_start at the start of second worksharing loop in a scan.
21085 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21086 worksharing loop in a scan even if there are conditional lastprivates,
21087 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21089 2019-07-04 Jan Hubicka <jh@suse.cz>
21091 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21092 Fix check for match in the ref walk.
21094 2019-07-04 Martin Liska <mliska@suse.cz>
21096 * tree-ssa-loop-niter.c
21097 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21098 (estimate_numbers_of_iterations):
21099 Support __builtin_expect_with_probability for analysis
21100 of # of loop iterations.
21102 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21104 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21105 * except.c: Likewise.
21106 * expr.c (expand_expr_real_1): Reject it.
21107 * gimplify.c (gimplify_expr): Gimplify it, within
21109 * tree-dump.c (dequeue_and_dump): Dump it.
21110 * tree-pretty-print.c (dump_generic_node): Likewise.
21111 * tree.c (block_may_fallthru): Handle it.
21112 * tree.def (EH_ELSE_EXPR): Introduce it.
21113 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21114 with GIMPLE_EH_ELSE as try/finally/else.
21116 2019-07-04 Richard Biener <rguenther@suse.de>
21119 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21120 parameter whether to disable GC collection.
21121 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21123 (execute_all_ipa_transforms): Likewise and pass it down.
21124 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21125 collection from applying IPA transforms.
21126 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21127 from applying IPA transforms.
21129 2019-07-04 Richard Biener <rguenther@suse.de>
21131 PR tree-optimization/90911
21132 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21133 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21134 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21135 scalar_loop_scaling.
21136 (vect_transform_loop): Scale scalar loop profile if needed.
21137 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21138 the loop copy from if-conversion adjust edge probabilities
21139 and scale the vectorized loop body profile, queue the scalar
21140 profile for updating after peeling.
21142 2019-07-04 Jan Hubicka <jh@suse.cz>
21144 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21145 parameters; return early for must-alias.
21146 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21147 outer types match, try nonoverlapping_component_refs
21148 if must-alias is not obvious.
21149 (indirect_refs_may_alias_p): Likewise.
21150 (refs_may_alias_p_2): Likewise.
21152 2019-07-04 Richard Biener <rguenther@suse.de>
21154 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21156 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21158 (struct vn_walk_cb_data): New callback data struct.
21159 (vn_reference_lookup_2): Adjust.
21160 (vn_reference_lookup_3): Likewise.
21161 (vn_reference_lookup_pieces): Likewise.
21162 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21163 (visit_reference_op_load): Adjust.
21165 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21167 PR tree-optimization/91063
21168 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21169 stmt from stmts sequence before calling vect_init_vector_1.
21172 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21175 * fwprop.c (reg_single_def_p): New function.
21176 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21177 (forward_propagate_into): New parameter reg_prop_only
21178 with default value false.
21179 Propagate def's src into loop only if SET_SRC and SET_DEST
21180 of def_set have single definitions.
21181 Likewise if reg_prop_only is set to true.
21182 (fwprop): New param fwprop_addr_p.
21183 Integrate fwprop_addr into fwprop.
21184 (fwprop_addr): Remove.
21185 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21187 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21188 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21189 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21191 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21193 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21194 in worksharing loop scans.
21196 PR tree-optimization/91074
21197 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21200 PR rtl-optimization/90756
21201 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21204 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21206 * config/aarch64/aarch64.md: Remove redundant constraints from
21207 define_expand but keep some patterns untouched if they are
21208 specially selected by TARGET_SECONDARY_RELOAD hook.
21209 * config/aarch64/aarch64-sve.md: Likewise.
21210 * config/aarch64/atomics.md: Remove redundant constraints from
21212 * config/aarch64/aarch64-simd.md: Likewise.
21214 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21216 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21217 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21218 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21220 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21223 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21225 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21226 (STARTFILE_SPEC): Split crt3 into a separate spec.
21227 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21228 (DARWIN_CRT2_SPEC): New.
21229 (DARWIN_CRT3_SPEC): New.
21230 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21231 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21232 (DARWIN_CRT3_SPEC): New.
21234 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21236 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21237 Change the RTL attribute "length" from "4" to "*" to allow the
21238 length attribute to be adjusted automatically for prefixed load,
21239 store, and add immediate instructions.
21240 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21242 (extendsi<mode>2, EXTSI iterator): Likewise.
21243 (movsi_internal1): Likewise.
21244 (movsi_from_sf): Likewise.
21245 (movdi_from_sf_zero_ext): Likewise.
21246 (mov<mode>_internal): Likewise.
21247 (movcc_internal1, QHI iterator): Likewise.
21248 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21249 (movsf_from_si): Likewise.
21250 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21251 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21252 (mov<mode>, FMOVE128 iterator): Likewise.
21253 (movdi_internal64): Likewise.
21254 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21256 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21257 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21258 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21259 (vsx_splat_v4sf): Likewise.
21261 2019-07-03 Mark Wielaard <mark@klomp.org>
21264 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21265 DW_AT_addr_base if there is actually a .debug_addr section with
21267 (output_addr_table): Add DWARF5 table header generation here after
21268 checking there are actually any addresses from...
21269 (dwarf2out_finish): ...here.
21271 2019-07-03 Richard Biener <rguenther@suse.de>
21273 PR middle-end/91069
21274 * match.pd (vec_perm -> bit_insert): Fix element read from
21277 2019-07-03 Martin Liska <mliska@suse.cz>
21279 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21280 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21282 * generic-match-head.c: Include dbgcnt.h.
21283 * gimple-match-head.c: Likewise.
21285 2019-07-03 Martin Liska <mliska@suse.cz>
21287 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21288 (GCOV_COUNTER_V_TOPN): New.
21289 (GCOV_COUNTER_V_INDIR): Use _topn.
21290 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21291 (GCOV_TOPN_VALUES): New.
21292 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21293 (GCOV_TOPN_VALUES_COUNTERS): New.
21294 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21296 (gimple_init_gcov_profiler): Rename variables from one_value
21298 (gimple_gen_one_value_profiler): Remove.
21299 (gimple_gen_topn_values_profiler): New function.
21300 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21301 names instead of SINGLE_VALUE.
21302 (stream_out_histogram_value): Likewise.
21303 (stream_in_histogram_value): Likewise.
21304 (get_most_common_single_value): Likewise.
21305 (gimple_divmod_fixed_value_transform): Likewise.
21306 (gimple_stringops_transform): Likewise.
21307 (gimple_divmod_values_to_profile): Likewise.
21308 (gimple_stringops_values_to_profile): Likewise.
21309 (gimple_find_values_to_profile): Likewise.
21310 * value-prof.h (enum hist_type): Rename to TOPN.
21311 (gimple_gen_one_value_profiler): Remove.
21312 (gimple_gen_topn_values_profiler): New.
21314 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21316 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21317 if it has the DW_AT_data_member_location attribute.
21319 2019-07-03 Richard Biener <rguenther@suse.de>
21321 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21324 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21326 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21327 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21328 (tlsdesc_small_sve_<mode>): Likewise.
21330 2019-07-03 Martin Liska <mliska@suse.cz>
21332 * Makefile.in: Define ZSTD_LIB.
21333 * common.opt: Adjust compression level
21334 to support also zstd levels.
21335 * config.in: Regenerate.
21336 * configure: Likewise.
21337 * configure.ac: Add --with-zstd and --with-zstd-include options
21339 * doc/install.texi: Mention zstd dependency.
21340 * gcc.c: Print supported LTO compression algorithms.
21341 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21342 (lto_compression_zstd): Likewise.
21343 (lto_uncompression_zstd): Likewise.
21344 (lto_end_compression): Dispatch in between zlib and zstd.
21345 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21346 (lto_uncompression_zlib): Make it static.
21347 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21348 * lto-section-in.c (lto_get_section_data): Pass info
21349 about used compression.
21350 * lto-streamer-out.c: By default use zstd when possible.
21351 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21352 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21354 2019-07-03 Martin Liska <mliska@suse.cz>
21356 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21357 * lto-section-out.c (lto_destroy_simple_output_block): Never
21358 compress LTO_section_lto section.
21359 * lto-streamer-out.c (produce_asm): Do not set major_version
21361 (lto_output_toplevel_asms): Likewise.
21362 (produce_lto_section): New function.
21363 (lto_output): Call produce_lto_section.
21364 (lto_write_mode_table): Do not set major_version and
21366 (produce_asm_for_decls): Likewise.
21367 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21369 (struct lto_header): Remove.
21370 (struct lto_section): New struct.
21371 (struct lto_simple_header): Do not inherit from lto_header.
21372 (struct lto_file_decl_data): Add lto_section_header field.
21374 2019-07-03 Martin Liska <mliska@suse.cz>
21376 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21378 * reg-stack.c (check_asm_stack_operands): Likewise.
21379 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21380 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21381 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21382 force_expand_binop.
21384 2019-07-03 Martin Liska <mliska@suse.cz>
21386 PR tree-optimization/90892
21387 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21388 in string constants.
21390 2019-07-03 Martin Liska <mliska@suse.cz>
21392 PR middle-end/90899
21393 * multiple_target.c (create_dispatcher_calls): Add to comdat
21394 group only if set for ifunc.
21396 2019-07-03 Martin Liska <mliska@suse.cz>
21399 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21400 Define local_object_name in outer scope in order to handle
21401 use-after-scope issue.
21403 2019-07-03 Martin Liska <mliska@suse.cz>
21405 * common.opt: Add fprofile-note.
21406 * coverage.c (coverage_init): Append the option
21408 * doc/invoke.texi: Document -fprofile-note.
21410 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21412 PR tree-optimization/91033
21413 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21414 vect_analyze_data_refs): Add bool * arguments.
21415 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21416 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21417 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21418 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21419 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21420 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21421 vect_analyze_data_refs caller.
21423 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21425 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21426 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21427 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21428 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21429 OMP_CLAUSE__SCANTEMP_ entry.
21430 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21431 * tree-pretty-print.c (dump_omp_clause): Likewise.
21432 * tree-nested.c (convert_nonlocal_omp_clauses,
21433 convert_local_omp_clauses): Likewise.
21434 * omp-general.h (struct omp_for_data): Add have_scantemp and
21435 have_nonctrl_scantemp members.
21436 * omp-general.c (omp_extract_for_data): Initialize them.
21437 * omp-low.c (struct omp_context): Add scan_exclusive member.
21438 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21439 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21440 ctx->scan_exclusive.
21441 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21442 of !ctx->scan_inclusive.
21443 (lower_rec_input_clauses): Simplify gimplification of dtors using
21444 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21445 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21446 loops. Don't add barrier for reduction_omp_orig_ref if
21447 ctx->scan_??xclusive.
21448 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21449 (lower_omp_scan): Use ctx->scan_exclusive instead
21450 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21451 reductions. Use new_vard != new_var instead of repeated
21452 omp_is_reference calls.
21453 (omp_find_scan, lower_omp_for_scan): New functions.
21454 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21456 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21457 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21458 and fd->have_scantemp.
21460 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21461 on worksharing loop propagate it as shared clause to containing
21464 * omp-expand.c (expand_omp_for_static_nochunk,
21465 expand_omp_for_static_chunk): For nowait worksharing loop with
21466 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21469 2019-07-02 qing zhao <qing.zhao@oracle.com>
21471 PR preprocessor/90581
21472 * doc/cppopts.texi: Add document for -fmax-include-depth.
21473 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21475 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21477 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21478 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21479 (mmx_packssdw): Ditto.
21480 (mmx_punpckhbw): Ditto.
21481 (mmx_punpcklbw): Ditto.
21482 (mmx_punpckhwd): Ditto.
21483 (mmx_punpcklwd): Ditto.
21484 (mmx_punpckhdq): Ditto.
21485 (mmx_punpckldq): Ditto.
21486 (*vec_dupv4hi): Ditto.
21487 (*vec_dupv2si): Ditto.
21488 (mmx_pmovmskb): Ditto.
21489 * config/i386/sse.md (sse_cvtpi2ps): Use
21490 TARGET_SSE2 && SSE_REG_P in split condition.
21491 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21492 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21493 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21494 (ssse3_pshufbv8qi3): Ditto.
21495 (ssse3_palignrdi): Ditto.
21497 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21499 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21500 with inlined save and restore.
21502 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21504 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21505 to be inserted on single successor edge of the entry block. Then call
21506 commit_edge_insertions instead of inserting the instructions manually.
21507 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21508 RTL expansion and rebuild jump labels chain.
21510 2019-07-02 Richard Biener <rguenther@suse.de>
21512 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21514 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21516 * tree.c (build_common_tree_nodes): Initialize them.
21517 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21518 Make declarations comments.
21519 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21520 chrec_known): Remove definitions.
21521 (initialize_scalar_evolutions_analyzer): Remove.
21522 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21523 * tree-streamer.c (preload_common_nodes): Do not preload
21524 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21526 2019-07-02 Jan Hubicka <jh@suse.cz>
21528 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21531 2019-07-02 Jan Hubicka <jh@suse.cz>
21533 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
21535 (nonoverlapping_component_refs_since_match_p): ... this one;
21536 handle also non-decl bases; return -1 if search gave up.
21537 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
21538 nonoverlapping_component_refs_of_decl_p_no_alias to
21539 nonoverlapping_component_refs_since_match_p_may_alias,
21540 nonoverlapping_component_refs_since_match_p_no_alias.
21541 (dump_alias_stats): Update dumping.
21542 (aliasing_matching_component_refs_p): Break out from ...;
21543 dispatch to nonoverlapping_component_refs_for_decl_p
21544 and nonoverlapping_component_refs_since_match_p.
21545 (aliasing_component_refs_p): ... here; call
21546 nonoverlapping_component_refs_p in scenarios where we can not
21547 precisely determine base match.
21548 (decl_refs_may_alias_p): Use
21549 nonoverlapping_component_refs_since_match_p.
21550 (indirect_ref_may_alias_decl_p): Do not call
21551 nonoverlapping_component_refs_p.
21552 (indirect_refs_may_alias_p): Likewise.
21554 2019-07-02 Jan Hubicka <jh@suse.cz>
21556 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
21557 to clobber of return value.
21559 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21561 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
21562 for is_neon_type instructions that have not already been categorized.
21564 2019-07-02 Richard Biener <rguenther@suse.de>
21566 PR tree-optimization/58483
21567 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
21568 for MEM_REF base hashing.
21569 (equal_mem_array_ref_p): Likewise for base comparison.
21571 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21573 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
21574 parameterized name.
21575 (signbit<mode>2): Use that name. Simplify.
21577 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
21579 PR middle-end/66726
21580 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
21581 Tune heuristic from PR71016 to allow MIN / MAX.
21583 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21585 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
21586 parameterized name.
21587 (abs<mode>2): Use that name. Simplify.
21589 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21591 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
21592 parameterized name.
21593 (neg<mode>2): Use that name. Simplify.
21595 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21597 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
21599 (abs<mode>2): Use that name. Simplify.
21601 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21603 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
21605 (neg<mode>2): Use that name. Simplify.
21607 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
21609 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
21610 ("enabled" attribute): Handle sse_noavx isa attribute.
21611 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
21612 Use TARGET_SSE && SSE_REGNO_P in split condition.
21613 (*vec_dupv2sf): Ditto.
21615 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21617 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
21619 (floatsi<mode>2): Use that name. Simplify.
21621 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21623 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
21624 parameterized name.
21625 (extenddf<mode>2_vsx): Make this a parameterized name.
21626 (extenddf<mode>2): Use those names. Simplify.
21628 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21630 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
21632 (eh_return): Use that name. Simplify.
21634 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21636 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
21637 (doloop_end): Use that name. Simplify.
21639 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21641 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
21642 parameterized name.
21643 (indirect_jump): Use that name. Simplify.
21645 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21647 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
21648 parameterized name.
21649 (abs<mode>2): Use that name. Simplify.
21651 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21653 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
21654 parameterized name.
21655 (fix_trunc<mode>si2): Use that name. Simplify.
21657 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21659 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
21660 (allocate_stack): Use that name. Simplify.
21662 2019-07-01 Martin Sebor <msebor@redhat.com>
21664 PR middle-end/90923
21665 * hash-map.h (hash_map::put): On insertion invoke element ctor.
21666 (hash_map::get_or_insert): Same. Reformat comment.
21667 * hash-set.h (hash_set::add): On insertion invoke element ctor.
21668 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21669 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21670 * hash-table.h (hash_table::operator=): Prevent copy assignment.
21671 (hash_table::hash_table (const hash_table&)): Use copy ctor
21672 instead of assignment to copy elements.
21674 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
21675 John David Anglin <danglin@gcc.gnu.org>
21678 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
21679 using saved frame pointer.
21681 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
21683 PR middle-end/64242
21684 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
21685 Add frame clobber and schedule blockage.
21687 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
21689 * doc/invoke.texi (Link Options): Further editorial changes to
21690 -flinker-output docs.
21692 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21694 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
21695 Load both operands of a PLUS into registers separately.
21697 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
21699 * config/s390/vector.md: Fix shift count operand printing.
21701 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21703 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
21705 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21707 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
21708 Use recog_data to test for an output operand.
21710 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21712 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
21713 exclude any others that are disparaged or that are bound to need
21715 (ira_get_dup_out_num): Expand comment.
21717 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21719 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
21720 constraint string for each operand/alternative combo. Only handle
21721 '%' at the start of constraint strings, and look for it outside
21724 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21726 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
21727 alternative_mask instead of HARD_REG_SET to represent a
21728 bitmask of alternatives.
21729 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21730 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
21732 2019-07-01 Martin Liska <mliska@suse.cz>
21734 * edit-context.c (test_applying_fixits_unreadable_file): Do not
21735 use () for a constructor call.
21736 (test_applying_fixits_line_out_of_range): Likewise.
21737 * ggc-page.c (alloc_page): Use (void *) for %p printf format
21739 (free_page): Likewise.
21741 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
21743 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
21744 parameter names to match usage (no functional change).
21745 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
21747 2019-07-01 Richard Biener <rguenther@suse.de>
21749 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
21751 (pass_fre::execute): Honor it.
21752 * passes.def: Adjust pass_fre invocations to allow iterating,
21753 add non-iterating pass_fre before late threading/dom.
21755 2019-07-01 Richard Biener <rguenther@suse.de>
21757 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
21758 TARGET_MEM_REF handling to also handle address-taken ones.
21760 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
21762 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21763 hardware attributes): Document avx512vp2intersect.
21765 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21767 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
21768 (abs<mode>2): New expander.
21769 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
21770 Use CODE_FOR_ssse3_absv8qi2.
21771 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
21772 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
21774 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21776 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
21777 to sse, sse_noavx and avx. Update all uses.
21779 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21781 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
21782 (*mmx_<plusminus_insn><mode>3): Ditto.
21783 (*mmx_mulv4hi3"): Ditto.
21784 (*mmx_smulv4hi3_highpart): Ditto.
21785 (*mmx_umulv4hi3_highpart): Ditto.
21786 (*mmx_pmaddwd): Ditto.
21787 (*sse2_umulv1siv1di3): Ditto.
21788 (*mmx_<code>v4hi3): Ditto.
21789 (*mmx_<code>v8qi3): Ditto.
21790 (mmx_ashr<mode>3): Ditto.
21791 ("mmx_<shift_insn><mode>3): Ditto.
21792 (*mmx_eq<mode>3): Ditto.
21793 (mmx_gt<mode>3): Ditto.
21794 (mmx_andnot<mode>3): Ditto.
21795 (*mmx_<code><mode>3): Ditto.
21796 (*mmx_pinsrw): Ditto.
21797 (*mmx_pextrw): Ditto.
21798 (mmx_pshufw_1): Ditto.
21799 (*mmx_uavgv8qi3): Ditto.
21800 (*mmx_uavgv4hi3): Ditto.
21801 ("mmx_psadbw): Ditto.
21802 * config/i386/sse.md (sse_cvtps2pi): Ditto.
21803 (sse_cvttps2pi): Ditto.
21804 (ssse3_pmaddubsw): Ditto.
21805 (*ssse3_pmulhrswv4hi3): Ditto.
21806 (ssse3_psign<mode>3): Ditto.
21808 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
21810 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
21811 adjustment for bit-fields to all aggregate types.
21813 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
21815 * config/rs6000/predicates.md (pcrel_address): Use
21816 SYMBOL_REF_LOCAL_P to determine if a label is local.
21817 (pcrel_external_address): New predicate.
21818 (non_prefixed_mem_operand): Delete, predicate not used.
21819 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
21820 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
21822 (SYMBOL_REF_PCREL_P): Likewise.
21825 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
21827 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
21828 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
21829 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
21831 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21833 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
21834 override on extra_headers.
21836 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21838 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
21839 * config/darwin-driver.c (darwin_default_min_version): Remove newline
21841 (darwin_driver_init): Likewise.
21843 2019-06-28 Jan Beulich <jbeulich@suse.com>
21845 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21846 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
21847 Eliminate redundant alternative.
21849 2019-06-28 Jan Beulich <jbeulich@suse.com>
21851 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21852 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
21853 Use vector_operand.
21855 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
21857 * config/arc/arc.c (arc_rtx_costs): All short instructions are
21858 having a lower cost regardless of the speed option.
21860 2019-06-28 Jan Beulich <jbeulich@suse.com>
21862 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
21863 vector_operand plus, on both alternatives, "Bm" constraint.
21865 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
21867 * config/arm/arm.md: Remove redundant constraints from
21868 define_expand but leave reload_inm and reload_outm patterns
21869 untouched since they need special constraints to work.
21870 * config/arm/arm-fixed.md: Remove redundant constraints from
21872 * config/arm/iwmmxt.md: Likewise.
21873 * config/arm/neon.md: Likewise.
21874 * config/arm/sync.md: Likewise.
21875 * config/arm/thumb1.md: Likewise.
21876 * config/arm/vec-common.md: Likewise.
21878 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
21880 * doc/install.texi: Document --disable-tm-clone-registry.
21882 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21885 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
21888 PR tree-optimization/91010
21889 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
21890 return true. Otherwise, don't call operand_equal_p if offset1 or
21891 offset2 is NULL and just return false.
21893 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21895 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
21896 user-specified float mode choice for kernel mode code.
21898 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21900 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
21903 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21905 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
21906 use longcall for 64b code.
21908 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
21910 * builtins.c (get_memory_rtx): Fix comment.
21911 * optabs.def (movmem_optab): Change to cpymem_optab.
21912 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
21913 (emit_block_move_hints): Change movmem to cpymem.
21914 * defaults.h: Change movmem to cpymem.
21915 * targhooks.c (get_move_ratio): Change movmem to cpymem.
21916 (default_use_by_pieces_infrastructure_p): Ditto.
21917 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
21918 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
21920 * config/aarch64/aarch64.h: Change movmem to cpymem.
21921 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
21922 * config/alpha/alpha.h: Change movmem to cpymem in comment.
21923 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
21925 * config/arc/arc-protos.h: Change movmem to cpymem.
21926 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
21927 * config/arc/arc.h: Change movmem to cpymem in comment.
21928 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
21929 * config/arm/arm-protos.h: Change movmem to cpymem in names.
21930 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
21931 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
21932 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
21933 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
21934 * config/avr/avr-protos.h: Change movmem to cpymem.
21935 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
21936 avr_out_movmem): Change movmem to cpymem.
21937 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
21938 Change movmem to cpymem.
21939 * config/bfin/bfin-protos.h: Change movmem to cpymem.
21940 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
21941 Change movmem to cpymem.
21942 * config/bfin/bfin.h: Change movmem to cpymem in comment.
21943 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
21944 * config/c6x/c6x-protos.h: Change movmem to cpymem.
21945 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
21946 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
21947 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
21948 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
21949 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
21950 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
21951 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
21952 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
21953 expand_small_cpymem_or_setmem,
21954 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
21955 expand_set_or_cpymem_constant_prologue,
21956 ix86_expand_set_or_cpymem): Change movmem to cpymem.
21957 * config/i386/i386-protos.h: Change movmem to cpymem.
21958 * config/i386/i386.h: Change movmem to cpymem in comment.
21959 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
21960 (setmem<mode>): Change expansion function name.
21961 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
21962 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
21963 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
21964 * config/m32c/m32c-protos.h: Change movmem to cpymem.
21965 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
21966 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
21967 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
21969 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
21970 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
21971 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
21972 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
21973 Change movmem to cpymem.
21974 * config/mips/mips.h: Change movmem to cpymem.
21975 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
21976 * config/nds32/nds32-memory-manipulation.c
21977 (nds32_expand_movmemsi_loop_unknown_size,
21978 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
21979 nds32_expand_movmemsi_unroll,
21980 nds32_expand_movmemsi): Change movmem to cpymem.
21981 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
21982 * config/nds32/nds32-protos.h: Change movmem to cpymem.
21983 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
21984 (pa_adjust_insn_length): Change call to compute_movmem_length.
21985 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
21986 movmemdi, movmemdi_prereload,
21987 movmemdi_postreload): Change movmem to cpymem.
21988 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
21989 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
21990 * config/riscv/riscv.c: Change movmem to cpymem in comment.
21991 * config/riscv/riscv.h: Change movmem to cpymem.
21992 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
21993 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
21994 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
21996 * config/s390/s390-protos.h: Change movmem to cpymem.
21997 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
21998 s390_expand_insv): Change movmem to cpymem.
21999 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22000 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22001 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22002 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22003 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22004 for nonexistent function.
22005 * config/vax/vax.h: Change movmem to cpymem in comment.
22006 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22007 * config/visium/visium.h: Change movmem to cpymem in comment.
22008 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22009 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22010 * doc/md.texi: Change movmem to cpymem and update description to match.
22011 * doc/rtl.texi: Change movmem to cpymem.
22012 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22013 * doc/tm.texi: Regenerate.
22015 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22017 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22018 -fvariable-expansion-in-unroller by default.
22019 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22022 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22025 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22026 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22028 * config.gcc(rs6000-*-*): Define target_gtfiles.
22030 2019-06-27 Jan Hubicka <jh@suse.cz>
22032 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22033 (add_type_duplicate): When odr hash is not allocated, to nothing.
22034 (odr_based_tbaa_p): New function.
22035 (set_type_canonical_for_odr_type): New function.
22036 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22037 set_type_canonical_for_odr_type): New.
22038 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22039 ODR based TBAA are not equivalent to non-ODR types.
22041 2019-06-27 Martin Liska <mliska@suse.cz>
22043 PR tree-optimization/90974
22044 PR rtl-optimization/90975
22045 PR rtl-optimization/90976
22047 PR tree-optimization/91017
22048 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22050 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22051 initial commit of IRA.
22052 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22054 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22055 Remove unused mode1.
22056 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22059 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22062 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22063 instead of register_operand for operands[1], add m to its constraints
22064 if operands[2] uses "C" constraint. Ensure in condition that if
22065 operands[2] is not 0, then operands[1] is not a MEM. For last two
22066 alternatives, use unaligned loads instead of aligned if operands[1] is
22067 misaligned_operand.
22069 2019-06-27 Martin Liska <mliska@suse.cz>
22071 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22073 * bt-load.c (move_btr_def): Likewise.
22074 * builtins.c (expand_builtin_apply_args_1): Likewise.
22075 (expand_builtin_apply): Likewise.
22076 * cfgexpand.c (expand_asm_stmt): Likewise.
22077 (construct_init_block): Likewise.
22078 * cfghooks.c (verify_flow_info): Likewise.
22079 * cfgloopmanip.c (remove_path): Likewise.
22080 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22081 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22082 * combine.c (simplify_if_then_else): Likewise.
22083 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22084 (choose_basereg): Likewise.
22085 (ix86_expand_prologue): Likewise.
22086 (ix86_preferred_output_reload_class): Likewise.
22087 * cselib.c (cselib_record_sets): Likewise.
22088 * df-scan.c (df_scan_alloc): Likewise.
22089 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22090 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22091 * emit-rtl.c (try_split): Likewise.
22092 * graphite-scop-detection.c (assign_parameter_index_in_region):
22094 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22095 * ira-color.c (setup_profitable_hard_regs): Likewise.
22096 * ira.c (rtx_moveable_p): Likewise.
22097 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22098 * read-rtl.c (read_subst_mapping): Likewise.
22099 * regrename.c (scan_rtx): Likewise.
22100 * reorg.c (fill_slots_from_thread): Likewise.
22101 * tree-inline.c (tree_function_versioning): Likewise.
22102 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22103 * tree-ssa-sink.c (statement_sink_location): Likewise.
22104 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22105 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22106 (vect_create_epilog_for_reduction): Likewise.
22107 * tree.c (build_nonstandard_integer_type): Likewise.
22109 2019-06-27 Richard Biener <rguenther@suse.de>
22111 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22113 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22115 PR tree-optimization/89772
22116 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22117 out-of-bound accesses checking.
22119 2019-06-27 Martin Liska <mliska@suse.cz>
22121 PR tree-optimization/91014
22122 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22123 when LHS is NULL_TREE.
22125 2019-06-27 Martin Liska <mliska@suse.cz>
22127 * symbol-summary.h (traverse): Pass
22128 argument a to the call of callback.
22129 (gt_ggc_mx): Mark arguments as unused.
22130 (gt_pch_nx): Likewise.
22132 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22135 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22138 2019-06-26 Jeff Law <law@redhat.com>
22140 PR tree-optimization/90883
22141 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22142 (delete_dead_or_redundant_assignment): Likewise.
22144 PR tree-optimization/90883
22145 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22146 * tree-ssa-dse.c: Update various comments to distinguish between
22147 dead and redundant stores.
22148 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22149 (dse_optimize_redundant_stores): New function.
22150 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22151 Distinguish between dead and redundant calls in dump output. All
22153 (delete_dead_or_redundant_assignment): Similarly for assignments.
22154 (dse_optimize_stmt): Handle _CHK variants. For statements which
22155 store 0 into multiple memory locations, try to prove a subsequent
22156 store is redundant.
22158 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22161 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22162 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22164 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22166 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22167 (branch_islands): New extern.
22168 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22169 * config/rs6000/rs6000.c: .. here.
22171 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22173 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22174 (powerpc*-*-*) ... to here.
22176 2019-06-26 Jeff Law <law@redhat.com>
22178 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22179 memcpy, memmove and memset builtins.
22180 (maybe_trim_memstar_call): Likewise.
22182 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22184 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22186 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22188 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22190 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22192 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22194 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22196 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22199 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22201 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22203 2019-06-26 Richard Biener <rguenther@suse.de>
22206 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22208 2019-06-26 Richard Biener <rguenther@suse.de>
22210 * lto-streamer.h (lto_bitmap_alloc): Remove.
22211 (lto_bitmap_free): Likewise.
22212 * lto-streamer.c (lto_bitmap_alloc): Remove.
22213 (lto_bitmap_free): Likewise.
22214 (lto_obstack): Likewise.
22215 (lto_obstack_initialized): Likewise.
22216 * lto-streamer-out.c (lto_output): Use own obstack for local
22217 bitmap, free it consistently.
22219 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22222 * config/i386/sse.md
22223 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22224 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22225 insns if operands[2] is misaligned_operand.
22227 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22229 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22231 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22234 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22236 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22238 2019-06-26 Martin Liska <mliska@suse.cz>
22240 PR tree-optimization/90973
22241 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22242 epilogue_cost_vec instead of prologue_cost_vec for
22245 2019-06-26 Martin Liska <mliska@suse.cz>
22247 * bb-reorder.c (connect_better_edge_p): Add missing else
22248 statement in the middle of if-else statements.
22250 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22251 H.J. Lu <hongjiu.lu@intel.com>
22252 Olga Makhotina <olga.makhotina@intel.com>
22254 * common/config/i386/i386-common.c
22255 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22256 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22257 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22258 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22259 (ix86_handle_option): Handle -mavx512vp2intersect.
22260 * config/i386/avx512vp2intersectintrin.h: New.
22261 * config/i386/avx512vp2intersectvlintrin.h: New.
22262 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22263 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22264 AVX512VP2INTERSECT.
22265 * config/i386/i386-builtin-types.def: Add new types.
22266 * config/i386/i386-builtin.def: Add new builtins.
22267 * config/i386/i386-builtins.c: (enum processor_features): Add
22268 F_AVX512VP2INTERSECT.
22269 (static const _isa_names_table isa_names_table): Ditto.
22270 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22271 __AVX512VP2INTERSECT__.
22272 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22273 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22274 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22275 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22276 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22277 * config/i386/i386-options.c (ix86_target_string): Add
22278 -mavx512vp2intersect.
22279 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22280 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22281 P2HImode and P2QImode.
22282 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22283 number for P2QImode and P2HImode.
22284 (ix86_regmode_natural_size): New function.
22285 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22286 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22287 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22288 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22289 * config/i386/i386.opt: Add -mavx512vp2intersect.
22290 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22291 avx512vp2intersectvlintrin.h.
22292 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22293 (define_mode_iterator VI48_AVX512VP2VL): New.
22294 (avx512vp2intersect_2intersect<mode>,
22295 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22296 * config.gcc: Add avx512vp2intersectvlintrin.h and
22297 avx512vp2intersectintrin.h to extra_headers.
22298 * doc/invoke.texi: Document -mavx512vp2intersect.
22300 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22302 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22304 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22306 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22307 savres_routine_syms, savres_routine_name, morestack_ref,
22308 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22309 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22310 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22311 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22312 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22313 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22314 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22315 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22316 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22317 get_stack_clash_protection_probe_interval,
22318 get_stack_clash_protection_guard_size,
22319 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22320 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22321 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22322 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22323 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22324 gen_frame_mem_offset, rs6000_savres_routine_name,
22325 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22326 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22327 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22328 rs6000_global_entry_point_prologue_needed_p,
22329 rs6000_get_separate_components, rs6000_components_for_bb,
22330 rs6000_disqualify_components, rs6000_emit_prologue_components,
22331 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22332 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22333 rs6000_output_savres_externs, rs6000_output_function_prologue,
22334 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22335 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22336 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22337 rs6000_output_function_epilogue, gen_add3_const,
22338 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22339 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22341 (machine_function): Moved to rs6000.h.
22342 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22344 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22345 savres_routine_syms, savres_routine_name, morestack_ref,
22346 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22347 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22348 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22349 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22350 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22351 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22352 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22353 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22354 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22355 get_stack_clash_protection_probe_interval,
22356 get_stack_clash_protection_guard_size,
22357 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22358 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22359 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22360 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22361 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22362 gen_frame_mem_offset, rs6000_savres_routine_name,
22363 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22364 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22365 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22366 rs6000_global_entry_point_prologue_needed_p,
22367 rs6000_get_separate_components, rs6000_components_for_bb,
22368 rs6000_disqualify_components, rs6000_emit_prologue_components,
22369 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22370 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22371 rs6000_output_savres_externs, rs6000_output_function_prologue,
22372 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22373 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22374 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22375 rs6000_output_function_epilogue, gen_add3_const,
22376 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22377 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22378 to here from rs6000.c.
22379 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22380 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22381 quad_address_offset_p) Moved to here from rs6000.c.
22382 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22383 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22386 2019-06-25 Martin Liska <mliska@suse.cz>
22388 * hash-table.c (hashtab_chk_error): Move here from ...
22389 * hash-table.h (hashtab_chk_error): ... here.
22391 2019-06-25 Martin Liska <mliska@suse.cz>
22393 PR tree-optimization/90978
22394 * df-scan.c (df_update_entry_block_defs): Remove dead else
22396 (df_update_exit_block_uses): Likewise.
22398 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22399 Andrew Stubbs <ams@codesourcery.com>
22401 * config.gcc (thread_file): Set to gcn for AMD GCN.
22402 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22403 (TARGET_EMUTLS_VAR_INIT): New hook.
22405 2019-06-25 Martin Jambor <mjambor@suse.cz>
22408 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22410 2019-06-25 Richard Biener <rguenther@suse.de>
22412 PR tree-optimization/90930
22413 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22414 into parallel form in the last pass instance.
22416 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22418 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22419 (arc_legitimize_pic_address): Simplify and cleanup the function.
22420 (SYMBOLIC_CONST): Remove.
22421 (prepare_pic_move): Likewise.
22422 (prepare_move_operands): Handle complex mov cases here.
22423 (arc_legitimize_address_0): Remove call to
22424 arc_legitimize_pic_address.
22425 (arc_legitimize_address): Remove call to
22426 arc_legitimize_tls_address.
22427 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22428 (movhi_insn): Likewise.
22430 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22432 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22434 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22435 format of "__intN" types for UINTMAX_TYPE.
22436 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22437 format of "__intN" types for SIZETYPE.
22438 * tree.c (build_common_tree_nodes): Accept "__intN__"
22439 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22440 * doc/invoke.texi: Document that __intN__ disables pedantic
22443 2019-06-25 Jan Hubicka <jh@suse.cz>
22445 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22446 base2_alias_set is non-zero before doing TBAA based disambiguation.
22448 2019-06-25 Martin Liska <mliska@suse.cz>
22450 PR tree-optimization/90973
22451 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22452 of prologue and epilogue.
22454 2019-06-24 Jan Hubicka <jh@suse.cz>
22456 * ipa-utils.h (type_with_linkage_p): Verify that type is
22458 (odr_type_p): Remove extra return.
22459 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22460 hash STRING_FLAG only for arrays and integers.
22461 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22462 Update analogously.
22463 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22465 * print-tree.c (print_node): Print cxx-odr-p
22467 * tree.c (need_assembler_name_p): Also check that type
22469 (verify_type_variant): Update verification of SRING_FLAG;
22470 also check CXX_ODR_P.
22471 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22472 (TYPE_STRING_FLAG): Use it.
22473 (TYPE_CXX_ODR_P): New macro.
22474 * dwarf2out.c (gen_array_type_die): First check that type
22475 is an array and then test string flag.
22477 2019-06-24 Richard Biener <rguenther@suse.de>
22479 PR tree-optimization/90972
22480 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22481 in common code, dealing with STRING_CST properly.
22483 2019-06-24 Richard Biener <rguenther@suse.de>
22485 PR tree-optimization/90930
22486 PR tree-optimization/90316
22487 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22488 decrement of limit.
22490 2019-06-24 Martin Sebor <msebor@redhat.com>
22492 * tree-pretty-print.h: Remove unnecessary punctuation characters
22494 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22496 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22498 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22499 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22500 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22502 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22504 * config/rs6000/darwin.h: Handle GCC target pragma.
22506 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22508 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22510 2019-06-22 Jeff Law <law@redhat.com>
22512 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22514 2019-06-22 Jan Hubicka <jh@suse.cz>
22516 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22517 give up on bitfields; continue searching for different refs
22520 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22522 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22523 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22524 containing the offset as possible simd lane access. Look through
22525 widening conversion. Move the
22526 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22528 2019-06-21 Richard Biener <rguenther@suse.de>
22530 PR tree-optimization/90930
22531 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22532 flag on new stmts to avoid re-processing them.
22534 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
22536 PR c++/90875 - added -Wswitch-outside-range option
22537 * doc/invoke.texi (Wswitch-outside-range): Document.
22539 2019-06-21 Jeff Law <law@redhat.com>
22541 PR tree-optimization/90949
22542 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
22543 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
22545 2019-06-21 Richard Biener <rguenther@suse.de>
22548 * dwarf2out.c (prune_unused_types_walk): Always consider
22549 function-local extern declarations as used.
22551 2019-06-21 Richard Biener <rguenther@suse.de>
22553 PR tree-optimization/90913
22554 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
22555 the scalar variant of if-conversion versioning.
22557 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22559 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
22560 create another "omp scan inscan exclusive" array if
22561 !ctx->scan_inclusive.
22562 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
22563 (lower_omp_scan): Likewise.
22564 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
22565 2-bit bitfield for simd_lane_access_p member.
22566 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
22567 aux == (void *)-4 as simd lane access.
22568 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
22569 comment with permutations to show the canonical permutation order.
22570 (vectorizable_scan_store): Handle exclusive scan.
22571 (vectorizable_store): Call vectorizable_scan_store even for
22572 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
22574 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22575 "omp simd array" arrays with one byte elements.
22577 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
22579 * config/alpha/alpha.md (@unaligned_store<mode>):
22580 Rename from unaligned_store<mode>.
22581 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
22582 * config/alpha/sync.md (@load_locked_<mode>): Rename
22583 from load_locked_<mode>.
22584 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
22585 (@atomic_compare_and_swap<mode>_1): Rename
22586 from atomic_compare_and_swap<mode>_1.
22587 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
22588 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
22589 Use gen_reload_in_aligned and gen_unaligned_store.
22590 (emit_load_locked): Remove.
22591 (emit_store_conditional): Ditto.
22592 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
22593 (alpha_split_compare_and_swap): Ditto.
22594 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
22595 (alpha_split_compare_and_swap_12): Use gen_load_locked
22596 and gen_store_conditional.
22597 (alpha_split_atomic_exchange): Ditto.
22598 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
22599 (alpha_split_atomic_exchange_12): Use gen_load_locked
22600 and gen_store_conditional.
22602 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
22604 * config/aarch64/aarch64-errata.h: New file.
22605 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
22606 (CA53_ERR_843419_SPEC): Delete.
22607 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
22608 * config/aarch64/aarch64-linux.h: Likewise.
22609 * config/aarch64/aarch64-netbsd.h: Likewise.
22610 * config/aarch64/aarch64-freebsd.h: Likewise.
22612 2019-06-20 Marek Polacek <polacek@redhat.com>
22614 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
22616 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
22618 * config/rs6000/rs6000.md (isa attribute): Add support for
22619 for a future processor.
22621 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
22624 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
22625 standard scalar operation pattern for V2DF.
22626 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
22627 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
22628 (*ieee_<ieee_maxmin><mode>3): Likewise.
22629 (vec_setv2df_0): Likewise.
22631 2019-06-20 Jan Hubicka <jh@suse.cz>
22633 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
22634 parameter; it has no use in gimple memory model.
22635 (indirect_ref_may_alias_decl_p): Update.
22637 2019-06-20 Martin Liska <mliska@suse.cz>
22639 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
22642 2019-06-20 Jakub Jelinek <jakub@redhat.com>
22644 * tree-vect-stmts.c (enum scan_store_kind): New type.
22645 (scan_store_can_perm_p): Change last argument from int * to
22646 vec<enum scan_store_kind> *, record precisely which permutations
22647 need whole vector left shift or that plus VEC_COND_EXPR.
22648 (vectorizable_scan_store): Adjust caller, use whole vector left shift
22649 and additional VEC_COND_EXPR only for those iterations that need it.
22651 2019-06-20 Alexandre Oliva <oliva@adacore.com>
22653 * config.gcc: Fix ARM --with-fpu checking and error message.
22655 2019-06-19 Marek Polacek <polacek@redhat.com>
22657 PR c++/60364 - noreturn after first decl not diagnosed.
22658 * attribs.c (get_attribute_namespace): No longer static.
22659 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
22661 (attr_noreturn_exclusions): Make it extern.
22662 * attribs.h (get_attribute_namespace): Declare.
22663 * tree-inline.c (function_attribute_inlinable_p): Use
22664 get_attribute_name.
22666 2019-06-19 Martin Sebor <msebor@redhat.com>
22668 PR tree-optimization/90626
22669 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
22671 PR tree-optimization/90626
22672 * tree-ssa-strlen.c (strxcmp_unequal): New function.
22673 (handle_builtin_string_cmp): Call it.
22675 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22677 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
22678 and DARWIN_NOPIE_SPEC.
22679 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
22680 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
22681 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
22682 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
22683 (DARWIN_EXPORT_DYNAMIC): Delete.
22684 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
22685 and pie options processing to darwin.h.
22686 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
22688 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22690 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
22691 in computing the number of options to be moved.
22693 2019-06-19 Maya Rashish <coypu@sdf.org>
22695 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
22696 (CLEAR_INSN_CACHE) Use it.
22698 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
22700 * config/i386/i386.md (cmpstrnsi): Remove dead code.
22702 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
22704 PR middle-end/84521
22705 * builtins.c (expand_builtin_setjmp_setup): Save
22706 hard_frame_pointer_rtx.
22707 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
22709 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
22711 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
22713 (remove_reg_equal_offset_note): Remove unused function.
22714 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
22716 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22717 (arc_builtin_setjmp_frame_value): Remove function.
22718 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22719 (avr_builtin_setjmp_frame_value): Remove function.
22720 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22721 (ix86_builtin_setjmp_frame_value): Remove function.
22722 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
22723 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22724 (sparc_builtin_setjmp_frame_value): Remove function.
22725 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22726 (vax_builtin_setjmp_frame_value): Remove function.
22727 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
22728 pointer if has_nonlocal_label.
22730 2019-06-19 Jakub Jelinek <jakub@redhat.com>
22732 * doc/md.texi: Document vec_shl_<mode> pattern.
22733 * optabs.def (vec_shl_optab): New optab.
22734 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
22735 argument, if == vec_shl_optab, check for left whole vector shift
22736 pattern rather than right shift.
22737 (expand_vec_perm_const): Add vec_shl_optab support.
22738 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
22740 * tree-vect-generic.c (lower_vec_perm): Support permutations which
22741 can be handled by vec_shl_optab.
22742 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
22743 (check_scan_store): Use it.
22744 (vectorizable_scan_store): If target can't do normal permutations,
22745 try to use whole vector left shifts and if needed a VEC_COND_EXPR
22747 * config/i386/sse.md (vec_shl_<mode>): New expander.
22749 * omp-low.c (lower_rec_input_clauses): Handle references properly
22751 (lower_omp_scan): Likewise.
22753 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22755 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
22756 mem_mode is BLKmode.
22758 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
22761 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
22762 pointer adjustment for the case of no callee-saved registers and
22763 stack frame bigger than 128 bytes.
22765 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
22767 PR middle-end/90862
22768 * omp-low.c (check_omp_nesting_restrictions): Handle
22769 GF_OMP_TARGET_KIND_OACC_DECLARE.
22771 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
22773 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
22774 (@add<mode>3_carry): Rename from add<mode>3_carry.
22775 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
22776 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
22777 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
22778 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
22779 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
22780 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
22781 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
22782 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
22783 (cmpstrnsi): Use gen_cmp_1.
22784 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
22785 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
22786 (@umonitor_<mode>): Rename from umonitor_<mode>.
22787 * config/i386/i386-expand.c (ix86_expand_copysign):
22788 Use gen_copysign3_const and gen_copysign3_var.
22789 (ix86_expand_xorsign): Use gen_xorsign3_1.
22790 (ix86_expand_branch): Use gen_sub3_carry_ccc,
22791 gen_sub3_carry_ccgz and gen_cmp1.
22792 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
22793 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
22794 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
22795 (ix86_split_lshr): Ditto.
22796 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
22798 2019-06-18 Jason Merrill <jason@redhat.com>
22800 * tree.c (build_constructor): Add MEM_STAT_DECL.
22802 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22804 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
22805 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
22806 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
22807 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
22808 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
22809 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
22810 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
22811 Use CC_NZC instead of CC.
22812 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
22813 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
22814 (aarch64_print_operand): Handle E_CC_NZCmode.
22815 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
22816 of gen_set_clobber_cc.
22818 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22820 * config/aarch64/aarch64-sve.md: Tabify file.
22822 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22824 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
22825 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
22826 * config/aarch64/aarch64-sve.md: Use it.
22828 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22830 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
22831 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
22832 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
22833 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
22834 (aarch64_expand_sve_vec_cmp_int): Use it.
22835 (aarch64_expand_sve_vec_cmp_float): Likewise.
22836 * config/aarch64/aarch64-sve.md: Likewise throughout.
22838 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22839 Kugan Vivekanandarajah <kuganv@linaro.org>
22841 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
22842 (*cond_<optab><mode>_z): Fold into...
22843 (*cond_<optab><mode>_any): ...here. Also handle cases in which
22844 operand 4 can be tied to operand 0 (either inherently or via RA).
22846 2019-06-18 Richard Biener <rguenther@suse.de>
22849 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
22850 as if optimized away.
22852 2019-06-18 Tom de Vries <tdevries@suse.de>
22854 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
22855 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
22856 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
22858 (define_insn "@set_softstack_<mode>"): ... this.
22859 (define_insn "omp_simt_enter_<mode>"): Rename to ...
22860 (define_insn "@omp_simt_enter_<mode>"): ... this.
22861 (define_insn "omp_simt_exit_<mode>"): Rename to ...
22862 (define_insn "@omp_simt_exit_<mode>"): ... this.
22864 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22866 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
22867 vf parameter. Restore the previous iv step of nscalars_step,
22868 but give it iv_type rather than compare_type. Tweak code order
22869 to match the comments.
22870 (vect_set_loop_condition_masked): Update accordingly.
22871 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
22872 for iv_precision. Tweak comment formatting.
22874 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22876 * config/darwin.c: Strip trailing whitespace.
22878 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22880 * config/darwin.c (darwin_emit_unwind_label): New default to false.
22881 (darwin_override_options): Set darwin_emit_unwind_label as needed.
22883 2019-06-18 Martin Jambor <mjambor@suse.cz>
22886 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
22887 caller does not have flag_ipa_cp set.
22889 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22891 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
22892 from "*fold_left_plus_<mode>", updated operands order.
22893 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
22894 * internal-fn.c (mask_fold_left_direct): New define.
22895 (expand_mask_fold_left_optab_fn): Likewise.
22896 (direct_mask_fold_left_optab_supported_p): Likewise.
22897 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
22898 * optabs.def (mask_fold_left_plus_optab): New optab.
22899 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
22900 masked internal_fn for a reduction ifn.
22901 (vectorize_fold_left_reduction): Add support for masking reductions.
22903 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
22905 PR middle-end/80791
22906 * target.def (predict_doloop_p): New hook.
22907 * targhooks.h (default_predict_doloop_p): New declaration.
22908 * targhooks.c (default_predict_doloop_p): New function.
22909 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
22910 * doc/tm.texi: Regenerate.
22911 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
22912 (TARGET_PREDICT_DOLOOP_P): New macro.
22913 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
22915 2019-06-17 Jakub Jelinek <jakub@redhat.com>
22917 * omp-low.c (struct omp_context): Add scan_inclusive field.
22918 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
22920 (struct omplow_simd_context): Add lastlane member.
22921 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
22922 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
22924 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
22925 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
22926 (lower_omp_scan): New function.
22927 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
22928 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
22929 check 3rd argument if present rather than 2nd.
22930 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
22931 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
22933 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22934 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
22936 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
22937 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
22938 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
22940 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
22941 IFN_GOMP_SIMD_LANE argument.
22942 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
22943 encoded ->aux value.
22944 * tree-vect-stmts.c: Include attribs.h.
22945 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
22946 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
22948 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
22949 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
22951 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
22954 * config/i386/i386.md (*nabstf2_1): New insn pattern.
22955 (*nabs<mode>2_1): Ditto.
22956 (nabs sse-reg splitter): New splitter.
22957 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
22959 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22961 PR bootstrap/90873.
22962 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
22965 2019-06-17 Tom de Vries <tdevries@suse.de>
22967 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
22968 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
22969 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
22971 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
22973 (define_insn "omp_simt_enter_insn"): Rename to ...
22974 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
22975 match_operand 0, 1 and 2, as well as the unspec_volatile result.
22976 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
22977 gen_omp_simt_enter_si.
22978 (define_expand "omp_simt_exit"): New.
22979 (define_insn "omp_simt_exit"): Rename to ...
22980 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
22983 2019-06-17 Matthew Green <mrg@eterna.com.au>
22984 Maya Rashish <coypu@sdf.org>
22986 * config.gcc (aarch64*-*-netbsd*): New target.
22987 * config/aarch64/aarch64-netbsd.h: New file.
22988 * config/aarch64/t-aarch64-netbsd: Likewise.
22990 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22992 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
22993 the access path from base to first VIEW_CONVERT_EXPR or
22996 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22998 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
22999 access path on BIT_FIELD_REFs.
23001 2019-06-17 Martin Liska <mliska@suse.cz>
23004 * ipa-utils.h (odr_type_p): Remove dead code.
23006 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23008 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23009 alternative Solaris 11.4 format.
23010 * configure: Regenerate.
23012 2019-06-17 Tom de Vries <tdevries@suse.de>
23014 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23015 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23017 (define_insn "call_value_insn"): Rename to ...
23018 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23020 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23023 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23025 PR middle-end/64242
23026 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23027 frame clobbers and schedule block.
23028 (builtin_longjmp): Likewise.
23030 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23032 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23033 describe how to perform MSPABI compliant 64-bit shift.
23034 * config/msp430/msp430.md (ashldi3): New define_expand.
23035 (ashrdi3): New define_expand.
23036 (lshrdi3): New define_expand.
23038 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23040 * doc/sourcebuild.texi: Document new effective target keyword
23043 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23045 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23046 indirect_refs_may_alias_p): Revert accidental commits.
23048 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23049 at the end of structures.
23051 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23053 * config/darwin.c (machopic_indirect_call_target): Use renamed
23054 darwin_picsymbol_stubs to decide on output.
23055 (darwin_override_options): Handle darwin_picsymbol_stubs.
23056 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23057 (LD64_VERSION): Revise default.
23058 * config/darwin.opt: (mpic-symbol-stubs): New option.
23059 (darwin_picsymbol_stubs): New variable.
23060 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23061 rename to TARGET_MACHO_PICSYM_STUBS.
23062 * config/i386/i386.c (output_pic_addr_const): Likewise.
23063 * config/i386/i386.h Likewise.
23064 * config/rs6000/darwin.h: Likewise.
23065 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23066 darwin_picsymbol_stubs.
23068 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23070 * config/darwin.opt (prebind, noprebind, seglinkedit,
23071 noseglinkedit): Add RejectNegative.
23073 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23075 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23076 in my previous patch.
23078 2019-06-16 Tom de Vries <tdevries@suse.de>
23080 PR tree-optimization/89376
23081 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23083 2019-06-15 Maya Rashish <coypu@sdf.org>
23085 * doc/invoke.texi (Spec Files): Update location of the
23088 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23090 * doc/extend.texi (Common Function Attributes): Clarify
23091 no_sanitize. Fix grammar.
23093 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23095 * tree-ssa-alias.c (alias_stats): Add
23096 nonoverlapping_component_refs_p_may_alias,
23097 nonoverlapping_component_refs_p_no_alias,
23098 nonoverlapping_component_refs_of_decl_p_may_alias,
23099 nonoverlapping_component_refs_of_decl_p_no_alias.
23100 (dump_alias_stats): Dump them.
23101 (nonoverlapping_component_refs_of_decl_p): Add stats.
23102 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23105 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23107 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23108 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23110 (*anddi3_doubleword): Split before reload. Merge with
23111 anddi->zext pre-reload splitter.
23112 (*andndi3_doubleword): Split before reload.
23113 (*<code>di3_doubleword): Ditto.
23114 (*one_cmpldi2_doubleword): Ditto.
23116 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23118 PR middle-end/90779
23119 * gimplify.c: Include omp-offload.h and context.h.
23120 (gimplify_bind_expr): Add "omp declare target" attributes
23121 to static block scope variables inside of target region or target
23124 2019-06-15 Tom de Vries <tdevries@suse.de>
23126 PR tree-optimization/90009
23127 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23128 Return NULL if bb contains IFN_UNIQUE.
23130 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23132 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23133 (un): New define_mode_attr.
23134 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23135 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23136 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23138 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23140 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23142 * config/darwin.opt: Add RejectNegative where needed, reorder
23143 and add minimal functional descriptions.
23145 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23147 PR rtl-optimization/90765
23148 * calls.c (update_stack_alignment_for_call): New function.
23149 (expand_call): Call update_stack_alignment_for_call when
23150 outgoing parameter is passed in the stack.
23151 (emit_library_call_value_1): Likewise.
23152 * function.c (locate_and_pad_parm): Don't update
23153 stack_alignment_needed and preferred_stack_boundary.
23155 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23158 * config/i386/i386-features.c
23159 (dimode_scalar_chain::compute_convert_gain): Replace
23160 mmxsse_to_integer with sse_to_integer.
23161 * config/i386/i386.c (ix86_register_move_cost): Verify that
23162 moves between MMX and non-MMX units require secondary memory.
23163 Correct costs of moves between SSE and integer units.
23164 * config/i386/i386.h (processor_costs): Rename cost of moving
23165 SSE register to integer to sse_to_integer. Rename cost of
23167 2019-06-14 Matt Thomas <matt@3am-software.com>
23168 Matthew Green <mrg@eterna.com.au>
23169 Nick Hudson <skrll@netbsd.org>
23170 Maya Rashish <coypu@sdf.org>
23171 Richard Earnshaw <rearnsha@arm.com>
23173 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23174 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23175 * config/arm/netbsd-eabi.h: New file.
23176 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23178 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23179 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23180 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23181 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23183 2019-06-14 Richard Biener <rguenther@suse.de>
23185 * tree-loop-distribution.c (classify_partition): Return
23186 whether a reduction appeared in all partitions and do not
23187 stop builtin detection because of this.
23188 (distribute_loop): Sort a non-builtin partition last if
23189 there's a reduction in all partitions and make sure the
23190 partition prevailing as last is not a builtin.
23192 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23195 * ipa-prop.c (add_to_agg_contents_list): New function.
23196 (clobber_by_agg_contents_list_p): Likewise.
23197 (extract_mem_content): Likewise.
23198 (get_place_in_agg_contents_list): Delete.
23199 (determine_known_aggregate_parts): Renamed from
23200 determine_locally_known_aggregate_parts. New parameter
23203 2019-06-13 Martin Sebor <msebor@redhat.com>
23205 PR tree-optimization/90662
23206 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23209 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23212 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23213 dbase is not TARGET_MEM_REF.
23215 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23217 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23219 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23220 Do not generate DImode extends for 32bit targets.
23221 (and->zext post-reload splitter): Use gen_extend_insn
23222 instead of indirect functions.
23223 (anddi->zext pre-reload splitter): New.
23224 (*zext<mode>_doubleword_and): Remove.
23225 (*zext<mode>_doubleword): Ditto.
23226 (*zextsi_doubleword): Dittto.
23228 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23230 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23231 Use gen_sub3_insn instead of indirect function.
23232 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23234 (ix86_adjust_counter): Ditto.
23236 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23237 Lijia He <helijia@linux.ibm.com>
23239 PR tree-optimization/77820
23240 * tree-ssa-threadedge.c
23241 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23243 (thread_across_edge): Add call to
23244 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23246 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23248 * config/darwin-driver.c (validate_macosx_version_min): New.
23249 (darwin_default_min_version): Cleanup and validate supplied version.
23250 (darwin_driver_init): Likewise and push cleaned version into opts.
23252 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23254 PR tree-optimization/90869
23255 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23256 converts in MEM_REF referencing decl rather than view converts
23257 from decl type to MEM_REF type.
23259 2019-06-13 Richard Biener <rguenther@suse.de>
23261 PR tree-optimization/90856
23262 * tree-sra.c (build_ref_for_model): Only use
23263 build_reconstructed_reference when address-spaces are the same.
23265 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23267 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23268 wrap ei variable name in the declaration in ()s.
23269 (nvptx_single): Actually use mode_label variable. Formatting fix.
23271 2019-06-13 Richard Biener <rguenther@suse.de>
23273 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23274 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23275 also return the condition stmt.
23276 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23277 loop we can version and version that, reusing the loop version
23278 created by if-conversion instead of versioning again.
23280 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23282 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23284 * tree-vrp (value_range_base::may_contain_p): Call into
23285 value_inside_range.
23286 (value_inside_range): Make private inside value_range_base class.
23287 Take min/max from *this.
23288 (range_includes_p): Remove.
23289 * tree-vrp.h (value_range_base): Add value_inside_range.
23290 (range_includes_p): Remove.
23291 (range_includes_zero_p): Call may_contain_p.
23292 * vr-values.c (compare_range_with_value): Same.
23294 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23296 * doc/extend.texi (ARC Function Attributes): Update info.
23298 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23300 PR tree-optimization/89713
23301 * doc/invoke.texi (-ffinite-loops): Document new option.
23302 * common.opt (-ffinite-loops): New option.
23303 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23304 IFN_GOACC_LOOP calls as necessary.
23305 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23307 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23308 IFN_GOACC_LOOP call is not used.
23309 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23311 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23314 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23315 compare_type is not with Pmode size, we will create an IV with
23316 Pmode size with truncated use (i.e. converted to the correct type).
23317 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23318 (vect_iv_limit_for_full_masking): New. Factored out of
23319 vect_set_loop_condition_masked.
23320 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23321 (vect_iv_limit_for_full_masking): Declare.
23323 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23326 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23327 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23328 (get_alias_ptr_type_for_ptr_address): Likewise.
23329 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23330 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23331 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23334 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23336 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23338 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23340 * common/config/pru/pru-common.c: New file.
23341 * config.gcc: Add PRU target.
23342 * config/pru/alu-zext.md: New file.
23343 * config/pru/constraints.md: New file.
23344 * config/pru/predicates.md: New file.
23345 * config/pru/pru-opts.h: New file.
23346 * config/pru/pru-passes.c: New file.
23347 * config/pru/pru-pragma.c: New file.
23348 * config/pru/pru-protos.h: New file.
23349 * config/pru/pru.c: New file.
23350 * config/pru/pru.h: New file.
23351 * config/pru/pru.md: New file.
23352 * config/pru/pru.opt: New file.
23353 * config/pru/t-pru: New file.
23354 * doc/extend.texi: Document PRU pragmas.
23355 * doc/invoke.texi: Document PRU-specific options.
23356 * doc/md.texi: Document PRU asm constraints.
23358 2019-06-12 Martin Sebor <msebor@redhat.com>
23360 PR middle-end/90676
23361 * tree-pretty-print.c (dump_mem_ref): New function. Include
23362 MEM_REF type in output when different size than operand.
23363 (dump_generic_node): Move code to dump_mem_ref and call it.
23365 2019-06-12 Martin Sebor <msebor@redhat.com>
23367 PR tree-optimization/90662
23368 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23371 2019-06-12 Tom de Vries <tdevries@suse.de>
23373 PR tree-optimization/90009
23374 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23376 2019-06-12 Martin Liska <mliska@suse.cz>
23378 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23380 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23381 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23382 Do not sanitize created maps.
23384 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23386 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23387 value_range::singleton_p.
23388 * tree-vrp.c (value_range_constant_singleton): Remove.
23389 * tree-vrp.h (value_range_constant_singleton): Remove.
23390 * vr-values.c (vr_values::singleton): Use
23391 value_range::singleton_p.
23393 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23396 * cfgexpand.c (align_local_variable): Add really_expand argument,
23397 don't SET_DECL_ALIGN if it is false.
23398 (add_stack_var): Add really_expand argument, pass it through to
23399 align_local_variable.
23400 (expand_one_stack_var_1): Pass true as really_expand to
23401 align_local_variable.
23402 (expand_one_ssa_partition): Pass true as really_expand to
23404 (expand_one_var): Pass really_expand through to add_stack_var.
23406 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23408 * config/arm/iterators.md (VABAL): New int iterator.
23409 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23410 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23411 UNSPEC_VABAL_U values.
23413 2019-06-12 Martin Liska <mliska@suse.cz>
23415 * value-prof.c (stream_out_histogram_value): Only first value
23418 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23421 * symtab.c (symtab_node::set_section): Allow being called on aliases
23422 as long as they aren't analyzed yet.
23424 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23426 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23427 to `mips_set_text_contents_type' to indicate whether a
23428 non-debug insn follows.
23430 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23432 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23433 enabling -mpcrel by default.
23434 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23435 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23436 that the test against -mcpu=future is done first. Then test if
23437 -mprefixed-addr is on for -mpcrel.
23438 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23440 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23443 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23444 instead of and.u%d.
23446 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23448 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23450 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23452 PR c++/90449 - add -Winaccessible-base option.
23453 * doc/invoke.texi (Winaccessible-base): Document.
23455 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23457 PR tree-optimization/62041
23458 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23460 2019-06-11 Jason Merrill <jason@redhat.com>
23462 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23463 * tree.c (get_tree_code_name): Likewise.
23464 * print-tree.c (print_node): Only briefly print a node with an
23467 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23470 * trans-mem.c (tm_memopt_compute_available): Add assertion
23471 that blocks is not empty. Formatting fix.
23473 2019-06-11 Martin Liska <mliska@suse.cz>
23476 * hash-table.h: Extend create_gcc, add one parameter
23477 that is passed into hash_table::hash_table.
23479 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23481 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23483 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23484 Emit clobber also for non-sse operations.
23485 (ix86_split_fp_absneg_operator): New function.
23486 * config/i386/i386.md (SSEMODEF): New mode iterator.
23487 (ssevecmodef): New mode attribute.
23488 (<code>tf2): Use absneg code iterator.
23489 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23490 Add three-operand AVX alternatives.
23491 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23492 Use absneg code iterator and X87MODEF mode iterator.
23493 (absneg fp_reg non-sse splitter): Call absneg code iterator
23494 and X87MODEF mode iterator.
23495 (absneg general_reg non-sse splitter): Use absneg code iterator
23496 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23497 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23498 code iterator. Add three-operand AVX alternative.
23499 (absneg sse_reg splitter): Use absneg code iterator
23500 and SSEMODEF mode iterator. Handle AVX operands.
23501 (absneg fp_reg splitter): Use absneg code iterator
23502 and MODEF mode iterator.
23503 (absneg general_reg splitter): Merge splitters using MODEF mode
23504 iterator. Use absneg code iterator. Call
23505 ix86_split_fp_absneg_operator.
23506 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23507 Do not enable for non-sse modes before reload.
23508 (CSGNMODE): Remove.
23509 (CSGNVMODE): Ditto.
23510 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23511 ssevecmodef mode attribute instaed of CSGNVMODE.
23512 (copysign<mode>3_const): Ditto.
23513 (copysign<mode>3_var): Ditto.
23514 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23515 Use absneg code iterator. Simplify code using std::swap.
23516 * config/i386/predicates.md (absneg_operator): Remove.
23518 2019-06-10 Martin Sebor <msebor@redhat.com>
23520 * gimple-fold.c (get_range_strlen): Update comment that didn't
23521 make it into r267503 or related commits.
23523 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
23525 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23526 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23528 2019-06-10 Jakub Jelinek <jakub@redhat.com>
23530 * tree.def (OMP_SCAN): New tree code.
23531 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23532 OMP_CLAUSE_EXCLUSIVE.
23533 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
23534 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
23535 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
23536 OMP_CLAUSE_{IN,EX}CLUSIVE.
23537 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23538 * tree-nested.c (convert_nonlocal_reference_stmt,
23539 convert_local_reference_stmt, convert_gimple_call): Handle
23541 * tree-pretty-print.c (dump_omp_clause): Handle
23542 OMP_CLAUSE_{IN,EX}CLUSIVE.
23543 (dump_generic_node): Handle OMP_SCAN.
23544 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
23545 * gimple.h (gomp_scan): New type.
23546 (is_a_helper <gomp_scan *>::test,
23547 is_a_helper <const gomp_scan *>::test): New templates.
23548 (gimple_build_omp_scan): Declare.
23549 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
23550 gimple_omp_scan_set_clauses): New inline functions.
23551 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
23552 * gimple.c (gimple_build_omp_scan): New function.
23553 (gimple_copy): Handle GIMPLE_OMP_SCAN.
23554 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
23555 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
23556 GIMPLE_OMP_TASKGROUP.
23557 (dump_gimple_omp_scan): New function.
23558 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
23559 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
23560 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
23561 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
23562 (is_gimple_stmt): Handle OMP_SCAN.
23563 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
23564 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23565 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
23566 mentioned in nested #pragma omp scan. Handle
23567 OMP_CLAUSE_{IN,EX}CLUSIVE.
23568 (gimplify_expr): Handle OMP_SCAN.
23569 * omp-low.c (check_omp_nesting_restrictions): For parent context,
23570 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
23572 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
23575 2019-06-10 Martin Liska <mliska@suse.cz>
23577 * ipa-cp.c (ignore_edge_p): New function.
23578 (build_toporder_info): Use it.
23579 * ipa-inline.c (ignore_edge_p): New function.
23580 (inline_small_functions): Use it.
23581 * ipa-pure-const.c (ignore_edge_for_nothrow):
23582 Verify opt_for_fn for caller and callee.
23583 (ignore_edge_for_pure_const): Likewise.
23584 * ipa-reference.c (ignore_edge_p): Extend to check
23586 * ipa-utils.c (searchc): Refactor.
23587 * ipa-utils.h: Fix coding style.
23589 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23591 * config/arc/arc.c (arc_rtx_costs): Update costs.
23593 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23595 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
23596 (arc_split_ior): Likewise.
23597 (arc_check_mov_const): Likewise.
23598 (arc_split_mov_const): Likewise.
23599 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
23600 (arc_rtx_costs): Replace check Crr with Cax constraint.
23601 (prepare_move_operands): Cleanup, remove unused code.
23602 (arc_split_ior): New function.
23603 (arc_check_ior_const): Likewise.
23604 (arc_split_mov_const): Likewise.
23605 (arc_check_mov_const): Likewise.
23606 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
23607 in define_insn_and_split pattern.
23608 (iorsi3): Likewise.
23609 (mulsi3_v2): Add new matching variant.
23610 (andsi3_i): Cleanup pattern.
23611 (rotrsi3_cnt1): Update pattern.
23612 (rotrsi3_cnt8): New pattern.
23613 (ashlsi2_cnt8): Likewise.
23614 (ashlsi2_cnt16): Likewise.
23615 * config/arc/constraints.md (C0p): Update constraint.
23617 (C0x): New pattern.
23618 (Cax): New pattern.
23620 2019-06-10 Martin Liska <mliska@suse.cz>
23622 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
23623 Update coding style.
23624 (sem_item_optimizer::dump_cong_classes):
23625 Print how many items are in a non-singular class. Improve
23628 2019-06-10 Martin Liska <mliska@suse.cz>
23630 * value-prof.c (dump_histogram_value): Change dump format.
23631 (gimple_mod_subtract_transform): Remove legacy comment.
23633 2019-06-10 Martin Liska <mliska@suse.cz>
23635 * value-prof.c (dump_histogram_value): Print histogram values
23638 2019-06-10 Martin Liska <mliska@suse.cz>
23640 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
23641 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
23642 * ipa-profile.c (ipa_profile_generate_summary):
23643 Use get_most_common_single_value.
23644 * tree-profile.c (gimple_init_gcov_profiler):
23645 Instrument with __gcov_one_value_profiler_v2
23646 and __gcov_indirect_call_profiler_v4.
23647 * value-prof.c (dump_histogram_value):
23648 Print all values for HIST_TYPE_SINGLE_VALUE.
23649 (stream_out_histogram_value): Update assert for
23651 (stream_in_histogram_value): Set number of
23652 counters for HIST_TYPE_SINGLE_VALUE.
23653 (get_most_common_single_value): New.
23654 (gimple_divmod_fixed_value_transform):
23655 Use get_most_common_single_value.
23656 (gimple_ic_transform): Likewise.
23657 (gimple_stringops_transform): Likewise.
23658 (gimple_find_values_to_profile): Set number
23659 of counters for HIST_TYPE_SINGLE_VALUE.
23660 * value-prof.h (get_most_common_single_value): New.
23662 2019-06-10 Martin Liska <mliska@suse.cz>
23664 * hash-map.h: Pass default value to hash_table ctor.
23665 * hash-table.h: Add default value to call of a ctor.
23667 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
23669 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
23670 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
23672 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
23675 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
23676 Call pa_output_function_label.
23677 (TARGET_ASM_FUNCTION_PROLOGUE): define.
23678 * config/pa/pa-protos.h (pa_output_function_label): Declare.
23679 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
23681 (pa_linux_output_function_prologue): Declare.
23682 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
23683 (pa_output_function_label): New.
23684 (pa_output_function_prologue): Revise to use pa_output_function_label.
23685 (pa_linux_output_function_prologue): New.
23686 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
23688 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
23690 * tree-vrp.h (value_range_base::intersect): New.
23691 (value_range::intersect_helper): Move from here...
23692 (value_range_base::intersect_helper): ...to here.
23693 * tree-vrp.c (value_range::intersect_helper): Rename to...
23694 (value_range_base::intersect_helper): ...this, and rewrite to
23695 return a value instead of modifying THIS in place.
23696 Also, move equivalence handling...
23697 (value_range::intersect): ...here, while calling intersect_helper.
23698 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
23700 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
23702 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
23704 2019-06-07 Jakub Jelinek <jakub@redhat.com>
23706 * Makefile.in (genprogerr): Add condmd.
23707 (genprog): Remove it here.
23709 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23711 * doc/invoke.texi (AMD GCN Options): Add gfx906.
23713 2019-06-07 Richard Biener <rguenther@suse.de>
23716 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
23717 that appear after user labels.
23719 2019-06-07 Martin Liska <mliska@suse.cz>
23721 * cselib.c (cselib_init): Disable hash table
23723 * hash-set.h: Pass new default argument to m_table.
23724 * hash-table.c: Add global variable with hash table
23725 sanitization limit.
23726 * hash-table.h (Allocator>::hash_table): Add new argument
23728 (hashtab_chk_error): New.
23729 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
23730 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
23731 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
23733 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23735 * common.opt (flto-odr-type-merging): Ignore.
23736 * invoke.texi (-flto-odr-type-merging): Remove.
23737 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
23738 (can_be_vtable_hashed_p): Remove.
23739 (hash_odr_vtable): Remove.
23740 (odr_vtable_hasher::hash): Remove.
23741 (types_same_for_odr): Remove.
23742 (types_odr_comparable): Remove.
23743 (odr_vtable_hasher::equal): Remove.
23744 (odr_vtable_hash_type, odr_vtable_hash): Remove.
23745 (add_type_duplicate): Do not synchronize vtable and name hashtables.
23746 (get_odr_type): Do not use vtable hash.
23747 (dump_odr_type): Remove commented out code.
23748 (build_type_inheritance_graph): Do not allocate vtable hash.
23749 (rebuild_type_inheritance_graph): Do not delete vtable hash.
23750 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
23751 (odr_type_p): Likewise.
23752 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
23755 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23757 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
23758 immediately after same_types_for_tbaa_p returns -1 and continue
23759 looking for possible exact match; if matching types are arrays
23760 watch for partial overlaps.
23761 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
23762 (indirect_refs_may_alias_p): Do type based disambiguation first;
23765 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
23767 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
23769 2019-06-07 Martin Liska <mliska@suse.cz>
23771 * doc/invoke.texi: Remove param.
23772 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
23774 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
23775 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
23776 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
23777 * profile.c (instrument_values): Remove
23778 HIST_TYPE_INDIR_CALL_TOPN.
23779 * tree-profile.c (init_ic_make_global_vars):
23780 Always build __gcov_indirect_call only.
23781 (gimple_init_gcov_profiler): Remove usage
23782 of PARAM_INDIR_CALL_TOPN_PROFILE.
23783 (gimple_gen_ic_profiler): Likewise.
23784 * value-prof.c (dump_histogram_value): Likewise.
23785 (stream_in_histogram_value): Likewise.
23786 (gimple_indirect_call_to_profile): Likewise.
23787 (gimple_find_values_to_profile): Likewise.
23788 * value-prof.h (enum hist_type): Likewise.
23790 2019-06-07 Martin Liska <mliska@suse.cz>
23792 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
23795 2019-06-07 Martin Liska <mliska@suse.cz>
23797 PR tree-optimization/78902
23798 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
23799 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
23800 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23801 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23802 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
23803 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23804 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
23805 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
23806 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23807 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23808 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23809 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
23810 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
23812 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
23813 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
23814 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
23815 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23816 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23817 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
23818 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23819 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23820 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
23821 warn_unused_result attribute.
23822 (BUILT_IN_STRDUP): Likewise.
23823 (BUILT_IN_STRNDUP): Likewise.
23824 (BUILT_IN_ALLOCA): Likewise.
23825 (BUILT_IN_CALLOC): Likewise.
23826 (BUILT_IN_MALLOC): Likewise.
23827 (BUILT_IN_REALLOC): Likewise.
23829 2019-06-06 Jim Wilson <jimw@sifive.com>
23832 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
23833 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
23834 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
23836 2019-06-06 Martin Sebor <msebor@redhat.com>
23838 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
23839 (handle_builtin_malloc): Remove trailing spaces.
23840 (handle_builtin_memset): Same.
23841 (handle_builtin_memcmp): Same.
23842 (compute_string_length): Same.
23843 (determine_min_objsize): Same.
23844 (handle_builtin_string_cmp): Same.
23845 (handle_char_store): Same. Break up excessively long line.
23847 2019-06-06 Martin Jambor <mjambor@suse.cz>
23849 * tree-sra.c (build_reconstructed_reference): Drop the alignment
23852 2019-06-06 Martin Jambor <mjambor@suse.cz>
23854 * tree-sra.c (struct access): New field grp_same_access_path.
23855 (dump_access): Dump it.
23856 (build_reconstructed_reference): New function.
23857 (build_ref_for_model): Use it if possible.
23858 (path_comparable_for_same_access): New function.
23859 (same_access_path_p): Likewise.
23860 (sort_and_splice_var_accesses): Set the new flag.
23861 (analyze_access_subtree): Likewise.
23862 (propagate_subaccesses_across_link): Propagate zero value of the new
23863 flag down the access tree.
23865 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
23867 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
23868 * config/gcn/gcn.opt (gpu_type): Add gfx906.
23869 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
23870 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
23873 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23875 PR tree-optimization/90332
23876 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
23877 Handle VALS containing two vectors.
23878 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
23880 (@aarch64_combinez<mode>): ... This.
23881 (*aarch64_combinez_be<mode>): Rename to...
23882 (@aarch64_combinez_be<mode>): ... This.
23883 (vec_init<mode><Vhalf>): New define_expand.
23884 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
23886 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23888 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
23889 library functions only when not optimizing for size.
23890 (ashlsi3): Likewise.
23891 (ashrhi3): Likewise.
23892 (ashrsi3): Likewise.
23893 (lshrhi3): Likewise.
23894 (lshrsi3): Likewise.
23896 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
23898 PR rtl-optimization/88751
23899 * ira.c (ira): Use the number of the actually referenced registers
23900 when calculating the threshold.
23902 2019-06-06 Jakub Jelinek <jakub@redhat.com>
23904 * configure: Regenerate.
23906 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23908 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
23909 register if it is in memory, so the shift can be emulated with a rotate
23911 (ashrhi3): Likewise.
23912 (lshrhi3): Likewise.
23914 2019-06-06 Martin Liska <mliska@suse.cz>
23916 PR tree-optimization/87954
23917 * match.pd: Simplify mult where both arguments are 0 or 1.
23919 2019-06-06 Richard Biener <rguenther@suse.de>
23921 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
23922 put equivalences on UNDEFINED ranges.
23923 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
23924 Make sure to drop defs of stmts added during simplification
23927 2019-06-06 Richard Biener <rguenther@suse.de>
23929 * tree-ssa-structalias.c: Include tree-cfg.h.
23930 (make_heapvar): Do not make heap vars artificial.
23931 (find_func_aliases_for_builtin_call): Handle stack allocation
23933 (find_func_aliases): Delay processing of simple enough returns
23935 (set_uids_in_ptset): Adjust.
23936 (find_what_var_points_to): Likewise.
23937 (solve_constraints): Do not dump points-to sets here.
23938 (compute_points_to_sets): Post-process return statements,
23939 amending the escaped solution. Dump points-to sets afterwards.
23940 (ipa_pta_execute): Dump points-to sets.
23942 2019-06-06 Martin Liska <mliska@suse.cz>
23945 * doc/install.texi: Fix HTML headers and
23946 titles for 'Installing GCC' pages.
23948 2019-06-06 Martin Liska <mliska@suse.cz>
23950 * ipa-icf-gimple.h (dump_message_1): Remove.
23951 (dump_message): Likewise.
23952 (return_false_with_message_1): Print also file.
23953 (return_false_with_msg): Likewise.
23954 (return_with_result): Likewise.
23955 (return_with_debug): Likewise.
23956 * ipa-icf.c (sem_function::equals_private): Remove call
23959 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23961 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
23962 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
23963 memory operand for it.
23964 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
23966 2019-06-05 Martin Sebor <msebor@redhat.com>
23968 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
23969 Adjust quoting and hyphenation.
23970 * convert.c (convert_to_real_1): Same.
23971 * gcc.c (driver_wrong_lang_callback): Same.
23972 (driver::handle_unrecognized_options): Same.
23973 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
23974 * opts-common.c (cmdline_handle_error): Same.
23975 (read_cmdline_option): Same.
23976 * opts-global.c (complain_wrong_lang): Same.
23977 (print_ignored_options): Same.
23978 (handle_common_deferred_options): Same.
23979 * pretty-print.h: Same.
23980 * print-rtl.c (debug_bb_n_slim): Same.
23981 * sched-rgn.c (make_pass_sched_fusion): Same.
23982 * tree-cfg.c (verify_gimple_assign_unary): Same.
23983 (verify_gimple_label): Same.
23984 * tree-ssa-operands.c (verify_ssa_operands): Same.
23985 * varasm.c (do_assemble_alias): Same.
23986 (assemble_alias): Same.
23988 2019-06-05 Richard Henderson <rth@twiddle.net>
23990 * config/alpha/alpha.c (direct_return): Move down after
23991 struct machine_function definition; use saved frame_size;
23993 (struct machine_function): Add sa_mask, sa_size, frame_size.
23994 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
23995 (alpha_compute_frame_layout): ... new function.
23996 (TARGET_COMPUTE_FRAME_LAYOUT): New.
23997 (alpha_initial_elimination_offset): Use saved sa_size.
23998 (alpha_vms_initial_elimination_offset): Likewise.
23999 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24000 (alpha_expand_prologue): Use saved frame data. Merge integer
24001 and fp register save loops.
24002 (alpha_expand_epilogue): Likewise.
24003 (alpha_start_function): Use saved frame data.
24004 * config/alpha/alpha-protos.h (direct_return): Update.
24005 (alpha_sa_size): Remove.
24007 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24009 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24010 multiplication by a power-of-two value.
24011 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24012 and turn the modulo operation into a masking operation.
24014 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24017 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24018 with VOIDmode inner operands.
24020 2019-06-05 Richard Biener <rguenther@suse.de>
24022 PR middle-end/90726
24023 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24024 turn an expression graph into a tree.
24026 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24028 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24030 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24031 treat it like explicit monotonic schedule modifier.
24032 (expand_omp_for): Initialize has_lastprivate_conditional.
24033 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24036 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24037 references, lookup in in hash map MEM_REF operand instead of the
24039 (lower_omp_1): When looking for lastprivate conditional assignments,
24040 handle MEM_REFs with REFERENCE_TYPE operands.
24042 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24043 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24044 and references a VLA. Handle references to non-VLAs if is_simd
24045 all privatization clauses like reductions.
24046 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24047 If omp_is_reference, use always omp simd arrays and set
24048 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24049 fails, emit reference initialization.
24051 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24054 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24055 _mm_mask_fpclass_sd_mask): New intrinsics.
24056 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24057 * config/i386/i386-builtin.def
24058 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24060 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24061 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24062 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24063 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24064 case QI_FTYPE_V2SF_INT): Ditto.
24065 * config/i386/sse.md
24066 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24067 Extended to insnstructions with mask operands.
24069 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24071 * config/rs6000/constraints.md (define_register_constraint "wp"):
24073 (define_register_constraint "wq"): Delete.
24074 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24075 (rs6000_init_hard_regno_mode_ok): Adjust.
24076 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24077 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24078 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24079 (define_mode_attr VSa): Delete.
24080 (define_mode_attr VSisa): New.
24081 (rest of file): Adjust.
24082 * doc/md.texi (Machine Constraints): Adjust.
24084 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24086 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24087 (define_attr "enabled"): Handle those new isa values.
24089 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24091 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24092 (define_mode_attr VSr5): Delete.
24093 (define_mode_attr VStype_sqrt): Delete.
24094 (define_mode_iterator VSX_SPDP): Delete.
24095 (define_mode_attr VS_spdp_res): Delete.
24096 (define_mode_attr VS_spdp_insn): Delete.
24097 (define_mode_attr VS_spdp_type): Delete.
24098 (*vsx_sqrt<mode>2): Adjust.
24099 (vsx_<VS_spdp_insn>): Delete, split to...
24100 (vsx_xscvdpsp): ... this. New. And...
24101 (vsx_xvcvspdp): ... this. New. And...
24102 (vsx_xvcvdpsp): ... this. New.
24104 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24106 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24108 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24109 (rest of file): Adjust.
24111 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24113 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24114 (vsx_extract_<mode>_var): Ditto.
24116 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24118 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24121 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24123 * config/rs6000/constraints.md (define_register_constraint "ww"):
24125 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24126 (rs6000_init_hard_regno_mode_ok): Adjust.
24127 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24128 RS6000_CONSTRAINT_ww.
24129 * config/rs6000/rs6000.md: Adjust.
24130 * config/rs6000/vsx.md: Adjust.
24131 * doc/md.texi (Machine Constraints): Adjust.
24133 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24135 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24136 (define_mode_attr sd): New.
24137 (define_mode_attr s): New.
24138 (define_mode_attr Ftrad): Delete.
24139 (define_mode_attr Fvsx): Delete.
24140 (define_mode_attr Fs): Delete.
24141 (rest of file): Use the new mode attributes.
24142 * config.rs6000/vsx.md: Use the new mode attributes.
24144 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24146 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24149 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24151 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24152 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24153 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24155 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24158 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24159 C++ with strict ANSI requirements.
24161 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24163 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24164 computations when step is 1.
24166 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24168 * config/rs6000/constraints.md (define_register_constraint "wf"):
24170 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24171 (rs6000_init_hard_regno_mode_ok): Adjust.
24172 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24173 RS6000_CONSTRAINT_wf.
24174 * config/rs6000/rs6000.md: Adjust.
24175 * config/rs6000/vsx.md: Adjust.
24176 * doc/md.texi (Machine Constraints): Adjust.
24178 2019-06-04 Andrew Pinski <apinski@marvell.com>
24180 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24183 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24185 * config/rs6000/constraints.md (define_register_constraint "wd"):
24187 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24188 (rs6000_init_hard_regno_mode_ok): Adjust.
24189 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24190 RS6000_CONSTRAINT_wd.
24191 * config/rs6000/rs6000.md: Adjust.
24192 * config/rs6000/vsx.md: Adjust.
24193 * doc/md.texi (Machine Constraints): Adjust.
24195 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24197 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24198 (rest of file): Adjust.
24200 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24202 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24203 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24204 (vsx_splat_<mode>_reg): Adjust.
24206 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24208 * config/rs6000/constraints.md (define_register_constraint "ws"):
24210 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24211 (rs6000_init_hard_regno_mode_ok): Adjust.
24212 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24213 RS6000_CONSTRAINT_ws.
24214 * config/rs6000/rs6000.md: Adjust.
24215 * config/rs6000/vsx.md: Adjust.
24216 * doc/md.texi (Machine Constraints): Adjust.
24218 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24220 * config/rs6000/constraints.md (define_register_constraint "wv"):
24222 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24223 (rs6000_init_hard_regno_mode_ok): Adjust.
24224 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24225 RS6000_CONSTRAINT_wv.
24226 * config/rs6000/rs6000.md: Adjust.
24227 * config/rs6000/vsx.md: Adjust.
24228 * doc/md.texi (Machine Constraints): Adjust.
24230 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24232 * config/rs6000/constraints.md (define_register_constraint "wi"):
24234 (define_register_constraint "wt"): Delete.
24235 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24236 (rs6000_init_hard_regno_mode_ok): Adjust.
24237 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24238 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24239 * config/rs6000/rs6000.md: Adjust.
24240 * config/rs6000/vsx.md: Adjust.
24241 * doc/md.texi (Machine Constraints): Adjust.
24243 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24245 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24247 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24248 default_elf_asm_output_external.
24250 2019-06-04 Martin Liska <mliska@suse.cz>
24252 * ipa-icf.c (INCLUDE_LIST): Remove.
24253 (sem_item_optimizer::execute): Remove call to init_wpa.
24254 * ipa-icf.h (init_wpa): Remove.
24256 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24258 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24259 conditional on combined for simd.
24260 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24262 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24263 constructs, don't remove lastprivate_conditional_map, but instead set
24264 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24265 to parent construct temporaries.
24266 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24267 like !ctx->lastprivate_conditional_map.
24268 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24269 use up->outer context instead of up.
24270 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24271 gimple_omp_for_combined_p.
24272 (expand_omp_for_static_nochunk): Likewise.
24273 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24274 probably moved over into expand_omp_for_generic rather than being copied
24277 2019-06-04 Martin Liska <mliska@suse.cz>
24279 * value-prof.c (dump_histogram_value): Fix typo.
24280 (gimple_mod_subtract_transform): Likewise.
24282 2019-06-04 Richard Biener <rguenther@suse.de>
24284 PR middle-end/90726
24285 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24286 (tree_contains_chrecs): Likewise.
24287 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24288 exponential behaivor from ...
24289 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24291 (expression_expensive_p): Avoid exponential behavior and compute
24292 expanded size, rejecting any expansion.
24293 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24294 (idx_contains_abnormal_ssa_name_p): Likewise.
24295 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24296 (contains_abnormal_ssa_name_p): Simplify and use
24297 walk_tree_without_duplicates.
24299 2019-06-04 Richard Biener <rguenther@suse.de>
24301 PR tree-optimization/90738
24303 2019-06-03 Richard Biener <rguenther@suse.de>
24305 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24306 full reference tree and record in ref->ref.
24307 (vn_reference_lookup_3): Pass in original ref to
24308 ao_ref_init_from_vn_reference.
24309 (vn_reference_lookup): Likewise.
24310 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24311 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24312 Handle non-decl bases in the original reference.
24314 2019-06-04 Martin Liska <mliska@suse.cz>
24316 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24317 number of references.
24318 (sem_item_optimizer::do_congruence_step):
24319 (sem_item_optimizer::worklist_push): Dump how references
24321 (sem_item_optimizer::worklist_pop): Use heap.
24322 (sem_item_optimizer::process_cong_reduction): Likewise.
24323 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24325 2019-06-04 Martin Liska <mliska@suse.cz>
24327 * ipa-icf.h (struct sem_usage_pair_hash): New.
24328 (sem_usage_pair_hash::hash): Likewise.
24329 (sem_usage_pair_hash::equal): Likewise.
24330 (struct sem_usage_hash): Likewise.
24331 * ipa-icf.c (sem_item::sem_item): Initialize
24332 referenced_by_count.
24333 (sem_item::add_reference): Register a reference
24334 in ref_map and not in target->usages.
24335 (sem_item::setup): Remove initialization of
24337 (sem_item::~sem_item): Remove usage of dead vectors.
24338 (sem_item::dump): Remove dump of references.
24339 (sem_item_optimizer::sem_item_optimizer): Initialize
24341 (sem_item_optimizer::read_section): Remove useless
24343 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24344 (sem_item_optimizer::build_graph): Pass m_references
24345 to ::add_reference.
24346 (sem_item_optimizer::verify_classes): Remove usage of dead
24348 (sem_item_optimizer::traverse_congruence_split): Return true
24349 when a class is split.
24350 (sem_item_optimizer::do_congruence_step_for_index): Use
24351 hash_map for look up of (sem_item *, index). That brings
24352 significant speed up.
24353 (sem_item_optimizer::do_congruence_step): Return true
24354 when a split is done.
24355 (congruence_class::is_class_used): Use referenced_by_count.
24357 2019-06-04 Alan Modra <amodra@gmail.com>
24360 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24363 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24365 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24366 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24367 (rs6000_secondary_reload_simple_move): Adjust.
24368 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24369 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24370 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24373 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24374 (floatunssi<mode>2_lfiwzx): Adjust.
24375 (fix_trunc<mode>si2_stfiwx): Adjust.
24376 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24377 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24378 (mfpgpr): Mark as deprecated.
24379 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24380 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24381 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24383 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24385 * config/rs6000/constraints.md (define_register_constraint "wg"):
24387 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24388 RS6000_CONSTRAINT_wg.
24389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24390 (rs6000_init_hard_regno_mode_ok): Adjust.
24391 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24392 Delete "wg" alternatives.
24393 * doc/md.texi (Machine Constraints): Adjust.
24395 2019-06-03 Alan Modra <amodra@gmail.com>
24397 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24398 (get_uncond_jump_length): Assert length less than INT_MAX and
24401 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24403 PR middle-end/64242
24404 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24406 (expand_builtin_nonlocal_goto): Likewise.
24408 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24410 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24411 (aarch64_asm_output_external): Declare.
24412 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24413 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24414 (aarch64_asm_output_alias): New.
24415 (aarch64_asm_output_external): New.
24416 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24417 (ASM_OUTPUT_EXTERNAL): Define.
24419 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24420 * tree-vrp.h (value_range_base::nonzero_p): New.
24421 (value_range_base::set_nonnull): Rename to...
24422 (value_range_base::set_nonzero): ...this.
24423 (value_range_base::set_null): Rename to...
24424 (value_range_base::set_zero): ...this.
24425 (value_range::set_nonnull): Remove.
24426 (value_range::set_null): Remove.
24427 * tree-vrp.c (range_is_null): Remove.
24428 (range_is_nonnull): Remove.
24429 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24430 instead of range_is_*null.
24431 (extract_range_from_unary_expr): Same.
24432 (value_range_base::set_nonnull): Rename to...
24433 (value_range_base::set_nonzero): ...this.
24434 (value_range::set_nonnull): Remove.
24435 (value_range_base::set_null): Rename to...
24436 (value_range_base::set_zero): ...this.
24437 (value_range::set_null): Remove.
24438 (extract_range_from_binary_expr): Rename set_*null uses to
24440 (extract_range_from_unary_expr): Same.
24441 (union_helper): Same.
24442 * vr-values.c (get_value_range): Use set_*zero instead of
24444 (vr_values::extract_range_from_binary_expr): Same.
24445 (vr_values::extract_range_basic): Same.
24447 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24450 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24452 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24454 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24455 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24457 (aarch64_<su>abd<mode>_3): ... This.
24458 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24460 2019-06-03 Richard Biener <rguenther@suse.de>
24462 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24463 full reference tree and record in ref->ref.
24464 (vn_reference_lookup_3): Pass in original ref to
24465 ao_ref_init_from_vn_reference.
24466 (vn_reference_lookup): Likewise.
24467 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24468 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24469 Handle non-decl bases in the original reference.
24471 2019-06-03 Martin Liska <mliska@suse.cz>
24473 * doc/generic.texi: Remove Java Trees.
24475 2019-06-03 Martin Liska <mliska@suse.cz>
24477 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24478 returns 0 when operands are equal.
24480 2019-06-03 Richard Biener <rguenther@suse.de>
24482 PR tree-optimization/90716
24483 * tree-loop-distribution.c (destroy_loop): Process blocks in
24486 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24489 * vector-builder.h (vector_builder::count_dups): New method.
24490 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24492 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24493 (vec_init<mode><Vel>): New pattern.
24494 * config/aarch64/aarch64.c (emit_insr): New function.
24495 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24496 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24497 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24498 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24500 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24502 PR tree-optimization/90681
24503 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24504 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24505 special case for SLP, but fail on non-groupped loads.
24507 2019-06-03 Martin Liska <mliska@suse.cz>
24509 * cfg.c (debug): Use TDF_DETAILS for debug and
24510 print edge info only once.
24512 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24515 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24517 2019-06-01 Martin Sebor <msebor@redhat.com>
24519 PR middle-end/90694
24520 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24522 2019-05-31 Jan Hubicka <jh@suse.cz>
24524 * alias.c: Include ipa-utils.h.
24525 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24526 * ipa-devirt.c (prevailing_odr_type): New.
24527 * ipa-utils.h (previaling_odr_type): Declare.
24529 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
24530 Hongtao Liu <hongtao.liu@intel.com>
24533 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
24534 NOTE_INSN_DELETED_LABEL check.
24536 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
24537 Robert Suchanek <robert.suchanek@mips.com>
24539 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
24540 and 3rd operands of the fmadd/fmsub/maddv builtin.
24542 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24544 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
24545 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24546 on OMP_SIMD if not nested inside of worksharing loop that also has
24547 lastprivate conditional clause for the same decl.
24548 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
24549 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
24551 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
24553 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
24555 (lower_lastprivate_clauses): Likewise.
24556 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
24557 calling lower_rec_input_clauses.
24558 (lower_omp_for): Likewise.
24559 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
24560 clause on simd construct.
24561 * omp-expand.c (expand_omp_simd): Initialize cond_var if
24562 OMP_CLAUSE__CONDTEMP_ clause is present.
24564 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
24567 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
24570 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
24571 TEX_D32, TEX_D64 or TEX_D128.
24573 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24575 * match.pd (~(vec?cst1:cst2)): New transformation.
24577 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24579 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
24580 ((size_t)(A /[ex] B) CMP C): New transformation.
24582 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
24584 * doc/md.texi: Document define_insn_and_rewrite.
24585 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
24586 * gensupport.c (queue_elem): Update comment.
24587 (replace_operands_with_dups): New function.
24588 (gen_rewrite_sequence): Likewise.
24589 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
24590 * read-rtl.c (apply_subst_iterator): Likewise.
24591 (add_condition_to_rtx, named_rtx_p): Likewise.
24592 (rtx_reader::read_rtx_operand): Likewise.
24593 * config/aarch64/aarch64-sve.md
24594 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
24595 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
24596 define_insn_and_rewrite.
24597 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
24598 Remove separate define_split.
24600 2019-05-31 Jan Hubicka <jh@suse.cz>
24602 * tree-ssa-alias.c (type_has_components_p): New function.
24603 (aliasing_component_refs_p): Use it.
24605 2019-05-31 Martin Liska <mliska@suse.cz>
24607 * gdbhooks.py: Add const_tree to TreePrinter.
24609 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
24612 * common.opt (feliminate-unused-debug-symbols): Enable by default.
24613 * doc/invoke.texi (Debugging Options): Document new default of
24614 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
24616 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24618 PR tree-optimization/90671
24619 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
24620 template_block used to be empty on the first call, don't use
24621 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
24622 seq with bb_seq and set it with set_bb_seq.
24624 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
24626 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
24628 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24629 Michael Meissner <meissner@linux.ibm.com>
24631 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
24632 (prefixed_mem_operand): Likewise.
24633 (non_prefixed_mem_operand): Likewise.
24634 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
24636 * config/rs6000/rs6000.c (print_operand_address): Handle
24637 PC-relative addresses.
24638 (mode_supports_prefixed_address_p): New function.
24639 (rs6000_prefixed_address): New function.
24640 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
24641 (SYMBOL_REF_PCREL_P): Likewise.
24643 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24645 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
24646 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
24647 (gimplify_omp_for): If worksharing loop with lastprivate conditional
24648 is nested inside of parallel region, add _condtemp_ clause to both.
24649 * tree-nested.c (convert_nonlocal_omp_clauses,
24650 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
24652 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
24654 * omp-general.c (omp_extract_for_data): Compute it.
24655 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
24656 (lower_rec_input_clauses): Likewise.
24657 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
24658 clause is already present, just add one further one after it.
24659 (lower_lastprivate_clauses): Handle cond_ptr with array type.
24660 (lower_send_shared_vars): Clear _condtemp_ vars.
24661 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
24662 or section or taskgroup.
24663 * omp-expand.c (determine_parallel_type): Disallow combining only if
24664 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
24665 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
24666 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24667 expand_omp_for_static_chunk, expand_omp_for): Use
24668 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
24669 determine if a special set of API routines are needed and if condtemp
24670 needs to be initialized, while always initialize cond_var if
24671 fd->lastprivate_conditional is non-zero.
24673 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24674 Michael Meissner <meissner@linux.ibm.com>
24676 * config/rs6000/constraints.md (eI): New constraint.
24677 * config/rs6000/predicates.md (cint34_operand): New predicate.
24678 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
24679 (SIGNED_34BIT_OFFSET_P): Likewise.
24680 * doc/md.texi (eI): Document constraint.
24682 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
24684 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
24686 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24687 Michael Meissner <meissner@linux.ibm.com>
24689 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
24690 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
24691 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
24692 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
24693 (OTHER_FUTURE_MASKS): Likewise.
24694 (POWERPC_MASKS): Likewise.
24695 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
24696 specified without -mprefixed-addr or -mcpu=future. Error if
24697 -mprefixed-addr is specified without -mcpu=future.
24698 (rs6000_opt_masks): Add entry for prefixed-addr.
24699 * rs6000.opt (mprefixed-addr): New option.
24701 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
24703 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
24704 cfun->is_thunk check.
24706 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24708 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24711 2019-05-30 Martin Liska <mliska@suse.cz>
24713 * gdbinit.in: Fix 'ptc' command. Add trt
24714 that prints TREE_TYPE($).
24716 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
24717 Alan Modra <amodra@gmail.com>
24719 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
24721 (rs6000_indirect_call_template_1): ...and here.
24722 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
24723 plt16_ha, plt16_lo, mtctr indirect calls. Use
24724 rs6000_pltseq_enum.
24725 (rs6000_decl_ok_for_sibcall): New function.
24726 (rs6000_function_ok_for_sibcall): Refactor.
24727 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
24728 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
24729 when pcrel. Reorganize.
24730 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
24731 * rs6000.h (rs6000_pltseq_enum): New enum.
24732 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
24733 (*pltseq_tocsave): Use rs6000_pltseq_enum.
24734 (*pltseq_plt16_ha): Likewise.
24735 (*pltseq_plt16_lo): Likewise.
24736 (*pltseq_mtctr): Likewise.
24737 (*pltseq_plt_pcrel): New insn.
24738 (*call_local_aix): Handle @notoc calls.
24739 (*call_value_local_aix): Likewise.
24740 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
24741 (*call_value_nonlocal_aix): Likewise.
24742 (*call_indirect_pcrel): New insn.
24743 (*call_value_indirect_pcrel): Likewise.
24745 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
24747 * config/i386/sse.md (*save_multiple<mode>): Rename from
24748 save_multiple<mode>.
24749 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
24750 (*restore_multiple_and_return<mode>): Rename from
24751 restore_multiple_and_return<mode>.
24752 (*restore_multiple_leave_return<mode>): Rename from
24753 restore_multiple_leave_return<mode>.
24755 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
24757 * config.gcc (rx-*-linux*): New target.
24758 * config/rx/elf.opt: New file.
24759 * config/rx/linux.h: Likewise.
24760 * config/rx/t-linux: Likewise.
24761 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
24763 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
24764 (ASM_APP_OFF): Likewise.
24765 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
24768 2019-05-29 Jan Hubicka <jh@suse.cz>
24770 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
24771 variants are pointer equivalent.
24773 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24775 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
24776 * config/aarch64/aarch64-sve2.md: New file.
24777 (<u>avg<mode>3_floor): New pattern.
24778 (<u>avg<mode>3_ceil): Likewise.
24779 (*<sur>h<addsub><mode>): Likewise.
24780 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
24781 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
24783 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24786 * optc-save-gen.awk: In cl_optimization_print, use correct condition
24787 for var_opt_string printing. In cl_optimization_print_diff, print
24788 (null) instead of invoking undefined behavior if one of the
24789 var_opt_string pointers is NULL and use && instead of first || in the
24790 guarding condition. For var_target_other options, handle const char *
24791 target variables similarly to const char * optimize node variables.
24793 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
24795 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
24796 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
24797 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
24798 Add autib1716 and pacib1716 initialisation.
24799 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
24800 for autib1716 and pacib1716.
24801 * config/aarch64/aarch64-protos.h (aarch64_key_type,
24802 aarch64_post_cfi_startproc): Define.
24803 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
24804 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
24805 aarch64_handle_pac_ret_protection): Set default sign key to A.
24806 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
24807 aarch64_expand_prologue): Add check for b-key.
24808 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
24809 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
24810 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
24811 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
24812 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
24813 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
24814 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24815 * config/aarch64/aarch64.md (do_return): Add check for b-key.
24816 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
24817 pauth_hint_num_a with pauth_hint_num.
24818 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
24819 pauth_hint_num_a with pauth_hint_num.
24820 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
24821 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
24822 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24823 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
24824 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
24825 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
24826 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
24827 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24828 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
24829 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
24830 UNSPEC_AUTIA1716 respectively.
24831 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
24832 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
24833 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
24834 * doc/invoke.texi (-mbranch-protection): Add b-key type.
24835 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
24836 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
24838 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24840 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
24841 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
24842 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
24843 explicit clause on combined parallel into implicit shared clause.
24844 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
24845 and firstprivate if the decl has one too from combined parallel to
24846 the worksharing construct.
24848 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
24849 Michael Meissner <meissner@linux.ibm.com>
24851 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
24853 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
24855 * rtl.h (LABEL_REF_P): New #define.
24857 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
24859 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
24861 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24863 * internal-fn.c: Marked mask_load_direct as vectorizable.
24864 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
24865 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
24866 combined even if masks different with allow_slp_p param.
24867 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
24868 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
24869 dissolve SLP-only vectorizable groups when SLP has been discarded.
24870 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
24871 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
24873 (vect_build_slp_tree_1): Fixed comment typo.
24874 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
24875 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
24876 loads for SLP only.
24877 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
24879 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
24881 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24883 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
24884 Remove obsolete use_thunk reference.
24885 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24886 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24887 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24888 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24889 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24890 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24891 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24892 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24893 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24895 2019-05-28 Nathan Sidwell <nathan@acm.org>
24897 * tree.h (IDENTIFIER_ANON_P): New.
24898 (anon_aggrname_format, anon_aggname_p): Don't declare.
24899 (make_anon_name): Declare.
24900 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
24901 (hash_tree): Likewise.
24902 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
24903 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
24904 (anon_cnt, make_anon_name): New.
24906 2019-05-28 Martin Liska <mliska@suse.cz>
24909 * opts-global.c (decode_options): Print help for all
24910 help_option_arguments.
24911 * opts.c (print_help): Add new argument.
24912 (common_handle_option): Remember all values into
24913 help_option_arguments.
24914 * opts.h (print_help): Add new argument.
24916 2019-05-28 Martin Liska <mliska@suse.cz>
24919 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
24920 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
24921 (func_checker::compare_bb): Call compare_loops.
24923 2019-05-27 Jakub Jelinek <jakub@redhat.com>
24925 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24926 on sections construct.
24927 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
24929 (lower_omp_sections): Handle lastprivate conditional.
24930 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
24931 lastprivate_conditional_map.
24932 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
24934 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
24935 critical, taskgroup and section regions when looking for a region
24936 with non-NULL lastprivate_conditional_map.
24938 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24940 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
24941 (*ix86_gen_sub3): Ditto.
24942 (*ix86_gen_sub3_carry): Ditto.
24943 (*ix86_gen_one_cmpl2): Ditto.
24944 (*ix86_gen_andsp): Ditto.
24945 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
24946 (gen_and2_insn): New static function.
24947 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
24948 Use gen_add3_insn instead of ix86_gen_add3.
24949 (ix86_expand_split_stack_prologue): Use gen_add2_insn
24950 instead of ix86_gen_add3.
24951 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
24952 Use gen_sub3_insn instead of ix86_gen_sub3.
24953 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
24954 instead of ix86_gen_add3.
24955 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
24956 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
24957 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
24958 * config/i386/i386-options.c (ix86_option_override_internal):
24959 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
24960 ix86_gen_one_cmpl2 and ix86_gen_andsp.
24962 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
24964 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
24965 and DW_OP_GNU_const_index opcodes.
24967 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24969 * config/i386/i386.h (STACK_SIZE_MODE): Define.
24971 2019-05-27 Richard Biener <rguenther@suse.de>
24973 PR tree-optimization/90637
24974 * tree-ssa-sink.c (statement_sink_location): Honor the
24975 computed sink location for single-uses.
24977 2019-05-27 Richard Biener <rguenther@suse.de>
24979 PR middle-end/90610
24980 * match.pd (vec_perm): Avoid clobbering op0 when not generating
24983 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24985 * config/i386/i386.md (@sub<mode>3_carry): Rename
24986 from sub<mode>3_carry.
24987 (@leave_<mode>): New expander.
24988 (*leave): Rename from leave.
24989 (*leave_rex64): Rename from leave_rex64.
24990 (@monitorx_<mode>): Rename from monitorx_<mode>.
24991 (@clzero_<mode>): Rename from clzero_<mode>.
24992 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
24993 from sse3_monitor_<mode>.
24994 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
24995 (*ix86_gen_leave): Ditto.
24996 (*ix86_gen_monitor): Ditto.
24997 (*ix86_gen_monitorx): Ditto.
24998 (*ix86_gen_clzero): Ditto.
24999 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25000 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25001 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25002 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25003 Use gen_sse3_monitor instead of ix86_gen_monitor.
25004 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25005 instead of ix86_gen_monitorx.
25006 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25007 instead of ix86_gen_clzero.
25008 * config/i386/i386-options.c (ix86_option_override_internal):
25009 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25010 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25012 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25014 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25015 Rename from tls_global_dynamic_64_<mode>.
25016 (@tls_local_dynamic_base_64_<mode>): Rename from
25017 tls_local_dynamic_base_64_<mode>.
25018 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25019 Remove indirect function.
25020 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25021 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25022 instead of ix86_gen_tls_global_dynamic_64.
25023 Use gen_tls_local_dynamic_base_64 instead of
25024 ix86_gen_tls_local_dynamic_base_64.
25025 * config/i386/i386-options.c (ix86_option_override_internal):
25026 Do not initialize ix86_gen_tls_global_dynamic_64 and
25027 ix86_gen_tls_local_dynamic_base_64.
25029 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25031 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25032 Rename from pro_epilogue_adjust_stack_<mode>_add.
25033 (@pro_epilogue_adjust_stack_sub_<mode>)
25034 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25035 (@allocate_stack_worker_probe_<mode>):
25036 Rename from allocate_stack_worker_probe_<mode>.
25037 (allocate_stack): Use gen_allocate_stack_worker_probe.
25038 (probe_stack): Use gen_probe_stack_1.
25039 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25040 (@adjust_stack_and_probe_<mode>): Rename from
25041 adjust_stack_and_probe<mode>.
25042 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25043 (stack_protect_set): Use gen_stack_protect_set_1.
25044 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25045 (stack_protect_test): Use gen_stack_protect_test_1.
25046 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25047 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25048 Remove indirect function.
25049 (*ix86_gen_adjust_stack_and_probe): Ditto.
25050 (*ix86_gen_probe_stack_range): Ditto.
25051 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25052 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25053 (ix86_adjust_stack_and_probe_stack_clash): Use
25054 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25055 (ix86_adjust_stack_and_probe): Ditto.
25056 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25057 of ix86_gen_probe_stack_range.
25058 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25059 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25060 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25061 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25062 CODE_FOR_stack_protect_test_{si,di}.
25063 * config/i386/i386-options.c (ix86_option_override_internal):
25064 Do not initialize ix86_gen_allocate_stack_worker,
25065 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25067 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25069 * doc/invoke.texi (Link Options): Many editorial changes around
25072 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25074 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25075 pre-Solaris 11 referene and most Studio compiler details.
25077 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25080 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25081 DImode to SImode in floating-point registers on 64-bit target.
25082 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25083 register_operand in xmpyu patterns.
25085 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25087 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25088 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25089 OMP_CLAUSE__REDUCTEMP_.
25090 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25091 OMP_CLAUSE__CONDTEMP_.
25092 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25093 * tree-pretty-print.c (dump_omp_clause): Likewise.
25094 * tree-nested.c (convert_nonlocal_omp_clauses,
25095 convert_local_omp_clauses): Likewise.
25096 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25097 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25098 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25100 (gimplify_omp_for): Warn and disable conditional modifier from
25101 lastprivate on loop iterators.
25102 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25104 * omp-general.c (omp_extract_for_data): Initialize it.
25105 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25107 (delete_omp_context): Delete it.
25108 (lower_lastprivate_conditional_clauses): New function.
25109 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25110 handle lastprivate conditional clauses.
25111 (lower_reduction_clauses): Add CLIST argument, emit it into
25112 the critical section if any.
25113 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25114 lower_reduction_clauses callers.
25115 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25116 to lower_lastprivate_clauses.
25117 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25118 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25119 clist into a critical section if not emitted there already by
25120 lower_reduction_clauses.
25121 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25123 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25124 conditional variables.
25125 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25127 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25128 expand_omp_for_static_chunk): Handle lastprivate conditional.
25129 (expand_omp_for): Handle fd.lastprivate_conditional like
25132 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25134 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25135 kernel does not exit cleanly.
25136 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25138 2019-05-24 Jason Merrill <jason@redhat.com>
25141 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25143 2019-05-24 Richard Biener <rguenther@suse.de>
25146 * tree-loop-distribution.c (struct partition): Add location
25148 (partition_alloc): Initialize all fields.
25149 (generate_memset_builtin): Use the location recorded in the
25150 partition for the generated call.
25151 (generate_memcpy_builtin): Likewise.
25152 (classify_partition): Record the location of a single store
25153 as location for the partition.
25155 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25157 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25160 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25163 * common/config/aarch64/aarch64-common.c
25164 (aarch64_rewrite_selected_cpu): Change local temporary variable
25165 type from unsigned long to uint64_t.
25166 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25167 aarch64_get_extension_string_for_isa_flags): Change declaration to
25168 match new definition by replacing unsigned long with uint64_t.
25170 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25173 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25174 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25175 Handle stack_protect_test_<mode> codegen similarly to corresponding
25178 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25180 * config/i386/darwin.h: Reject -mfentry*.
25181 * doc/sourcebuild.texi: Document mfentry target support.
25183 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25185 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25186 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25187 false for PC-relative functions.
25188 (rs6000_output_function_prologue): Change called function name to
25189 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25190 name,1" for PC-relative functions.
25191 (rs6000_elf_declare_function_name): Change called function name to
25192 rs6000_global_entry_point_prologue_needed_p.
25194 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25197 * config/i386/i386.c (gen_rtx_cost):
25198 Use ix86_tune_cost instead of ix86_cost.
25200 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25201 Michael Meissner <meissner@linux.ibm.com>
25202 Segher Boessenkool <segher@kernel.crashing.org>
25204 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25206 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25207 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25208 (rs6000_fndecl_pcrel_p): Likewise.
25209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25210 error if -mpcrel is requested without -mcpu=future.
25211 (rs6000_opt_masks): Add entry for pcrel.
25212 (rs6000_fndecl_pcrel_p): New function.
25213 (rs6000_pcrel_p): Likewise.
25214 * config/rs6000/rs6000.opt (mpcrel): New option.
25215 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25217 2019-05-23 Jan Hubicka <jh@suse.cz>
25218 Martin Liska <mliska@suse.cz>
25220 PR tree-optimization/90576
25221 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25223 (aliasing_component_refs_p): Fix three way size compare conditional;
25224 give up earlier in case we can not decide on equivalence.
25226 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25227 Michael Meissner <meissner@linux.ibm.com>
25228 Segher Boessenkool <segher@kernel.crashing.org>
25230 * config.gcc: Add future cpu.
25231 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25232 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25234 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25235 (RS6000_CPU): New instantiation for future cpu.
25236 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25238 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25239 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25240 * config/rs6000/rs6000-tables.opt: Regenerate.
25241 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25242 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25243 (rs6000_machine_from_flags): Handle future cpu.
25244 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25245 PROCESSOR_POWER9 for now.
25246 (rs6000_adjust_cost): Likewise.
25247 (rs6000_issue_rate): Likewise.
25248 (rs6000_register_move_cost): Likewise.
25249 (rs6000_opt_masks): Add entry for future.
25250 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25251 (MASK_FUTURE): New #define.
25252 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25253 * config/rs6000/rs6000.opt (mfuture): New target option.
25254 * doc/invoke.texi (mcpu): Add future cpu.
25256 2019-05-23 Martin Liska <mliska@suse.cz>
25259 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25260 operation points to a temporary (pointed via tree_to_wide_ref)
25261 that is out of scope after the &.
25263 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25266 * doc/extend.texi (Function Names): Add missing word.
25268 2019-05-23 Richard Biener <rguenther@suse.de>
25270 PR tree-optimization/88440
25271 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25273 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25275 (generate_memcpy_builtin): Likewise.
25276 (distribute_loop): Pass in whether to only distribute patterns.
25277 (prepare_perfect_loop_nest): Also allow size optimization.
25278 (pass_loop_distribution::execute): When optimizing a loop
25279 nest for size allow pattern replacement.
25281 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25284 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25287 2019-05-23 Martin Liska <mliska@suse.cz>
25290 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25291 expression similarly to gimplify_decl_expr.
25293 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25295 * cse.c (cse_dump_path): s/dump_file/f.
25297 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25300 * diagnostic-format-json.cc: Include "selftest.h".
25301 (json_from_expanded_location): Only add "file" key for non-NULL
25303 (json_from_location_range): Don't add "start" and "finish"
25304 children if they are UNKNOWN_LOCATION.
25305 (selftest::test_unknown_location): New selftest.
25306 (selftest::test_bad_endpoints): New selftest.
25307 (selftest::diagnostic_format_json_cc_tests): New function.
25308 * json.cc (json::object::get): New function.
25309 (selftest::test_object_get): New selftest.
25310 (selftest::json_cc_tests): Call it.
25311 * json.h (json::object::get): New decl.
25312 * selftest-run-tests.c (selftest::run_tests): Call
25313 selftest::diagnostic_format_json_cc_tests.
25314 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25317 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25318 Andrew Stubbs <amd@codesourcery.com>
25320 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25321 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25322 (kernel): Rename to...
25323 (main_kernel): ... this.
25324 (load_image): Load _init_array and _fini_array kernels.
25325 (run): Add argument for kernel to run.
25326 (main): Run init_array_kernel before main_kernel, and
25327 fini_array_kernel after.
25328 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25329 amdgpu_hsa_kernel attribute on functions.
25330 (gcn_disable_constructors): Delete.
25331 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25332 * config/gcn/crt0.c (size_t): Define.
25333 (_init_array, _fini_array): New.
25334 (__preinit_array_start, __preinit_array_end,
25335 __init_array_start, __init_array_end,
25336 __fini_array_start, __fini_array_end): Declare weak references.
25338 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25340 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25342 2019-05-22 Jason Merrill <jason@redhat.com>
25344 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25346 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25349 * config/i386/i386-options.c (ix86_init_machine_status): Set
25350 stack_frame_required to true.
25351 * config/i386/i386.c (ix86_get_frame_size): New function.
25352 (ix86_frame_pointer_required): Replace get_frame_size with
25353 ix86_get_frame_size.
25354 (ix86_compute_frame_layout): Likewise.
25355 (ix86_find_max_used_stack_alignment): Changed to void. Set
25356 stack_frame_required.
25357 (ix86_finalize_stack_frame_flags): Always call
25358 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25359 ix86_get_frame_size.
25360 * config/i386/i386.h (machine_function): Add stack_frame_required.
25362 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25364 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25366 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25368 * common/config/aarch64/aarch64-common.c
25369 (struct aarch64_option_extension, struct processor_name_to_arch,
25370 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25371 aarch64_contains_opt,
25372 aarch64_get_extension_string_for_isa_flags): Change type of
25373 variables storing flags to uint64_t.
25374 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25375 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25376 * config/aarch64/aarch64.c (struct processor,
25377 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25378 aarch64_validate_march, aarch64_override_options,
25379 aarch64_option_print, aarch64_handle_attr_isa_flags,
25380 aarch64_declare_function_name, aarch64_start_file): Make flag
25381 variables uint64_t.
25382 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25383 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25384 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25385 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25386 * config/aarch64/driver-aarch64.c
25387 (struct aarch64_arch_extension, struct aarch64_core_data,
25388 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25389 flag variables uint64_t.
25390 * doc/invoke.texi: Add documentation for new arguments.
25392 2019-05-22 Richard Biener <rguenther@suse.de>
25394 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25396 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25398 2019-05-22 Martin Liska <mliska@suse.cz>
25401 * doc/extend.texi: Document the change.
25403 2019-05-22 Richard Biener <rguenther@suse.de>
25405 PR tree-optimization/90450
25406 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25407 (mem_ref_hasher::equal): Check it.
25408 (mem_ref_alloc): Initialize it.
25409 (gather_mem_refs_stmt): Set it.
25411 2019-05-22 Richard Biener <rguenther@suse.de>
25413 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25415 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25418 2019-05-22 Alan Modra <amodra@gmail.com>
25420 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25421 (ASM_CPU_SPEC): Conditionally add -many.
25422 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25423 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25424 (rs6000_file_start): ..extracted from here, and modified to
25426 (rs6000_output_function_prologue): Emit .machine as necessary.
25428 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25430 PR middle-end/90553
25431 * ira-lives.c (process_bb_node_lives): Consider defs
25432 for a call insn to be die before the call, not after.
25434 * function.c (assign_parm_setup_block): Raise alignment of
25435 stacked parameter only for STRICT_ALIGNMENT targets.
25437 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25439 * config/rs6000/constraints.md (define_register_constraint "wz"):
25441 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25442 RS6000_CONSTRAINT_wz.
25443 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25444 (rs6000_init_hard_regno_mode_ok): Adjust.
25445 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25446 * doc/md.texi (Machine Constraints): Adjust.
25448 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25450 * config/rs6000/constraints.md (define_register_constraint "wl"):
25452 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25453 RS6000_CONSTRAINT_wl.
25454 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25455 (rs6000_init_hard_regno_mode_ok): Adjust.
25456 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25457 * doc/md.texi (Machine Constraints): Adjust.
25459 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25461 * config/rs6000/constraints.md (define_register_constraint "wm"):
25463 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25464 RS6000_CONSTRAINT_wm.
25465 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25466 (rs6000_init_hard_regno_mode_ok): Adjust.
25467 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25468 * doc/md.texi (Machine Constraints): Adjust.
25470 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25472 * config/rs6000/constraints.md (define_register_constraint "wk"):
25474 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25475 RS6000_CONSTRAINT_wk.
25476 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25477 (rs6000_init_hard_regno_mode_ok): Adjust.
25478 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25479 * doc/md.texi (Machine Constraints): Adjust.
25481 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25483 * config/rs6000/constraints.md (define_register_constraint "wj"):
25485 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25486 RS6000_CONSTRAINT_wj.
25487 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25488 (rs6000_init_hard_regno_mode_ok): Adjust.
25489 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25491 * config/rs6000/vsx.md: Ditto.
25492 * doc/md.texi (Machine Constraints): Adjust.
25494 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25496 * config/rs6000/constraints.md (define_register_constraint "wh"):
25498 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25499 RS6000_CONSTRAINT_wh.
25500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25501 (rs6000_init_hard_regno_mode_ok): Adjust.
25502 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25503 * doc/md.texi (Machine Constraints): Adjust.
25505 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25508 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25509 Avoid calling gen_lowpart with CONST operand.
25511 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25513 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25514 field template_last_to_copy.
25515 (ssa_create_duplicates): Set it, and use it. Attempt to
25516 preserve more debug stmts.
25518 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25520 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25521 (signbit<mode>2): New expander
25523 2019-05-21 James Clarke <jrtc27@jrtc27.com>
25526 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25527 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25529 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25531 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25532 %ebx and %ecx bafore calling cpuid with leaf 1 or
25533 non-constant leaf argument.
25535 2019-05-21 Alan Modra <amodra@gmail.com>
25538 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
25539 power9 direct move cost.
25541 2019-05-21 Richard Biener <rguenther@suse.de>
25543 PR middle-end/90510
25544 * fold-const.c (fold_read_from_vector): New function.
25545 * fold-const.h (fold_read_from_vector): Declare.
25546 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
25547 single-element insert permutations. Canonicalize selector
25548 further and fix issue with last commit.
25550 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25552 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
25553 parameter with default value false to declaration.
25554 (split_edges_for_insertion): New inline function. Wrapper for
25555 split_critical_edges with for_edge_insertion_p = true.
25556 * tree-cfg.c (split_critical_edges): Don't split non-critical
25557 edges if for_edge_insertion_p is false. Fix whitespace.
25558 * tree-ssa-pre.c (pass_pre::execute): Call
25559 split_edges_for_insertion instead of split_critical_edges.
25560 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
25561 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
25562 (pass_data_sink_code): Update function name in the comment.
25564 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25566 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
25567 around is_value_included_in that knows how to handle BIT_AND_EXPR.
25568 (is_pred_expr_subset_of): Use the new function. Handle more cases where
25569 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
25572 2019-05-21 Martin Liska <mliska@suse.cz>
25574 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
25576 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
25577 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
25579 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25581 (rs6000_function_arg): Likewise.
25582 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
25583 (rs6000_expand_ternop_builtin): Use interval syntax.
25584 (get_element_number): Likewise.
25585 (altivec_expand_builtin): Likewise.
25586 (rs6000_get_function_versions_dispatcher): Quote target_clones.
25588 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25592 * function.h (struct function): Add calls_eh_return member.
25593 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
25594 gimplifying __builtin_eh_return call.
25595 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
25597 (expand_call_inline): Or in src_cfun->calls_eh_return into
25598 dst_cfun->calls_eh_return.
25599 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
25600 cfun->calls_eh_return.
25601 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
25602 * lto-streamer-out.c (output_struct_function_base): Write
25605 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
25607 PR rtl-optimization/43147
25608 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
25609 IX86_BUILTIN_SHUFPD.
25611 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25613 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
25614 (refs_may_alias_p_1): ... here; update stats.
25615 (refs_may_alias_p): Do not update stats here.
25617 2019-05-20 Richard Biener <rguenther@suse.de>
25619 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
25620 doesn't produce pointers.
25621 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
25622 the first operand points to.
25624 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25626 * tree-ssa-alias.c (compare_sizes): New function.
25627 (sompare_type_sizes): New function
25628 (aliasing_component_refs_p): Use it.
25629 (indirect_ref_may_alias_decl_p): Likewise.
25631 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25633 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
25635 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25637 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
25638 (LIBLSAN_EARLY_SPEC): Likewise.
25639 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
25641 2019-05-20 Martin Liska <mliska@suse.cz>
25643 * config/i386/i386.c (ix86_libc_has_fast_function):
25644 Add ATTRIBUTE_UNUSED for the argument.
25646 2019-05-20 Richard Biener <rguenther@suse.de>
25648 * gimple-match-head.c: Include vec-perm-indices.h.
25649 * generic-match-head.c: Likewise.
25650 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
25652 * fold-const.c (fold_vec_perm): Export.
25653 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
25654 (match.pd): ...here.
25656 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25658 * cfgloop.h (struct loop): Add simdlen member.
25659 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
25660 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
25661 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
25662 as new argument to autovectorize_vector_sizes target hook. If
25663 loop->simdlen, pick up vector size where the vectorization factor
25664 is equal to loop->simd, and if there is none, fall back to the first
25666 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
25668 * omp-low.c (omp_clause_aligned_alignment): Likewise.
25669 * omp-general.c (omp_max_vf): Likewise.
25670 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
25671 * tree-vect-slp.c (vect_slp_bb): Likewise.
25672 * target.def (autovectorize_vector_sizes): Add ALL argument and
25674 * doc/tm.texi: Adjust documentation.
25675 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
25676 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
25677 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
25679 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
25680 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
25681 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
25682 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
25683 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
25684 preferred vector size is not 512-bit or 256-bit, just put those
25685 unpreferred ones last.
25687 2019-05-20 Martin Liska <mliska@suse.cz>
25689 * targhooks.c (default_libc_has_fast_function): New function.
25690 * targhooks.h (default_libc_has_fast_function): Likewise.
25692 2019-05-20 Martin Liska <mliska@suse.cz>
25694 PR middle-end/90263
25695 * builtins.c (expand_builtin_memory_copy_args): When having a
25696 target with fast mempcpy implementation do now use memcpy.
25697 * config/i386/i386.c (ix86_libc_has_fast_function): New.
25698 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
25699 * doc/tm.texi: Likewise.
25700 * doc/tm.texi.in: Likewise.
25702 * expr.c (emit_block_move_hints): Add 2 new arguments.
25703 * expr.h (emit_block_move_hints): Bail out when libcall
25704 to memcpy would be used.
25706 2019-05-20 Martin Liska <mliska@suse.cz>
25708 * profile-count.c: Add vertical spacing in order
25709 to separate functions.
25710 * profile-count.h: Likewise.
25712 2019-05-20 Martin Liska <mliska@suse.cz>
25714 * profile-count.h: Do not use full qualified
25716 * profile-count.c (profile_count::to_frequency): Likewise.
25718 2019-05-20 Martin Liska <mliska@suse.cz>
25720 * profile-count.h (enum profile_quality): Use capital letters
25721 for enum value names. Use the adjusted names.
25722 * profile-count.c: Use the adjusted names.
25724 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25726 * config/rs6000/constraints.md (define_register_constraint "wH"):
25728 (define_register_constraint "wI"): Delete.
25729 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25730 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
25731 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25732 (rs6000_init_hard_regno_mode_ok): Adjust.
25733 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
25734 resp. "d", or with "wa" as appropriate, all with "p8v".
25735 * config/rs6000/vsx.md: Ditto.
25736 * doc/md.texi (Machine Constraints): Adjust.
25738 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25740 * config/rs6000/constraints.md (define_register_constraint "wy"):
25742 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25743 RS6000_CONSTRAINT_wy.
25744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25745 (rs6000_init_hard_regno_mode_ok): Adjust.
25746 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
25747 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
25748 (define_mode_attr Fisa): New.
25749 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
25750 * doc/md.texi (Machine Constraints): Adjust.
25752 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25754 * config/rs6000/constraints.md (define_register_constraint "wu"):
25756 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25757 RS6000_CONSTRAINT_wu.
25758 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25759 (rs6000_init_hard_regno_mode_ok): Adjust.
25760 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
25762 (define_mode_attr Fa): Delete.
25763 * config/rs6000/vsx.md: Ditto.
25764 * doc/md.texi (Machine Constraints): Adjust.
25766 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25768 * config/rs6000/constraints.md (define_register_constraint "wJ"):
25770 (define_register_constraint "wK"): Delete.
25771 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25772 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
25773 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25774 (rs6000_init_hard_regno_mode_ok): Adjust.
25775 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
25776 Replace "wK" constraint by "wH" with "p9v".
25777 * config/rs6000/vsx.md: Ditto.
25778 * doc/md.texi (Machine Constraints): Adjust.
25780 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25782 * config/rs6000/constraints.md (define_register_constraint "wb"):
25784 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25785 RS6000_CONSTRAINT_wb.
25786 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25787 (rs6000_init_hard_regno_mode_ok): Adjust.
25788 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
25789 * config/rs6000/vsx.md: Ditto.
25790 * doc/md.texi (Machine Constraints): Adjust.
25792 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25794 * config/rs6000/constraints.md (define_register_constraint "wo"):
25796 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25797 RS6000_CONSTRAINT_wo.
25798 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25799 (rs6000_init_hard_regno_mode_ok): Adjust.
25800 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
25801 * config/rs6000/altivec.md: Ditto.
25802 * doc/md.texi (Machine Constraints): Adjust.
25804 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25806 * config/darwin-c.c (darwin_register_objc_includes): Do not
25807 prepend the sysroot when building gnu-runtime header search
25810 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25812 * config/darwin.c (darwin_file_end): Use switch_to_section ()
25813 instead of direct output of the asm.
25815 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25817 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
25818 argument to be type bool (was int before).
25819 (rs6000_emit_epilogue): Simplify some code. Declare some variables
25820 at first use. Use type bool for some variables. Fix a theoretical
25821 eh_return bug for svr4.
25823 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25825 * config/rs6000/rs6000.md (isa): New attribute.
25826 (enabled): New attribute.
25828 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
25830 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
25831 assemble_start_function and assemble_end_function.
25833 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
25835 PR middle-end/89433
25836 * omp-general.c (oacc_verify_routine_clauses): Change formal
25837 parameters. Add checking if already marked with an OpenACC
25838 'routine' directive. Adjust all users.
25840 PR middle-end/89433
25841 * omp-general.c (oacc_build_routine_dims): Move some of its
25843 (oacc_verify_routine_clauses): ... this new function.
25844 * omp-general.h (oacc_verify_routine_clauses): New prototype.
25846 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25848 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
25849 formating of picbase labels to match other ports.
25851 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25853 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
25854 in the generated code.
25856 2019-05-16 Martin Sebor <msebor@redhat.com>
25858 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
25859 identifiers, keywords, operators, and types in diagnostics. Correct
25860 quoting, spelling, and sentence capitalization issues.
25861 (expand_builtin_atomic_is_lock_free): Same.
25862 (fold_builtin_next_arg): Same.
25863 * cfgexpand.c (expand_one_var): Same.
25864 (tree_conflicts_with_clobbers_p): Same.
25865 (expand_asm_stmt): Same.
25866 (verify_loop_structure): Same.
25867 * cgraphunit.c (process_function_and_variable_attributes): Same.
25868 * collect-utils.c (collect_execute): Same.
25869 * collect2.c (maybe_run_lto_and_relink): Same.
25870 (is_lto_object_file): Same.
25871 (scan_prog_file): Same.
25872 * convert.c (convert_to_real_1): Same.
25873 * dwarf2out.c (dwarf2out_begin_prologue): Same.
25874 * except.c (verify_eh_tree): Same.
25875 * gcc.c (execute): Same.
25876 (eval_spec_function): Same.
25877 (run_attempt): Same.
25878 (driver::set_up_specs): Same.
25879 (compare_debug_auxbase_opt_spec_function): Same.
25880 * gcov-tool.c (unlink_gcda_file): Same.
25882 (do_rewrite): Same.
25883 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
25884 * gimplify.c (gimplify_asm_expr): Same.
25885 (gimplify_adjust_omp_clauses): Same.
25886 * hsa-gen.c (gen_hsa_addr_insns): Same.
25887 (gen_hsa_insns_for_load): Same.
25888 (gen_hsa_cmp_insn_from_gimple): Same.
25889 (gen_hsa_insns_for_operation_assignment): Same.
25890 (gen_get_level): Same.
25891 (gen_hsa_alloca): Same.
25892 (omp_simple_builtin::generate): Same.
25893 (gen_hsa_atomic_for_builtin): Same.
25894 (gen_hsa_insns_for_call): Same.
25895 * input.c (dump_location_info): Same.
25896 * ipa-devirt.c (compare_virtual_tables): Same.
25897 * ira.c (ira_setup_eliminable_regset): Same.
25898 * lra-assigns.c (lra_assign): Same.
25899 * lra-constraints.c (lra_constraints): Same.
25900 * lto-streamer-in.c (lto_input_mode_table): Same.
25901 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
25902 (merge_and_complain): Same.
25903 (compile_offload_image): Same.
25904 (compile_images_for_offload_targets): Same.
25905 (debug_objcopy): Same.
25908 * opts.c (print_specific_help): Same.
25909 (parse_no_sanitize_attribute): Same.
25910 (print_help): Same.
25911 (handle_param): Same.
25912 * plugin.c (add_new_plugin): Same.
25913 (parse_plugin_arg_opt): Same.
25914 (try_init_one_plugin): Same.
25915 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
25916 operators, and types in diagnostics. Correct quoting and spelling
25918 * read-rtl-function.c (parse_edge_flag_token): Same.
25919 (function_reader::parse_enum_value): Same.
25920 * reg-stack.c (check_asm_stack_operands): Same.
25921 * regcprop.c (validate_value_data): Same.
25922 * sched-rgn.c (make_pass_sched_fusion): Same.
25923 * stmt.c (check_unique_operand_names): Same.
25924 * targhooks.c (default_target_option_pragma_parse): Same.
25925 * tlink.c (recompile_files): Same.
25926 * toplev.c (process_options): Same.
25927 (do_compile): Same.
25928 * trans-mem.c (diagnose_tm_1): Same.
25929 (ipa_tm_scan_irr_block): Same.
25930 (ipa_tm_diagnose_transaction): Same.
25931 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
25932 format a tree code name in a diagnostic.
25933 (verify_types_in_gimple_min_lval): Same.
25934 (verify_types_in_gimple_reference): Same.
25935 (verify_gimple_call): Same.
25936 (verify_gimple_assign_unary): Same.
25937 (verify_gimple_assign_binary): Same.
25938 (verify_gimple_assign_ternary): Same.
25939 (verify_gimple_assign_single): Same.
25940 (verify_gimple_switch): Same.
25941 (verify_gimple_label): Same.
25942 (verify_gimple_phi): Same.
25943 (verify_gimple_in_seq): Same.
25944 (verify_eh_throw_stmt_node): Same.
25945 (collect_subblocks): Same.
25946 (gimple_verify_flow_info): Same.
25947 (do_warn_unused_result): Same.
25948 * tree-inline.c (expand_call_inline): Same.
25949 * tree-into-ssa.c (update_ssa): Same.
25950 * tree.c (tree_int_cst_elt_check_failed): Same.
25951 (tree_vec_elt_check_failed): Same.
25952 (omp_clause_operand_check_failed): Same.
25953 (verify_type_variant): Same.
25954 (verify_type): Same.
25955 * value-prof.c (verify_histograms): Same.
25956 * varasm.c (assemble_start_function): Same.
25958 2019-05-16 Martin Sebor <msebor@redhat.com>
25960 * config/i386/i386-expand.c (get_element_number): Quote keywords
25961 and other internal names in diagnostics. Adjust other diagnostic
25962 formatting issues noted by -Wformat-diag.
25963 * config/i386/i386-features.c
25964 (ix86_mangle_function_version_assembler_name): Same.
25965 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
25966 * config/i386/i386.c (ix86_function_type_abi): Same.
25967 (ix86_function_ms_hook_prologue): Same.
25968 (classify_argument): Same.
25969 (ix86_expand_prologue): Same.
25970 (ix86_md_asm_adjust): Same.
25971 (ix86_memmodel_check): Same.
25973 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
25975 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
25976 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
25979 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
25982 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
25983 intrinsics without SSE/SSE2/SSSE3.
25984 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
25986 (*mmx_uavgv8qi3): Likewise.
25988 2019-05-17 Richard Biener <rguenther@suse.de>
25990 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
25991 VEC_PERM_EXPR as __VEC_PERM with -gimple.
25993 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
25995 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
25996 vec_sldw insn pattern.
25998 2019-05-17 Richard Biener <rguenther@suse.de>
26000 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26002 2019-05-17 Martin Liska <mliska@suse.cz>
26005 * toplev.c (output_stack_usage): With LTO and sanitizer it
26006 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26007 has no file location.
26009 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26012 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26013 sz0 is equal to sz1, instead return false in that case.
26015 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26016 has non-constant expression, force sctx.lane and use two
26017 argument IFN_GOMP_SIMD_LANE instead of single argument.
26018 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26019 two argument IFN_GOMP_SIMD_LANE without lhs.
26020 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26022 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26024 (LOOP_REQUIRES_VERSIONING): Or in
26025 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26026 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26028 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26029 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26030 from simd if clause if needed.
26032 2019-05-16 Richard Biener <rguenther@suse.de>
26034 * tree-affine.c (expr_to_aff_combination): New function split
26036 (tree_to_aff_combination): ... here.
26037 (aff_combination_expand): Avoid building a GENERIC tree.
26039 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26041 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26042 assemble_start_function and assemble_end_function calls.
26043 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26044 assemble_start_function and assemble_end_function.
26045 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26046 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26047 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26048 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26049 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26050 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26051 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26052 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26053 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26054 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26055 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26056 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26058 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26059 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26060 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26061 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26062 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26063 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26064 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26065 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26066 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26067 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26068 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26069 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26070 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26071 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26073 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26074 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26075 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26077 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26079 * tree-ssa-alias.c (alias_stats): Add
26080 aliasing_component_refs_p_may_alias and
26081 aliasing_component_refs_p_no_alias.
26082 (dump_alias_stats): Print aliasing_component_refs_p stats.
26083 (aliasing_component_refs_p): Update stats.
26085 2019-05-16 Martin Liska <mliska@suse.cz>
26088 * multiple_target.c (expand_target_clones): Do not allow
26089 target_clones being used with a symbol that is an alias.
26091 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26093 PR tree-optimization/90394
26094 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26095 positives rather than ICE for cases where (code2 == NE_EXPR
26096 && code1 == BIT_AND_EXPR).
26098 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26101 * tree-core.h (struct tree_decl_common): Document
26102 decl_nonshareable_flag for PARM_DECLs.
26103 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26104 * calls.c (expand_call): Don't try tail call if caller
26105 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26106 passed on the stack and callee needs to pass any arguments on the
26108 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26109 else if instead of series of mutually exclusive ifs. Handle
26110 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26111 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26113 * lto-streamer.h (LTO_major_version): Bump to 9.
26115 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26117 PR tree-optimization/90106
26118 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26119 new parameter as new internal function call, also move it to new
26121 (use_internal_fn): Pass internal function call to
26122 shrink_wrap_one_built_in_call_with_conds.
26124 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26126 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26128 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26129 safelen_int and set loop->dont_vectorize.
26131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26134 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26136 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26138 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26139 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26140 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26143 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26146 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26147 define_insn_and_split to support SSE emulation.
26148 (*vec_extractv2sf_0): Likewise.
26149 (*vec_extractv2sf_1): Likewise.
26150 (*vec_extractv2si_0): Likewise.
26151 (*vec_extractv2si_1): Likewise.
26152 (*vec_extractv2si_zext_mem): Likewise.
26153 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26154 (vec_extractv2sf_1 splitter): Likewise.
26155 (vec_extractv2sfsf): Likewise.
26156 (vec_setv2si): Likewise.
26157 (vec_extractv2si_1 splitter): Likewise.
26158 (vec_extractv2sisi): Likewise.
26159 (vec_setv4hi): Likewise.
26160 (vec_extractv4hihi): Likewise.
26161 (vec_setv8qi): Likewise.
26162 (vec_extractv8qiqi): Likewise.
26163 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26164 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26165 (vec_extractv2sisi): Likewise.
26166 (vec_extractv4hihi): Likewise.
26167 (vec_extractv8qiqi): Likewise.
26168 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26169 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26170 (vec_initv2sisi): Likewise.
26171 (vec_initv4hihi): Likewise.
26172 (vec_initv8qiqi): Likewise.
26173 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26174 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26175 (vec_setv4hi): Likewise.
26176 (vec_setv8qi): Likewise.
26178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26181 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26182 TARGET_MMX_WITH_SSE.
26183 (MMXMODE:*mov<mode>_internal): Likewise.
26184 (MMXMODE:movmisalign<mode>): Likewise.
26186 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26189 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26190 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26191 (sse2_cvtpd2pi): Ditto.
26192 (sse2_cvttpd2pi): Ditto.
26193 (*vec_concatv2sf_sse4_1): Ditto.
26194 (*vec_concatv2sf_sse): Ditto.
26195 (*vec_concatv2si_sse4_1): Ditto.
26196 (*vec_concatv2si): Ditto.
26197 (*vec_concatv4si_0): Ditto.
26198 (*vec_concatv2di_0): Ditto.
26200 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26203 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26205 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26208 * config/i386/sse.md (ssse3_palignrdi): Changed to
26209 define_insn_and_split to support SSE emulation.
26211 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26214 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26216 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26219 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26220 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26223 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26226 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26227 or TARGET_MMX_WITH_SSE.
26228 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26230 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26233 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26235 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26238 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26239 Changed to define_insn_and_split to support SSE emulation.
26241 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26244 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26245 Changed to define_insn_and_split to support SSE emulation.
26247 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26250 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26251 (*mmx_<emms>): This.
26252 (mmx_<emms>): New expander.
26254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26257 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26259 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26261 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26264 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26266 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26269 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26271 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26274 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26275 TARGET_MMX_WITH_SSE.
26276 (*mmx_uavgv4hi3): Add SSE emulation.
26278 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26281 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26282 and TARGET_MMX_WITH_SSE.
26283 (*mmx_uavgv8qi3): Add SSE emulation.
26285 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26288 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26289 maskmovdqu for __MMX_WITH_SSE__.
26291 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26294 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26295 TARGET_MMX and TARGET_MMX_WITH_SSE.
26296 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26298 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26301 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26302 define_insn_and_split to support SSE emulation.
26304 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26307 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26308 and TARGET_MMX_WITH_SSE.
26309 (mmx_<code>v8qi3): Likewise.
26310 (smaxmin:<code>v4hi3): New.
26311 (umaxmin:<code>v8qi3): Likewise.
26312 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26313 (umaxmin:*mmx_<code>v8qi3): Likewise.
26315 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26318 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26319 TARGET_MMX_WITH_SSE.
26320 (*mmx_pinsrw): Add SSE emulation.
26322 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26325 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26327 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26330 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26331 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26334 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26337 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26338 (sse_cvttps2pi): Likewise.
26340 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26343 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26344 TARGET_MMX_WITH_SSE.
26345 (mmx_pshufw_1): Add SSE emulation.
26346 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26347 TARGET_MMX_WITH_SSE to support SSE emulation.
26349 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26352 * config/i386/constraints.md (Yw): New constraint.
26353 * config/i386/mmx.md (*vec_dupv2si): Changed to
26354 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26355 support SSE emulation.
26357 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26360 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26361 TARGET_MMX_WITH_SSE.
26362 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26364 (mmx_gt<mode>3): Likewise.
26366 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26369 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26370 TARGET_MMX_WITH_SSE. Add SSE support.
26372 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26375 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26376 TARGET_MMX_WITH_SSE.
26377 (any_logic:<code><mode>3): New.
26378 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26381 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26384 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26385 TARGET_MMX_WITH_SSE. Add SSE emulation.
26386 (mmx_<shift_insn><mode>3): Likewise.
26387 (ashr<mode>3): New.
26388 (<shift_insn><mode>3): Likewise.
26390 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26393 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26394 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26396 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26399 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26400 TARGET_MMX_WITH_SSE.
26401 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26404 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26407 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26408 TARGET_MMX_WITH_SSE.
26410 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26413 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26416 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26417 (plusminus:mmx_<plusminus_insn><mode>3): Check
26418 TARGET_MMX_WITH_SSE.
26419 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26420 (<plusminus_insn><mode>3): New.
26421 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26422 (*mmx_<plusminus_insn><mode>3): Likewise.
26424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26427 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26428 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26430 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26431 define_insn_and_split to support SSE emulation.
26432 (mmx_punpcklbw): Likewise.
26433 (mmx_punpckhwd): Likewise.
26434 (mmx_punpcklwd): Likewise.
26435 (mmx_punpckhdq): Likewise.
26436 (mmx_punpckldq): Likewise.
26438 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26439 Uros Bizjak <ubizjak@gmail.com>
26442 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26444 (ix86_split_mmx_pack): Likewise.
26445 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26447 (ix86_split_mmx_pack): Likewise.
26448 * config/i386/i386.md (mmx_isa): New.
26449 (enabled): Also check mmx_isa.
26450 * config/i386/mmx.md (any_s_truncate): New code iterator.
26451 (s_trunsuffix): New code attr.
26452 (mmx_packsswb): Removed.
26453 (mmx_packssdw): Likewise.
26454 (mmx_packuswb): Likewise.
26455 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26456 MMX packsswb/packuswb with SSE2.
26457 (mmx_packssdw): Likewise.
26458 * config/i386/predicates.md (register_mmxmem_operand): New.
26460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26463 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26464 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26465 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26466 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26467 (ix86_vector_mode_supported_p): Likewise.
26468 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26470 2019-05-15 Martin Liska <mliska@suse.cz>
26472 PR middle-end/90478
26473 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26474 Check for overflow.
26476 2019-05-15 Richard Biener <rguenther@suse.de>
26478 * tree-into-ssa.c (pass_build_ssa::execute): Run
26479 update_address_taken before going into SSA.
26481 2019-05-15 Richard Biener <rguenther@suse.de>
26483 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26484 as __BIT_FIELD_REF with type with -gimple.
26486 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26488 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26489 semantically equivalent branches (left over after prior refactorings).
26491 2019-05-15 Richard Biener <rguenther@suse.de>
26493 PR tree-optimization/88828
26494 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26497 2019-05-14 Richard Biener <rguenther@suse.de>
26499 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26500 as __VIEW_CONVERT with -gimple.
26502 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26505 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26508 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26510 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26511 define_split to become a define_insn_and_split.
26513 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26515 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26517 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26518 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26519 (sibcall_epilogue): Adjust.
26520 (epilogue): Adjust.
26522 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26524 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26525 to unsupported ones.
26526 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26527 * config.host: Likewise.
26528 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26529 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26530 __svr4__]: Remove "brand" fallback.
26531 [!KSTAT_DATA_STRING]: Remove.
26532 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26534 (comdat_group): Likewise.
26535 (set_have_as_tls): Likewise.
26536 (gcc_cv_target_dl_iterate_phdr): Likewise.
26537 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
26538 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
26539 * configure: Regenerate.
26540 * doc/install.texi: Simplify Solaris target triplets.
26541 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
26542 (Specific, *-*-solaris2*): Document Solaris 10 removal.
26543 Remove Solaris 10 references.
26544 Remove obsolete Solaris bug reference.
26545 (Specific, sparc-sun-solaris2.10): Remove.
26547 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
26549 * config/i386/i386.md (any_div): New code iterator.
26550 (paired_mod): New code attribute.
26551 (sgnprefix): Handle DIV and UDIV RTXes.
26553 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
26554 and udivmod<mode>4 patterns using any_div code iterator.
26555 (divmod splitters): Macroize splitters using any_div code iterator.
26556 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
26557 (*udivmodsi4_pow2_zext_2): Ditto.
26558 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
26559 and *udivmod<mode>4_noext patterns using any_div code iterator.
26560 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
26561 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
26562 patterns using any_div code iterator.
26563 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
26564 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
26565 patterns using any_div code iterator.
26566 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
26567 udivmodhiqi3 patterns using any_extend code iterator.
26569 2019-05-14 Richard Biener <rguenther@suse.de>
26570 H.J. Lu <hongjiu.lu@intel.com>
26572 PR tree-optimization/88828
26573 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
26574 permuting in a single non-constant element not extracted
26577 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
26579 * internal-fn.def (SIGNBIT): New.
26580 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
26582 (signbitv4sf2): Likewise.
26584 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
26587 * config/mips/mips.c (mips_split_move): Skip forward SRC into
26588 next insn when the SRC reg is dead.
26590 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
26592 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
26593 (alloc_cand_and_find_basis): Ditto.
26594 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
26595 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
26596 (create_add_imm_cand, slsr_process_cast): Ditto.
26597 (slsr_process_copy, replace_mult_candidate): Ditto.
26598 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
26599 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
26600 (pass_strength_reduction::execute): Init the first NULL element.
26602 2019-05-13 Nathan Sidwell <nathan@acm.org>
26604 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
26605 (run_attempt): Reformat line break.
26607 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
26610 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
26611 data registers in sibcall epilogues.
26612 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26614 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
26617 * configure.ac (--enable-frame-pointer):
26618 Disable by default for cygwin and mingw.
26619 * configure: Regenerate.
26621 2019-05-13 Nathan Sidwell <nathan@acm.org>
26623 * dwarf2out.c (breakout_comdat_types): Move comment to correct
26625 (const_ok_for_output_1): Balance parens around #if/#else/#endif
26626 (gen_member_die): Move abstract origin check earlier. Only VARs
26627 can be static_inline_p. Simplify splicing control flow.
26629 2019-05-13 Richard Biener <rguenther@suse.de>
26631 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
26633 (vect_build_slp_tree_1): Likewise.
26635 2019-05-13 Richard Biener <rguenther@suse.de>
26637 PR tree-optimization/90402
26638 * tree-if-conv.c (tree_if_conversion): Value number only
26639 the loop body by making the latch an exit of the region
26641 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
26643 (do_rpo_vn): Deal with multiple edges into the entry block
26644 that are not backedges inside the region by skipping PHIs
26645 of the entry block.
26647 2019-05-13 Richard Biener <rguenther@suse.de>
26649 PR tree-optimization/90316
26650 * tree-ssa-pre.c (insert_aux): Fold into ...
26651 (insert): ... this function. Use a RPO walk to reduce the
26652 number of required iterations.
26654 2019-05-13 Martin Liska <mliska@suse.cz>
26656 PR tree-optimization/90416
26657 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
26658 string instead of passing the second part as va_arg argument.
26660 2019-05-13 Martin Liska <mliska@suse.cz>
26662 PR gcov-profile/90380
26663 * gcov.c (handle_cycle): Do not support zero cycle count,
26664 it should not be possible.
26665 (path_contains_zero_cycle_arc): New function.
26666 (circuit): Ignore zero cycle arc counts.
26668 2019-05-13 Martin Liska <mliska@suse.cz>
26670 PR gcov-profile/90380
26671 * gcov.c (enum loop_type): Remove the enum and
26673 (handle_cycle): Assert that we should not reach
26675 (circuit): Use loop_found instead of a tri-state loop_type.
26676 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
26679 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26682 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
26683 (ix86_output_indirect_branch_via_reg): Use output mechanism
26684 accounting for __USER_LABEL_PREFIX__.
26685 (ix86_output_indirect_branch_via_push): Likewise.
26686 (ix86_output_function_return): Likewise.
26687 (ix86_output_indirect_function_return): Likewise.
26689 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
26691 * doc/md.texi: Document use of code attributes in rtx patterns.
26692 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
26693 * read-rtl.c (find_code): Split out search loops into...
26694 (maybe_find_code): ...this new function.
26695 (check_code_iterator): Make the error message more informative.
26696 (check_code_attribute): New function.
26697 (rtx_reader::rtx_alloc_for_name): Likewise.
26698 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
26699 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
26700 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
26701 <max_opp> directly as an rtx code instead of via a match_operator.
26702 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
26703 (<su>abd<mode>_3): Update accordingly.
26705 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26707 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
26708 is given, print the state of the EH "save world" computation for
26711 2019-05-11 Jakub Jelinek <jakub@redhat.com>
26714 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
26715 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26717 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
26719 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
26720 Use pinsrd for TARGET_SSE4_1.
26721 * config/i386/sse.md (movdi_to_sse): Ditto.
26723 2019-05-10 Richard Biener <rguenther@suse.de>
26725 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
26726 (do_rpo_vn): Initialize next_value_id.
26728 2019-05-10 Martin Liska <mliska@suse.cz>
26730 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26733 2019-05-10 Jakub Jelinek <jakub@redhat.com>
26735 PR tree-optimization/90385
26736 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
26737 arguments of the exit phis.
26740 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
26741 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
26743 (copy_tree_body_r): Likewise.
26744 (copy_fn): Set id.do_not_fold to true.
26746 2019-05-10 Martin Liska <mliska@suse.cz>
26748 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
26749 Reapply changes from r269790.
26751 2019-05-10 Martin Liska <mliska@suse.cz>
26753 PR middle-end/90340
26754 * doc/invoke.texi: New params.
26755 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
26756 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
26757 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26759 * tree-switch-conversion.h (struct jump_table_cluster):
26762 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
26764 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
26766 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
26768 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
26770 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
26772 PR rtl-optimization/88879
26773 * sel-sched.c (sel_target_adjust_priority): Remove assert.
26775 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
26778 * config/arm/arm.c (callee_saved_reg_p): Move before
26779 thumb_find_work_register.
26780 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
26781 thumb_find_work_register. Only call df_get_live_out once.
26782 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
26783 (thumb_find_work_register): Use
26784 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
26785 algorithms to locate a spare call clobbered reg.
26787 2019-05-09 Martin Liska <mliska@suse.cz>
26789 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
26790 and MAX_EXPR in GIMPLE FE format.
26792 2019-05-09 Martin Liska <mliska@suse.cz>
26794 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
26795 * gimple-pretty-print.c (dump_gimple_bb_header):
26797 (pp_cfg_jump): Dump edge probability.
26798 * profile-count.c (profile_quality_as_string): Simplify
26799 with a static array.
26800 (parse_profile_quality): New function.
26801 (profile_count::dump): Simplify with a static array.
26802 (profile_count::from_gcov_type): Add new argument.
26803 * profile-count.h (parse_profile_quality): Likewise.
26804 * predict.h (set_hot_bb_threshold): New.
26805 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26807 * predict.c (get_hot_bb_threshold): Set from the new param.
26808 (set_hot_bb_threshold): New.
26810 2019-05-09 Richard Biener <rguenther@suse.de>
26812 PR tree-optimization/90395
26813 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
26814 rewrite vector stores that throw internally.
26816 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
26818 * cif-code.def (CHKP): Remove.
26821 * configure.ac (--enable-frame-pointer): Disable by default for
26823 * configure: Regenerate.
26825 2019-05-09 Alan Modra <amodra@gmail.com>
26828 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
26829 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
26830 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
26831 cost for general <-> vsx when direct moves are available.
26832 Cost union classes at minimal cost for any reg in the class.
26833 Correct calculation for moves between vsx, float, and altivec.
26834 Don't return a low cost for moves between special regs. Don't
26835 use hard coded register numbers.
26836 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
26837 (rs6000_ira_change_pseudo_allocno_class): New function.
26838 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
26839 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
26841 (movsi_internal1): Don't disparage vector alternatives.
26842 (mov<mode>_internal): Likewise, excepting alternative that
26844 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
26845 we <- b alternative.
26847 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26850 PR tree-optimization/89060
26851 * tree-ssa-live.h (live_vars_map): New typedef.
26852 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
26853 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
26854 (struct compute_live_vars_data): New type.
26855 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
26856 live_vars_at_stmt, destroy_live_vars): New functions.
26857 * tree-tailcall.c: Include tree-ssa-live.h.
26858 (live_vars, live_vars_vec): New global variables.
26859 (find_tail_calls): Perform variable life analysis before punting.
26860 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
26861 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
26863 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
26864 Perform variable life analysis to select variables that really need
26866 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
26867 instead set id->eh_landing_pad_dest and assert it is the same.
26868 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
26870 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
26871 Richard Earnshaw <rearnsha@arm.com>
26874 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
26876 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
26877 (thumb1_compute_save_core_reg_mask): Don't force a spare work
26878 register if both the epilogue and prologue can use call-clobbered
26880 (thumb1_unexpanded_epilogue): Use
26881 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
26882 picking temporaries for restoring high regs to match that of the
26883 prologue where possible.
26884 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
26885 the list of work registers. Detect if the return address is still live
26886 at the end of the prologue and avoid using it for a work register if so.
26887 If the return address is not live, add LR to the list of pushable regs
26888 after the first pass.
26890 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26892 PR tree-optimization/90078
26893 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
26894 (INFTY): Increase the value for infinite cost.
26895 (struct comp_cost): Promote type of members to int64_t.
26896 (infinite_cost): Don't set complexity in initialization.
26897 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
26898 overflows to infinite_cost.
26899 (adjust_setup_cost): Promote type of parameter and cost computation
26901 (struct ainc_cost_data, struct iv_ca): Promote type of member to
26903 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
26904 cost computation to int64_t.
26905 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
26906 int64_t's format specifier in dump.
26908 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26910 PR tree-optimization/90240
26911 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
26912 with respect to scaling factor pre-computed for each basic block.
26913 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
26914 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
26915 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
26916 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
26917 live range for array of loop's basic blocks. Cleanup aux field of
26918 loop's basic blocks.
26920 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26922 PR tree-optimization/90356
26923 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
26925 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
26927 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
26928 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
26929 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
26930 (ix86_handle_option): Handle -mavx512bf16.
26931 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
26933 * config/i386/avx512bf16vlintrin.h: New.
26934 * config/i386/avx512bf16intrin.h: New.
26935 * config/i386/cpuid.h (bit_AVX512BF16): New.
26936 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
26937 * config/i386/i386-builtin-types.def: Add new types.
26938 * config/i386/i386-builtin.def: Add new builtins.
26939 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26941 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
26942 (ix86_option_override_internal): Handle BF16.
26943 (ix86_valid_target_attribute_inner_p): Ditto.
26944 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
26945 * config/i386/i386-builtin.c (enum processor_features): Add
26947 (static const _isa_names_table isa_names_table): Ditto.
26948 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
26949 (PTA_AVX512BF16): Ditto.
26950 * config/i386/i386.opt: Add -mavx512bf16.
26951 * config/i386/immintrin.h: Include avx512bf16intrin.h
26952 and avx512bf16vlintrin.h.
26953 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
26954 avx512f_cvtneps2bf16_<mode><mask_name>,
26955 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
26956 * config/i386/subst.md (mask_half): Add new subst.
26957 * doc/invoke.texi: Document -mavx512bf16.
26959 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26961 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
26962 Delete declaration.
26963 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
26964 (rs6000_debug_legitimize_reload_address): Delete.
26965 (rs6000_legitimize_reload_address_ptr): Delete.
26966 (rs6000_option_override_internal): Adjust.
26967 (mem_operand_gpr): Adjust comment.
26968 (legitimate_lo_sum_address_p): Ditto.
26969 (rs6000_legitimize_reload_address): Delete.
26970 (rs6000_debug_legitimize_reload_address): Delete.
26971 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
26973 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
26976 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26977 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
26978 to compute vector element selector for both constant and variable
26981 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26983 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
26984 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
26985 ashrdi3_cvt using SWI48 mode iterator.
26987 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26989 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
26990 (aarch64_<su>abd<mode>_3): Likewise.
26991 (*aarch64_<su>abd<mode>_3): New define_insn.
26992 (<sur>sad<vsi2qi>): New define_expand.
26993 * config/aarch64/iterators.md: Added MAX_OPP attribute.
26994 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
26995 (build_vect_cond_expr): Likewise.
26997 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26999 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27000 clobbers outside of accessible_reg_set.
27001 * config/i386/i386.c (ix86_conditional_register_usage):
27002 Disable register sets by clearing corresponding bits in
27003 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27004 call_used_regs and don't clear corresponding reg_names array members.
27006 2019-05-07 Richard Biener <rguenther@suse.de>
27008 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27009 not specified still compute a comp_vectype for invariant
27012 2019-05-07 Richard Biener <rguenther@suse.de>
27014 PR tree-optimization/90316
27015 * tree-ssa-pre.c (translate_vuse_through_block): When
27016 same_valid is NULL do not bother to search for a virtual
27018 (phi_translate_1): When operands changed we cannot keep
27019 the same value-number so do not bother to ask whether
27020 that's possible from translate_vuse_through_block.
27022 2019-05-07 Martin Liska <mliska@suse.cz>
27024 * bitmap.c (bitmap_register): Come up with
27025 alloc_descriptor_max_uid and assign it for
27027 (register_overhead): Use get_descriptor as
27029 (release_overhead): New.
27030 (bitmap_elem_to_freelist): Call it.
27031 (bitmap_elt_clear_from): Likewise.
27032 (bitmap_obstack_free): Likewise.
27033 (bitmap_move): Sensitively release memory.
27034 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27035 (bitmap_initialize): Initialize alloc_descriptor to zero.
27036 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27038 2019-05-07 Richard Biener <rguenther@suse.de>
27040 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27041 we build a SLP node. Remove max_size and limiting.
27042 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27044 2019-05-07 Richard Biener <rguenther@suse.de>
27046 PR tree-optimization/90316
27047 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27048 limit by reference.
27049 (walk_non_aliased_vuses): Take walking limit argument.
27050 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27051 walking if it is reached instead of just counting.
27052 (get_continuation_for_phi): Likewise.
27053 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27054 limiting to the callback.
27055 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27056 (vn_reference_lookup_3): Likewise.
27057 (vn_reference_lookup_pieces): Likewise.
27058 (vn_reference_lookup): Likewise.
27059 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27060 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27061 (avail_exprs_stack::lookup_avail_expr): Likewise.
27063 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27065 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27066 for comparaible types in the second direction even if first one
27067 hits incomparable type.
27069 2019-05-07 Richard Biener <rguenther@suse.de>
27072 * lto-wrapper.c (debug_objcopy): Use the original filename
27073 including archive offset for the filename used for -save-temps.
27075 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27077 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27080 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27081 Hongtao Liu <hongtao.liu@intel.com>
27085 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27086 Modified, original implementation isn't correct.
27088 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27090 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27091 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27092 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27093 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27094 (FRAME_POINTER_REGNUM): Change numbering.
27095 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27096 (alt_reg_names): Adjust.
27097 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27099 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27100 (DWARF_FRAME_REGISTERS): Delete.
27101 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27102 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27104 (REG_ALLOC_ORDER): Adjust.
27105 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27106 (REG_CLASS_CONTENTS): Adjust.
27107 (RETURN_ADDR_RTX): Change comment.
27108 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27110 (REGISTER_NAMES): Adjust.
27111 (ADDITIONAL_REGISTER_NAMES): Adjust.
27112 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27114 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27116 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27118 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27119 (DWARF_FRAME_REGISTERS): Adjust.
27120 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27122 (REG_ALLOC_ORDER): Adjust.
27123 (enum reg_class): Delete SPR_REGS.
27124 (REG_CLASS_NAMES): Delete SPR_REGS.
27125 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27126 (REGISTER_NAMES): Adjust.
27127 (ADDITIONAL_REGISTER_NAMES): Adjust.
27128 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27129 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27130 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27131 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27132 (htm_spr_regno): Delete.
27133 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27135 (rs6000_dbx_register_number): Adjust.
27137 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27139 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27141 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27143 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27144 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27146 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27148 PR tree-optimization/88709
27149 PR tree-optimization/90271
27150 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27151 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27152 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27154 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27155 of the store merging group is larger than
27156 PARAM_STORE_MERGING_MAX_SIZE parameter.
27157 (split_group): Add bzero_first argument. If set, always emit first
27158 the first store which must be = {} of the whole area and then for the
27159 rest of the stores consider all zero bytes as paddings.
27160 (imm_store_chain_info::output_merged_store): Check if first store
27161 is = {} of the whole area and if yes, determine which setting of
27162 bzero_first for split_group gives smaller number of stores. Adjust
27163 split_group callers.
27164 (lhs_valid_for_store_merging_p): Allow decls.
27165 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27167 (pass_store_merging::process_store): Likewise.
27169 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27172 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27173 handling of V1TImode.
27175 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27178 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27179 and enable_frame_pointer ...
27180 * configure.ac: ... here. Update help strings for
27181 --enable-frame-pointer.
27182 * configure: Regenerate.
27183 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27184 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27185 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27186 (USE_X86_64_FRAME_POINTER): Ditto.
27188 2019-05-06 Martin Liska <mliska@suse.cz>
27190 * config.gcc: Append to target_gtfiles and fix indentation.
27192 2019-05-06 Richard Biener <rguenther@suse.de>
27194 PR tree-optimization/90358
27195 * tree-vect-stmts.c (get_group_load_store_type): Properly
27196 detect unused upper half of load.
27197 (vectorizable_load): Likewise.
27199 2019-05-06 Richard Biener <rguenther@suse.de>
27201 PR tree-optimization/88828
27202 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27203 (simplify_vector_constructor): ...here. Handle constants in
27206 2019-05-06 Richard Biener <rguenther@suse.de>
27208 PR tree-optimization/90328
27209 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27210 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27211 is valid in the loop nest before using it.
27212 (initialize_data_dependence_relation): Adjust.
27213 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27214 loop as loop-nest to dr_may_alias_p.
27216 2019-05-06 Richard Biener <rguenther@suse.de>
27218 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27220 2019-05-06 Richard Biener <rguenther@suse.de>
27222 PR tree-optimization/90316
27223 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27224 compute target on demand.
27225 (get_continuation_for_phi): Remove code walking stmts to
27226 get to a target virtual operand which could end up being
27229 2019-05-06 Martin Liska <mliska@suse.cz>
27232 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27233 when -mabi is selected to a non-default version.
27235 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27236 Martin Liska <mliska@suse.cz>
27238 * Makefile.in: Add lto-dump.texi.
27239 * cgraph.h: Add new functions get_visibility_string and
27240 get_symtab_type_string.
27241 * doc/gcc.texi: Include lto-dump section.
27242 * doc/lto-dump.texi: New file.
27243 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27244 (parse_dump_option): Factor out this function.
27245 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27246 (parse_dump_option): Export the function.
27247 * symtab.c (symtab_node::get_visibility_string): New function.
27248 (symtab_node::get_symtab_type_string): Likewise.
27250 2019-05-06 Martin Liska <mliska@suse.cz>
27252 * config/i386/i386-builtins.c: New file.
27253 * config/i386/i386-builtins.h: New file.
27254 * config/i386/i386-expand.c: New file.
27255 * config/i386/i386-expand.h: New file.
27256 * config/i386/i386-features.c: New file.
27257 * config/i386/i386-features.h: New file.
27258 * config/i386/i386-options.c: New file.
27259 * config/i386/i386-options.h: New file.
27260 * config.gcc: Add new files into extra_objs and
27262 * config/i386/i386.c: Split content of the file
27263 into newly introduced files.
27264 * config/i386/i386.h: Declare common variables
27266 * config/i386/t-i386: Define dependencies for new files.
27268 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27271 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27272 Restrict 'all' variant to 32-bit configurations.
27273 (unaligned_loadhiu): Likewise.
27274 (unaligned_storehi): Likewise.
27275 (unaligned_storesi): Likewise.
27276 (unaligned_loadhis): Disable when compiling for thumb1.
27278 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27280 PR tree-optimization/90269
27281 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27284 2019-05-03 Martin Liska <mliska@suse.cz>
27286 * hash-map.h: Add is_empty function.
27287 * hash-set.h: Likewise.
27288 * hash-table.h: Likewise.
27289 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27290 elements () == 0 (and similar usages).
27291 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27292 * gimplify.c (gimplify_bind_expr): Likewise.
27293 (gimplify_switch_expr): Likewise.
27294 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27295 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27296 * postreload-gcse.c (dump_hash_table): Likewise.
27297 (gcse_after_reload_main): Likewise.
27298 * predict.c (combine_predictions_for_bb): Likewise.
27299 * tree-parloops.c (reduction_phi): Likewise.
27300 (separate_decls_in_region): Likewise.
27301 (transform_to_exit_first_loop): Likewise.
27302 (gen_parallel_loop): Likewise.
27303 (gather_scalar_reductions): Likewise.
27304 (try_create_reduction_list): Likewise.
27305 * var-tracking.c (dump_vars): Likewise.
27306 (emit_notes_for_changes): Likewise.
27307 (vt_emit_notes): Likewise.
27309 2019-05-03 Richard Biener <rguenther@suse.de>
27311 PR tree-optimization/90316
27312 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27315 2019-05-03 Richard Biener <rguenther@suse.de>
27317 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27318 peeling for gaps by loading only lower halves of vectors
27320 (vectorizable_load): Likewise.
27322 2019-05-03 Richard Biener <rguenther@suse.de>
27324 PR middle-end/89518
27325 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27327 2019-05-03 Richard Biener <rguenther@suse.de>
27329 PR middle-end/87314
27330 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27331 Handle STRING_CST vs DECL or STRING_CST.
27333 2019-05-03 Richard Biener <rguenther@suse.de>
27335 PR tree-optimization/88963
27336 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27337 vector loads feeding only BIT_FIELD_REFs to component
27338 loads. Rewrite stores fed by CONSTRUCTORs to component
27341 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27343 * opts.h (finish_options): Remove lang_mask argument.
27344 (print_help, help_option_argument): Declare.
27345 * opts.c (print_help): Remove forward declaration, no longer static.
27346 (finish_options): Remove lang_mask argument, don't call print_help
27348 * opts-global.c (decode_options): Adjust finish_option caller, call
27351 PR tree-optimization/90303
27352 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27353 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27355 2019-05-03 Richard Biener <rguenther@suse.de>
27357 PR tree-optimization/89698
27358 * gimple-fold.c (canonicalize_constructor_val): Early out
27359 for constants, handle unfolded INTEGER_CSTs as they appear in
27360 C++ virtual table ctors.
27362 2019-05-03 Richard Biener <rguenther@suse.de>
27364 * passes.c (execute_function_todo): Remove dead code.
27366 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27368 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27369 the internal register number, for any "real" register.
27371 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27373 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27374 correct numbers for TFHAR, TFIAR, TEXASR.
27376 2019-05-02 Richard Biener <rguenther@suse.de>
27378 PR tree-optimization/89653
27379 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27380 update-address-taken before the pass.
27381 * passes.def (pass_tree_loop_init): Put comment before it.
27383 2019-05-02 Richard Biener <rguenther@suse.de>
27385 PR tree-optimization/89509
27386 * tree-ssa-structalias.c (compute_dependence_clique): Look
27387 at the first subvar when determining whether it is restrict.
27389 2019-05-02 Richard Biener <rguenther@suse.de>
27391 PR tree-optimization/90273
27392 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27393 useless debug stmts.
27395 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27397 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27399 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27401 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27402 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27403 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27404 (vectorizable_reduction): Use the functions above to vectorize in a
27405 fully masked loop codes that don't have a conditional internal
27408 2019-05-02 Martin Liska <mliska@suse.cz>
27410 * cgraphclones.c: Call valid_attribute_p with 1 for
27412 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27413 it's for target attribute.
27414 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27415 Add new boolean argument.
27416 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27418 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27419 to ix86_valid_target_attribute_inner_p.
27420 (ix86_valid_target_attribute_p): Pass flags argument to
27421 ix86_valid_target_attribute_inner_p.
27422 (get_builtin_code_for_version): Use 0 as it's target attribute.
27424 2019-05-02 Martin Liska <mliska@suse.cz>
27426 * gcc.c (process_command): Add dummy file only
27428 * opts-global.c (decode_options): Pass lang_mask.
27429 * opts.c (print_help): New function.
27430 (finish_options): Print --help if help_option_argument
27432 (common_handle_option): Factor out content of OPT__help_
27434 * opts.h (finish_options): Add new argument.
27436 2019-05-02 Martin Liska <mliska@suse.cz>
27439 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27440 With -minline-all-stringops use inline expansion using 4B loop.
27441 * doc/invoke.texi: Document the change of
27442 -minline-all-stringops.
27444 2019-05-01 Jeff Law <law@redhat.com>
27446 PR tree-optimization/88797
27447 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27448 PHI feeds a conditional on the RHS of an assignment.
27450 2019-04-30 Andrew Waterman <andrew@sifive.com>
27451 Jim Wilson <jimw@sifive.com>
27453 * config/riscv/constraints.md (L): New.
27454 * config/riscv/predicates.md (lui_operand): New.
27455 (sfb_alu_operand): New.
27456 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27457 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27458 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27459 * config/riscv/risc.md (type): Add sfb_alu.
27460 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27461 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27462 (branch_zero<mode>): Delete.
27463 (mov<mode>cc): New.
27464 (mov<GPR:mode><X:mode>cc): Likewise.
27465 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27467 2019-04-30 Nathan Sidwell <nathan@acm.org>
27469 * tree.h (MARK_TS_EXP): New.
27471 2019-04-30 Martin Liska <mliska@suse.cz>
27473 * opts.c (enable_warning_as_error): Provide hints
27474 for unknown options.
27476 2019-04-30 Martin Liska <mliska@suse.cz>
27479 * doc/invoke.texi: Add missing dash for gas-locview-support
27480 and gno-as-locview-support.
27482 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27485 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27486 whitespace at the start of target attribute string.
27488 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27491 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27492 Define __ARM_FEATURE_ATOMICS.
27494 2019-04-30 Martin Liska <mliska@suse.cz>
27496 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27497 into built_in_function enum. Remove code for endp == 2 and
27498 use BUILT_IN_* constants.
27499 (gimple_fold_builtin): Call the function with fcode.
27501 2019-04-30 Martin Liska <mliska@suse.cz>
27503 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27504 DECL_FUNCTION_CODE into ix86_builtins enum before
27505 the switch statement.
27507 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27509 PR tree-optimization/89475
27510 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27513 2019-04-30 Martin Liska <mliska@suse.cz>
27515 PR translation/90274
27516 * opts.c (print_filtered_help): Wrap string in _(...).
27518 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27520 PR tree-optimization/90240
27522 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27524 PR tree-optimization/90078
27525 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27526 checks for infinite_cost overflow.
27528 2019-04-29 Jeff Law <law@redhat.com>
27530 * passes.def: Move -Wrestrict pass after copy propagation.
27532 2019-04-29 Maya Rashish <coypu@sdf.org>
27534 * config.gcc (default_gnu_indirect_function): Default to yes
27535 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
27536 sparc*-*-netbsd*, x86_64-*-netbsd*.
27538 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
27540 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
27541 where cond2 is NE_EXPR.
27542 (is_value_included_in): Update comment.
27544 2019-04-29 Richard Biener <rguenther@suse.de>
27546 PR tree-optimization/90278
27547 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
27548 EH on comparison simplification.
27550 2019-04-29 Jason Merrill <jason@redhat.com>
27552 PR c++/82081 - tail call optimization breaks noexcept
27553 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
27554 nothrow function to a might-throw function into a tail call.
27556 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
27558 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
27559 (DDR_INNER_LOOP): Likewise.
27560 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
27561 (initialize_data_dependence_relation): Likewise.
27562 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
27564 2019-04-29 Jakub Jelinek <jakub@redhat.com>
27566 PR rtl-optimization/90257
27567 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
27571 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27575 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27578 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27581 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27583 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27585 2019-04-29 Richard Biener <rguenther@suse.de>
27587 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
27590 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
27592 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
27593 varasm.h, and netbsd-protos.h.
27595 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
27598 * config/i386/i386-protos.h (ix86_data_alignment): Change
27599 the second argument type to unsigned int.
27600 * config/i386/i386.c (ix86_data_alignment): Change "align"
27601 argument type to unsigned int.
27603 2019-04-27 Martin Liska <mliska@suse.cz>
27605 PR middle-end/90258
27606 * opt-suggestions.c (option_proposer::build_option_suggestions):
27607 When get_valid_option_values returns empty values, add the
27608 misspelling candidate.
27610 2019-04-26 Jim Wilson <jimw@sifive.com>
27612 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
27614 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
27615 Pass orig_mode to riscv_build_integer.
27616 (riscv_split_integer): Pass mode to riscv_move_integer.
27617 (riscv_legitimize_const_move): Likewise.
27618 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
27619 promoted_mode. Replace force_reg call with code to load constant into
27620 promoted reg and then subreg it for the store.
27621 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
27622 riscv_move_integer.
27624 2018-04-26 Eugene Sharygin <eush@ispras.ru>
27626 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
27629 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
27631 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
27632 commentary about the encoding of precision.
27634 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
27636 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
27637 * config/i386/t-freebsd64: New file.
27638 * config.gcc: Add the t-freebsd64 for multilib support.
27640 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
27642 * doc/extend.texi (vector_size): Add missing comma after @xref.
27644 2019-04-25 Jakub Jelinek <jakub@redhat.com>
27646 * BASE-VER: Set to 10.0.0.
27648 2019-04-25 Richard Biener <rguenther@suse.de>
27650 PR middle-end/89765
27651 * gimplify.c (gimplify_expr): Avoid turning a lvalue
27652 VIEW_CONVERT_EXPR into one operating on an rvalue.
27654 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
27657 * config/i386/i386.c (feature_priority): Moved to file scope.
27658 (processor_features): Likewise.
27659 (processor_model): Likewise.
27660 (_arch_names_table): Likewise.
27661 (arch_names_table): Likewise.
27662 (_feature_list): Removed.
27663 (feature_list): Likewise.
27664 (_isa_names_table): Moved to file scope. Add priority.
27665 (isa_names_table): Likewise.
27666 (get_builtin_code_for_version): Replace feature_list with
27667 isa_names_table. Update error message for P_ZERO priority.
27669 2019-04-25 Richard Biener <rguenther@suse.de>
27671 * tree-pass.h (make_pass_phi_only_cprop): Remove.
27672 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
27674 2019-04-24 Jeff Law <law@redhat.com>
27676 PR tree-optimization/90037
27677 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
27678 * passes.def: Replace all instance of phi-only cprop with the
27679 lattice propagator. Move propagation pass from after erroneous
27680 path isolation to before erroneous path isolation.
27681 * tree-ssa-phionlycprop.c: Remove.
27683 2019-04-24 Richard Biener <rguenther@suse.de>
27685 PR middle-end/90213
27686 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
27687 by size and BITS_PER_UNIT on poly-wide-ints.
27689 2019-04-25 Richard Biener <rguenther@suse.de>
27691 PR middle-end/90194
27692 * match.pd: Add pattern to simplify view-conversion of an
27695 2019-04-24 Clement Chigot <clement.chigot@atos.net>
27697 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
27698 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
27699 for Go on 32 bit AIX.
27700 * config/rs6000/aix72.h: Likewise.
27702 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27705 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
27706 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
27708 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
27711 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
27712 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
27713 for restored hard frame pointer.
27714 (s390_sched_dependencies_evaluation): Implement new target hook.
27715 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
27717 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
27719 * config/arc/arc-options.def: Fix typos and spelling mistakes.
27720 * config/arc/arc.c (arc_init): Cleanup warning message.
27721 (arc_override_options): Likewise.
27723 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27726 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
27727 a register if both if_true and if_false are MEMs.
27729 PR tree-optimization/90208
27730 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
27731 after labels of new_bb, not before them.
27733 PR tree-optimization/90211
27734 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
27735 which are not SSA_NAMEs.
27737 2018-04-23 Sudakshina Das <sudi.das@arm.com>
27739 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
27741 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
27743 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27745 PR rtl-optimization/87979
27746 * modulo-sched.c (sms_schedule): Start ii value "mii" should
27749 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27751 PR rtl-optimization/84032
27752 * modulo-sched.c (ps_insn_find_column): Change condition so that
27753 branch will always be the last insn in a row inside partial
27756 2019-04-23 Richard Biener <rguenther@suse.de>
27759 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
27760 dest_single_pred_p argument.
27761 (remove_forwarder_block): Adjust.
27762 (remove_forwarder_block_with_phi): Likewise.
27764 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27765 Bernd Edlinger <bernd.edlinger@hotmail.de>
27766 Jakub Jelinek <jakub@redhat.com>
27769 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
27770 if used with general-regs-only.
27771 (arm_conditional_register_usage): Don't add non-general regs if
27773 (arm_valid_target_attribute_rec): Handle general-regs-only.
27774 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
27776 (TARGET_HARD_FLOAT_SUB): Define.
27777 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
27778 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
27779 (TARGET_REALLY_IWMMXT2): Likewise.
27780 * config/arm/arm.opt: Add -mgeneral-regs-only.
27781 * doc/extend.texi: Document ARM general-regs-only target.
27782 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
27784 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27786 PR tree-optimization/90078
27787 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27788 checks for infinite_cost overflow.
27790 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27792 PR tree-optimization/90021
27793 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
27794 and check univariate against it.
27795 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
27796 * tree-data-ref.c (add_other_self_distances): Pass new argument.
27798 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27802 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27805 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27808 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27810 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27812 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
27814 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
27815 names using operand format, rather than hard-wired.
27816 (speculation_barrier): Likewise.
27818 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
27820 PR tree-optimization/88055
27821 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
27822 (gen_one_condition): Use it if !HONOR_NANS.
27824 2019-04-19 Jakub Jelinek <jakub@redhat.com>
27826 PR middle-end/90139
27827 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
27828 assign_temp instead of gen_reg_rtx.
27830 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
27832 PR translation/90118
27833 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27834 Add missing space before %<.
27836 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
27838 PR rtl-optimization/87871
27839 * ira-lives.c (make_object_dead): Don't add conflicts to
27840 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
27842 2019-04-18 Martin Sebor <msebor@redhat.com>
27844 PR middle-end/89797
27845 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
27846 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
27847 assuming type size fits in SHWI.
27849 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
27852 * ipa-inline.c (flatten_function): New parameter UPDATE.
27853 (ipa_inline, early_inliner): Use it.
27855 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27857 * fold-const.c (int_const_binop): Return early on failure.
27859 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27861 PR middle-end/85164
27862 * combine.c (force_int_to_mode): Cast the argument rather than
27863 the result of known_alignment.
27864 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
27866 2019-04-18 Richard Biener <rguenther@suse.de>
27869 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
27871 (remove_forwarder_block): ... here.
27872 (remove_forwarder_block_with_phi): Also move debug stmts here.
27874 2019-04-18 Jakub Jelinek <jakub@redhat.com>
27876 PR translation/79183
27877 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
27878 inform where appropriate.
27880 2019-04-18 Richard Biener <rguenther@suse.de>
27882 * tree.c (get_qualified_type): Put found type variants at the
27883 head of the variant list.
27885 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27887 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
27889 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
27892 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
27893 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
27894 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
27895 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
27896 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
27898 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
27900 * ira-conflicts.c (print_allocno_conflicts): Always print something,
27901 even for allocno's with no conflicts.
27902 (print_conflicts): Print an extra newline.
27904 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27906 * auto-inc-dec.c (attempt_change): Set the alignment of the
27907 temporary memory to that of the original.
27909 2019-04-17 Joao Moreira <jmoreira@suse.de>
27911 * targhooks.c (default_print_patchable_function_entry): Emit
27912 __patchable_function_entries section with writable flags to allow
27913 relocation resolution.
27915 2019-04-17 Jonny Grant <jg@jguk.org>
27917 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
27919 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27921 PR middle-end/90095
27922 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
27923 on lowpart SUBREGs.
27925 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
27927 * config/arc/arc.c (arc_init): Format diagnostic string.
27928 (arc_override_options): Likewise.
27929 (check_if_valid_regno_const): Likewise.
27930 (arc_reorg): Likewise.
27932 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27935 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
27937 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
27939 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
27940 (*movdi_update1): Use Pmode.
27941 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
27942 (movdi_<mode>_update_stack): Rename to ...
27943 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
27945 (*movsi_update1): Use Pmode.
27946 (*movsi_update2): Use Pmode.
27947 (movsi_update): Rename to ...
27948 (movsi_<mode>_update): ... this. Use Pmode.
27949 (movsi_update_stack): Fix condition.
27950 (*movhi_update1): Use Pmode. Fix argument to
27951 avoiding_indexed_address_p.
27952 (*movhi_update2): Ditto.
27953 (*movhi_update3): Ditto.
27954 (*movhi_update4): Ditto.
27955 (*movqi_update1): Ditto.
27956 (*movqi_update2): Ditto.
27957 (*movqi_update3): Ditto.
27958 (*movsf_update1, *movdf_update1): Merge, rename to...
27959 (*mov<mode>_update1): This. Use Pmode. Fix argument to
27960 avoiding_indexed_address_p. Add "size" attribute.
27961 (*movsf_update2, *movdf_update2): Merge, rename to...
27962 (*mov<mode>_update2): This. Ditto.
27963 (*movsf_update3): Use Pmode. Fix argument to
27964 avoiding_indexed_address_p.
27965 (*movsf_update4): Ditto.
27966 (allocate_stack): Simplify condition. Adjust pattern names.
27968 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27971 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
27972 whitespace at the start of target attribute string.
27974 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
27977 * config/rs6000/power9.md: Add store forwarding bypass.
27979 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
27982 * valtrack.c (dead_debug_insert_temp): Reset debug references
27983 to the return value of a call being removed.
27985 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27987 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
27988 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
27989 implement target hook.
27990 (arc_memory_move_cost): New function.
27991 (TARGET_REGISTER_MOVE_COST): Define.
27992 (TARGET_MEMORY_MOVE_COST): Likewise.
27993 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
27994 (MEMORY_MOVE_COST): Likewise.
27996 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27998 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
27999 (sibcall_value_insn): Likewise.
28000 * config/arc/constraints.md (Rs5): Remove.
28002 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28004 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28005 for last two fake registers.
28006 (arc_conditional_register_usage): Make sure fake frame and arg
28007 pointer regs are in general regs class.
28008 (FRAME_POINTER_MASK): Remove.
28009 (RETURN_ADDR_MASK): Remove.
28010 (arc_must_save_register): Use hard frame regnum.
28011 (frame_restore_reg): Use hard_frame_pointer_rtx.
28012 (arc_save_callee_saves): Likewise.
28013 (arc_restore_callee_saves): Likewise.
28014 (arc_save_callee_enter): Likewise.
28015 (arc_restore_callee_leave): Likewise.
28016 (arc_save_callee_milli): Likewise.
28017 (arc_eh_return_address_location): Likewise.
28018 (arc_check_multi): Use hard frame regnum.
28019 (arc_can_eliminate): Likewise.
28020 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28021 for register allocator.
28022 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28023 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28024 (FRAME_POINTER_REGNUM): Change it to a fake register.
28025 (HARD_FRAME_POINTER_REGNUM): Defined.
28026 (ARG_POINTER_REGNUM): Change it to a new fake register.
28027 (ELIMINABLE_REGS): Update.
28028 (REGISTER_NAMES): Update names.
28029 * config/arc/arc.md (LP_START): Remove.
28030 (LP_END): Likewise.
28031 (shift_si3_loop): Update pattern.
28033 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28035 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28036 to avoid delay slot scheduling.
28037 (arc_must_save_register): Don't save SP.
28038 * config/arc/arc.md (stack_tie): Remove.
28039 (UNSPEC_ARC_STKTIE): Likewise.
28041 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28042 Shiva Chen <shiva0217@gmail.com>
28044 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28045 code gen with large shift amount.
28047 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28049 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28052 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28055 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28056 print -m64/-mx32/-m32 if it is true.
28057 (ix86_debug_options, ix86_function_specific_print): Pass true as
28058 ADD_ABI_P to ix86_target_string.
28059 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28060 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28061 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28063 PR rtl-optimization/90082
28064 * dce.c (can_delete_call): New function.
28065 (deletable_insn_p, mark_insn): Use it.
28067 PR tree-optimization/90090
28068 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28070 (is_division_by_square): Likewise. Formatting fix.
28072 2019-04-16 Richard Biener <rguenther@suse.de>
28074 PR tree-optimization/56049
28075 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28076 equality check if alias-set zero will prevail.
28078 2019-04-15 Jeff Law <law@redhat.com>
28080 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28081 size and alignment as unsigned.
28083 2019-04-15 Richard Biener <rguenther@suse.de>
28086 * tree-loop-distribution.c (destroy_loop): Preserve correct
28089 2019-04-15 Richard Biener <rguenther@suse.de>
28091 PR tree-optimization/90071
28092 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28093 abnormal operands from def stmts.
28095 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28097 PR rtl-optimization/89794
28098 * combine.c (count_auto_inc): New function.
28099 (try_combine): Count how many auto_inc expressions there were in the
28100 original instructions. Ensure we have the same number in the new
28101 instructions. Remove the code that tried to ensure auto_inc side
28102 effects on i1 and i0 are not lost.
28104 2019-04-15 Richard Biener <rguenther@suse.de>
28107 * tree.h (auto_var_p): Declare.
28108 * tree.c (auto_var_p): New function, split out from ...
28109 (auto_var_in_fn_p): ... here.
28110 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28112 (new_var_info): Initialize it.
28113 (set_uids_in_ptset): Also set the shadow variable uid if required.
28114 (ipa_pta_execute): Postprocess points-to solutions assigning
28115 shadow variable uids for locals that may reach their containing
28116 function recursively.
28117 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28118 assert but instead check whether the points-to solution is
28121 2019-04-15 Martin Jambor <mjambor@suse.cz>
28124 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28127 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28129 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28131 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28132 Kito Cheng <kito.cheng@gmail.com>
28133 Shiva Chen <shiva0217@gmail.com>
28135 * config/nds32/nds32-md-auxiliary.c
28136 (nds32_legitimize_pic_address): Use new PIC pattern.
28137 (nds32_legitimize_tls_address): Use new TLS pattern.
28138 (nds32_output_symrel): New.
28139 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28140 (nds32_alloc_relax_group_id): Ditto.
28141 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28142 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28144 (nds32_group_tls_insn): Ditto.
28145 (nds32_group_float_insns): Ditto.
28146 * config/nds32/nds32.md (tls_le): New.
28149 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28151 * configure: Add nds32 target for dwarf2 debug_line checking.
28152 * configure.ac: Regenerated.
28154 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28157 * ipa-devirt.c (skip_in_fields_list_p): New.
28158 (odr_types_equivalent_p): Use it.
28160 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28163 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28164 instead of strncmp when checking for thumb and arm. Formatting fixes.
28166 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28168 * doc/install.texi: Document --with-target-system-zlib.
28170 2019-04-12 Martin Sebor <msebor@redhat.com>
28176 * targhooks.c (default_vector_alignment): Avoid assuming
28177 argument fits in SHWI.
28178 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28179 a shift expression.
28180 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28182 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28184 PR rtl-optimization/89965
28185 * dce.c: Include rtl-iter.h.
28186 (struct check_argument_load_data): New type.
28187 (check_argument_load): New function.
28188 (find_call_stack_args): Check for loads from stack slots still tracked
28189 in sp_bytes and punt if any is found.
28191 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28193 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28195 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28196 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28198 2019-04-12 Martin Liska <mliska@suse.cz>
28200 PR middle-end/89970
28201 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28203 (separate_attrs): Handle multiple 'default's.
28204 (expand_target_clones): Rework error handling code.
28206 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28209 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28210 mode of vector rather than mode of destination for move instruction.
28211 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28212 Use QI inner mode with V16QI vector mode.
28214 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28217 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28218 "invalid %%t operand" in output_operand_lossage message.
28220 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28222 * config/s390/predicates.md (permute_pattern_operand): New
28224 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28225 operand for the permute pattern.
28226 ("*vec_perm<mode>"): New insn definition.
28227 ("bswap<mode>"): Generate the permute pattern operand in the
28228 expander and perform the operand reloads for pre arch13 level
28230 ("*bswap<mode>_emu"): Rename to ...
28231 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28232 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28233 Add the USE operand for the permute pattern.
28234 ("*vec_set_bswap_vec<mode>"): Likewise.
28236 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28239 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28240 and gcc_unreachable if it fails, just call tree_to_uhwi which
28241 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28242 Start warning message with a lower-case letter. Formatting fixes.
28244 PR rtl-optimization/90026
28245 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28246 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28247 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28248 in cfglayout mode, use emit_barrier_after_bb.
28250 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28252 PR rtl-optimization/87763
28253 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28256 2019-04-11 Tom de Vries <tdevries@suse.de>
28258 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28259 max macro using statement expression.
28261 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28263 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28264 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28265 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28266 read_only_private_data_section using xcoff_private_rodata_section_name.
28267 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28269 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28272 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28274 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28276 PR rtl-optimization/89965
28277 * dce.c (sp_based_mem_offset): New function.
28278 (find_call_stack_args): Use sp_based_mem_offset.
28280 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28282 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28284 2019-04-11 Richard Biener <rguenther@suse.de>
28286 PR tree-optimization/90020
28287 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28288 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28289 * tree-ssa-pre.c (compute_avail): Use it to not put
28290 possibly trapping references after a call that might not
28291 return into EXP_GEN.
28292 * gcse.c (compute_hash_table_work): Do not elide
28293 marking a block containing a call if the call might not
28296 2019-04-11 Richard Biener <rguenther@suse.de>
28298 PR tree-optimization/90018
28299 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28300 Test both SLP and interleaving variants.
28302 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28304 * config/s390/8561.md: New file.
28305 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28306 Add arch13 cpu model.
28307 * config/s390/s390-opts.h (enum processor_type): Likewise.
28308 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28309 (s390_get_unit_mask): Likewise.
28310 (s390_is_fpd): Likewise.
28311 (s390_is_fxd): Likewise.
28312 * config/s390/s390.h (s390_tune_attr): Likewise.
28313 * config/s390/s390.md: Include arch13 pipeline description.
28314 * config/s390/s390.opt: Add arch13.
28316 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28318 PR rtl-optimization/87763
28319 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28321 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28323 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28325 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28326 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28327 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28328 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28330 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28332 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28333 "Although" in -fipa-icf documentation.
28335 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28336 of using multiple -g options.
28338 2019-04-10 Martin Liska <mliska@suse.cz>
28340 PR gcov-profile/89959
28341 * doc/gcov.texi: Make documentation of -x option
28344 2019-04-10 Richard Biener <rguenther@suse.de>
28346 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28348 (DR_GROUP_SAME_DR_STMT): Remove.
28349 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28350 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28351 replace with assert.
28352 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28353 (vect_record_grouped_load_vectors): Remove unreachable code.
28355 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28358 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28359 obsolete reference to N.
28361 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28363 PR middle-end/90025
28364 * expr.c (store_expr): Set properly size on the MEM passed to
28368 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28369 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28370 translation is needed, and when translation is needed, only append
28371 ... if the string length is hostsz or more bytes long. Avoid using
28374 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28377 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28378 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28380 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28381 differences directly.
28382 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28384 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28386 PR translation/90011
28387 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28389 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28391 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28392 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28393 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28394 trailing space from -gsplit-dwarf diagnostics.
28396 PR tree-optimization/89998
28397 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28398 instead of integer_type_node if possible, don't add ranges if return
28399 type is not compatible with int.
28400 * gimple-fold.c (gimple_fold_builtin_sprintf,
28401 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28404 2019-04-09 Martin Liska <mliska@suse.cz>
28406 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28407 * doc/install.texi: Document the new config.
28409 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28411 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28412 use gimple_expr_type for load and store calls. Skip over the
28413 condition argument in a conditional internal function.
28414 Protect use of TREE_INT_CST_LOW.
28416 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28419 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28420 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28421 trailing period from it too.
28423 2019-04-08 wu yuan <wuyuan5@huawei.com>
28425 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28426 * config/aarch64/aarch64.md: Add "tsv110.md".
28427 * config/aarch64/tsv110.md: New file.
28429 2019-04-08 Richard Biener <rguenther@suse.de>
28431 PR tree-optimization/90006
28432 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28435 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28438 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28440 (fma_root_node): Likewise.
28441 (func_fma_steering): Likewise.
28443 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28445 PR rtl-optimization/89865
28446 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28448 PR rtl-optimization/89865
28449 * config/i386/i386.md
28450 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28451 numbers not to clash with the additional operands[4].
28452 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28453 with extra register copy in the middle.
28455 2019-04-08 Martin Liska <mliska@suse.cz>
28457 PR gcov-profile/89961
28458 * doc/gcov.texi: Document data_file.
28459 * gcov.c (generate_results): Add data_info into JSON output.
28461 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28463 PR tree-optimization/89725
28464 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28465 loop's chrec as invariant symbol.
28466 * tree-chrec.h (chrec_contains_symbols): New parameter.
28467 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28468 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28469 function of loops not in DDR's loop_nest.
28470 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28472 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28475 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28478 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28481 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28482 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28484 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28486 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28487 targetm.fixed_condition_code_regs.
28489 2019-04-05 Richard Biener <rguenther@suse.de>
28493 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28494 debug bind stmts but reset them if they are not valid at the
28497 2019-04-05 Martin Liska <mliska@suse.cz>
28499 PR translation/89936
28500 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28501 order to wrap keywords or arguments.
28502 * collect2.c (main): Likewise.
28503 (scan_prog_file): Likewise.
28504 (scan_libraries): Likewise.
28505 * common/config/riscv/riscv-common.c
28506 (riscv_subset_list::parsing_subset_version): Likewise.
28507 (riscv_subset_list::parse_std_ext): Likewise.
28508 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28510 * config/arm/arm.c (arm_option_override): Likewise.
28511 * config/cris/cris.c (cris_print_operand): Likewise.
28512 * config/darwin-c.c (darwin_pragma_options): Likewise.
28513 (darwin_pragma_unused): Likewise.
28514 (darwin_pragma_ms_struct): Likewise.
28515 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28516 * config/i386/i386.c (print_reg): Likewise.
28517 (ix86_print_operand): Likewise.
28518 * config/i386/xm-djgpp.h: Likewise.
28519 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28520 * config/m32c/m32c.c (m32c_option_override): Likewise.
28521 * config/msp430/msp430.c (msp430_option_override): Likewise.
28522 * config/nds32/nds32.c (nds32_option_override): Likewise.
28523 * config/nvptx/mkoffload.c (main): Likewise.
28524 * config/rx/rx.c (rx_print_operand): Likewise.
28525 (valid_psw_flag): Likewise.
28526 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28527 (vms_pragma_nomember_alignment): Likewise.
28528 (vms_pragma_extern_model): Likewise.
28529 * lto-wrapper.c (compile_offload_image): Likewise.
28530 * omp-offload.c (oacc_parse_default_dims): Likewise.
28531 * symtab.c (symtab_node::verify_base): Likewise.
28532 * tlink.c (recompile_files): Likewise.
28533 (start_tweaking): Likewise.
28534 * tree-profile.c (parse_profile_filter): Likewise.
28536 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
28538 PR tree-optimization/89956
28539 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
28540 multiple negates of the same value.
28542 2019-04-04 Martin Sebor <msebor@redhat.com>
28544 PR middle-end/89957
28545 PR middle-end/89911
28546 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
28547 have the same precision since the function crashes otherwise.
28548 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
28549 has non-zero arguments.
28551 2019-04-04 Martin Sebor <msebor@redhat.com>
28553 PR middle-end/89934
28554 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
28555 out if the number of arguments is less than expected.
28557 2019-04-04 Jeff Law <law@redhat.com>
28559 PR rtl-optimization/89399
28560 * ree.c (combine_set_extension): Use single_set rather than
28561 digging into PATTERN for items on the candidate list.
28562 (combine_reaching_defs): Likewise.
28564 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
28566 PR rtl-optimization/46590
28567 * loop-invariant.c (find_defs): Move df_remove_problem and
28568 df_process_deferred_rescans to move_invariants.
28569 Move df_live_add_problem and df_live_set_all_dirty calls
28570 to move_invariants.
28571 (move_invariants): Likewise.
28572 (move_loop_invariants): Likewise, making the df_live calls
28573 conditional on -O. Remove the problem again if we added it
28576 2019-04-03 qing zhao <qing.zhao@oracle.com>
28578 PR tree-optimization/89730
28579 * ipa-inline.c (can_inline_edge_p): Delete the checking for
28580 -flive-patching=inline-only-static.
28581 (can_inline_edge_by_limits_p): Add the checking for
28582 -flive-patching=inline-only-static and grant always_inline
28583 even when -flive-patching=inline-only-static is specified.
28585 2019-04-03 Jeff Law <law@redhat.com>
28587 PR rtl-optimization/81025
28588 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
28590 2019-04-03 Richard Biener <rguenther@suse.de>
28592 PR tree-optimization/84101
28593 * tree-vect-stmts.c: Include explow.h for hard_function_value,
28594 regs.h for hard_regno_nregs.
28595 (cfun_returns): New helper.
28596 (vect_model_store_cost): When vectorizing a store to a decl
28597 we return and the function ABI returns in a multi-reg location
28598 account for the possible spilling that will happen.
28600 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
28602 * config/s390/s390.c (s390_legitimate_address_p): Reject long
28603 displacement addresses for vector mode operands.
28605 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
28607 * config/arc/arc.c (GMASK_LEN): Define.
28608 (arc_restore_callee_saves): Restore first blink when
28611 2019-04-03 Sudakshina Das <sudi.das@arm.com>
28613 * doc/extend.texi: Add deprecated comment on sign-return-address
28614 function attribute and add mbranch-protection.
28615 * doc/invoke.texi: Add bti to the options for mbranch-protection.
28617 2019-04-03 Richard Biener <rguenther@suse.de>
28620 * lto-wrapper.c (run_gcc): Avoid implicit rules making
28621 the all target phony.
28623 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
28627 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
28628 Return false for variable DImode shifts.
28629 (dimode_scalar_chain::compute_convert_gain): Do not handle
28630 register count operand in variable DImode shifts.
28631 (dimode_scalar_chain::make_vector_copies): Remove support to copy
28632 count argument of a variable shift instruction to a vector register.
28633 (dimode_scalar_chain::convert_reg): Remove support to convert
28634 count argument of a variable shift instruction.
28636 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28638 PR rtl-optimization/84206
28639 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
28640 iterating over loop headers.
28642 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28644 PR rtl-optimization/85876
28645 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
28646 beyond the original fence.
28648 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28650 * config.gcc: Mark spu* targets as deprecated/obsolete.
28652 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28654 * config/s390/s390-builtin-types.def: New builtin function type
28655 definitions. Remove unused types.
28656 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
28657 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
28658 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
28659 overloaded builtins.
28660 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
28661 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
28662 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
28663 (vec_double, vec_signed, vec_unsigned): Define to use the new
28664 overloaded builtins.
28665 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
28668 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28670 * config/s390/s390-builtin-types.def: New builtin function type
28672 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
28673 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
28674 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
28675 (s390_vstrszh, s390_vstrszf): New low-level builtins.
28676 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
28677 constant definitions.
28678 * config/s390/vecintrin.h (vec_search_string_cc)
28679 (vec_search_string_until_zero_cc): New builtin name definitions.
28680 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
28682 ("vec_vstrs<mode>"): New insn definition.
28684 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28686 * config/s390/s390-builtin-types.def: Add new builtin function
28688 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
28689 New overloaded builtins.
28690 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
28692 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
28693 (UNSPEC_VEC_SLDBYTE): ... this.
28694 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
28695 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
28697 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
28698 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
28699 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
28701 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28703 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
28704 New insn definition.
28705 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
28706 * config/s390/vector.md (V_HW_HSD): ... here.
28708 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28710 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
28711 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
28712 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
28713 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
28714 New insn definitions.
28716 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28718 * config/s390/s390-builtin-types.def: Add new builtin function type.
28719 * config/s390/s390-builtins.def: Add overloaded builtin
28720 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
28721 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
28722 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
28723 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
28724 ("eltswap<mode>"): New expander.
28725 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
28728 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28730 * config/s390/s390-builtin-types.def: Add new builtin function types.
28731 * config/s390/s390-builtins.def: Add overloaded builtin
28732 s390_vec_revb. Add low-level builtins for vlbr and vstbr
28734 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
28735 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
28736 ("bswap<mode>"): New expander.
28737 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
28739 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28741 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
28742 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
28743 vector builtin version number in __VEC__.
28745 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28747 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
28749 (SFSI): New mode attribute.
28750 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
28751 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
28753 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
28754 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
28755 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
28756 ("floatsi<mode>2"): Add wcefb instruction.
28758 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28760 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
28761 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
28763 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
28764 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
28765 support 32 bit fp-int conversions. Rename to ...
28766 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28767 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28768 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
28769 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
28772 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28774 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
28775 if-then-else constructs if we can use the select instruction.
28776 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
28778 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28780 * config/s390/s390.md ("*popcountdi_arch13_cc")
28781 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
28783 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
28784 Append _z196 to make it ...
28785 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
28786 ("popcounthi2_z196"): ... this.
28787 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
28788 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
28790 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28792 * config/s390/s390.c (s390_canonicalize_comparison): Convert
28793 certain compares for arch13 in order to make use of the condition
28794 code result produced by the new instructions.
28795 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
28796 nxrk, and nxgrk instruction patterns.
28797 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
28798 (inv_no): Add new code iterator together with some attributes.
28799 ("*andc_split_<mode>"): Disable splitter for arch13.
28800 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
28801 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
28802 ("*<ANDOR:bitops_name>c<GPR:mode>")
28803 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
28804 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
28805 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
28806 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
28808 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28810 * common/config/s390/s390-common.c (processor_flags_table): New
28812 * config.gcc: Support arch13 with the --with-arch= configure flag.
28813 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28814 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
28815 * config/s390/s390.c (s390_get_sched_attrmask)
28816 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
28817 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
28818 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
28819 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
28820 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
28822 * config/s390/s390.opt: Support arch13 as processor type in
28823 command line options.
28825 2019-04-02 Martin Liska <mliska@suse.cz>
28827 PR translation/89912
28828 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
28829 Fix param description of graphite-max-arrays-per-scop.
28831 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
28833 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
28834 (ASAN_CC1_SPEC): Use it in 64-bit mode.
28835 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
28837 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28839 PR rtl-optimization/85412
28840 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
28841 sel_sched_region_1, not after.
28843 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28845 PR rtl-optimization/86928
28846 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
28847 compute_live if necessary.
28848 (sel_redirect_edge_and_branch): Likewise.
28850 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
28852 PR rtl-optimization/89865
28853 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
28854 register if it is a part of small class.
28856 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28858 PR rtl-optimization/87273
28859 * sel-sched-ir.c (merge_fences): Remove assert.
28861 2019-04-01 Richard Biener <rguenther@suse.de>
28863 PR tree-optimization/46590
28864 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
28865 (dom_walker::m_reachability): Add in place of...
28866 (dom_walker::m_skip_unreachable_blocks): ...this.
28867 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
28868 Move complex initialization ...
28869 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
28870 lazily and initialize edge flags on each invocation.
28871 (dom_walker::bb_reachable): Use m_reachability.
28873 2019-04-01 Martin Liska <mliska@suse.cz>
28876 * opt-suggestions.c (option_proposer::build_option_suggestions):
28877 Add variant without any argument in order to provide better
28880 2019-04-01 Richard Biener <rguenther@suse.de>
28883 * gimple.c: Include langhooks.h.
28884 (gimple_get_alias_set): Treat enumeral types as the underlying
28887 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
28888 Eric Botcazou <ebotcazou@adacore.com>
28890 PR rtl-optimization/89862
28891 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
28892 that operates on the full registers for WORD_REGISTER_OPERATIONS
28895 2019-03-29 Jim Wilson <jimw@sifive.com>
28897 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
28898 Clear MASK_RVC and then set if C subset supported.
28900 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28903 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
28904 non-addressable complit into its initializer if it is volatile.
28906 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
28908 * opts-common.c (integral_argument): Set errno properly in one case.
28910 2019-03-29 Martin Liska <mliska@suse.cz>
28912 * doc/invoke.texi: Remove -Wchkp from documentation.
28914 2019-03-29 Martin Liska <mliska@suse.cz>
28916 * dbgcnt.c (print_limit_reach): New function.
28919 2019-03-29 Martin Liska <mliska@suse.cz>
28921 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
28922 (dbg_cnt_process_opt): Parse first tokens aas
28923 dbg_cnt_process_single_pair is also using strtok.
28925 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28927 PR rtl-optimization/87485
28928 * function.c (expand_function_end): Move stack_protect_epilogue
28929 before loading of return value into hard register(s).
28931 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28933 PR middle-end/89621
28934 * tree-inline.h (struct copy_body_data): Add
28935 dont_remap_vla_if_no_change flag.
28936 * tree-inline.c (remap_type_3, remap_type_2): New functions.
28937 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
28938 and remap_type_2 returns false.
28939 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
28940 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
28941 only from where it is copied to nested contexts.
28943 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28946 * config/i386/i386.md (RMW operation with LEA peephole):
28947 Use LEAMODE mode attribute instead of SWI mode iterator for
28950 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28953 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
28954 Also process XEXP (src, 0) of a shift insn.
28956 2019-03-28 David Malcolm <dmalcolm@redhat.com>
28958 PR middle-end/89725
28959 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
28960 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
28962 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28964 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
28966 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
28967 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
28968 immediately after first one with df_analyze in between, but rather
28969 process all bbs, queueing ones that need second pass in a worklist,
28970 df_analyze, process queued debug insn changes and if second pass is
28971 needed, process bbs from worklist, df_analyze, process queued debug
28974 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
28975 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
28976 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
28978 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
28981 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
28984 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
28987 * config/i386/i386.c (ix86_function_value_1): Call the newly added
28988 function for 32-bit MS_ABI.
28989 (function_value_ms_32): New function.
28991 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
28993 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
28994 (movdi): Call gen_movdi_symbol_save_scc.
28995 (gen_movdi_symbol_save_scc): New insn and split.
28997 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
28999 PR rtl-optimization/89313
29000 * function.c (matching_constraint_num): New static function.
29001 (match_asm_constraints_1): Use it. Fixup white space and comment.
29002 Don't replace inputs with non-matching constraints which conflict
29003 with early clobber outputs.
29005 2019-03-27 Jeff Law <law@redhat.com>
29007 PR rtl-optimization/87761
29008 PR rtl-optimization/89826
29009 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29011 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29012 note problem to get REG_DEAD/REG_UNUSED notes updated.
29014 2019-03-27 Richard Biener <rguenther@suse.de>
29016 PR tree-optimization/89463
29017 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29018 queue edges to remove.
29019 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29020 dead stmts. Delay edge removal until PHIs are removed to
29021 make debug-stmt creation not confused by seemingly degenerate
29024 2019-03-27 Alan Modra <amodra@gmail.com>
29026 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29028 * config/rs6000/darwin.h: Likewise.
29029 * config/rs6000/rs6000.c: Likewise.
29031 2019-03-27 Alan Modra <amodra@gmail.com>
29033 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29034 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29036 2019-03-26 Andrew Waterman <andrew@sifive.com>
29037 Jim Wilson <jimw@sifive.com>
29039 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29040 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29041 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29042 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29043 (generic_alu): Add auipc to type list.
29044 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29045 (riscv_microarchitecture): Declare.
29046 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29047 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29049 (riscv_microarchitecture): New.
29050 (sifive_7_tune_info): New.
29051 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29052 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29054 (riscv_store_data_bypass_p): New.
29055 (riscv_option_override): Set riscv_microarchitecture from
29056 cpu->microarchitecture.
29057 * config/riscv/riscv.md: Include sifive-7.md.
29060 (auipc<mode>): Change type to auipc.
29061 (restore_stack_nonlocal): New.
29062 * config/riscv/sifive-7.md: New.
29063 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29065 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29068 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29069 Also process XEXP (src, 0) of a shift insn.
29071 2019-03-26 Richard Biener <rguenther@suse.de>
29073 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29074 (copy_debug_stmt): Likewise.
29075 (expand_call_inline): Likewise.
29076 (copy_bb): Avoid redundant lookup & set of gimple_block.
29077 * gimple-low.c (lower_gimple_return): Likewise.
29078 (lower_builtin_setjmp): Likewise.
29080 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29082 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29083 is constant 0, turn into static const data member initialized to false.
29084 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29085 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29087 2019-03-26 Jason Merrill <jason@redhat.com>
29088 Jakub Jelinek <jakub@redhat.com>
29090 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29092 (mem_alloc_description::release_object_overhead): Fix comment typos.
29093 * hash-table.h (hash_table::~hash_table): Call
29094 release_instance_overhead only if m_entries is non-NULL, otherwise
29095 call unregister_descriptor.
29097 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29099 PR tree-optimization/81740
29100 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29101 In case of outer loop vectorization, check for backward dependence
29102 at the inner loop if outer loop dependence is reversed.
29104 2019-03-26 Alan Modra <amodra@gmail.com>
29106 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29107 rs6000_vector_mem init. Correct wI and wJ comment.
29109 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29111 PR rtl-optimization/88347
29112 PR rtl-optimization/88423
29113 * sched-deps.c (sched_analyze_insn): Take into account that for
29114 tablejumps the barrier appears after a label and a jump_table_data.
29116 2019-03-25 Martin Sebor <msebor@redhat.com>
29119 * c-common.c (check_user_alignment): Rename local. Correct maximum
29120 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29121 convert it to UHWI when it fits.
29123 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29126 * dwarf2out.c (premark_used_variables): New function.
29127 (prune_unused_types_walk): Do not mark not premarked external
29129 (prune_unused_types): Call premark_used_variables.
29131 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29133 PR rtl-optimization/89676
29134 * lra-constraints.c (curr_insn_transform): Do match reload for
29135 early clobbers when the match was successful only for different
29138 2019-03-25 Martin Sebor <msebor@redhat.com>
29140 * doc/extend.texi (Common Type Attributes): Document vector_size.
29141 (Common Variable Attributes): Mention size constraint. Correct
29143 (Vector Extensions): Use @dfn when defining bas type. Clarify
29144 base type and size constraints.
29146 2019-03-25 Richard Biener <rguenther@suse.de>
29148 PR tree-optimization/89789
29149 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29150 changes from non-undefined back to undefined.
29152 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29154 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29155 heap string and a gc string, but since this variable is unknown to
29156 ggc the gc string might get reused and corrupted. Fixed by always
29157 using a heap string.
29159 2019-03-25 Richard Biener <rguenther@suse.de>
29161 PR tree-optimization/89779
29162 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29163 to remove IV defs, delay actual removal.
29164 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29165 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29166 very end, properly also reset loop control IV information.
29168 2019-03-25 Richard Biener <rguenther@suse.de>
29170 PR tree-optimization/89802
29171 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29172 move EH data to folded stmt.
29174 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29176 * config/s390/s390-builtin-types.def: Remove few unused types and
29177 fix sort order for others.
29179 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29181 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29182 expected and found types with -mdebug during builtin matching.
29184 2019-03-25 Richard Biener <rguenther@suse.de>
29186 PR middle-end/89790
29187 * fold-const.c (operand_equal_p): Revert last change with
29190 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29192 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29193 notes for the result of the __tls_get_addr calls.
29194 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29196 2019-03-24 Jeff Law <law@redhat.com>
29198 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29200 PR rtl-optimization/87761
29201 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29202 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29204 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29205 rescans. Reprocess blocks as needed, calling df_analyze before
29206 reprocessing. Always call df_analyze before fixing up debug bind
29209 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29211 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29214 2019-03-22 Andrew Pinski <apinski@marvell.com>
29216 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29217 attrribute for uxtw.
29219 2019-03-26 Jeff Law <law@redhat.com>
29221 PR rtl-optimization/87761
29222 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29223 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29224 (mips_split_move): Accept new INSN argument. Try to forward SRC
29225 into the next instruction.
29226 (mips_split_move_insn): Pass INSN through to mips_split_move.
29228 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29230 PR rtl-optimization/89676
29231 * lra-constraints.c (curr_insn_transform): Do match reload for
29232 early clobbers even if the match was successful.
29234 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29237 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29239 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29241 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29243 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29245 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29246 <avx512>_fmsub_<mode>_mask3<round_name>,
29247 <avx512>_fnmadd_<mode>_mask3<round_name>,
29248 <avx512>_fnmsub_<mode>_mask3<round_name>,
29249 avx512f_vmfmadd_<mode>_mask3<round_name>,
29250 avx512f_vmfmsub_<mode>_mask3<round_name>,
29251 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29252 instead of register_operand and %v instead of v for match_operand 1.
29253 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29254 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29255 <round_nimm_predicate> instead of register_operand and %v instead of v
29256 for match_operand 1.
29258 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29259 <avx512>_fmadd_<mode>_mask3<round_name>,
29260 <avx512>_fmsub_<mode>_mask<round_name>,
29261 <avx512>_fmsub_<mode>_mask3<round_name>,
29262 <avx512>_fnmadd_<mode>_mask<round_name>,
29263 <avx512>_fnmadd_<mode>_mask3<round_name>,
29264 <avx512>_fnmsub_<mode>_mask<round_name>,
29265 <avx512>_fnmsub_<mode>_mask3<round_name>,
29266 <avx512>_fmaddsub_<mode>_mask<round_name>,
29267 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29268 <avx512>_fmsubadd_<mode>_mask<round_name>,
29269 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29270 <round_nimm_predicate> instead of nonimmediate_operand.
29271 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29272 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29273 Use register_operand instead of <round_nimm_predicate> for the
29274 operand that needs to match output.
29275 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29276 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29277 Likewise. Formatting fixes.
29280 * config/i386/i386.c (enum ix86_builtins): Remove
29281 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29282 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29283 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29284 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29285 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29286 __builtin_ia32_vfmsubss3_mask3): New builtins.
29287 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29288 avx512f_vmfmadd_<mode>_mask3<round_name>,
29289 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29290 *avx512f_vmfmsub_<mode>_mask<round_name>,
29291 avx512f_vmfmsub_<mode>_mask3<round_name>,
29292 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29293 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29294 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29295 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29296 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29297 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29298 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29299 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29300 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29301 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29302 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29303 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29304 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29305 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29306 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29307 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29308 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29309 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29310 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29311 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29312 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29313 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29314 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29315 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29316 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29317 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29318 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29319 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29321 2019-03-21 Martin Sebor <msebor@redhat.com>
29323 PR tree-optimization/89350
29324 * builtins.c (compute_objsize): Also ignore offsets whose upper
29326 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29327 (builtin_memref::builtin_memref): Initialize new member.
29328 Allow EXPR to be null.
29329 (builtin_memref::extend_offset_range): Replace local with a member.
29330 Avoid assuming pointer offsets are unsigned.
29331 (builtin_memref::set_base_and_offset): Determine base object
29332 before computing offset range.
29333 (builtin_access::builtin_access): Handle memset.
29334 (builtin_access::generic_overlap): Replace local with a member.
29335 (builtin_access::strcat_overlap): Same.
29336 (builtin_access::overlap): Same.
29337 (maybe_diag_overlap): Same.
29338 (maybe_diag_access_bounds): Same.
29339 (wrestrict_dom_walker::check_call): Handle memset.
29340 (check_bounds_or_overlap): Same.
29342 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29343 Jakub Jelinek <jakub@redhat.com>
29346 * tree.c (fld_type_variant, fld_incomplete_type_of,
29347 fld_process_array_type): Call fld->pset.add and don't call
29348 add_tree_to_fld_list if it returns true.
29349 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29350 non-marked types from TYPE_NEXT_VARIANT list.
29351 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29353 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29355 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29356 to false, if true, don't alloc_entries during construction, but defer
29357 it to the first method that needs m_entries allocated.
29358 (hash_table::hash_table, hash_table::~hash_table,
29359 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29360 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29361 hash_table::clear_slot, hash_table::traverse_noresize,
29362 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29363 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29365 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29366 NO_INSERT instead of find_with_hash.
29367 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29368 hash_set::m_table): Add Lazy to template params of hash_table.
29369 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29370 * attribs.c (test_attribute_exclusions): Likewise.
29371 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29372 hash_set. Add tests for hash_set with Lazy = true.
29374 2019-03-21 Richard Biener <rguenther@suse.de>
29376 PR tree-optimization/89779
29377 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29378 checks with respect to released SSA names now having error_mark_node
29380 * fold-const.c (operand_equal_p): Likewise.
29382 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29385 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29387 (s390_optimize_register_info): Use global_not_special_regno_p to
29388 check for global regs.
29390 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29393 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29394 update this_alternative nor this_alternative_set.
29396 2019-03-19 Jim Wilson <jimw@sifive.com>
29399 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29400 align, size, offset. Use them to handle a BLKmode reference. Update
29402 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29404 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29406 PR rtl-optimization/89768
29407 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29408 instead of GEN_INT.
29409 (unroll_loop_runtime_iterations): Likewise.
29411 2019-03-19 Martin Sebor <msebor@redhat.com>
29413 PR tree-optimization/89644
29414 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29415 rather than endptr as an indicator of nul-termination.
29417 PR tree-optimization/89644
29418 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29419 arrays in determining sequence sizes in strncpy and stpncpy.
29421 2019-03-19 Martin Liska <mliska@suse.cz>
29423 PR middle-end/89737
29424 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29425 unlikely_edges if there's an edge that belongs to both these sets.
29427 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29430 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29431 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29432 go via a stack temporary.
29434 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29437 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29438 instead of gen_rtx_SUBREG.
29439 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29441 2019-03-19 Richard Biener <rguenther@suse.de>
29444 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29446 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29450 * tree.c (free_lang_data_in_decl): Do not free context of C++
29453 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29456 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29457 subs for the first alternative except when operands[3] is 1.
29460 * gimplify.c (gimplify_asm_expr): For output argument with
29461 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29464 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29466 PR rtl-optimization/89753
29467 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29468 explicit unrolling factor even more robust.
29470 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29473 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29474 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29475 signed zeros, do another copysign after the compensation.
29477 2019-03-18 Martin Sebor <msebor@redhat.com>
29479 PR tree-optimization/89720
29480 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29481 more conservatively, the same as anti-range.
29483 2019-03-18 Richard Biener <rguenther@suse.de>
29485 PR middle-end/88945
29486 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29487 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29488 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29489 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29491 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29493 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29494 Extend queue to 1024 entries.
29495 Add "consumed" field.
29496 (gomp_print_output): Remove print_index parameter.
29497 Add final parameter.
29498 Change limit to unsigned.
29499 Use consumed field to implement circular buffer.
29500 Detect interrupted print in final pass.
29501 Flush output at the end.
29502 (run): Update gomp_print_output usage.
29503 (main): Initialize kernargs->output_data.consumed.
29505 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29507 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29508 calculation of the minimum number of scalar iterations for
29509 fully-predicated loops.
29511 2019-03-18 Martin Jambor <mjambor@suse.cz>
29513 PR tree-optimization/89546
29514 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29515 any propagation to its children took place.
29517 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29520 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29521 parameter, and make use of it.
29522 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29524 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29526 * config/arc/arc.opt (mcode-density-frame): Get the inital value
29527 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29528 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29529 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29530 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29531 match what the ops is doing.
29532 (push_multi_fp_blink): Likewise.
29533 * config/arc/arc.c (arc_override_options): Enable enter/leave when
29534 compiling for size and elf target.
29535 (arc_save_callee_enter): Adjust note to match what enter/leave
29538 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29540 * config/arc/arc.md (tst_movb): Fix constraint.
29542 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29544 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
29546 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29548 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
29549 * config/arc/arc.c (arc_conditional_register_usage): Remove all
29550 reg_alloc_order references.
29551 (size_alloc_order): Define.
29552 (arc_adjust_reg_alloc_order): New function.
29553 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
29555 (ADJUST_REG_ALLOC_ORDER): Define.
29556 (HONOR_REG_ALLOC_ORDER): Likewise.
29558 2019-03-18 Richard Biener <rguenther@suse.de>
29561 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
29562 loads and stores a bit more.
29564 2019-03-18 Richard Biener <rguenther@suse.de>
29567 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
29568 load pessimization to stores as well.
29570 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
29572 PR middle-end/86979
29573 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
29574 successor, use NULL as its av set.
29576 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29578 PR rtl-optimization/89721
29579 * lra-constraints (invariant_p): Return false if side_effects_p holds.
29581 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
29584 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29585 When handling vec_extract, use modular arithmetic to allow
29586 constant selectors greater than vector length.
29587 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
29588 V1TImode vectors to have constant selector values greater than 0.
29589 Use modular arithmetic to compute vector index.
29590 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
29591 index for in-memory vectors. Correct code generation for
29592 in-register vectors.
29593 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
29596 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
29600 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
29603 2019-03-15 Jakub Jelinek <jakub@redhat.com>
29606 * tree.c (inchash::add_expr): Strip any location wrappers.
29607 * fold-const.c (operand_equal_p): Move stripping of location wrapper
29608 after hash verification.
29611 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
29612 SIGN_EXTEND and ZERO_EXTEND.
29614 2019-03-14 Jason Merrill <jason@redhat.com>
29615 Jakub Jelinek <jakub@redhat.com>
29617 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
29618 than if is_empty (*slot).
29619 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
29620 existing elt and for elt removal.
29621 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
29622 of already removed elt.
29624 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
29627 * config/i386/i386.c (remove_partial_avx_dependency): Handle
29628 REG_EH_REGION note.
29630 2019-03-14 Martin Liska <mliska@suse.cz>
29633 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
29635 2019-03-14 Richard Biener <rguenther@suse.de>
29638 * config/i386/i386.c (make_resolver_func): Properly set
29639 DECL_CONTEXT on the RESULT_DECL.
29640 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
29642 2019-03-14 Richard Biener <rguenther@suse.de>
29644 * gimple-pretty-print.c: Include cfgloop.h.
29645 (dump_gimple_phi): Adjust.
29646 (dump_gimple_bb_header): Dump loop header for GIMPLE.
29647 (pp_cfg_jump): Adjust.
29648 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
29649 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
29650 (lower_phi_internal_fn): Remove.
29651 (verify_gimple_call): Remove IFN_PHI special-casing.
29652 (dump_function_to_file): Dump IL state.
29653 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
29654 done to deal with PHI nodes being present in non-SSA state.
29656 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29659 * multiple_target.c (create_dispatcher_calls): Change
29660 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
29661 In the node->iterate_referring loop, push *ref rather than ref, call
29662 ref->remove_reference () and always pass 0 to iterate_referring.
29664 PR rtl-optimization/89679
29665 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
29666 would contain a paradoxical SUBREG.
29668 2019-03-14 Richard Biener <rguenther@suse.de>
29670 PR tree-optimization/89710
29671 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
29674 2019-03-14 Martin Liska <mliska@suse.cz>
29676 * coverage.c (coverage_begin_function): Stream also
29678 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
29679 documentation about function declaration location.
29680 * gcov-dump.c (tag_function): Print whole range
29681 of function declaration.
29682 * gcov.c (struct function_info): Add end_column field.
29683 (function_info::function_info): Initialize it.
29684 (output_json_intermediate_file): Output {start,end}_column
29686 (read_graph_file): Read end_column.
29688 2019-03-14 Richard Biener <rguenther@suse.de>
29690 PR middle-end/89698
29691 * fold-const.c (operand_equal_p): For INDIRECT_REF check
29692 that the access types are similar.
29694 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29696 PR tree-optimization/89703
29697 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
29698 aren't compatible also with builtin_decl_explicit. Check pure
29699 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
29700 and BUILT_IN_STPNCPY{,_CHK}.
29702 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
29705 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
29706 addr32 prefix to VSIB address for X32.
29707 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
29709 (*avx512pf_gatherpf<mode>df_mask): Likewise.
29710 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
29711 (*avx512pf_scatterpf<mode>df_mask): Likewise.
29712 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
29713 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
29714 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
29715 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
29716 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
29717 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
29718 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
29719 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
29720 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
29721 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
29722 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
29723 (*avx512f_scatterdi<mode>): Likewise.
29725 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
29728 * lra-constraints.c (inherit_in_ebb): Update
29729 potential_reload_hard_regs along with live_hard_regs.
29731 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29734 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
29736 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
29738 2019-03-13 Martin Sebor <msebor@redhat.com>
29740 PR tree-optimization/89662
29741 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
29744 2019-03-13 Richard Biener <rguenther@suse.de>
29746 PR middle-end/89677
29747 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
29748 throw FP expressions at tree-affine.
29750 2019-03-14 Richard Biener <rguenther@suse.de>
29752 * tree-pretty-print.c (dump_generic_node): For -gimple properly
29753 dump negative integer constants using _Literal (type) -num.
29755 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29757 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
29758 nonlocal_value member.
29760 PR middle-end/88588
29761 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
29762 (ipa_simd_modify_function_body): Handle PHIs.
29764 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29766 * config/s390/s390.c (s390_option_override_internal): Use more
29767 aggressive inlining parameters.
29769 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29771 * config/s390/3906.md: New file.
29772 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29773 (LONGRUNNING_THRESHOLD): Remove.
29774 (MAX_SCHED_MIX_SCORE): Decrease.
29775 (MAX_SCHED_MIX_DISTANCE): Decrease.
29776 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
29777 (struct s390_sched_state): New struct to hold scheduling state.
29778 (S390_SCHED_STATE_NORMAL): Remove.
29779 (S390_SCHED_STATE_CRACKED): Remove.
29780 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
29781 (s390_get_sched_attrmask): Use new attribute.
29782 (s390_get_unit_mask): Use new units.
29783 (s390_is_fpd): New function.
29784 (s390_is_fxd): New function.
29785 (s390_is_longrunning): New function.
29786 (s390_sched_score): Use new functions.
29787 (s390_sched_reorder): Likewise.
29788 (s390_sched_variable_issue): Rework and use new functions.
29789 (s390_sched_init): Use new functions.
29790 * config/s390/s390.h (s390_tune_attr): Add z14.
29791 * config/s390/s390.md: Add z14.
29793 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29795 * config/s390/2964.md: Update pipeline description.
29796 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29797 (LONGRUNNING_THRESHOLD): Remove.
29798 (LATENCY_FACTOR): Remove.
29799 (s390_get_unit_mask): Add unit.
29800 (s390_sched_score): Use fxd/fpd.
29801 (s390_sched_variable_issue): Use fxd/fpd.
29803 2019-03-12 Martin Liska <mliska@suse.cz>
29805 * config/i386/i386.c: Reword an error message.
29807 2019-03-12 Martin Jambor <mjambor@suse.cz>
29809 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
29810 terminate with newline.
29812 2019-03-12 Jakub Jelinek <jakub@redhat.com>
29815 * config/s390/s390.md (tabort): Use %wd instead of
29816 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
29817 letters and periods.
29818 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
29819 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
29822 PR middle-end/89663
29823 * builtins.c (expand_builtin_int_roundingfn,
29824 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
29825 gcc_unreachable if validate_arglist fails.
29827 2019-03-12 Richard Biener <rguenther@suse.de>
29829 PR tree-optimization/89664
29830 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
29831 free the occurance tree after the early out.
29833 2019-03-11 Jakub Jelinek <jakub@redhat.com>
29835 PR middle-end/89655
29837 * vr-values.c (vr_values::update_value_range): If
29838 old_vr->varying_p (), don't update it, make new_vr also VARYING
29841 2019-03-11 Martin Liska <mliska@suse.cz>
29843 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29844 Fix double string quoting.
29846 2019-03-11 Martin Liska <mliska@suse.cz>
29848 * collect-utils.c (collect_wait): Wrap apostrophes
29849 in gcc internal format with %'.
29850 * collect2.c (main): Likewise.
29851 (scan_prog_file): Likewise.
29852 (scan_libraries): Likewise.
29853 * config/i386/i386.c (ix86_expand_call): Likewise.
29854 (ix86_handle_interrupt_attribute): Likewise.
29855 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
29856 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
29857 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
29858 * lto-wrapper.c (find_crtoffloadtable): Likewise.
29859 * symtab.c (symtab_node::verify_base): Likewise.
29860 * tree-cfg.c (verify_gimple_label): Likewise.
29861 * tree.c (verify_type_variant): Likewise.
29863 2019-03-11 Martin Liska <mliska@suse.cz>
29865 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
29866 in a string format message and fix GNU coding style.
29867 (expand_builtin_set_thread_pointer): Likewise.
29868 * common/config/aarch64/aarch64-common.c
29869 (aarch64_rewrite_selected_cpu): Likewise.
29870 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
29871 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
29872 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
29873 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
29874 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
29875 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
29876 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
29877 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
29878 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
29879 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
29881 * common/config/riscv/riscv-common.c
29882 (riscv_subset_list::parsing_subset_version): Likewise.
29883 (riscv_subset_list::parse_std_ext): Likewise.
29884 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29885 (riscv_subset_list::parse): Likewise.
29886 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
29887 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
29888 (aarch64_override_options_internal): Likewise.
29889 (aarch64_validate_mcpu): Likewise.
29890 (aarch64_validate_march): Likewise.
29891 (aarch64_validate_mtune): Likewise.
29892 (aarch64_override_options): Likewise.
29893 * config/alpha/alpha.c (alpha_option_override): Likewise.
29894 * config/arc/arc.c (arc_init): Likewise.
29895 (parse_mrgf_banked_regs_option): Likewise.
29896 (arc_override_options): Likewise.
29897 (arc_expand_builtin_aligned): Likewise.
29898 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
29899 (arm_expand_builtin): Likewise.
29900 * config/arm/arm.c (arm_option_check_internal): Likewise.
29901 (arm_configure_build_target): Likewise.
29902 (arm_option_override): Likewise.
29903 (arm_options_perform_arch_sanity_checks): Likewise.
29904 (arm_handle_cmse_nonsecure_entry): Likewise.
29905 (arm_handle_cmse_nonsecure_call): Likewise.
29906 (arm_tls_referenced_p): Likewise.
29907 (thumb1_expand_prologue): Likewise.
29908 * config/avr/avr.c (avr_option_override): Likewise.
29909 * config/bfin/bfin.c (bfin_option_override): Likewise.
29910 * config/c6x/c6x.c (c6x_option_override): Likewise.
29911 * config/cr16/cr16.c (cr16_override_options): Likewise.
29912 * config/cris/cris.c (cris_option_override): Likewise.
29913 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
29914 * config/darwin-c.c (macosx_version_as_macro): Likewise.
29915 * config/darwin.c (darwin_override_options): Likewise.
29916 * config/frv/frv.c (frv_expand_builtin): Likewise.
29917 * config/h8300/h8300.c (h8300_option_override): Likewise.
29918 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
29919 (ix86_option_override_internal): Likewise.
29920 (warn_once_call_ms2sysv_xlogues): Likewise.
29921 (ix86_expand_prologue): Likewise.
29922 (split_stack_prologue_scratch_regno): Likewise.
29923 (ix86_warn_parameter_passing_abi): Likewise.
29924 * config/ia64/ia64.c (fix_range): Likewise.
29925 * config/m68k/m68k.c (m68k_option_override): Likewise.
29926 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
29927 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
29928 (mips_set_compression_mode): Likewise.
29929 * config/mmix/mmix.c (mmix_option_override): Likewise.
29930 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
29931 * config/msp430/msp430.c (msp430_option_override): Likewise.
29932 * config/nds32/nds32.c (nds32_option_override): Likewise.
29933 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
29934 (nios2_option_override): Likewise.
29935 (nios2_expand_custom_builtin): Likewise.
29936 * config/nvptx/mkoffload.c (main): Likewise.
29937 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
29938 * config/pa/pa.c (fix_range): Likewise.
29939 (pa_option_override): Likewise.
29940 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
29941 (riscv_option_override): Likewise.
29942 * config/rl78/rl78.c (rl78_option_override): Likewise.
29943 * config/rs6000/aix61.h: Likewise.
29944 * config/rs6000/aix71.h: Likewise.
29945 * config/rs6000/aix72.h: Likewise.
29946 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
29947 * config/rs6000/freebsd64.h: Likewise.
29948 * config/rs6000/linux64.h: Likewise.
29949 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
29950 (rs6000_expand_zeroop_builtin): Likewise.
29951 (rs6000_expand_mtfsb_builtin): Likewise.
29952 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
29953 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
29954 (rs6000_invalid_builtin): Likewise.
29955 (rs6000_expand_split_stack_prologue): Likewise.
29956 * config/rs6000/rtems.h: Likewise.
29957 * config/rx/rx.c (valid_psw_flag): Likewise.
29958 (rx_expand_builtin): Likewise.
29959 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
29960 * config/s390/s390.c (s390_expand_builtin): Likewise.
29961 (s390_function_profiler): Likewise.
29962 (s390_option_override_internal): Likewise.
29963 (s390_option_override): Likewise.
29964 * config/sh/sh.c (sh_option_override): Likewise.
29965 (sh_builtin_saveregs): Likewise.
29966 (sh_fix_range): Likewise.
29967 * config/sh/vxworks.h: Likewise.
29968 * config/sparc/sparc.c (sparc_option_override): Likewise.
29969 * config/spu/spu.c (spu_option_override): Likewise.
29970 (fix_range): Likewise.
29971 * config/visium/visium.c (visium_option_override): Likewise.
29972 (visium_handle_interrupt_attr): Likewise.
29973 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
29974 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
29975 (dbg_cnt_process_opt): Likewise.
29976 * dwarf2out.c (output_dwarf_version): Likewise.
29977 * except.c (expand_eh_return): Likewise.
29978 * gcc.c (defined): Likewise.
29979 (driver_handle_option): Likewise.
29980 (process_command): Likewise.
29981 (compare_files): Likewise.
29982 (driver::prepare_infiles): Likewise.
29983 (driver::do_spec_on_infiles): Likewise.
29984 (driver::maybe_run_linker): Likewise.
29985 * omp-offload.c (oacc_parse_default_dims): Likewise.
29986 * opts-global.c (handle_common_deferred_options): Likewise.
29987 * opts.c (parse_sanitizer_options): Likewise.
29988 (common_handle_option): Likewise.
29989 (enable_warning_as_error): Likewise.
29990 * passes.c (enable_disable_pass): Likewise.
29991 * plugin.c (parse_plugin_arg_opt): Likewise.
29992 (default_plugin_dir_name): Likewise.
29993 * targhooks.c (default_expand_builtin_saveregs): Likewise.
29994 (default_pch_valid_p): Likewise.
29995 * toplev.c (init_asm_output): Likewise.
29996 (process_options): Likewise.
29997 (toplev::run_self_tests): Likewise.
29998 * tree-cfg.c (verify_gimple_call): Likewise.
29999 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30000 (tree_inlinable_function_p): Likewise.
30001 * var-tracking.c (vt_find_locations): Likewise.
30003 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30005 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30006 only on the else branch.
30008 2019-03-11 Martin Liska <mliska@suse.cz>
30010 * gcov.c (output_intermediate_json_line): Print function
30012 (output_json_intermediate_file): Add new argument.
30013 * doc/gcov.texi: Document the change.
30015 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30017 PR rtl-optimization/89588
30018 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30019 explicit unrolling factor more robust.
30021 2019-03-11 Richard Biener <rguenther@suse.de>
30023 PR tree-optimization/89649
30024 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30025 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30026 on the prolog and epilog loops.
30027 (vect_loop_versioning): Return copy of loop.
30028 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30029 on the non-vectorized version of the loop.
30031 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30034 * config/i386/sse.md (*vec_extractv2di_0_sse):
30035 Add (=r,x) alternative and corresponding splitter.
30037 2019-03-10 Martin Jambor <mjambor@suse.cz>
30039 PR tree-optimization/85762
30040 PR tree-optimization/87008
30041 PR tree-optimization/85459
30042 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30043 it points to if there is a type changing MEM_REF. Adjust all callers.
30044 (build_accesses_from_assign): Disable total scalarization if
30045 contains_vce_or_bfcref_p returns true through the new parameter, for
30048 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30051 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30052 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30055 * common.opt (fdiagnostics-show-labels,
30056 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30057 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30058 gas-locview-support, ginline-points, ginternal-reset-location-views):
30059 Terminate description text with a dot.
30060 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30061 * config/mcore/mcore.opt (m210, m340): Likewise.
30062 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30063 mnops=): Start description text with a capital letter.
30064 * config/arc/arc.opt (msize-level=): Likewise.
30065 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30066 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30067 mnewlib): Likewise.
30068 * config/ft32/ft32.opt (msim): Likewise.
30069 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30070 (mnodiv, mnopm): Terminate description text with a dot.
30071 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30073 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30075 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30078 PR rtl-optimization/89634
30079 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30080 are modified in BB_END (e->src) instruction.
30082 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30085 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30086 messages more amenable to translation, and improve wording.
30088 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30090 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30091 ud- and du-chains between phases.
30093 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30096 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30097 instead of POLY_INT_CST.
30099 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30101 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30104 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30109 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30110 (_mm_storeu_si64): Ditto.
30112 2019-03-08 Martin Liska <mliska@suse.cz>
30115 * config/i386/i386.c (ix86_option_override_internal): Disable
30116 jump tables when retpolines are used.
30118 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30121 * ipa-split.c (execute_split_functions): Do not split
30122 'noinline' or 'section' function.
30124 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30127 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30128 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30129 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30132 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30133 from diagnostics. Formatting fixes.
30136 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30137 warn_odr diagnostics.
30140 * lra-constraints.c (process_alt_operands): Avoid one space before
30141 " at the end of line and another after " on another line in a string
30143 * attribs.c (handle_dll_attribute): Likewise.
30144 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30146 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30147 warning_at or inform messages in G_() if there is no ?:.
30149 PR tree-optimization/89550
30150 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30151 returned true. Formatting fixes.
30152 (expand_builtin_strnlen): Formatting fixes.
30153 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30154 if warning_at returned true.
30155 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30157 2019-03-08 Richard Biener <rguenther@suse.de>
30159 PR middle-end/89578
30160 * cfgloop.h (struct loop): Add owned_clique field.
30161 * cfgloopmanip.c (copy_loop_info): Copy it.
30162 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30164 * tree-inline.c (copy_loops): Remap owned_clique.
30165 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30166 * lto-streamer-out.c (output_cfg): Likewise.
30168 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30171 * config/darwin.c: Include intl.h.
30172 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30173 composing the message out of two separate parts.
30175 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30178 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30179 doesn't start with a capital letter and doesn't end with a dot.
30180 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30181 with a capital letter.
30182 (ix86_mangle_function_version_assembler_name): Likewise.
30183 (ix86_generate_version_dispatcher_body): Likewise.
30184 (fold_builtin_cpu): Likewise.
30185 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30186 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30187 translators, wrap full type name in %qs.
30189 PR translation/79999
30190 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30191 depend clause with source (or sink) modifier.
30192 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30195 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30196 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30197 (avx512f_load<mode>_mask): New define_expand.
30198 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30199 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30200 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30201 __builtin_ia32_movess_mask): New builtins.
30202 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30203 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30204 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30205 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30207 2019-03-07 Martin Jambor <mjambor@suse.cz>
30210 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30211 for extern inline functions.
30213 2019-03-07 Martin Jambor <mjambor@suse.cz>
30216 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30217 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30218 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30219 have multiple callees. At the end check if declarations match as
30220 opposed to cgraph_nodes.
30222 2019-03-07 Martin Liska <mliska@suse.cz>
30224 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30225 which is equivalent to searching for this in clones chain.
30226 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30227 names with a neighbour and special case first node in a chain.
30229 2019-01-25 Jason Merrill <jason@redhat.com>
30231 PR c++/80916 - spurious "static but not defined" warning.
30232 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30233 for an internal symbol with DECL_EXTERNAL.
30235 2019-04-07 Richard Biener <rguenther@suse.de>
30237 PR middle-end/89618
30238 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30239 * tree-inline.c (copy_loops): Simplify.
30241 2019-03-07 Martin Liska <mliska@suse.cz>
30243 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30245 2019-03-07 Richard Biener <rguenther@suse.de>
30247 PR tree-optimization/89595
30248 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30249 stmt iterator as reference, take boolean output parameter to
30250 indicate whether the stmt was removed and thus the iterator
30252 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30253 stmts created by folding.
30255 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30258 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30261 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30263 PR rtl-optimization/88845
30264 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30266 * lra.c (remove_scratches_1): New function.
30267 (remove_scratches): Use it.
30268 (lra_emit_move): Likewise.
30270 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30272 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30273 unaligned_access variable.
30274 * config/arc/arc.c (arc_override_options): Set unaligned access
30275 default on for HS CPUs.
30276 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30278 2019-03-06 Martin Liska <mliska@suse.cz>
30280 PR gcov-profile/89577
30281 * doc/gcov.texi: Prefer to use --coverage.
30282 * doc/sourcebuild.texi: Likewise.
30284 2019-03-02 Jason Merrill <jason@redhat.com>
30286 PR c++/86485 - -Wmaybe-unused with empty class ?:
30287 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30289 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30292 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30295 PR middle-end/89590
30296 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30297 exactly one argument.
30299 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30300 Richard Sandiford <richard.sandiford@arm.com>
30302 PR tree-optimization/89570
30303 * match.pd (vec_cond into cond_op simplification): Don't use
30304 get_conditional_internal_fn, use as_internal_fn (cond_op).
30306 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30309 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30310 to decide when to split off a non-zero offset from a symbol.
30311 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30312 in function symbols.
30314 2019-03-05 Richard Biener <rguenther@suse.de>
30316 PR tree-optimization/89594
30317 * tree-if-conv.c (pass_if_conversion::execute): Handle
30318 case where .LOOP_VECTORIZED_FUNCTION was removed.
30320 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30323 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30324 instead alloca it only when needed with the needed size.
30326 PR tree-optimization/89570
30327 * match.pd (vec_cond into cond_op simplification): Guard with
30328 vectorized_internal_fn_supported_p test and #if GIMPLE.
30330 PR tree-optimization/89566
30331 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30332 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30333 Punt if get_user_idx_format succeeds, but idx_format argument is
30334 not provided or doesn't have pointer type, or if idx_args is above
30335 number of provided arguments.
30337 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30339 PR tree-optimization/89437
30340 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30342 2019-03-04 Richard Biener <rguenther@suse.de>
30344 PR middle-end/89572
30345 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30348 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30350 PR tree-optimization/89487
30351 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30352 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30353 (distribute_loop): Don't do runtime alias check if there is non-
30354 addressable data reference.
30355 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30356 is a register variable.
30358 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30361 * config/arm/arm.md (cmpsi2_addneg): Use
30362 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30363 If operands[2] is 0 or INT_MIN, force use of subs.
30364 (*compare_scc splitter): Use gen_int_mode.
30365 (*negscc): Likewise.
30366 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30368 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30369 Monk Chiang <sh.chiang04@gmail.com>
30371 * common/config/riscv/riscv-common.c: Include sstream.
30372 (riscv_subset_list::to_string): New.
30373 (riscv_arch_str): Likewise.
30374 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30375 * config.in: Regen.
30376 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30377 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30378 (riscv_emit_attribute): New.
30379 (riscv_file_start): Emit attribute if needed.
30380 (riscv_option_override): Init riscv_emit_attribute_p.
30381 * config/riscv/riscv.opt (mriscv-attribute): New option.
30382 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30383 * configure: Regen.
30384 * doc/install.texi: Document --with-riscv-attribute.
30385 * doc/invoke.texi: Document -mriscv-attribute.
30387 * common/config/riscv/riscv-common.c:
30388 Include config/riscv/riscv-protos.h.
30389 (INCLUDE_STRING): Defined.
30390 (RISCV_DONT_CARE_VERSION): Defined.
30391 (riscv_subset_t): Declare.
30392 (riscv_subset_t::riscv_subset_t): New.
30393 (riscv_subset_list): Declare.
30394 (riscv_subset_list::riscv_subset_list): New.
30395 (riscv_subset_list::~riscv_subset_list): Likewise.
30396 (riscv_subset_list::parsing_subset_version): Likewise.
30397 (riscv_subset_list::parse_std_ext): Likewise.
30398 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30399 (riscv_subset_list::add): Likewise.
30400 (riscv_subset_list::lookup): Likewise.
30401 (riscv_subset_list::xlen): Likewise.
30402 (riscv_subset_list::parse): Likewise.
30403 (riscv_supported_std_ext): Likewise.
30404 (current_subset_list): Likewise.
30405 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30408 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30410 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30411 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30412 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30414 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30416 PR rtl-optimization/85899
30417 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30418 fallthru edges leading to the exit block.
30420 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30423 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30424 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30426 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30428 PR tree-optimization/89535
30429 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30430 for each operand. Calculate the fallback choice for mask operands
30431 and pass it to vect_get_vec_def_for_operand.
30433 2019-03-01 Richard Biener <rguenther@suse.de>
30435 PR middle-end/89541
30436 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30437 get virtual operands.
30438 (get_expr_operands): Handle CONST_DECL like other decls.
30440 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30442 PR middle-end/89503
30443 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30444 on DECL_P and EXPR_P.
30446 2019-03-01 Richard Biener <rguenther@suse.de>
30448 PR middle-end/89497
30449 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30450 argument, defaulted to zero.
30451 * passes.c (execute_function_todo): Pass down SSA update flags
30452 to cleanup_tree_cfg.
30453 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30454 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30456 (cleanup_tree_cfg): Get and pass down SSA update flags.
30458 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30461 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30462 early_lto_debug argument.
30464 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30466 PR tree-optimization/89536
30467 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30468 only whether bit #0 of the value is 0 instead of the entire value.
30470 2019-02-28 Marek Polacek <polacek@redhat.com>
30472 PR c++/87068 - missing diagnostic with fallthrough statement.
30473 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30474 at the end of a seq, save its location to walk_stmt_info.
30475 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30478 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30481 * tree.c (find_atomic_core_type): Move ahead in file.
30482 (check_base_type): Correctly compare alignments of atomic types.
30484 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30487 * config/i386/i386.c (get_builtin_code_for_version): Identify
30488 Westmere from PCLMUL, instead of AES.
30490 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30493 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30494 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30497 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30500 * config/aarch64/aarch64-option-extensions.def: Document it.
30501 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30504 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30507 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30508 builtins if they don't have a single scalar floating point argument.
30511 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30513 PR rtl-optimization/89490
30514 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30515 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30516 block section is not mergeable.
30518 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30521 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
30522 old define_insn to ...
30523 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
30524 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30525 Rename old define_insn to ...
30526 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
30527 (thumb2_casesi_internal_pic): New define_expand. Rename old
30529 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
30530 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30531 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30533 2019-02-27 Richard Biener <rguenther@suse.de>
30536 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
30538 2019-02-27 Richard Biener <rguenther@suse.de>
30540 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
30543 2019-02-27 Richard Biener <rguenther@suse.de>
30546 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
30547 parameter, prefix section name with .gnu.debuglto_ if true.
30548 (dwarf2out_finish): Pass false to output_comdat_type_unit.
30549 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
30551 2019-02-27 Richard Biener <rguenther@suse.de>
30554 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
30555 rather than on use_debug_types, doing what output_die does.
30556 (value_format): Likewise.
30558 2019-02-27 Martin Jambor <mjambor@suse.cz>
30559 Martin Sebor <msebor@redhat.com>
30561 * doc/invoke.texi (Warning Options): Reword description of
30562 -Wno-absolute-value.
30564 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30566 PR tree-optimization/89280
30567 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
30568 builtin_setjmp_setup_bb): New functions.
30569 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
30570 When visiting __builtin_setjmp_setup block, queue in special
30571 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
30572 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
30573 from visited after the loop if they don't have any visited successor
30576 2018-02-26 Steve Ellcey <sellcey@marvell.com>
30578 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
30580 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
30582 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30585 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
30586 with types other than sizetype/ssizetype.
30588 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30590 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
30591 (enum sparc_processor_type): ...this.
30592 (enum sparc_code_model_type): New enumeration type.
30593 (enum sparc_memory_model_type): Tweak comments.
30594 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
30596 (mcmodel): Use sparc_code_model enumeration and variable.
30597 (sparc_code_model): New enumeration.
30598 (mdebug): Add Undocumented marker.
30599 * config/sparc/sparc.h (enum cmodel): Delete.
30600 (sparc_cmodel): Likewise.
30601 (TARGET_CM_MEDLOW): Adjust to above renaming.
30602 (TARGET_CM_MEDMID): Likewise.
30603 (TARGET_CM_MEDANY): Likewise.
30604 (TARGET_CM_EMBMEDANY): Likewise.
30605 * config/sparc/sparc.c (sparc_cmodel): Delete.
30606 (sparc_option_override): Remove string/value mapping support for the
30607 code model. Move code and memory model support to after the handling
30608 of target flags. Do private machine setup last.
30609 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
30610 (sparc_legitimize_reload_address): Likewise.
30611 (sparc_output_mi_thunk): Likewise.
30612 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
30614 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30616 PR tree-optimization/89500
30617 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
30618 (handle_builtin_strlen): Remove noncst_bound variable. Always
30619 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
30620 cst if the first cst bytes starting at x are known to be non-zero,
30621 even if the string is not zero terminated. Don't try to modify
30622 *si for strnlen. Update strlen_to_stridx only for strlen or if
30623 we can prove strnlen returns the same value as strlen would.
30625 2019-02-26 Martin Liska <mliska@suse.cz>
30627 * alloc-pool.h (struct pool_usage): Remove extra
30629 * bitmap.h (struct bitmap_usage): Likewise.
30630 * ggc-common.c (struct ggc_usage): Likewise.
30631 * mem-stats.h (struct mem_usage): Likewise.
30632 (mem_alloc_description::dump): Print dash lines
30633 here and repeat header at the end of a table report.
30634 It's then more readable.
30635 * tree-phinodes.c (phinodes_print_statistics): Make
30636 horizontal alignment.
30637 * tree-ssanames.c (ssanames_print_statistics): Likewise.
30638 * vec.c (struct vec_usage): Remove extra print_dash_line.
30639 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
30641 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
30643 * doc/extend.texi (__builtin_object_size):
30644 Use @pxref instead of @xref inside parenthesis.
30645 (__builtin_has_attribute): Add missing comma after @xref.
30646 (__builtin_object_size): Ditto.
30647 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
30649 2019-02-26 Jeff Law <law@redhat.com>
30651 PR rtl-optimization/87761
30652 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
30653 detect obviously dead insns and delete them.
30655 2019-02-26 Richard Biener <rguenther@suse.de>
30657 PR tree-optimization/89505
30658 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
30659 to handle restrict pointed-to vars with multiple subvars
30662 2019-02-26 Richard Biener <rguenther@suse.de>
30664 PR tree-optimization/89489
30665 * tree-parloops.c (create_loop_fn): Copy over last_clique.
30667 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30669 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
30670 and move around comment.
30671 <BIT_AND_EXPR>: Likewise.
30672 <BIT_NOT_EXPR>: Add specific handling for boolean types.
30674 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30677 * config/i386/i386.c (remove_partial_avx_dependency): Call
30678 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
30679 after changing possibly many instructions to use that pseudo. Fix up
30680 insertion of v4sf_const0 setter at the start of bb.
30682 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30685 * doc/extend.texi (Variadic Pointer Args): New section.
30687 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30688 Martin Sebor <msebor@gmail.com>
30690 * common.opt (Wattribute-alias): Likewise.
30691 * doc/invoke.texi (Option Summary): List general form of
30692 -Wattribute-alias=. List positive form of -Wmissing-attributes.
30693 (-Wmissing-attributes): Invert entry, rewrite and correct default.
30694 Add cross-references.
30695 (-Wattribute-alias): Rewrite and correct default. Mention
30696 considered attributes (same as for -Wmissing-attributes).
30698 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
30700 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
30701 (_mm_cvtpd_ps): Likewise.
30702 (_mm_cvttpd_epi32): Likewise.
30705 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
30706 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
30709 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
30711 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30714 * common/config/aarch64/aarch64-common.c
30715 (struct aarch64_option_extension): Add is_synthetic.
30716 (all_extensions): Use it.
30717 (TARGET_OPTION_INIT_STRUCT): Define hook.
30718 (struct gcc_targetm_common): Moved to end.
30719 (all_extensions_by_on): New.
30720 (opt_ext_cmp, typedef opt_ext): New.
30721 (aarch64_option_init_struct): New.
30722 (aarch64_contains_opt): New.
30723 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
30724 * config/aarch64/aarch64-option-extensions.def
30725 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
30726 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
30727 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
30728 Set is_synthetic to false.
30729 (crypto): Set is_synthetic to true.
30730 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
30733 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30735 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30736 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
30737 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30738 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
30739 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
30740 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
30741 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
30742 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
30744 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
30745 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30746 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
30747 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
30748 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
30749 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
30750 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
30751 vfmlsl_laneq_high_f16): ... To this.
30752 * config/arm/neon.md: Update comments.
30754 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30756 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30757 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
30758 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30759 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
30760 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
30761 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
30762 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
30763 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
30765 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
30766 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30767 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
30768 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
30769 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
30770 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
30771 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
30772 vfmlslq_laneq_high_f16): ... To this.
30774 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
30776 PR rtl-optimization/86096
30777 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
30778 comparing mw_order values.
30780 2019-02-25 Jakub Jelinek <jakub@redhat.com>
30783 * config/arm/arm.md (*subsi3_carryin_const): Use
30784 arm_neg_immediate_operand predicate instead of
30785 arm_not_immediate_operand, "L" constraint instead of "K" and
30786 print it using %n2 instead of %B2.
30787 (*subsi3_carryin_const0): New define_insn.
30788 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
30789 instead of arm_not_operand and "I" constraint instead of "K" and
30790 print it using %n3 instead of %B2. Instead of using match_dup 2 add
30791 another match_operand and in the condition check that it is negation
30793 (*subsi3_carryin_compare_const0): New define_ins.
30794 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
30795 *subsi3_carryin_const.
30796 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
30797 split into *subsi3_carryin_compare_const0 if the highpart is zero.
30800 * config/arm.vfp.md (*negdf2_vfp): Use
30801 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
30802 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
30804 2019-02-24 Jakub Jelinek <jakub@redhat.com>
30806 PR rtl-optimization/89445
30807 * simplify-rtx.c (simplify_ternary_operation): Don't use
30808 simplify_merge_mask on operands that may trap.
30809 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
30810 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
30811 second operand is CONST_VECTOR, check if any element could be zero.
30812 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
30813 their operands can trap.
30815 2019-02-23 Martin Sebor <msebor@redhat.com>
30817 * gimple-ssa-sprintf.c (target_strtol): Rename...
30818 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
30819 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
30820 check for range error.
30822 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
30825 * opts-common.c (prune_options): Also prune joined switches
30826 with Negative and RejectNegative.
30827 * config/i386/i386.opt (march=): Add Negative(march=).
30828 (mtune=): Add Negative(mtune=).
30829 * doc/options.texi: Document Negative used together with Joined
30830 and RejectNegative.
30832 2019-02-22 Martin Sebor <msebor@redhat.com>
30834 * doc/extend.texi (Other Builtins): Add
30835 __builtin_is_constant_evaluated.
30837 2019-02-22 Richard Biener <rguenther@suse.de>
30839 PR tree-optimization/87609
30840 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
30842 2019-02-22 Jeff Law <law@redhat.com>
30844 PR rtl-optimization/87761
30845 * config/mips/mips.md: Add new combiner pattern to recognize
30846 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
30848 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
30851 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
30852 destination register in peepholes generating patterns for ADDS/SUBS.
30853 (add<mode>3_compare0,
30854 *addsi3_compare0_uxtw, add<mode>3_compareC,
30855 add<mode>3_compareV_imm, add<mode>3_compareV,
30856 *adds_<optab><ALLX:mode>_<GPI:mode>,
30857 *subs_<optab><ALLX:mode>_<GPI:mode>,
30858 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
30859 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
30860 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
30861 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
30862 sub<mode>3_compare1): Allow stack pointer for source register.
30863 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
30865 2019-02-22 Martin Sebor <msebor@redhat.com>
30867 PR tree-optimization/88993
30868 PR tree-optimization/88853
30869 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
30871 (sprintf_dom_walker::call_info::is_string_func): New helper.
30872 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
30873 for formatted string functions.
30874 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
30876 2019-02-22 Martin Sebor <msebor@redhat.com>
30879 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
30880 unreachable subexpressions.
30882 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
30883 Hongtao Liu <hongtao.liu@intel.com>
30884 Sunil K Pandey <sunil.k.pandey@intel.com>
30887 * config/i386/i386-passes.def: Add
30888 pass_remove_partial_avx_dependency.
30889 * config/i386/i386-protos.h
30890 (make_pass_remove_partial_avx_dependency): New.
30891 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
30893 (pass_data_remove_partial_avx_dependency): New.
30894 (pass_remove_partial_avx_dependency): Likewise.
30895 (make_pass_remove_partial_avx_dependency): Likewise.
30896 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
30897 (*extendsfdf2): Add avx_partial_xmm_update.
30898 (truncdfsf2): Likewise.
30899 (*float<SWI48:mode><MODEF:mode>2): Likewise.
30900 (SF/DF conversion splitters): Disabled for TARGET_AVX.
30902 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
30904 PR middle-end/85598
30905 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
30908 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
30911 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
30912 (PTA_SKYLAKE): Add PTA_AES.
30913 (PTA_GOLDMONT): Likewise.
30915 2019-02-22 Sudakshina Das <sudi.das@arm.com>
30917 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
30918 instruction if enabled.
30919 (aarch64_override_options): Remove reference to return address key.
30921 2019-02-22 Richard Biener <rguenther@suse.de>
30923 PR tree-optimization/89440
30924 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
30925 not necessary assert.
30927 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
30930 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
30931 (oacc_replace_fn_attrib_attr): ... this new function.
30932 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
30933 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
30935 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30937 * config/arm/arm-cpus.in (ares): Rename to...
30938 (neoverse-n1): ... This. Add ares as alias.
30939 * config/arm/arm-tables.opt: Regenerate.
30940 * config/arm/arm-tune.md: Likewise.
30941 * doc/invoke.txt (ARM Options): Document neoverse-n1.
30943 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30945 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
30946 * config/aarch64/aarch64-tune.md: Regenerate.
30947 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
30949 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30951 * config/aarch64/aarch64.c (ares_tunings): Rename to...
30952 (neoversen1_tunings): ... This.
30953 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
30954 (neoverse-n1): New CPU.
30955 * config/aarch64/aarch64-tune.md: Regenerate.
30956 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
30958 2019-02-22 Richard Biener <rguenther@suse.de>
30960 PR middle-end/87609
30961 * cfghooks.h (dependence_hash): New typedef.
30962 (struct copy_bb_data): New type.
30963 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
30964 (duplicate_block): Likewise.
30965 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
30966 (copy_bbs): Create and pass down copy_bb_data.
30967 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
30968 (rtl_duplicate_bb): Likewise.
30969 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
30970 remap dependence info.
30972 2019-02-22 Richard Biener <rguenther@suse.de>
30974 PR tree-optimization/87609
30975 * tree-core.h (tree_base): Document special clique values.
30976 * tree-inline.c (remap_dependence_clique): Do not use the
30977 special clique value of one.
30978 (maybe_set_dependence_info): Use clique one.
30979 (clear_dependence_clique): New callback.
30980 (compute_dependence_clique): Clear clique one from all refs
30981 before assigning it (again).
30983 2019-02-21 Martin Sebor <msebor@redhat.com>
30985 * doc/extend.texi (__clear_cache): Correct signature.
30987 2019-02-21 Ian Lance Taylor <iant@golang.org>
30990 * varasm.c (decode_addr_const): Call lookup_constant_def rather
30991 than output_constant_def.
30992 (add_constant_to_table): New static function.
30993 (output_constant_def): Call add_constant_to_table.
30994 (tree_output_constant_def): Likewise.
30996 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30999 * builtins.c (fold_builtin_arith_overflow): If first two args are
31000 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31003 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31006 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31007 error for -mindirect-branch/-mfunction-return with incompatible
31010 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31013 * constraints.md (q): Remove.
31014 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31017 2019-02-21 Martin Jambor <mjambor@suse.cz>
31020 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31021 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31022 (omp_adjust_for_condition): ...here. Added necessary parameters.
31023 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31024 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31025 proper values to new parameters of omp_adjust_for_condition.
31027 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31029 PR middle-end/89412
31030 * expr.c (expand_assignment): If result is a MEM, use change_address
31031 instead of simplify_gen_subreg.
31033 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31034 David Malcolm <dmalcolm@redhat.com>
31036 PR middle-end/89091
31037 * fold-const.c (decode_field_reference): Return NULL_TREE if
31038 lang_hooks.types.type_for_size returns NULL. Check it before
31039 overwriting *exp_. Use return NULL_TREE instead of return 0.
31041 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31043 PR middle-end/88074
31044 PR middle-end/89415
31045 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31048 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31051 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31052 TARGET_SSE in addition to TARGET_SSE_MATH.
31054 (ix86_excess_precision): Ditto.
31055 (ix86_float_exceptions_rounding_supported_p): Ditto.
31056 (use_rsqrt_p): Ditto.
31057 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31059 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31062 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31063 linenum_arith_t when determining if two adjacent line spans are
31064 close enough to merge.
31065 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31066 lines within each line_span.
31068 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31071 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31072 paradoxical SUBREGS.
31074 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31077 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31078 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31079 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31082 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31084 * config/gcn/gcn.c (print_operand): Fix typo.
31086 2019-02-19 Richard Biener <rguenther@suse.de>
31088 PR middle-end/88074
31089 * toplev.c (do_compile): Initialize mpfr's exponent range
31090 based on available float modes.
31092 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31094 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31095 as long as the epilogue isn't completed.
31097 2019-02-18 Martin Sebor <msebor@redhat.com>
31099 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31100 __has_cpp_attribute, and __has_include.
31102 2019-02-18 Martin Sebor <msebor@redhat.com>
31104 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31106 2019-02-18 Martin Sebor <msebor@redhat.com>
31108 PR middle-end/89294
31109 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31111 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31113 2019-02-18 Richard Biener <rguenther@suse.de>
31115 PR tree-optimization/89296
31116 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31117 of no-warning flag to cases that might emit the bogus warning.
31119 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31122 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31124 * config/arm/vfp.md (*movdi_vfp): Likewise.
31125 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31126 "q" constraint for operands[0].
31129 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31130 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31131 pattern in a temporary buffer.
31132 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31133 than 64-operands[2].
31136 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31137 s390_indirect_branch_settings): Define unconditionally.
31138 (s390_set_current_function): Likewise, but guard the whole body except
31139 the s390_indirect_branch_settings call with
31140 #if S390_USE_TARGET_ATTRIBUTE.
31141 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31143 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31144 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31145 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31146 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31147 HOST_WIDE_INT_1U instead of 1ULL.
31148 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31149 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31150 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31151 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31153 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31156 2019-02-18 Martin Jambor <mjambor@suse.cz>
31158 PR tree-optimization/89209
31159 * tree-sra.c (create_access_replacement): New optional parameter
31160 reg_tree. Use it as a type if non-NULL and access type is not of
31162 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31163 to create_access_replacement.
31164 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31165 Check lacc is non-NULL before attempting to re-create it on the RHS.
31167 2019-02-18 Martin Liska <mliska@suse.cz>
31170 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31172 (symbol_table::free_edge): Recycle m_summary_id.
31173 * cgraph.h (get_summary_id): New.
31174 (symbol_table::release_symbol): Set m_summary_id to -1
31176 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31177 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31178 function_summary to fast_function_summary.
31179 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31180 * ipa-pure-const.c (class funct_state_summary_t):
31181 Switch from function_summary to fast_function_summary.
31182 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31183 (class ipa_ref_opt_summary_t): Switch from function_summary
31184 to fast_function_summary.
31185 * symbol-summary.h (class function_summary_base): New class
31186 that is created from base of former function_summary.
31187 (function_summary_base::unregister_hooks): New.
31188 (class function_summary): Inherit from function_summary_base.
31189 (class call_summary_base): New class
31190 that is created from base of former call_summary.
31191 (class call_summary): Inherit from call_summary_base.
31192 (struct is_same): New.
31193 (class fast_function_summary): New summary class.
31194 (class fast_call_summary): New summary class.
31195 * vec.h (vec_safe_grow_cleared): New function.
31197 2019-02-18 Martin Liska <mliska@suse.cz>
31199 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31200 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31201 * doc/tm.texi: Document new target hook.
31202 * doc/tm.texi.in: Likewise.
31203 * target.def: Add new target macro.
31204 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31207 2019-02-17 Alan Modra <amodra@gmail.com>
31210 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31211 output reg on add insn.
31212 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31214 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31217 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31218 (PMULHRSW): Likewise.
31219 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31221 (ssse3_pmulhrswv4hi3): New expander.
31223 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31225 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31226 MMX. Add isa attribute.
31228 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31230 PR rtl-optimization/66152
31231 * builtins.h (c_readstr): Declare.
31232 * builtins.c (c_readstr): Remove forward declaration. Add
31233 null_terminated_p argument, if false, read all bytes from the
31234 string instead of stopping after '\0'.
31235 * expr.c (string_cst_read_str): New function.
31236 (store_expr): Use string_cst_read_str instead of
31237 builtin_strncpy_read_str. Try to store by pieces the whole
31238 exp_len first, and only if that fails, split it up into
31239 store by pieces followed by clear_storage. Formatting fix.
31241 * config/i386/i386.md (*movqi_internal): Remove static from
31242 buf variable. Use output_asm_insn (buf, operands); return "";
31243 instead of return buf;.
31244 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31245 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31246 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31248 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31250 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31251 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31252 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31253 (CC1_SPEC): Likewise.
31254 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31256 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31258 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31259 the base address on 64-bit strict-alignment platforms.
31261 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31263 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31265 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31267 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31269 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31271 PR rtl-optimization/88308
31272 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31273 on copied instruction.
31275 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31277 * final.c (insn_current_reference_address): Replace test on JUMP_P
31278 with test on jump_to_label_p.
31279 * config/visium/visium-passes.def: New file.
31280 * config/visium/t-visium (PASSES_EXTRA): Define.
31281 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31282 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31283 (TRAMPOLINE_ALIGNMENT): Define.
31284 * config/visium/visium.c (visium_option_override): Do not register
31285 the machine-specific reorg pass here.
31286 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31288 (output_branch): Adjust threshold for long branch instruction.
31289 * config/visium/visium.md (cpu): Move around.
31290 (length): Adjust for the GR6.
31292 2019-02-15 Richard Biener <rguenther@suse.de>
31293 Jakub Jelinek <jakub@redhat.com>
31295 PR tree-optimization/89278
31296 * tree-loop-distribution.c: Include tree-eh.h.
31297 (generate_memset_builtin, generate_memcpy_builtin): Call
31298 rewrite_to_non_trapping_overflow on builtin->size before passing it
31299 to force_gimple_operand_gsi.
31301 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31304 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31306 * opth-gen.awk: Likewise.
31308 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31310 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31311 Enable MMX, SSE and SSE2 by default.
31312 * config/i386/i386.c (ix86_option_override_internal): Do not
31313 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31315 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31317 PR rtl-optimization/89354
31318 * combine.c (make_extraction): Punt if extraction_mode is narrower
31321 2019-02-14 Maya Rashish <coypu@sdf.org>
31323 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31324 * config/netbsd-d.c: New file.
31325 * config/t-netbsd: Add netbsd-d.o
31327 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31329 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31330 affects_type_identity to true for aarch64_vector_pcs.
31331 (aarch64_comp_type_attributes): New function.
31332 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31334 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31337 * config/arm/iterators.md (ANY64): Add V4HF.
31339 2019-02-14 Martin Liska <mliska@suse.cz>
31341 PR rtl-optimization/89242
31342 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31343 process a transformation.
31345 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31347 PR tree-optimization/89314
31348 * fold-const.c (fold_binary_loc): Cast strlen argument to
31349 const char * before dereferencing it. Formatting fixes.
31351 PR middle-end/89284
31352 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31354 2019-02-13 Ian Lance Taylor <iant@golang.org>
31356 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31357 and set current index for other optimizations.
31359 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31361 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31362 nonimmediate_operand as operand 2 predicate.
31363 (vec_set<VF2_512_256:mode>_0): Ditto.
31364 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31365 (*vec_concatv2si): Remove alternative 2.
31366 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31367 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31368 (vec_concatv2di): Split alternatives 4,5,6 to ...
31369 (*vec_concatv2di_0) ... new pattern.
31371 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31374 * config/arm/arm.c (ldm_stm_operation_p) Set
31375 addr_reg_in_reglist correctly for first register.
31376 (load_multiple_sequence): Remove dead base check.
31377 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31379 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31382 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31383 Expose as @aarch64_pred_mov.
31384 * config/aarch64/aarch64.c (aarch64_classify_address):
31385 Use expand_insn which legitimizes operands.
31387 2019-02-13 Martin Liska <mliska@suse.cz>
31389 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31390 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31391 and pointer_offset fields.
31392 (initialize_argument_information): Remove usage of dead
31394 * cgraph.h (struct cgraph_thunk_info): Remove
31395 add_pointer_bounds_args.
31396 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31398 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31400 * config/i386/i386.c (ix86_function_arg_advance): Remove
31402 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31403 (def_builtin): Remove usage of dead fields.
31404 (ix86_add_new_builtins): Likewise.
31405 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31406 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31407 (sem_function::init): Likewise.
31408 (sem_variable::merge): Likewise.
31409 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31410 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31411 * lto-cgraph.c (lto_output_node): Likewise.
31412 (lto_output_varpool_node): Likewise.
31413 (input_node): Likewise.
31414 (input_varpool_node): Likewise.
31415 * lto-streamer-out.c (lto_output): Likewise.
31416 * tree-inline.c (expand_call_inline): Remove usage of
31418 * tree-inline.h (struct copy_body_data): Likewise.
31419 * varpool.c (varpool_node::dump): Likewise.
31421 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31423 PR middle-end/89303
31424 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31425 into pt->vars_contains_escaped_heap instead of setting
31426 pt->vars_contains_escaped_heap to it.
31428 PR middle-end/89281
31429 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31430 INTVAL (size), compare it to GET_MODE_MASK instead of
31431 1 << GET_MODE_BITSIZE.
31434 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31435 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31438 2019-02-13 Martin Liska <mliska@suse.cz>
31441 * cfgrtl.c (remove_barriers_from_footer): New function.
31442 (try_redirect_by_replacing_jump): Use it.
31443 (cfg_layout_redirect_edge_and_branch): Likewise.
31445 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31447 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31448 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31449 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31450 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31451 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31452 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31454 * config/rs6000/rs6000.c (builtin_function_type)
31455 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31456 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31457 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31458 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31459 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31461 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31463 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31464 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31466 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31469 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31470 268678 and revision 268657.
31471 (*movti_internal): Likewise.
31473 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31476 * config/s390/s390.c (s390_decompose_address): Update comment.
31477 (s390_check_qrst_address): Reject invalid address forms after
31480 2019-02-12 Martin Liska <mliska@suse.cz>
31483 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31484 we need default values of funct_state for a function that
31487 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31489 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31490 the object to pick the size of stores on strict-alignment platforms.
31492 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31493 (*movdi_insn_sp32): Likewise.
31494 (*movdi_insn_sp64): Likewise.
31496 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31499 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31500 types that needs constructiong.
31501 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31503 2019-02-12 Richard Biener <rguenther@suse.de>
31505 PR tree-optimization/89253
31506 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31507 duplicate the loop.
31509 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31512 * input.c (selftest::test_line_offset_overflow): New selftest.
31513 (selftest::input_c_tests): Call it.
31515 2019-02-11 Martin Sebor <msebor@redhat.com>
31517 PR tree-optimization/88771
31518 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31519 when -Wstringop-overflow is set.
31520 (builtin_memref::builtin_memref): Adjust excessive upper bound
31521 only when lower bound is not excessive.
31522 (maybe_diag_overlap): Detect and diagnose excessive bounds via
31523 -Wstringop-ovefflow.
31524 (maybe_diag_offset_bounds): Rename...
31525 (maybe_diag_access_bounds): ...to this.
31526 (check_bounds_or_overlap): Adjust for name change above.
31528 2019-02-11 Martin Sebor <msebor@redhat.com>
31531 * builtins.c (max_object_size): Move from here...
31532 * builtins.h (max_object_size): ...and here...
31533 * tree.c (max_object_size): ...to here...
31534 * tree.h (max_object_size): ...and here.
31536 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
31538 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
31539 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
31540 for correct semantics.
31542 2019-02-11 Alan Modra <amodra@gmail.com>
31544 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
31545 -mlongcall and -mpltseq.
31546 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
31547 (RS/6000 and PowerPC Options <-mpltseq>): Document.
31548 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
31549 * config/rs6000/sysv4.opt (mpltseq): New option.
31550 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
31551 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
31552 support is lacking. Don't allow -mpltseq with -mbss-plt.
31553 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
31554 -mpltseq given for ELFv1.
31555 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
31556 Only use UNSPEC_PLTSEQ for inline PLT calls.
31557 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
31558 use UNSPEC_PLTSEQ for inline PLT calls.
31559 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
31560 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
31561 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
31562 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31563 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31564 (pltseq_mtctr_<mode>): Likewise.
31566 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31568 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
31570 * configure: Regenerate.
31572 2019-02-11 Jakub Jelinek <jakub@redhat.com>
31575 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
31578 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31580 * function.c (assign_parm_setup_block): Use the stored
31581 size, not the passed size, when allocating stack-space,
31582 also for a parameter with alignment larger than
31583 MAX_SUPPORTED_STACK_ALIGNMENT.
31585 2019-02-11 Martin Liska <mliska@suse.cz>
31588 * ipa-cp.c (build_toporder_info): Remove usage of a param.
31589 * ipa-inline.c (inline_small_functions): Likewise.
31590 * ipa-pure-const.c (propagate_pure_const): Likewise.
31591 (propagate_nothrow): Likewise.
31592 * ipa-reference.c (propagate): Likewise.
31593 * ipa-utils.c (struct searchc_env): Remove unused field.
31594 (searchc): Always search across AVAIL_INTERPOSABLE.
31595 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
31596 the only called IPA pure const can properly not propagate
31597 across interposable boundary.
31598 * ipa-utils.h (ipa_reduced_postorder): Remove param.
31600 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
31602 * config/nds32/nds32.md (call_internal, call_value_internal,
31603 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
31605 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31607 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
31610 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
31612 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
31615 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31617 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
31619 2019-02-10 Jakub Jelinek <jakub@redhat.com>
31621 PR tree-optimization/89268
31622 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
31623 if preds is non-NULL.
31625 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31628 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
31631 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31633 * config/nds32/nds32.md (trap): New pattern.
31635 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31637 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
31640 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31642 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
31645 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31647 * ipa-visibility.c (localize_node): Also do not localize
31648 LDPR_PREVAILING_DEF_IRONLY_EXP.
31650 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31653 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
31654 instead of type_with_linkage.
31656 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31659 * params.def (uninlined-function-insns, uninlined-function-time,
31660 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
31661 bound so we don't get overflows.
31663 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31665 * config/rs6000/rs6000-string.c (expand_compare_loop,
31666 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
31669 2019-02-09 Jakub Jelinek <jakub@redhat.com>
31671 PR middle-end/89246
31672 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31673 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
31674 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
31676 2019-02-09 Alan Modra <amodra@gmail.com>
31679 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
31680 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
31683 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
31685 PR middle-end/88560
31686 * lra-constraints.c (process_alt_operands): Don't increase reject
31687 for memory when offset memory is required.
31689 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
31691 * config/s390/vector.md: Implement vector copysign.
31693 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31695 * expr.c (expand_constructor): Correct indentations.
31697 2019-02-08 Richard Biener <rguenther@suse.de>
31699 PR tree-optimization/89247
31700 * tree-if-conv.c: Include tree-cfgcleanup.h.
31701 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
31702 (tree_if_conversion): Pass through predicate vector.
31703 (pass_if_conversion::execute): Do CFG cleanup and SSA update
31704 inline, see if any if-converted loops we refrece in
31705 LOOP_VECTORIZED calls vanished and fixup.
31706 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
31708 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
31710 * config/s390/constraints.md (jdd): New constraint.
31712 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31715 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
31716 upper 16 vector registers without TARGET_AVX512VL.
31717 (*movti_internal): Likewise.
31719 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31721 PR rtl-optimization/89234
31722 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
31723 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
31724 (copy_reg_eh_region_note_backward): Likewise.
31726 2019-02-08 Richard Biener <rguenther@suse.de>
31728 PR middle-end/89223
31729 * tree-data-ref.c (initialize_matrix_A): Fail if constant
31730 doesn't fit in HWI.
31731 (analyze_subscript_affine_affine): Handle failure from
31732 initialize_matrix_A.
31734 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31736 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
31739 2019-02-07 David Malcolm <dmalcolm@redhat.com>
31741 PR tree-optimization/86637
31742 PR tree-optimization/89235
31743 * tree-vect-loop.c (optimize_mask_stores): Add an
31744 auto_purge_vect_location sentinel to ensure that vect_location is
31746 * tree-vectorizer.c
31747 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
31748 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
31749 to ensure that vect_location is purged on exit.
31750 (pass_slp_vectorize::execute): Likewise, replacing the manual
31752 * tree-vectorizer.h (class auto_purge_vect_location): New class.
31754 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31756 * config/aarch64/iterators.md (max_opp): New code_attr.
31757 (USMAX): New code iterator.
31758 * config/aarch64/predicates.md (aarch64_smin): New predicate.
31759 (aarch64_smax): Likewise.
31760 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
31761 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
31764 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
31767 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
31768 for TARGET_AVX512VL.
31769 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
31771 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
31773 * config/s390/s390-builtin-types.def: Add new types.
31774 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
31775 (s390_vec_xlw4): Make the memory operand into a const pointer.
31776 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
31778 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
31779 a new vector type with the alignment of the scalar memory operand.
31781 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
31782 Jakub Jelinek <jakub@redhat.com>
31785 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
31786 arm_count_ldrdstrd_insns): New declarations.
31787 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
31789 (valid_operands_ldrd_strd): New function.
31790 (arm_count_ldrdstrd_insns): New function.
31791 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
31792 sets instead of single DImode set and define new insns to match this.
31794 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31796 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
31797 Make it a C initializer.
31799 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31802 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
31804 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31806 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
31807 Use neon_dot<q> for type.
31808 (neon_<sup>dot_lane<vsi2qi>): Likewise.
31810 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31812 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
31813 Use neon_dot<q> for type.
31814 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
31815 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
31817 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
31819 PR rtl-optimization/89225
31820 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
31823 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
31825 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
31826 after restoring registers saved to allocate the frame on Windows.
31828 2019-02-06 Richard Biener <rguenther@suse.de>
31830 PR tree-optimization/89182
31831 * graphite.h (cached_scalar_evolution_in_region): Declare.
31832 * graphite.c (struct seir_cache_key): New.
31833 (struct sese_scev_hash): Likewise.
31834 (seir_cache): New global.
31835 (cached_scalar_evolution_in_region): New function.
31836 (graphite_transform_loops): Allocate and release seir_cache.
31837 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
31838 cached_scalar_evolution_in_region.
31839 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31841 (scop_detection::graphite_can_represent_expr: Use
31842 cached_scalar_evolution_in_region.
31843 (scop_detection::stmt_simple_for_scop_p): Likewise.
31844 (find_params_in_bb): Likewise.
31845 (gather_bbs::before_dom_children): Likewise.
31846 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
31847 (add_loop_constraints): Likewise.
31849 2019-02-06 Jakub Jelinek <jakub@redhat.com>
31851 PR middle-end/89210
31852 * fold-const-call.c (fold_const_vec_convert): Pass true as last
31853 operand to new_unary_operation only if both element types are integral
31854 and it isn't a widening conversion. Return NULL_TREE if
31855 new_unary_operation failed.
31857 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
31860 * config/s390/s390.md: Remove load and test FP splitter.
31862 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31865 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
31866 expand_compare_loop, expand_block_compare_gpr,
31867 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
31868 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
31869 #include "profile-count.h" and "predict.h" for types and functions
31870 needed to work with REG_BR_PROB notes.
31872 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31875 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
31876 for the long branch case.
31878 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31881 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
31882 can throw, non-call exceptions are enabled and we can't delete
31883 dead exceptions or alter cfg. Set must_clean if
31884 delete_insn_and_edges returns true, don't set it blindly for calls.
31885 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
31887 PR rtl-optimization/89195
31888 * combine.c (make_extraction): For MEMs, don't extract bytes outside
31889 of the original MEM.
31891 2019-02-05 Martin Liska <mliska@suse.cz>
31893 PR gcov-profile/89000
31894 * gcov.c (function_summary): Remove argument.
31895 (file_summary): New function.
31896 (print_usage): Replace tabs with spaces.
31897 (generate_results): Use new function file_summary.
31899 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31902 * optabs.c (prepare_cmp_insn): Pass x and y to
31903 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
31905 2019-02-05 Richard Biener <rguenther@suse.de>
31907 PR middle-end/89150
31908 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
31909 (struct bitmap_element): Drop chain_prev so we properly recurse on
31910 the prev member, supporting tree views.
31911 (struct bitmap_head): GTY skip the obstack member.
31913 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
31916 * doc/extend.texi (Vector Extensions): Add an example of using vector
31917 types together with x86 intrinsics.
31919 2019-02-04 Alan Modra <amodra@gmail.com>
31921 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
31922 str[] size to 160, and comment.
31924 2019-02-04 Alan Modra <amodra@gmail.com>
31926 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
31927 (rs6000_pltseq_template): Guard output of TLS markers with
31928 TARGET_TLS_MARKERS.
31929 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
31930 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
31931 to use inline PLT sequences.
31932 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31933 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31934 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
31936 2019-02-04 Martin Liska <mliska@suse.cz>
31939 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
31940 out when ipa_fn_summaries does not contain entry for callee.
31942 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
31944 * config/sparc/sparc.h: Remove superfluous blank lines.
31945 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
31946 (got_register_rtx): ...this.
31947 (sparc_got): Adjust to above renaming.
31948 (sparc_tls_got): Likewise.
31949 (sparc_delegitimize_address): Likewise.
31950 (sparc_output_mi_thunk): Likewise.
31951 (sparc_init_pic_reg): Likewise.
31952 (save_local_or_in_reg_p): Fix test on the GOT register.
31953 (USE_HIDDEN_LINKONCE): Move around.
31954 (get_pc_thunk_name): Likewise.
31955 (gen_load_pcrel_sym): Likewise.
31956 (load_got_register): Likewise.
31958 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
31960 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
31961 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
31963 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31965 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
31966 into consideration.
31968 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31970 * config.gcc (with_nds32_lib, glibc):
31971 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
31972 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
31973 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
31975 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
31978 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
31979 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
31980 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
31981 (*rcpsf2_sse): Ditto.
31982 (*rsqrtsf2_sse): Ditto.
31983 (sse4_1_round<mode<2): Ditto.
31985 2019-02-03 Richard Biener <rguenther@suse.de>
31988 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
31991 2019-02-02 Jakub Jelinek <jakub@redhat.com>
31993 PR middle-end/87887
31994 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31995 Punt with warning on aggregate return or argument types. Ignore
31996 type/mode checking for uniform arguments.
31998 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32000 * combine.c (try_combine): Do not print "Can't combine" messages unless
32001 printing failed combination attempts.
32003 2019-02-01 Martin Jambor <mjambor@suse.cz>
32006 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32007 segment and global segment variables before making them static.
32009 2019-02-01 Martin Jambor <mjambor@suse.cz>
32011 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32012 missed optimization dump with dump_enabled_p.
32014 2019-02-01 Richard Biener <rguenther@suse.de>
32016 PR middle-end/88597
32017 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32018 the instantiate cache.
32019 (instantiate_scev_binary): Elide second operand procesing
32020 if equal to the first.
32021 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32022 (chrec_contains_undetermined): Likewise.
32023 (tree_contains_chrecs): Likewise.
32025 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32027 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32029 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32031 PR tree-optimization/89143
32032 * wide-int-range.h (wide_int_range_absu): Declare.
32033 * wide-int-range.cc (wide_int_range_absu): New function.
32034 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32036 PR tree-optimization/88107
32037 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32038 instead of assertion that eh_region_outermost is non-NULL, if it
32039 is NULL, set *ALL to true and return NULL.
32040 (move_sese_region_to_fn): Adjust caller, if all is set, call
32041 duplicate_eh_regions with NULL region.
32043 2019-02-01 Richard Biener <rguenth@suse.de>
32045 PR rtl-optimization/88593
32046 * mode-switching.c (optimize_mode_switching): Free dominators before
32047 calling cleanup_cfg.
32049 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32051 PR tree-optimization/88932
32052 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32054 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32056 PR middle-end/89137
32057 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32058 bogus clang warning.
32060 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32063 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32064 alternative to avoid partial SSE register stall for TARGET_AVX.
32065 (truncdfsf2): Ditto.
32066 (sse4_1_round<mode>2): Ditto.
32068 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32070 PR tree-optimization/89008
32071 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32072 process anything of the form X * 0.
32074 2019-01-31 Richard Biener <rguenther@suse.de>
32076 PR tree-optimization/89135
32077 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32078 with abnormal preds.
32080 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32083 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32084 always_inline callees into no_sanitize_address callers.
32086 2019-01-31 Richard Biener <rguenther@suse.de>
32088 PR rtl-optimization/89115
32089 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32091 2019-01-30 Martin Sebor <msebor@redhat.com>
32094 * doc/extend.texi (cast to a union): Correct and expand.
32096 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32098 PR rtl-optimization/87246
32099 * lra-constraints.c (simplify_operand_subreg): Reload memory
32100 in subreg if the address became invalid.
32102 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32105 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32106 Disable for little-endian.
32108 2019-01-30 Richard Biener <rguenther@suse.de>
32110 PR rtl-optimization/89115
32111 * opts.c (default_options_optimization): Reduce
32112 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32113 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32116 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32118 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32119 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32120 type of vector element when vec_extract is implemented by direct
32123 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32125 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32127 2019-01-30 Richard Biener <rguenther@suse.de>
32129 PR tree-optimization/89111
32130 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32131 canonicalization to appropriately sized access types.
32133 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32136 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32137 for arguments to functions that are TU-local and shouldn't be
32138 referenced by assembly.
32140 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32142 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32145 2019-01-29 Martin Sebor <msebor@redhat.com>
32148 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32150 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32154 * omp-simd-clone.c (simd_clone_clauses_extract)
32155 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32156 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32158 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32160 * config.gcc: Force .init_array for ARC.
32162 2019-01-29 Richard Biener <rguenther@suse.de>
32165 * dwarf2out.c (collect_skeleton_dies): New helper.
32166 (copy_decls_for_unworthy_types): Call it.
32167 (build_abbrev_table): Assert we do not try to replace
32168 DW_AT_signature refs with local refs.
32170 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32172 PR middle-end/89002
32173 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32174 for lastprivate/linear IV, push gimplify context around gimplify_assign
32175 and, if it needed any temporaries, pop it into a gimple bind around the
32178 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32180 * common.opt (-Wattribute-alias): Remove "no-" from name.
32181 Make -Wattribute-alias command line option and
32182 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32184 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32187 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32188 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32190 (bmi2): Add missing @opindex.
32191 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32192 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32193 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32194 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32195 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32196 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32197 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32198 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32199 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32200 xsavec, xsaveopt and xsaves options.
32202 2019-01-28 Richard Biener <rguenther@suse.de>
32205 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32208 2019-01-28 Richard Biener <rguenther@suse.de>
32210 PR tree-optimization/88739
32211 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32212 BIT_FIELD_REFs only are applied to mode-precision operands
32213 when they are integral.
32214 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32215 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32216 BIT_FIELD_REFs of non-mode-precision integral operands.
32218 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32221 * config/i386/sse.md
32222 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32223 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32224 first constants in pairs are multiples of 2. Formatting fixes.
32225 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32226 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32227 first constants in each quadruple are multiples of 4. Formatting fixes.
32229 2019-01-26 Martin Jambor <mjambor@suse.cz>
32232 * tree-inline.c: Include tree-cfgcleanup.h.
32233 (delete_unreachable_blocks_update_callgraph): Move...
32234 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32235 ...here, make externally visible, make second argument bool, adjust
32237 * tree-cfgcleanup.c: Include cgraph.h.
32238 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32240 * ipa-prop.c: Include tree-cfgcleanup.h.
32241 (ipcp_transform_function): Call
32242 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32244 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32246 PR rtl-optimization/88846
32247 * ira.c (process_set_for_memref_referenced_p): New.
32248 (memref_referenced_p): Add new param. Use
32249 process_set_for_memref_referenced_p. Add new switch cases.
32250 (memref_used_between_p): Pass new arg to memref_referenced_p.
32252 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32255 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32256 argument ABI_BREAK. Set to true if the calculated alignment has
32257 changed in gcc-9. Check bit-fields for their base type alignment.
32258 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32259 (aarch64_function_arg_boundary): Likewise.
32260 (aarch64_gimplify_va_arg_expr): Likewise.
32262 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32264 PR middle-end/89037
32265 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32266 instead of accessing TREE_INT_CST_ELT directly.
32268 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32270 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32271 fenv_exceptions description.
32273 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32275 PR rtl-optimization/87763
32276 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32277 Allow SUBREG when matching CC_NZmode compare.
32279 2019-01-25 Richard Biener <rguenther@suse.de>
32281 PR tree-optimization/89049
32282 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32283 Look at the pattern stmt to determine if the stmt is vectorized.
32285 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32287 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32288 (pred_mov<mode>): Handle all-register forms using both a new
32289 alternative and a split.
32291 2019-01-25 Richard Biener <rguenther@suse.de>
32293 PR tree-optimization/86865
32294 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32295 Reject non-do-while loops.
32297 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32299 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32300 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32301 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32302 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32303 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32304 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32305 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32306 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32307 vlogical_operand, gpc_reg_operand, int_reg_operand,
32308 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32309 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32310 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32311 (save_world_operation, restore_world_operation, lmw_operation,
32312 stmw_operation): Use MEM_P and REG_P.
32313 (tie_operand): Use MEM_P.
32314 (vrsave_operation, crsave_operation): Use REG_P.
32315 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32316 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32317 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32318 (call_operand): Use HARD_REGISTER_P.
32319 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32321 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32322 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32323 quad_aligned_load_p, replace_swapped_aligned_store,
32324 recombine_lvx_pattern, replace_swapped_aligned_load,
32325 recombine_stvx_pattern): Use MEM_P.
32326 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32327 Use MEM_P and SYMBOL_REF_P.
32328 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32329 (insn_is_swappable_p): Use REG_P and MEM_P.
32330 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32331 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32333 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32334 Use CONST_DOUBLE_P.
32335 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32337 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32338 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32339 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32340 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32342 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32343 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32344 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32345 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32346 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32347 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32348 rs6000_split_logical_di): Use CONST_INT_P.
32349 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32350 REG_P and SYMBOL_REF_P.
32351 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32352 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32353 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32354 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32355 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32356 (small_data_operand, print_operand_address): Use CONST_INT_P and
32358 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32359 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32360 Use HARD_REGISTER_NUM_P.
32361 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32362 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32363 SUBREG_P and SYMBOL_REF_P.
32364 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32365 and HARD_REGISTER_NUM_P.
32366 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32368 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32369 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32371 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32372 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32373 find_addr_reg): Use REG_P.
32374 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32375 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32376 (offsettable_ok_by_alignment, constant_pool_expr_p,
32377 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32378 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32379 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32380 rs6000_assemble_integer, create_TOC_reference,
32381 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32382 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32383 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32384 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32385 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32386 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32387 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32388 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32389 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32390 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32391 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32392 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32393 and cbranch<mode>4): Use CONST_INT_P.
32394 (multiple define_splits): Use REG_P and SUBREG_P.
32395 (define_expands call, call_value): Use MEM_P.
32396 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32397 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32398 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32399 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32400 and HARD_REGISTER_NUM_P.
32401 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32403 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32405 PR rtl-optimization/88948
32406 * rtl.h (prepare_copy_insn): New prototype.
32407 * gcse.c (prepare_copy_insn): New function, split out from
32408 process_insert_insn.
32409 (process_insert_insn): Use prepare_copy_insn.
32410 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32411 instead of gen_move_insn.
32413 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32416 * config/i386/i386.c (ix86_pic_register_p): Return true for
32417 UNSPEC_SET_GOT too.
32419 PR tree-optimization/88964
32420 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32421 punt if HONOR_SNANS (chrec).
32423 PR middle-end/89015
32424 * tree-nested.c (convert_nonlocal_reference_stmt,
32425 convert_local_reference_stmt, convert_tramp_reference_stmt,
32426 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32427 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32428 or GIMPLE_OMP_TASK.
32430 PR tree-optimization/89027
32431 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32432 for "omp simd array" variables.
32434 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32437 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32438 force the alignment of m_val.
32440 2019-01-24 Richard Biener <rguenther@suse.de>
32443 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32444 When in "legacy" debug mode make sure to reset self-origins.
32446 2019-01-24 Martin Liska <mliska@suse.cz>
32448 PR gcov-profile/88994
32449 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32450 result will be always smaller or equal to the original.
32451 * gcov.c (mangle_name): Fix else branch where we should
32452 also copy to PTR and shift the pointer.
32454 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32456 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32457 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32459 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32461 * common/config/i386/i386-common.c
32462 (OPTION_MASK_ISA_ENQCMD_SET,
32463 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32464 (ix86_handle_option): Handle -menqcmd.
32465 * config.gcc (enqcmdintrin.h): New header file.
32466 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32467 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32469 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32471 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32472 __builtin_ia32_enqcmds): New builtins.
32473 * config/i386/i386-c.c (__ENQCMD__): New macro.
32474 * config/i386/i386-option.c (ix86_target_string): Add
32476 (ix86_valid_target_attribute_inner_p): Likewise.
32477 * config/i386/i386-expand.c
32478 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32479 IX86_BUILTIN_ENQCMDS.
32480 * config/i386/i386.h (TARGET_ENQCMD): New.
32481 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32482 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32483 (movdir64b_<mode>): Parameterize to enable share expansion code
32484 with ENQCMD in function ix86_expand_builtin.
32485 * config/i386/i386.opt: Add -menqcmd.
32486 * config/i386/immintrin.h: Include enqcmdintrin.h.
32487 * config/i386/enqcmdintrin.h: New intrinsic file.
32488 * doc/invoke.texi: Add -menqcmd.
32490 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32491 Steve Ellcey <sellcey@marvell.com>
32494 * recog.c (address_operand): Return false on wrong mode for address.
32495 (constrain_operands): Check for mode with 'p' constraint.
32497 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32500 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32501 Disparage MMX alternative.
32502 (sse2_cvtpd2pi): Ditto.
32503 (sse2_cvttpd2pi): Ditto.
32505 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32508 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32509 use-after-free of the result of
32510 aarch64_get_extension_string_for_isa_flags.
32512 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32515 * doc/extend.texi: Document break and continue behavior in
32516 statement expressions.
32518 2019-01-23 Richard Biener <rguenther@suse.de>
32520 PR tree-optimization/89008
32521 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32522 not leave another stray operand.
32524 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32526 * BASE-VER: Bump to 9.0.1.
32528 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
32530 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32531 thunk that returns by reference, use the type of the return object
32532 of the thunk instead of that of the alias to build the dereference.
32534 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
32536 * config/arc/atomic.md: Add operand to DMB instruction.
32538 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32540 PR tree-optimization/88964
32541 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
32542 build_zero_cst instead of build_int_cst. Return false for loop
32543 invariants which honor signed zeros.
32545 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
32547 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
32549 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32552 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
32553 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
32554 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
32556 PR middle-end/88968
32557 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
32558 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
32561 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
32562 Disable for little endian.
32564 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32567 * config/arm/arm.c (arm_needs_double_word_align): Check
32568 DECL_BIT_FIELD_TYPE.
32570 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
32571 H.J. Lu <hongjiu.lu@intel.com>
32574 * config/i386/i386-builtin.def: Add mask2 to all builtin
32575 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
32577 * config/i386/i386.c (BDESC): Add mask2 to the definition.
32578 (BDESC_FIRST): Likewise.
32579 (define_builtin): Add an argument for mask2. Updated to handle
32580 both ix86_isa_flags and ix86_isa_flags2.
32581 (define_builtin_const): Likewise.
32582 (define_builtin_pure): Likewise.
32583 (define_builtin2): Deleted.
32584 (define_builtin_const2): Likewise.
32585 (builtin_description): Add a member, mask2.
32586 (bdesc_*): Add mask2 to builtin initializations.
32587 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
32588 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
32590 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
32592 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
32595 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
32598 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32601 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
32602 alignment is dominated by a bitfield with 64-bit aligned base type.
32603 (arm_function_arg): Emit a warning if the alignment has changed since
32604 earlier GCC releases.
32605 (arm_function_arg_boundary): Likewise.
32606 (arm_setup_incoming_varargs): Likewise.
32608 2019-01-22 Richard Biener <rguenther@suse.de>
32610 PR tree-optimization/88862
32611 * graphite-scop-detection.c
32612 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
32614 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
32616 * doc/extend.tex (AMD GCN Function Attributes): New section.
32617 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
32618 * doc/invoke.texi (AMD GCN Options): New section.
32619 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
32621 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
32623 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
32624 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
32626 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32628 PR tree-optimization/88044
32629 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
32630 is false in the first iteration, but !every_iteration, return false
32631 instead of true with niter->niter zero.
32633 PR rtl-optimization/88904
32634 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
32635 any nonequal registers before processing BB_END (b).
32638 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
32640 (expand_binop_directly, expand_doubleword_clz,
32641 expand_doubleword_popcount, expand_ctz, expand_ffs,
32642 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
32644 PR rtl-optimization/49429
32646 PR rtl-optimization/86334
32648 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
32649 addressable from here...
32650 (emit_block_op_via_libcall): ... to here.
32652 2019-01-22 Richard Biener <rguenther@suse.de>
32654 * tree-vect-loop.c (vect_analyze_loop_operations): Use
32655 auto_vec for cost vector to fix memleak.
32656 (vectorize_fold_left_reduction): Properly gather SLP defs.
32657 (vectorizable_comparison): Do not swap operands to properly
32660 2019-01-22 Alan Modra <amodra@gmail.com>
32663 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
32664 stays a reg. Allow a const_int.
32665 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
32666 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
32667 (IS_NOMARK_TLSGETADDR): Define.
32668 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
32669 (rs6000_output_tlsargs): New function.
32670 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
32671 __tls_get_addr call takes an arg.
32672 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
32673 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
32675 (call_value_nonlocal_sysv): ..or here, delete split.
32676 (tls_gdld_nomark): Delete.
32677 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
32678 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
32679 (call_value_nonlocal_sysv): Likewise.
32680 (call_value_nonlocal_sysv_secure): Likewise.
32681 (call_value_nonlocal_aix): Likewise.
32682 (call_value_indirect_aix): Likewise.
32683 (call_value_indirect_elfv2): Likewise.
32684 (call_value_local32, call_value_local64): Disable for no-mark tls.
32685 (call_value_local_aix): Likewise.
32687 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
32690 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
32691 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
32693 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
32695 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
32696 string contents as hash_map keys.
32698 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32701 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
32702 for rvalue context. Handle rvalues correctly. Use min_align_of_type
32703 instead of TYPE_ALIGN.
32704 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
32705 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
32706 pointer from TYPE_STUB_DECL.
32708 2019-01-21 Richard Biener <rguenther@suse.de>
32710 PR tree-optimization/88934
32711 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
32712 at the possibly non-constant operand.
32713 (vect_get_constant_vectors): Adjust.
32715 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
32718 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
32719 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
32720 instead of _X86INTRIN_H_INCLUDED.
32721 * onfig/i386/clwbintrin.h: Likewise.
32722 * config/i386/pkuintrin.h: Likewise.
32723 * config/i386/prfchwintrin.h: Likewise.
32724 * config/i386/rdseedintrin.h: Likewise.
32725 * config/i386/wbnoinvdintrin.h: Likewise.
32726 * config/i386/xsavecintrin.h: Likewise.
32727 * config/i386/xsavesintrin.h: Likewise.
32728 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
32729 * config/i386/xsaveintrin.h: Likewise.
32730 * config/i386/xsaveoptintrin.h: Likewise.
32731 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
32732 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
32733 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
32734 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
32735 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
32736 * config/i386/immintrin.h: Here.
32738 2019-01-20 Martin Jambor <mjambor@suse.cz>
32741 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
32742 with aa_walk_budget.
32743 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
32744 aa_walk_budget_p parameter.
32745 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
32746 walk. Updated all callers.
32747 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
32748 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
32750 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
32751 parameter info. Extract info from fbi. Pass fbi to recursive calls
32752 and to unmodified_parm.
32753 (phi_result_unknown_predicate): New parameter fbi, removed parameter
32754 info, updated call to will_be_nonconstant_expr_predicate.
32755 (param_change_prob): New parameter fbi, limit AA walking.
32756 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
32757 calls to various above functions.
32758 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
32759 parameter. Use it to limit AA walking.
32760 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
32761 fbi, limit AA walk.
32762 (detect_type_change): New parameter fbi, pass it on to
32763 detect_type_change_from_memory_writes.
32764 (detect_type_change_ssa): Likewise.
32765 (aa_overwalked): Removed.
32766 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
32767 accordingly, adjust to the neew AA limiting scheme.
32768 (parm_ref_data_preserved_p): Likewise.
32769 (ipa_compute_jump_functions_for_edge): Adjust call to
32771 (ipa_analyze_call_uses): Likewise.
32772 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
32773 (ipa_analyze_node): Initialize aa_walk_budget.
32774 (ipcp_transform_function): Likewise.
32775 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
32776 to get_dynamic_type.
32778 2019-01-19 Jakub Jelinek <jakub@redhat.com>
32780 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
32781 outside of #if CHECKING_P code.
32783 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
32785 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
32786 New function, split out from...
32787 (loop_versioning::analyze_stride): ...here.
32788 (loop_versioning::find_per_loop_multiplication): Use gassign.
32789 (loop_versioning::analyze_term_using_scevs): Return a success code.
32790 (loop_versioning::analyze_arbitrary_term): New function.
32791 (loop_versioning::analyze_address_fragment): Use
32792 analyze_arbitrary_term if all else fails.
32794 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
32797 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
32800 2019-01-18 Richard Biener <rguenther@suse.de>
32802 PR tree-optimization/88903
32803 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
32804 scalar stmts a SLP shift amount is composed of when detecting
32807 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
32810 * config/arm/arm-cpus.in (mp): New feature.
32811 (sec): New feature.
32812 (fgroup ARMv7ve): Add mp and sec features.
32813 (arch armv7-a): Add options to allow mp and sec extensions.
32814 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
32815 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
32816 extenstions to the base architecture.
32817 (cpu cortex-a8): Add sec extension to the base architecture.
32818 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
32819 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
32820 variants down to the base v7-a varaint.
32821 * config/arm/t-multilib (v7_a_arch_variants): New variable.
32822 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
32823 of permitted extensions for -march=armv7-a and for
32824 -mcpu=generic-armv7-a.
32826 2019-01-18 Martin Liska <mliska@suse.cz>
32828 * params.def: Fix comment.
32829 * tree-profile.c (gimple_init_gcov_profiler): Bump function
32831 (gimple_gen_ic_func_profiler): Likewise.
32833 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32835 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
32836 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
32837 and put in error checks for stack protector guard options.
32838 (aarch64_stack_protect_guard): New.
32839 (TARGET_STACK_PROTECT_GUARD): Define.
32840 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
32841 (reg_stack_protect_address<mode>): New.
32842 (stack_protect_set): Adjust for SSP_GLOBAL.
32843 (stack_protect_test): Likewise.
32844 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
32845 (-mstack-protector-guard): Likewise.
32846 (-mstack-protector-guard-offset): Likewise.
32848 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32850 PR tree-optimization/86214
32851 * tree-inline.h (struct copy_body_data): Add
32852 add_clobbers_to_eh_landing_pads member.
32853 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
32854 (copy_edges_for_bb): Call it if EH edge destination is <
32855 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
32856 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
32857 if flag_stack_reuse != SR_NONE and clear it afterwards.
32859 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
32862 * doc/install.texi (with-multilib-list): Document for aarch64.
32864 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32867 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
32868 (("..."))) with ("...").
32870 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
32872 * doc/extend.texi (Built-in Functions for Memory Model Aware
32873 Atomic Operations): Document atomic fetch and nand.
32875 2019-01-18 Martin Liska <mliska@suse.cz>
32876 Richard Biener <rguenther@suse.de>
32878 PR middle-end/88587
32879 * cgraph.h (create_version_clone_with_body): Add new argument
32881 * cgraphclones.c (cgraph_node::create_version_clone): Add
32882 DECL_ATTRIBUTES to a newly created decl. And call
32883 valid_attribute_p so that proper cl_target_optimization_node
32884 is set for the newly created declaration.
32885 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
32887 (expand_target_clones): Do not call valid_attribute_p, it must
32889 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
32892 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32895 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
32896 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
32897 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
32899 2019-01-17 Martin Sebor <msebor@redhat.com>
32901 PR middle-end/88273
32902 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
32903 Handle anti-ranges the same as no range at all.
32905 2018-01-17 Steve Ellcey <sellcey@cavium.com>
32907 * config/aarch64/aarch64.c (cgraph.h): New include.
32908 (intl.h): New include.
32909 (supported_simd_type): New function.
32910 (currently_supported_simd_type): Ditto.
32911 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
32912 (aarch64_simd_clone_adjust): Ditto.
32913 (aarch64_simd_clone_usable): Ditto.
32914 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
32915 (TARGET_SIMD_CLONE_ADJUST): Ditto.
32916 (TARGET_SIMD_CLONE_USABLE): Ditto.
32917 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
32918 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
32921 2019-01-17 Martin Sebor <msebor@redhat.com>
32923 PR tree-optimization/88800
32924 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
32925 NO_WARNING bit here. Avoid folding out-of-bounds calls.
32926 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
32927 redundant argument. Add new argument and issue diagnostics under
32928 its control. Detect out-of-bounds access even with warnings
32930 (check_bounds_or_overlap): Change return type. Add argument.
32931 (wrestrict_dom_walker::check_call): Adjust.
32932 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
32933 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
32934 check_bounds_or_overlap's return value.
32935 (handle_builtin_stxncpy): Same.
32936 (handle_builtin_strcat): Same.
32938 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32939 Kwok Cheung Yeung <kcy@codesourcery.com>
32940 Julian Brown <julian@codesourcery.com>
32941 Tom de Vries <tom@codesourcery.com>
32943 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
32945 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32947 * doc/sourcebuild.texi: Document dg-require-effective-target
32948 llvm_binutils and offload_gcn.
32950 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32951 Kwok Cheung Yeung <kcy@codesourcery.com>
32952 Julian Brown <julian@codesourcery.com>
32953 Tom de Vries <tom@codesourcery.com>
32955 * doc/sourcebuild.texi: Document dg-required-effective-target
32958 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32959 Kwok Cheung Yeung <kcy@codesourcery.com>
32960 Julian Brown <julian@codesourcery.com>
32961 Tom de Vries <tom@codesourcery.com>
32962 Jan Hubicka <hubicka@ucw.cz>
32963 Martin Jambor <mjambor@suse.cz>
32965 * config.gcc: Add amdgcn*-*-amdhsa configuration.
32966 * configure.ac: Check for dlopen.
32967 * configure: Regenerate.
32969 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32970 Kwok Cheung Yeung <kcy@codesourcery.com>
32971 Julian Brown <julian@codesourcery.com>
32972 Tom de Vries <tom@codesourcery.com>
32973 Jan Hubicka <hubicka@ucw.cz>
32974 Martin Jambor <mjambor@suse.cz>
32976 * common/config/gcn/gcn-common.c: New file.
32977 * config/gcn/driver-gcn.c: New file.
32978 * config/gcn/gcn-builtins.def: New file.
32979 * config/gcn/gcn-hsa.h: New file.
32980 * config/gcn/gcn-modes.def: New file.
32981 * config/gcn/gcn-opts.h: New file.
32982 * config/gcn/gcn-passes.def: New file.
32983 * config/gcn/gcn-protos.h: New file.
32984 * config/gcn/gcn-run.c: New file.
32985 * config/gcn/gcn-tree.c: New file.
32986 * config/gcn/gcn.c: New file.
32987 * config/gcn/gcn.h: New file.
32988 * config/gcn/gcn.opt: New file.
32989 * config/gcn/t-gcn-hsa: New file.
32991 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32992 Kwok Cheung Yeung <kcy@codesourcery.com>
32993 Julian Brown <julian@codesourcery.com>
32994 Tom de Vries <tom@codesourcery.com>
32995 Jan Hubicka <hubicka@ucw.cz>
32996 Martin Jambor <mjambor@suse.cz>
32998 * config/gcn/constraints.md: New file.
32999 * config/gcn/gcn-valu.md: New file.
33000 * config/gcn/gcn.md: New file.
33001 * config/gcn/predicates.md: New file.
33003 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33005 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33006 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33007 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33008 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33010 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33013 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33014 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33015 it and document registers.
33017 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33019 * config/aarch64/aarch64.c (ares_tunings): Define.
33020 * config/aarch64/aarch64-cores.def (ares): Use the above.
33022 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33026 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33028 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33029 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33030 (_mm512_maskz_fixupimm_round_pd): Ditto.
33031 (_mm512_fixupimm_round_ps): Ditto.
33032 (_mm512_maskz_fixupimm_round_ps): Ditto.
33033 (_mm_fixupimm_round_sd): Ditto.
33034 (_mm_maskz_fixupimm_round_sd): Ditto.
33035 (_mm_fixupimm_round_ss): Ditto.
33036 (_mm_maskz_fixupimm_round_ss): Ditto.
33037 (_mm512_fixupimm_pd): Ditto.
33038 (_mm512_maskz_fixupimm_pd): Ditto.
33039 (_mm512_fixupimm_ps): Ditto.
33040 (_mm512_maskz_fixupimm_ps): Ditto.
33041 (_mm_fixupimm_sd): Ditto.
33042 (_mm_maskz_fixupimm_sd): Ditto.
33043 (_mm_fixupimm_ss): Ditto.
33044 (_mm_maskz_fixupimm_ss): Ditto.
33045 (_mm512_mask_fixupimm_round_pd): Update builtin.
33046 (_mm512_mask_fixupimm_round_ps): Ditto.
33047 (_mm_mask_fixupimm_round_sd): Ditto.
33048 (_mm_mask_fixupimm_round_ss): Ditto.
33049 (_mm512_mask_fixupimm_pd): Ditto.
33050 (_mm512_mask_fixupimm_ps): Ditto.
33051 (_mm_mask_fixupimm_sd): Ditto.
33052 (_mm_mask_fixupimm_ss): Ditto.
33053 * config/i386/avx512vlintrin.h:
33054 (_mm256_fixupimm_pd): Update parameters and builtin.
33055 (_mm256_maskz_fixupimm_pd): Ditto.
33056 (_mm256_fixupimm_ps): Ditto.
33057 (_mm256_maskz_fixupimm_ps): Ditto.
33058 (_mm_fixupimm_pd): Ditto.
33059 (_mm_maskz_fixupimm_pd): Ditto.
33060 (_mm_fixupimm_ps): Ditto.
33061 (_mm_maskz_fixupimm_ps): Ditto.
33062 (_mm256_mask_fixupimm_pd): Update builtin.
33063 (_mm256_mask_fixupimm_ps): Ditto.
33064 (_mm_mask_fixupimm_pd): Ditto.
33065 (_mm_mask_fixupimm_ps): Ditto.
33066 * config/i386/i386-builtin-types.def: Add new types and remove
33068 * config/i386/i386-builtin.def: Update builtin definitions.
33069 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33070 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33071 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33072 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33073 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33074 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33075 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33076 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33077 * config/i386/subst.md:
33078 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33079 (round_saeonly_sd_mask_op4): Ditto.
33080 (round_saeonly_expand_operand5): Ditto.
33081 (round_saeonly_expand): Update.
33083 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33087 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33089 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33090 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33091 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33092 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33093 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33094 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33095 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33097 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33101 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33104 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33105 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33106 instead of UNSPEC_FIXUPIMM.
33108 2019-01-17 Richard Biener <rguenther@suse.de>
33111 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33112 and friends for the LTO part of debug info.
33114 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33116 PR tree-optimization/86214
33117 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33120 PR rtl-optimization/88870
33121 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33122 throw if we can't alter the cfg or delete dead exceptions.
33123 (mark_insn): Don't call find_call_stack_args for such calls.
33125 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33127 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33128 prototypes for vec_st.
33129 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33130 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33131 mainly on signed/unsigned long long and double.
33133 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33136 * combine.c (delete_noop_moves): Convert to "bool" return,
33137 returning true if any edges are eliminated.
33138 (combine_instructions): Also return true if delete_noop_moves
33141 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33143 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33144 correct max nunits for endian swap.
33145 (aarch64_expand_fcmla_builtin): Correct subreg code.
33146 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33147 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33150 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33152 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33153 Handle split indirect COMPLEX_TYPE arguments.
33155 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33158 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33159 bit is set by add and compare.
33160 (CC_ADC): New CC_MODE.
33161 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33162 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33163 comparison. Add detection for CC_ADCmode.
33164 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33166 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33167 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33168 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33169 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33170 to eliminate the need for zero-extending the operands.
33171 (add<mode>3_compareC_imm): Delete. Merge into ...
33172 (add<mode>3_compareC): ... this. Restructure the comparison to
33173 eliminate the need for zero-extending the operands.
33174 (add<mode>3_carryin): Use LTU for the overflow detection.
33175 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33176 Reexpress comparison for overflow.
33177 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33178 (add<mode>3_carryinC): Likewise.
33179 (add<mode>3_carryinV): Use LTU for carry between partials.
33180 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33181 handling of CC_Cmode and add CC_ADCmode.
33182 (aarch64_borrow_operation): Likewise.
33184 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33186 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33187 Remove patternmode.
33188 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33189 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33190 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33191 Remove endianness conversion.
33193 2019-01-16 Martin Liska <mliska@suse.cz>
33195 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33197 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33199 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33200 (path_prefix_reset): Move up in the source file.
33201 (find_fortran_preinclude_file): Make complex search for the
33202 fortran header files.
33204 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33206 * godump.c (go_output_typedef): When outputting a typedef, refer
33207 to the underlying type by its name and not its structure.
33209 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33212 * tree.c (build_function_type): Assert that arg_types is not
33215 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33217 PR inline-asm/52813
33218 * doc/extend.texi: Document that listing the stack pointer in the
33219 clobber list of an asm is a deprecated feature.
33220 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33221 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33222 warning instead of an error for clobbers of the stack pointer.
33223 Add a note explaining why.
33225 2019-01-15 Richard Biener <rguenther@suse.de>
33228 * dwarf2out.c (gen_member_die): Do not generate inheritance
33231 2019-01-15 Richard Biener <rguenther@suse.de>
33233 PR tree-optimization/88855
33234 * tree-if-conv.c (combine_blocks): Collect
33235 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33237 2019-01-15 Tom de Vries <tdevries@suse.de>
33240 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33241 lhs == NULL_TREE for gang-level reduction.
33243 2019-01-15 Richard Biener <rguenther@suse.de>
33244 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33247 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33248 return true if SSA_NAME is already marked in visited bitmap.
33249 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33251 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33253 PR tree-optimization/88775
33254 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33255 equal == 0 equality pointer comparisons some more if compared in
33256 integral types and either one points to an automatic var and the
33257 other to a global, or we can prove at least one points to the middle
33258 or both point to start or both point to end.
33260 2019-01-14 Andi Kleen <ak@linux.intel.com>
33262 * Makefile.in: Lower autofdo sampling rate by 10x.
33263 * Makefile.tpl: Dito.
33265 2019-01-14 Tom Honermann <tom@honermann.net>
33267 * defaults.h: Define CHAR8_TYPE.
33269 2019-01-14 Martin Sebor <msebor@redhat.com>
33272 * doc/extend.texi (Darwin Format Checks): Clarify.
33274 2019-01-14 Richard Biener <rguenther@suse.de>
33276 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33277 whether we are in (simplify ...) or (match ...) context.
33279 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33281 PR rtl-optimization/88796
33282 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33283 * cfgexpand.c (stack_protect_prologue): Initialize
33284 crtl->stack_protect_guard_decl.
33285 * function.c (stack_protect_epilogue): Use it instead of calling
33286 targetm.stack_protect_guard again.
33287 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33288 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33289 crtl->stack_protect_guard_decl.
33290 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33291 on the returned MEM_EXPR.
33293 2019-01-12 Tom de Vries <tdevries@suse.de>
33295 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33296 vector length using -fopenacc-dim.
33298 2019-01-12 Tom de Vries <tdevries@suse.de>
33300 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33301 lengths into account.
33303 2019-01-12 Svante Signell <svante.signell@gmail.com>
33305 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33306 (TARGET_CAN_SPLIT_STACK): Define.
33307 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33309 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33311 * params.def (inline-unit-growth): Set to 40.
33313 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33315 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33317 2019-01-12 Tom de Vries <tdevries@suse.de>
33319 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33320 region calling vector-partitionable routine, set default_vector_length
33323 2019-01-12 Tom de Vries <tdevries@suse.de>
33325 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33326 variable default_vector_length.
33328 2019-01-12 Tom de Vries <tdevries@suse.de>
33330 PR middle-end/88703
33331 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33332 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33335 2019-01-12 Tom de Vries <tdevries@suse.de>
33337 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33338 (nvptx_goacc_validate_dims): Add used parameter.
33339 * doc/tm.texi: Regenerate.
33340 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33341 argument to call to targetm.goacc.validate_dims.
33342 (default_goacc_validate_dims): Add used
33344 * target.def (validate_dims): Add used parameter in DEFHOOK.
33345 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33347 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33349 PR middle-end/85956
33351 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33353 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33354 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33355 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33356 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33358 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33360 PR rtl-optimization/87305
33362 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33363 for little endian pseudos used as paradoxical subreg.
33365 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33367 PR tree-optimization/88693
33368 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33369 for STRING_CSTs that don't contain any NUL characters in the first
33370 TREE_STRING_LENGTH bytes.
33372 2019-01-11 Alan Modra <amodra@gmail.com>
33376 * genattrtab.c (min_fn): Don't translate values.
33377 (min_attr_value): Return INT_MAX when the value can't be calculated.
33378 Return minimum among any values that can be calculated.
33379 (max_attr_value): Adjust.
33381 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33383 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33385 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33387 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33388 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33389 (aarch64_return_call_with_max_clobbers): New function.
33390 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33391 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33393 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33394 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33395 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33396 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33397 * cselib.c (cselib_process_insn): Add argument to
33398 targetm.hard_regno_call_part_clobbered call.
33399 * ira-conflicts.c (ira_build_conflicts): Ditto.
33400 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33401 * lra-constraints.c (inherit_reload_reg): Ditto.
33402 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33403 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33404 argument. Call targetm.return_call_with_max_clobbers.
33405 Add argument to targetm.hard_regno_call_part_clobbered call.
33406 (calls_have_same_clobbers_p): New function.
33407 (process_bb_lives): Add call_insn and last_call_insn variables.
33408 Pass call_insn to check_pseudos_live_through_calls.
33409 Modify if stmt to check targetm.return_call_with_max_clobbers.
33410 Update setting of flush variable.
33411 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33413 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33414 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33415 targetm.hard_regno_call_part_clobbered call.
33416 * reginfo.c (choose_hard_reg_mode): Ditto.
33417 * regrename.c (check_new_reg_p): Ditto.
33418 * reload.c (find_equiv_reg): Ditto.
33419 * reload1.c (emit_reload_insns): Ditto.
33420 * sched-deps.c (deps_analyze_insn): Ditto.
33421 * sel-sched.c (init_regs_for_mode): Ditto.
33422 (mark_unavailable_hard_regs): Ditto.
33423 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33424 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33425 (return_call_with_max_clobbers): New target function.
33426 * doc/tm.texi: Regenerate.
33427 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33428 * hooks.c (hook_bool_uint_mode_false): Change to
33429 hook_bool_insn_uint_mode_false.
33430 * hooks.h (hook_bool_uint_mode_false): Ditto.
33432 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33434 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33435 (aarch64_remove_extra_call_preserved_regs): New function.
33436 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33437 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33438 * doc/tm.texi: Regenerate.
33439 * final.c (get_call_reg_set_usage): Call new hook.
33440 * target.def (remove_extra_call_preserved_regs): New hook.
33441 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33442 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33444 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33447 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33448 inside of pass_combine_1 dump rather than pass_profile_1.
33450 2019-01-11 Tom de Vries <tdevries@suse.de>
33452 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33453 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33454 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33455 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33458 2019-01-11 Tom de Vries <tdevries@suse.de>
33460 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33462 2019-01-11 Jan Beulich <jbeulich@suse.com>
33464 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33465 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33466 sse2_cvtsi2sd): Add {l}.
33467 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33470 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33473 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33475 (*float<floatunssuffix>v2div2sf2): New define_insn.
33476 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33477 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33478 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33479 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33480 match_operands with "const0_operand" "C".
33482 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33484 * config/aarch64/aarch64-builtins.c
33485 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33486 (aarch64_init_simd_builtins): ...Here
33488 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33490 PR rtl-optimization/87305
33492 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33493 allocation for big endian pseudos used as paradoxical subregs and
33494 spill them if it is wrong.
33495 * lra-constraints.c (lra_constraints): Add a comment.
33497 2019-01-10 Richard Biener <rguenther@suse.de>
33499 PR tree-optimization/88792
33500 * tree-ssa-pre.c (get_representative_for): Do not return a
33503 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33505 PR middle-end/84877
33507 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33508 (assign_parm_setup_block): Do the argument slot realignment here
33511 2019-01-10 Stefan Agner <stefan@agner.ch>
33514 * config/arm/arm.c (arm_option_override_internal): Force
33515 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33517 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33520 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33523 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33525 * config/arm/arm-builtins.c
33526 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33527 (MAC_LANE_PAIR_QUALIFIERS): New.
33528 (arm_expand_builtin_args): Use it.
33529 (arm_expand_builtin_1): Likewise.
33530 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33531 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33532 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33533 * config/arm/arm_neon.h:
33534 (vcadd_rot90_f16): New.
33535 (vcaddq_rot90_f16): New.
33536 (vcadd_rot270_f16): New.
33537 (vcaddq_rot270_f16): New.
33540 (vcmla_lane_f16): New.
33541 (vcmla_laneq_f16): New.
33542 (vcmlaq_lane_f16): New.
33543 (vcmlaq_laneq_f16): New.
33544 (vcmla_rot90_f16): New.
33545 (vcmlaq_rot90_f16): New.
33546 (vcmla_rot90_lane_f16): New.
33547 (vcmla_rot90_laneq_f16): New.
33548 (vcmlaq_rot90_lane_f16): New.
33549 (vcmlaq_rot90_laneq_f16): New.
33550 (vcmla_rot180_f16): New.
33551 (vcmlaq_rot180_f16): New.
33552 (vcmla_rot180_lane_f16): New.
33553 (vcmla_rot180_laneq_f16): New.
33554 (vcmlaq_rot180_lane_f16): New.
33555 (vcmlaq_rot180_laneq_f16): New.
33556 (vcmla_rot270_f16): New.
33557 (vcmlaq_rot270_f16): New.
33558 (vcmla_rot270_lane_f16): New.
33559 (vcmla_rot270_laneq_f16): New.
33560 (vcmlaq_rot270_lane_f16): New.
33561 (vcmlaq_rot270_laneq_f16): New.
33562 (vcadd_rot90_f32): New.
33563 (vcaddq_rot90_f32): New.
33564 (vcadd_rot270_f32): New.
33565 (vcaddq_rot270_f32): New.
33568 (vcmla_lane_f32): New.
33569 (vcmla_laneq_f32): New.
33570 (vcmlaq_lane_f32): New.
33571 (vcmlaq_laneq_f32): New.
33572 (vcmla_rot90_f32): New.
33573 (vcmlaq_rot90_f32): New.
33574 (vcmla_rot90_lane_f32): New.
33575 (vcmla_rot90_laneq_f32): New.
33576 (vcmlaq_rot90_lane_f32): New.
33577 (vcmlaq_rot90_laneq_f32): New.
33578 (vcmla_rot180_f32): New.
33579 (vcmlaq_rot180_f32): New.
33580 (vcmla_rot180_lane_f32): New.
33581 (vcmla_rot180_laneq_f32): New.
33582 (vcmlaq_rot180_lane_f32): New.
33583 (vcmlaq_rot180_laneq_f32): New.
33584 (vcmla_rot270_f32): New.
33585 (vcmlaq_rot270_f32): New.
33586 (vcmla_rot270_lane_f32): New.
33587 (vcmla_rot270_laneq_f32): New.
33588 (vcmlaq_rot270_lane_f32): New.
33589 (vcmlaq_rot270_laneq_f32): New.
33590 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
33591 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
33592 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
33593 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
33594 vcmlaq_lane270): New.
33595 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33596 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
33597 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
33598 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
33599 (arm_option_reconfigure_globals): Use them.
33600 * config/arm/iterators.md (VDF, VQ_HSF): New.
33601 (VCADD, VCMLA): New.
33602 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
33603 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
33605 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
33606 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
33608 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33610 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
33611 Add qualifier_lane_pair_index.
33612 (emit-rtl.h): Include.
33613 (TYPES_QUADOP_LANE_PAIR): New.
33614 (aarch64_simd_expand_args): Use it.
33615 (aarch64_simd_expand_builtin): Likewise.
33616 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
33618 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
33619 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
33620 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
33621 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
33622 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
33623 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
33624 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
33625 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
33626 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
33627 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
33628 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
33629 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
33630 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
33631 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
33632 Add __ARM_FEATURE_COMPLEX.
33633 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
33634 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
33635 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
33636 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
33637 fcmlaq_lane270): New.
33638 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33639 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
33640 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
33641 * config/aarch64/arm_neon.h:
33642 (vcadd_rot90_f16): New.
33643 (vcaddq_rot90_f16): New.
33644 (vcadd_rot270_f16): New.
33645 (vcaddq_rot270_f16): New.
33648 (vcmla_lane_f16): New.
33649 (vcmla_laneq_f16): New.
33650 (vcmlaq_lane_f16): New.
33651 (vcmlaq_rot90_lane_f16): New.
33652 (vcmla_rot90_laneq_f16): New.
33653 (vcmla_rot90_lane_f16): New.
33654 (vcmlaq_rot90_f16): New.
33655 (vcmla_rot90_f16): New.
33656 (vcmlaq_laneq_f16): New.
33657 (vcmla_rot180_laneq_f16): New.
33658 (vcmla_rot180_lane_f16): New.
33659 (vcmlaq_rot180_f16): New.
33660 (vcmla_rot180_f16): New.
33661 (vcmlaq_rot90_laneq_f16): New.
33662 (vcmlaq_rot270_laneq_f16): New.
33663 (vcmlaq_rot270_lane_f16): New.
33664 (vcmla_rot270_laneq_f16): New.
33665 (vcmlaq_rot270_f16): New.
33666 (vcmla_rot270_f16): New.
33667 (vcmlaq_rot180_laneq_f16): New.
33668 (vcmlaq_rot180_lane_f16): New.
33669 (vcmla_rot270_lane_f16): New.
33670 (vcadd_rot90_f32): New.
33671 (vcaddq_rot90_f32): New.
33672 (vcaddq_rot90_f64): New.
33673 (vcadd_rot270_f32): New.
33674 (vcaddq_rot270_f32): New.
33675 (vcaddq_rot270_f64): New.
33679 (vcmla_lane_f32): New.
33680 (vcmla_laneq_f32): New.
33681 (vcmlaq_lane_f32): New.
33682 (vcmlaq_laneq_f32): New.
33683 (vcmla_rot90_f32): New.
33684 (vcmlaq_rot90_f32): New.
33685 (vcmlaq_rot90_f64): New.
33686 (vcmla_rot90_lane_f32): New.
33687 (vcmla_rot90_laneq_f32): New.
33688 (vcmlaq_rot90_lane_f32): New.
33689 (vcmlaq_rot90_laneq_f32): New.
33690 (vcmla_rot180_f32): New.
33691 (vcmlaq_rot180_f32): New.
33692 (vcmlaq_rot180_f64): New.
33693 (vcmla_rot180_lane_f32): New.
33694 (vcmla_rot180_laneq_f32): New.
33695 (vcmlaq_rot180_lane_f32): New.
33696 (vcmlaq_rot180_laneq_f32): New.
33697 (vcmla_rot270_f32): New.
33698 (vcmlaq_rot270_f32): New.
33699 (vcmlaq_rot270_f64): New.
33700 (vcmla_rot270_lane_f32): New.
33701 (vcmla_rot270_laneq_f32): New.
33702 (vcmlaq_rot270_lane_f32): New.
33703 (vcmlaq_rot270_laneq_f32): New.
33704 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
33705 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
33706 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
33707 (FCADD, FCMLA): New.
33709 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
33711 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33715 * config/pa/pa.c: Change "can not" to "cannot".
33716 * gimple-ssa-evrp-analyze.c: Likewise.
33717 * ipa-icf.c: Likewise.
33718 * ipa-polymorphic-call.c: Likewise.
33719 * ipa-pure-const.c: Likewise.
33720 * lra-constraints.c: Likewise.
33721 * lra-remat.c: Likewise.
33722 * reload1.c: Likewise.
33723 * reorg.c: Likewise.
33724 * tree-ssa-uninit.c: Likewise.
33726 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33730 * Makefile.in: Mechanically replace "can not" with "cannot".
33731 * alias.c: Likewise.
33732 * builtins.c: Likewise.
33733 * calls.c: Likewise.
33734 * cgraph.c: Likewise.
33735 * cgraph.h: Likewise.
33736 * cgraphclones.c: Likewise.
33737 * cgraphunit.c: Likewise.
33738 * combine-stack-adj.c: Likewise.
33739 * combine.c: Likewise.
33740 * common/config/i386/i386-common.c: Likewise.
33741 * config/aarch64/aarch64.c: Likewise.
33742 * config/alpha/sync.md: Likewise.
33743 * config/arc/arc.c: Likewise.
33744 * config/arc/predicates.md: Likewise.
33745 * config/arm/arm-c.c: Likewise.
33746 * config/arm/arm.c: Likewise.
33747 * config/arm/arm.h: Likewise.
33748 * config/arm/arm.md: Likewise.
33749 * config/arm/cortex-r4f.md: Likewise.
33750 * config/csky/csky.c: Likewise.
33751 * config/csky/csky.h: Likewise.
33752 * config/darwin-f.c: Likewise.
33753 * config/epiphany/epiphany.md: Likewise.
33754 * config/i386/i386.c: Likewise.
33755 * config/i386/sol2.h: Likewise.
33756 * config/m68k/m68k.c: Likewise.
33757 * config/mcore/mcore.h: Likewise.
33758 * config/microblaze/microblaze.md: Likewise.
33759 * config/mips/20kc.md: Likewise.
33760 * config/mips/sb1.md: Likewise.
33761 * config/nds32/nds32.c: Likewise.
33762 * config/nds32/predicates.md: Likewise.
33763 * config/pa/pa.c: Likewise.
33764 * config/rs6000/e300c2c3.md: Likewise.
33765 * config/rs6000/rs6000.c: Likewise.
33766 * config/s390/s390.h: Likewise.
33767 * config/sh/sh.c: Likewise.
33768 * config/sh/sh.md: Likewise.
33769 * config/spu/vmx2spu.h: Likewise.
33770 * cprop.c: Likewise.
33771 * dbxout.c: Likewise.
33772 * df-scan.c: Likewise.
33773 * doc/cfg.texi: Likewise.
33774 * doc/extend.texi: Likewise.
33775 * doc/fragments.texi: Likewise.
33776 * doc/gty.texi: Likewise.
33777 * doc/invoke.texi: Likewise.
33778 * doc/lto.texi: Likewise.
33779 * doc/md.texi: Likewise.
33780 * doc/objc.texi: Likewise.
33781 * doc/rtl.texi: Likewise.
33782 * doc/tm.texi: Likewise.
33784 * emit-rtl.c: Likewise.
33785 * emit-rtl.h: Likewise.
33786 * except.c: Likewise.
33787 * expmed.c: Likewise.
33788 * expr.c: Likewise.
33789 * fold-const.c: Likewise.
33790 * genautomata.c: Likewise.
33791 * gimple-fold.c: Likewise.
33792 * hard-reg-set.h: Likewise.
33793 * ifcvt.c: Likewise.
33794 * ipa-comdats.c: Likewise.
33795 * ipa-cp.c: Likewise.
33796 * ipa-devirt.c: Likewise.
33797 * ipa-fnsummary.c: Likewise.
33798 * ipa-icf.c: Likewise.
33799 * ipa-inline-transform.c: Likewise.
33800 * ipa-inline.c: Likewise.
33801 * ipa-polymorphic-call.c: Likewise.
33802 * ipa-profile.c: Likewise.
33803 * ipa-prop.c: Likewise.
33804 * ipa-pure-const.c: Likewise.
33805 * ipa-reference.c: Likewise.
33806 * ipa-split.c: Likewise.
33807 * ipa-visibility.c: Likewise.
33809 * ira-build.c: Likewise.
33810 * ira-color.c: Likewise.
33811 * ira-conflicts.c: Likewise.
33812 * ira-costs.c: Likewise.
33813 * ira-int.h: Likewise.
33814 * ira-lives.c: Likewise.
33817 * loop-invariant.c: Likewise.
33818 * loop-unroll.c: Likewise.
33819 * lower-subreg.c: Likewise.
33820 * lra-assigns.c: Likewise.
33821 * lra-constraints.c: Likewise.
33822 * lra-eliminations.c: Likewise.
33823 * lra-lives.c: Likewise.
33824 * lra-remat.c: Likewise.
33825 * lra-spills.c: Likewise.
33827 * lto-cgraph.c: Likewise.
33828 * lto-streamer-out.c: Likewise.
33829 * postreload-gcse.c: Likewise.
33830 * predict.c: Likewise.
33831 * profile-count.h: Likewise.
33832 * profile.c: Likewise.
33833 * recog.c: Likewise.
33835 * reload.c: Likewise.
33836 * reload1.c: Likewise.
33837 * reorg.c: Likewise.
33838 * resource.c: Likewise.
33839 * rtl.def: Likewise.
33841 * rtlanal.c: Likewise.
33842 * sched-deps.c: Likewise.
33843 * sched-ebb.c: Likewise.
33844 * sched-rgn.c: Likewise.
33845 * sel-sched-ir.c: Likewise.
33846 * sel-sched.c: Likewise.
33847 * shrink-wrap.c: Likewise.
33848 * simplify-rtx.c: Likewise.
33849 * symtab.c: Likewise.
33850 * target.def: Likewise.
33851 * toplev.c: Likewise.
33852 * tree-call-cdce.c: Likewise.
33853 * tree-cfg.c: Likewise.
33854 * tree-complex.c: Likewise.
33855 * tree-core.h: Likewise.
33856 * tree-eh.c: Likewise.
33857 * tree-inline.c: Likewise.
33858 * tree-loop-distribution.c: Likewise.
33859 * tree-nrv.c: Likewise.
33860 * tree-profile.c: Likewise.
33861 * tree-sra.c: Likewise.
33862 * tree-ssa-alias.c: Likewise.
33863 * tree-ssa-dce.c: Likewise.
33864 * tree-ssa-dom.c: Likewise.
33865 * tree-ssa-forwprop.c: Likewise.
33866 * tree-ssa-loop-im.c: Likewise.
33867 * tree-ssa-loop-ivcanon.c: Likewise.
33868 * tree-ssa-loop-ivopts.c: Likewise.
33869 * tree-ssa-loop-niter.c: Likewise.
33870 * tree-ssa-phionlycprop.c: Likewise.
33871 * tree-ssa-phiopt.c: Likewise.
33872 * tree-ssa-propagate.c: Likewise.
33873 * tree-ssa-threadedge.c: Likewise.
33874 * tree-ssa-threadupdate.c: Likewise.
33875 * tree-ssa-uninit.c: Likewise.
33876 * tree-ssanames.c: Likewise.
33877 * tree-streamer-out.c: Likewise.
33878 * tree.c: Likewise.
33879 * tree.h: Likewise.
33880 * vr-values.c: Likewise.
33882 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
33884 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
33885 (ix86_split_xorsign): Ditto.
33886 * config/i386/i386.c (ix86_expand_xorsign): New function.
33887 (ix86_split_xorsign): Ditto.
33888 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
33889 (xorsign<mode>3): New expander.
33890 (xorsign<mode>3_1): New insn_and_split pattern.
33891 * config/i386/sse.md (xorsign<mode>3): New expander.
33893 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33895 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
33896 (*tablejump_sp64): Likewise.
33897 (*tablejump<P:mode>): ...this.
33898 (*call_address_sp32): Merge into...
33899 (*call_address_sp64): Likewise.
33900 (*call_address<P:mode>): ...this.
33901 (*call_symbolic_sp32): Merge into...
33902 (*call_symbolic_sp64): Likewise.
33903 (*call_symbolic<P:mode>): ...this.
33904 (call_value): Remove constraint and add predicate.
33905 (*call_value_address_sp32): Merge into...
33906 (*call_value_address_sp64): Likewise.
33907 (*call_value_address<P:mode>): ...this.
33908 (*call_value_symbolic_sp32): Merge into...
33909 (*call_value_symbolic_sp64): Likewise.
33910 (*call_value_symbolic<P:mode>): ...this.
33911 (*sibcall_symbolic_sp32): Merge into...
33912 (*sibcall_symbolic_sp64): Likewise.
33913 (*sibcall_symbolic<P:mode>): ...this.
33914 (sibcall_value): Remove constraint and add predicate.
33915 (*sibcall_value_symbolic_sp32): Merge into...
33916 (*sibcall_value_symbolic_sp64): Likewise.
33917 (*sibcall_value_symbolic<P:mode>): ...this.
33918 (window_save): Minor tweak.
33919 (*branch_sp32): Merge into...
33920 (*branch_sp64): Likewise.
33921 (*branch<P:mode>): ...this.
33923 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33924 James Clarke <jrtc27@jrtc27.com>
33927 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
33928 consistently in TLS address generation and adjust code to the renaming
33929 of patterns. Mark calls to __tls_get_addr as const.
33930 * config/sparc/sparc.md (tgd_hi22): Turn into...
33931 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
33932 (tgd_lo10): Turn into...
33933 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
33934 (tgd_add32): Merge into...
33935 (tgd_add64): Likewise.
33936 (tgd_add<P:mode>): ...this and use Pmode throughout.
33937 (tldm_hi22): Turn into...
33938 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
33939 (tldm_lo10): Turn into...
33940 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
33941 (tldm_add32): Merge into...
33942 (tldm_add64): Likewise.
33943 (tldm_add<P:mode>): ...this and use Pmode throughout.
33944 (tldm_call32): Merge into...
33945 (tldm_call64): Likewise.
33946 (tldm_call<P:mode>): ...this and use Pmode throughout.
33947 (tldo_hix22): Turn into...
33948 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
33949 (tldo_lox10): Turn into...
33950 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
33951 (tldo_add32): Merge into...
33952 (tldo_add64): Likewise.
33953 (tldo_add<P:mode>): ...this and use Pmode throughout.
33954 (tie_hi22): Turn into...
33955 (tie_hi22<P:mode>): ...this and use Pmode throughout.
33956 (tie_lo10): Turn into...
33957 (tie_lo10<P:mode>): ...this and use Pmode throughout.
33958 (tie_ld64): Use DImode throughout.
33959 (tie_add32): Merge into...
33960 (tie_add64): Likewise.
33961 (tie_add<P:mode>): ...this and use Pmode throughout.
33962 (tle_hix22_sp32): Merge into...
33963 (tle_hix22_sp64): Likewise.
33964 (tle_hix22<P:mode>): ...this and use Pmode throughout.
33965 (tle_lox22_sp32): Merge into...
33966 (tle_lox22_sp64): Likewise.
33967 (tle_lox22<P:mode>): ...this and use Pmode throughout.
33968 (*tldo_ldub_sp32): Merge into...
33969 (*tldo_ldub_sp64): Likewise.
33970 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
33971 (*tldo_ldub1_sp32): Merge into...
33972 (*tldo_ldub1_sp64): Likewise.
33973 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
33974 (*tldo_ldub2_sp32): Merge into...
33975 (*tldo_ldub2_sp64): Likewise.
33976 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
33977 (*tldo_ldsb1_sp32): Merge into...
33978 (*tldo_ldsb1_sp64): Likewise.
33979 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
33980 (*tldo_ldsb2_sp32): Merge into...
33981 (*tldo_ldsb2_sp64): Likewise.
33982 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
33983 (*tldo_ldub3_sp64): Use DImode throughout.
33984 (*tldo_ldsb3_sp64): Likewise.
33985 (*tldo_lduh_sp32): Merge into...
33986 (*tldo_lduh_sp64): Likewise.
33987 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
33988 (*tldo_lduh1_sp32): Merge into...
33989 (*tldo_lduh1_sp64): Likewise.
33990 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
33991 (*tldo_ldsh1_sp32): Merge into...
33992 (*tldo_ldsh1_sp64): Likewise.
33993 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
33994 (*tldo_lduh2_sp64): Use DImode throughout.
33995 (*tldo_ldsh2_sp64): Likewise.
33996 (*tldo_lduw_sp32): Merge into...
33997 (*tldo_lduw_sp64): Likewise.
33998 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
33999 (*tldo_lduw1_sp64): Use DImode throughout.
34000 (*tldo_ldsw1_sp64): Likewise.
34001 (*tldo_ldx_sp64): Likewise.
34002 (*tldo_stb_sp32): Merge into...
34003 (*tldo_stb_sp64): Likewise.
34004 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34005 (*tldo_sth_sp32): Merge into...
34006 (*tldo_sth_sp64): Likewise.
34007 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34008 (*tldo_stw_sp32): Merge into...
34009 (*tldo_stw_sp64): Likewise.
34010 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34011 (*tldo_stx_sp64): Use DImode throughout.
34013 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34015 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34016 check configure option to set BTI and Return Address Signing.
34017 * configure.ac: Add --enable-standard-branch-protection and
34018 --disable-standard-branch-protection.
34019 * configure: Regenerated.
34020 * doc/install.texi: Document the same.
34022 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34023 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34025 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34026 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34027 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34029 * config/aarch64/aarch64-bti-insert.c: New file.
34030 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34032 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34034 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34035 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34036 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34037 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34039 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34041 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34042 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34043 Disable bti for -mbranch-protection=none.
34044 (aarch64_handle_standard_branch_protection): Enable bti for
34045 -mbranch-protection=standard.
34046 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34047 -mbranch-protection.
34048 (aarch64_bti_enabled): Check if bti is enabled.
34049 * config/aarch64/aarch64.opt: Declare target variable.
34050 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34052 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34054 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34055 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34056 (aarch64_expand_epilogue): Likewise.
34057 (aarch64_output_mi_thunk): Likewise.
34058 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34059 TAILCALL_ADDR_REGS to x16 and x17.
34060 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34062 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34064 * config/aarch64/aarch64-option-extensions.def: Define
34065 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34066 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34067 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34068 (AARCH64_FL_PREDRES): New.
34069 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34070 AARCH64_FL_PREDRES by default.
34071 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34073 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34075 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34077 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34078 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34079 * doc/invoke.texi: Document ARMv8.5-A.
34081 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34083 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34084 (xorsign<mode>3): Likewise.
34086 2019-01-09 Jelinek <jakub@redhat.com>
34088 PR middle-end/88758
34089 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34090 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34092 PR rtl-optimization/88331
34093 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34094 not currently_expanding_to_rtl.
34096 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34098 * doc/invoke.texi (-Os): Remove trailing spaces.
34099 (-finline-functions): Remove reference to -O2.
34101 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34103 PR rtl-optimization/79593
34104 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34106 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34107 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34109 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34112 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34116 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34117 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34119 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34122 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34123 ix86_avx_u128_mode_entry.
34125 2019-01-08 Martin Liska <mliska@suse.cz>
34127 PR tree-optimization/88753
34128 * tree-switch-conversion.c (switch_conversion::build_one_array):
34129 Come up with local variable constructor. Convert first to
34130 type of constructor values.
34132 2019-01-08 Richard Biener <rguenther@suse.de>
34134 PR tree-optimization/86554
34135 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34136 rpo_avail): Move earlier.
34137 (visit_nary_op): When value-numbering to expressions
34138 with different overflow behavior make sure there's an
34139 available expression on the path.
34141 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34143 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34144 aarch64_parse_branch_protection,
34145 struct aarch64_branch_protect_type,
34146 aarch64_handle_no_branch_protection,
34147 aarch64_handle_standard_branch_protection,
34148 aarch64_validate_mbranch_protection,
34149 aarch64_handle_pac_ret_protection,
34150 aarch64_handle_attr_branch_protection,
34151 accepted_branch_protection_string,
34152 aarch64_pac_ret_subtypes,
34153 aarch64_branch_protect_types,
34154 aarch64_handle_pac_ret_leaf): Define.
34155 (aarch64_override_options_after_change_1, aarch64_override_options):
34156 Add check for accepted_branch_protection_string.
34157 (aarch64_option_save): Save accepted_branch_protection_string.
34158 (aarch64_option_restore): Save accepted_branch_protection_string.
34159 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34160 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34161 msign-return-address.
34162 * doc/invoke.texi: Add mbranch-protection.
34164 2019-01-08 Alan Modra <amodra@gmail.com>
34167 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34168 Delete "unknownp" parameter. Adjust callers. Handle
34169 CONST_INT, PLUS, MINUS, and MULT.
34170 (attr_value_aligned): Renamed from or_attr_value.
34171 (min_attr_value): Return INT_MIN for unhandled rtl case..
34172 (min_fn): ..and translate to INT_MAX here.
34173 (write_length_unit_log): Modify to cope without "unknown".
34174 (write_attr_value): Handle IF_THEN_ELSE.
34176 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34178 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34179 optimization for masked stores.
34181 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34183 PR middle-end/88567
34184 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34185 output vector directly to duplicate_and_interleave instead of
34186 going through a temporary. Postpone insertion of ctor_seq to
34187 the end of the loop.
34189 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34192 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34193 unsigned_p. Handle signed and unsigned overflow correction as
34195 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34197 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34199 (add<mode>3_compareV_imm): Make this callable for expanding.
34200 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34201 aarch64_plus_operand for operand 2.
34202 (subv<GPI:mode>_insn): New insn pattern.
34203 (subv<GPI:mode>_imm): Likewise.
34204 (negv<GPI:mode>3): New expand pattern.
34205 (negv<GPI:mode>_insn): New insn pattern.
34206 (negv<GPI:mode>_cmp_only): Likewise.
34207 (cmpv<GPI:mode>_insn): Likewise.
34208 (subvti4): Use register_operand for operand 1. Update call to
34209 aarch64_expand_subvti.
34210 (usubvti4): Likewise.
34211 (negvti3): New expand pattern.
34212 (negdi_carryout): New insn pattern.
34213 (negvdi_carryinV): New insn pattern.
34214 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34215 version the named version.
34216 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34218 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34220 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34222 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34223 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34224 (sub<mode>3_carryinCV): Delete.
34225 (sub<GPI:mode>3_carryinV): New expand pattern.
34226 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34228 2019-01-07 Richard Biener <rguenther@suse.de>
34230 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34231 of tree_operand_hash.
34233 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34235 PR tree-optimization/88598
34236 * tree.h (single_nonzero_element): Declare.
34237 * tree.c (single_nonzero_element): New function.
34238 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34239 if I is the only nonzero element of CST.
34241 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34243 PR tree-optimization/88598
34244 * tree.h (initializer_each_zero_or_onep): Declare.
34245 * tree.c (initializer_each_zero_or_onep): New function.
34246 (signed_or_unsigned_type_for): Handle float types too.
34247 (unsigned_type_for, signed_type_for): Update comments accordingly.
34248 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34249 x & { 0 or -1, 0 or -1, ... }.
34251 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34253 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34254 with x86_64-pc-linux-gnu.
34256 2019-01-07 Tom de Vries <tdevries@suse.de>
34259 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34261 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34264 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34266 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34267 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34268 TARGET_AVX512F as condition.
34271 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34272 const_not_ok_for_debug_p target hook.
34273 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34274 on UNSPEC and subexpressions thereof if all subexpressions of the
34275 UNSPEC are CONSTANT_P.
34277 PR tree-optimization/88676
34278 * tree-ssa-phiopt.c (two_value_replacement): New function.
34279 (tree_ssa_phiopt_worker): Call it.
34282 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34283 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34286 * tree-vect-generic.c: Include insn-config.h and recog.h.
34287 (expand_vector_piecewise): Add defaulted ret_type argument,
34288 if non-NULL, use that in preference to type for the result type.
34289 (expand_vector_parallel): Formatting fix.
34290 (do_vec_conversion, do_vec_narrowing_conversion,
34291 expand_vector_conversion): New functions.
34292 (expand_vector_operations_1): Call expand_vector_conversion
34293 for VEC_CONVERT ifn calls.
34294 * internal-fn.def (VEC_CONVERT): New internal function.
34295 * internal-fn.c (expand_VEC_CONVERT): New function.
34296 * fold-const-call.c (fold_const_vec_convert): New function.
34297 (fold_const_call): Use it for CFN_VEC_CONVERT.
34298 * doc/extend.texi (__builtin_convertvector): Document.
34300 2019-01-07 Tom de Vries <tdevries@suse.de>
34302 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34303 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34304 vector_red_partition, vector_red_sym): New global variables.
34305 (nvptx_option_override): Initialize vector_red_sym.
34306 (nvptx_declare_function_name): Restore red_partition register.
34307 (nvptx_file_end): Emit code to declare the vector reduction variables.
34308 (nvptx_output_red_partition): New function.
34309 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34310 large vector reductions.
34311 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34312 (nvptx_init_builtins): Add VECTOR_ADDR.
34313 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34314 Handle nvptx_expand_shared_addr.
34315 (nvptx_get_shared_red_addr): Add vector argument and handle large
34317 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34319 (nvptx_goacc_reduction_init): Likewise.
34320 (nvptx_goacc_reduction_fini): Likewise.
34321 (nvptx_goacc_reduction_teardown): Likewise.
34322 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34323 init,fini,teardown}.
34324 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34325 (nvptx_set_current_function): Init vector_red_partition.
34326 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34327 (nvptx_red_partition): New insn.
34328 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34330 2019-01-07 Tom de Vries <tdevries@suse.de>
34333 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34336 2019-01-07 Tom de Vries <tdevries@suse.de>
34338 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34339 (nvptx_option_override): Init oacc_bcast_partition.
34340 (nvptx_init_oacc_workers): New function.
34341 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34342 (nvptx_needs_shared_bcast): New function.
34343 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34344 to propagate state.
34345 (nvptx_shared_propagate): Initialize vector bcast partition and
34346 synchronization state.
34347 (nvptx_single): Generalize to enable vectors to use shared-memory
34348 to propagate state.
34349 (nvptx_process_pars): Likewise.
34350 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34351 * config/nvptx/nvptx.h (struct machine_function): Add
34352 bcast_partition and sync_bar members.
34354 2019-01-07 Tom de Vries <tdevries@suse.de>
34356 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34357 (nvptx_apply_dim_limits): New function.
34358 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34361 2019-01-07 Tom de Vries <tdevries@suse.de>
34363 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34364 as late as possible.
34366 2019-01-07 Tom de Vries <tdevries@suse.de>
34368 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34369 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34370 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34371 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34372 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34374 2019-01-07 Tom de Vries <tdevries@suse.de>
34376 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34378 2019-01-07 Tom de Vries <tdevries@suse.de>
34380 * omp-offload.c (oacc_get_min_dim): New function.
34381 * omp-offload.h (oacc_get_min_dim): Declare.
34383 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34386 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34387 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34389 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34393 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34395 * ipa-inline.c (edge_badness): Use inlined_time instead of
34396 inline_summaries->get.
34398 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34400 * opts.c (enable_fdo_optimizations): Enable
34401 version-loops-for-strides, loop-interchange, unrol-and-jam
34402 and tree-loop-distribution.
34403 * invoke.texi: Document newly enabled options.
34405 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34407 * doc/invoke.texi (max-inline-insns-small): New parameters.
34408 * ipa-inline.c (want_early_inline_function_p): simplify.
34409 (want_inline_small_function_p): Fix pasto from previous patch;
34410 use max-inline-insns-small bound.
34411 * params.def (max-inline-insns-small): New param.
34412 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34413 variables correctly.
34415 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34417 * doc/invoke.texi: Document max-inline-insns-size,
34418 uninlined-function-insns, uninlined-function-time,
34419 uninlined-thunk-insns and uninlined-thunk-time.
34420 * params.def: Add max-inline-insns-size,
34421 uninlined-function-insns, uninlined-function-time,
34422 uninlined-thunk-insns and uninlined-thunk-time.
34423 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34425 * ipa-inline.c (can_inline_edge_by_limits_p,
34426 want_inline_small_function_p): Use new parameters.
34428 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34430 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34432 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34434 PR middle-end/82564
34436 * expr.c (expand_assignment): For calls returning VLA structures
34437 if to_rtx is not a MEM, force it into a stack temporary.
34440 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34441 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34442 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34443 subexpressions of both operands.
34444 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34445 subrtxes are CONSTANT_P.
34446 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34447 2018-11-09 changes.
34449 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34451 * params.def (hot-bb-count-ws-permille): Set to 990.
34453 2019-01-04 Martin Sebor <msebor@redhat.com>
34456 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34459 2019-01-04 Martin Sebor <msebor@redhat.com>
34462 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34464 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34466 * gdbinit.in: Turn off pagination for the skip commands, restore
34467 it to previous state afterwards.
34469 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34472 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34473 of GET_MODE (opN) as modes of the libcall arguments.
34475 2019-01-04 Jan Beulich <jbeulich@suse.com>
34477 * config/i386/sse.md
34478 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34479 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34480 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34481 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34482 avx512f_vmcmp<mode>3<round_saeonly_name>,
34483 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34484 avx512f_maskcmp<mode>3,
34485 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34486 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34487 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34488 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34489 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34490 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34491 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34492 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34493 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34494 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34495 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34496 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34497 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34498 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34499 avx512cd_maskb_vec_dup<mode>,
34500 avx512cd_maskw_vec_dup<mode>,
34501 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34502 avx512dq_vmfpclass<mode>,
34503 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34506 2019-01-03 Martin Sebor <msebor@redhat.com>
34508 PR tree-optimization/88659
34509 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34511 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34513 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34514 unaligned vsx and avoid lxvd2x/stxvd2x.
34515 (gen_lvx_v4si_move): New function.
34517 2019-01-03 Tom de Vries <tdevries@suse.de>
34519 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34520 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34522 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34524 2019-01-03 Tom de Vries <tdevries@suse.de>
34526 * config/nvptx/nvptx.c (struct offload_attrs): New.
34527 (populate_offload_attrs): New function. Factor mask extraction out of
34528 nvptx_reorg. Add extraction of dimensions.
34529 (nvptx_reorg): Use populate_offload_attrs.
34531 2019-01-03 Tom de Vries <tdevries@suse.de>
34533 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
34534 cases for oacc_min_dims_p and routine_p. Add asserts for
34535 oacc_default_dims_p and offload_region_p.
34537 2019-01-03 Tom de Vries <tdevries@suse.de>
34539 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
34540 factored out of ...
34541 (nvptx_goacc_validate_dims): ... here.
34543 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34545 PR tree-optimization/85574
34546 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
34548 (struct ssa_equip_hash_traits): Declare.
34549 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
34551 2019-01-03 Jakub Jelinek <jakub@redhat.com>
34554 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
34555 change it to qualified_type.
34557 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34559 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
34560 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
34562 2019-01-02 Martin Sebor <msebor@redhat.com>
34563 Jeff Law <law@redhat.com>
34565 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
34566 (get_range_strlen_tree): Update appropriately.
34568 * gimple-fold.h (get_range_strlen): Drop unused last argument.
34570 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
34571 rather than set_range_info.
34572 * tree-ssa-strlen.c (set_strlen_range): Extracted from
34573 maybe_set_strlen_range. Handle potentially boundary crossing
34574 cases more conservatively.
34575 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
34576 Call set_strlen_range.
34577 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
34579 PR middle-end/88663
34580 * gimple-fold.c (get_range_strlen): Update prototype to no longer
34581 need the flexp argument.
34582 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
34583 from calls to get_range_strlen. Update comments. Just update
34584 VAL for an unterminated const char array and let the reset of the
34585 code handle it normally. No longer try to set *flexp. Adjust
34587 (get_range_strlen): Update for the new get_range_strlen API.
34588 (get_maxval_strlen): Similarly.
34589 (gimple_fold_builtin_strlen): Handle update meaning of return value
34590 from get_range_strlen.
34591 * gimple-ssa-sprintf.c (get_string_length): Update for the new
34592 get_range_strlen API.
34594 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
34597 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
34598 false at WPA time when body was removed.
34600 2019-01-02 Martin Liska <mliska@suse.cz>
34602 PR tree-optimization/88650
34603 * predict.c (set_even_probabilities): Calculate probability
34604 remainer only when really used.
34606 2019-01-02 Richard Biener <rguenther@suse.de>
34608 PR middle-end/88651
34609 * tree-data-ref.c (analyze_subscript_affine_affine): Use
34610 widest_ints when mangling max_stmt_execution results.
34612 2019-01-02 Richard Biener <rguenther@suse.de>
34614 PR tree-optimization/88621
34615 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
34616 bitfields when canoncalizing.
34618 2019-01-02 Richard Biener <rguenther@suse.de>
34621 * config/i386/x86-tune-costs.h (intel_cost): Adjust
34622 cost of cheap SSE instruction.
34624 2019-01-02 Richard Biener <rguenther@suse.de>
34627 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
34628 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
34630 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
34631 set after UIDs before splitting them.
34633 2019-01-01 Martin Sebor <msebor@redhat.com>
34634 Jeff Law <law@redhat.com>
34636 * gimple-fold.c (get_range_strlen_tree): Record if the computed
34637 length is optimistic. If it is, then arrange to compute the
34638 conservative length as well.
34640 * gimple-fold.h (get_range_strlen): Update prototype.
34641 * builtins.c (check_access): Update call to get_range_strlen to use
34642 c_strlen_data pointer. Change various variable accesses to instead
34643 pull data from the c_strlen_data structure.
34644 (check_strncat_sizes, expand_builtin_strncat): Likewise.
34645 * calls.c (maybe_warn_nonstring_arg): Likewise.
34646 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
34647 minimum length if maximum lengh is unknown.
34648 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
34649 that used c_strlen, it's no longer needed. Restructure slightly.
34650 (format_string): Set unlikely range appropriately.
34651 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
34653 (get_range_strlen): Accept c_strlen_data pointer for external
34654 call sites as well. Pass through to call to internal get_range_strlen.
34655 Adjust minlen, maxlen and maxbound as needed.
34656 (get_maxval_strlen): Update comments.
34657 (gimple_fold_builtin_strlen): Update call to get_range_strlen
34658 to use c_strlen_data pointer. Change variable accesses to instead
34659 use c_strlen_data data members.
34661 * gimple-fold.c (get_range_strlen): Update prototype.
34662 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
34663 local variables. Use pdata to return information to caller.
34664 Update calls to get_range_strlen. Update pdata->maxbound.
34665 (get_range_strlen -- static version): Similarly.
34666 (get_range_strlen -- extern version): Update for internal
34667 get_range_strlen API change. Convert to external data format.
34668 (get_maxval_strlen): Similarly.
34670 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
34672 * coverage.c (get_coverage_counts): Use current_function_decl.
34673 * profile.c (read_thunk_profile): New function.
34674 (branch_prob): Add THUNK parameter.
34675 * tree-profile.c (tree_profiling): Handle thunks.
34676 * value-prof.c (init_node_map): Handle thunks.
34677 * value-prof.h (branch_prob): Upate prototype.
34678 (read_thunk_profile): Declare.
34680 2019-01-01 Jakub Jelinek <jakub@redhat.com>
34682 Update copyright years.
34684 * gcc.c (process_command): Update copyright notice dates.
34685 * gcov-dump.c (print_version): Ditto.
34686 * gcov.c (print_version): Ditto.
34687 * gcov-tool.c (print_version): Ditto.
34688 * gengtype.c (create_file): Ditto.
34689 * doc/cpp.texi: Bump @copying's copyright year.
34690 * doc/cppinternals.texi: Ditto.
34691 * doc/gcc.texi: Ditto.
34692 * doc/gccint.texi: Ditto.
34693 * doc/gcov.texi: Ditto.
34694 * doc/install.texi: Ditto.
34695 * doc/invoke.texi: Ditto.
34697 Copyright (C) 2019 Free Software Foundation, Inc.
34699 Copying and distribution of this file, with or without modification,
34700 are permitted in any medium without royalty provided the copyright
34701 notice and this notice are preserved.