1 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
3 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
7 2019-11-19 Richard Biener <rguenther@suse.de>
9 PR tree-optimization/92581
10 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
11 condition reduction chains gather all conditions involved
12 for computing the index reduction vector.
14 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
16 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
18 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
19 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
20 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
21 (aarch64_init_memtag_builtins): New.
22 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
23 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
24 (aarch64_expand_builtin_memtag): New.
25 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
26 (AARCH64_BUILTIN_SUBCODE): New macro.
27 (aarch64_resolve_overloaded_memtag): New.
28 (aarch64_resolve_overloaded_builtin_general): New. Call
29 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
30 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
31 __ARM_FEATURE_MEMORY_TAGGING when enabled.
32 (aarch64_resolve_overloaded_builtin): Call
33 aarch64_resolve_overloaded_builtin_general.
34 * config/aarch64/aarch64-protos.h
35 (aarch64_resolve_overloaded_builtin_general): New declaration.
36 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
37 (TARGET_MEMTAG): Likewise.
38 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
39 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
40 (irg, gmi, subp, addg, ldg, stg): New instructions.
41 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
42 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
43 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
44 (__arm_mte_get_tag): Likewise.
45 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
46 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
47 * config/arm/types.md (memtag): New.
48 * doc/invoke.texi (-memtag): Update description.
50 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
52 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
53 to define __GCC_ASM_FLAG_OUTPUTS__.
54 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
55 (arm_option_params_internal): Swap out targetm.md_asm_adjust
56 depending on TARGET_THUMB1.
57 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
59 2019-11-19 Jakub Jelinek <jakub@redhat.com>
62 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
65 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
66 operand is negative and one non-negative, compare the non-negative
67 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
68 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
69 and s2 == 0, unless one of them is known to be negative. Remove
70 tem2 variable, use tem where tem2 has been used before.
72 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
74 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
76 2019-11-19 Jakub Jelinek <jakub@redhat.com>
78 PR tree-optimization/92557
79 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
80 vmode rather than asserting it always is.
82 2019-11-19 Richard Biener <rguenther@suse.de>
84 PR tree-optimization/92554
85 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
86 for the actual condition stmt and deal with sign-changes.
88 2019-11-19 Richard Biener <rguenther@suse.de>
90 PR tree-optimization/92555
91 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
94 2019-11-19 Martin Liska <mliska@suse.cz>
97 * config/riscv/riscv.c (riscv_address_insns): Initialize
98 addr in order to remove boostrap -Wmaybe-uninitialized
101 2019-11-18 Martin Sebor <msebor@redhat.com>
103 PR tree-optimization/92493
104 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
107 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
109 * cfgloop.c (get_loop_body_in_custom_order): New.
110 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
111 * tree-loop-distribution.c (class loop_distribution): New.
112 (bb_top_order_cmp): Remove.
113 (bb_top_order_cmp_r): New.
114 (create_rdg_vertices): Move into class loop_distribution.
115 (stmts_from_loop): Same as above.
116 (update_for_merge): Same as above.
117 (partition_merge_into): Same as above.
118 (get_data_dependence): Same as above.
119 (data_dep_in_cycle_p): Same as above.
120 (update_type_for_merge): Same as above.
121 (build_rdg_partition_for-vertex): Same as above.
122 (classify_builtin_ldst): Same as above.
123 (classify_partition): Same as above.
124 (share_memory_accesses): Same as above.
125 (rdg_build_partitions): Same as above.
126 (pg_add_dependence_edges): Same as above.
127 (build_partition_graph): Same as above.
128 (merge_dep_scc_partitions): Same as above.
129 (break_alias_scc_partitions): Same as above.
130 (finalize_partitions): Same as above.
131 (distribute_loop): Same as above.
132 (bb_top_order_init): New method
133 (bb_top_order_destroy): New method.
134 (get_bb_top_order_index_size): New method.
135 (get_bb_top_order_index_index): New method.
136 (get_bb_top_order_index_index): New method.
137 (loop_distribution::execute): New method.
138 (pass_loop_distribution::execute): Instantiate loop_distribution.
140 2019-11-18 Jan Hubicka <jh@suse.cz>
143 * ipa-inline.c (inline_small_functions): Add new edges after reseting
145 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
147 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
149 * doc/sourcebuild.texi (vect_check_ptrs): Document.
150 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
151 * doc/md.texi: Document them.
152 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
154 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
155 * internal-fn.c (check_ptrs_direct): New macro.
156 (expand_check_ptrs_optab_fn): Likewise.
157 (direct_check_ptrs_optab_supported_p): Likewise.
158 (internal_check_ptrs_fn_supported_p): New fuction.
159 * tree-data-ref.c: Include internal-fn.h.
160 (create_ifn_alias_checks): New function.
161 (create_intersect_range_checks): Use it.
162 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
163 (optab, cmp_op): Handle it.
164 (raw_war, unspec): New int attributes.
165 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
167 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
169 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
171 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
174 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
176 * tree.c (build_vector_from_ctor): Directly return a zero vector for
179 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
181 * cse.c (cse_insn): Delete no-op register moves too.
182 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
183 Take a second comparison to control the value for NE.
184 (mask_to_comparison): Handle unsigned comparisons.
185 (simplify_logical_relational_operation): Likewise. Update call
186 to comparison_to_mask. Handle AND if !HONOR_NANs.
187 (simplify_binary_operation_1): Call the above for AND too.
189 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
191 * fold-const.c (native_encode_vector): Turn into a wrapper function,
192 splitting the main code out into...
193 (native_encode_vector_part): ...this new function.
194 (native_decode_vector_tree): New function.
195 (fold_view_convert_vector_encoding): Likewise.
196 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
199 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
201 * tree-data-ref.c (create_intersect_range_checks_index): If the
202 alias pair describes simple WAW and WAR dependencies, just check
203 whether the first B access overlaps later A accesses.
204 (create_waw_or_war_checks): New function that performs the same
205 optimization on addresses.
206 (create_intersect_range_checks): Call it.
208 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
210 * lra-constraints.c (valid_address_p): Take the operand and a
211 constraint as argument. If the operand is a MEM and the constraint
212 is a memory constraint, check whether the eliminated form of the
213 MEM already satisfies the constraint.
214 (process_address_1): Update calls accordingly.
216 2019-11-18 Tom Tromey <tromey@adacore.com>
218 * doc/tm.texi: Rebuild.
219 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
220 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
222 2019-11-18 Richard Biener <rguenther@suse.de>
224 PR tree-optimization/92516
225 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
226 argument, hoist bst_map creation/destruction to ...
227 (vect_analyze_slp): ... here, forming a true graph with
228 SLP instances being the entries.
229 (vect_detect_hybrid_slp_stmts): Remove wrapper.
230 (vect_detect_hybrid_slp): Use one visited set for all
232 (vect_slp_analyze_node_operations): Simplify visited/lvisited
233 to hash-sets of slp_tree.
234 (vect_slp_analyze_operations): Likewise.
235 (vect_bb_slp_scalar_cost): Remove wrapper.
236 (vect_bb_vectorization_profitable_p): Use one visited set for
238 (vect_schedule_slp_instance): Elide bst_map use.
239 (vect_schedule_slp): Likewise.
241 2019-11-18 Richard Biener <rguenther@suse.de>
243 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
244 was vectorized with just external refs fail.
246 2019-11-18 Martin Liska <mliska@suse.cz>
249 * ipa-icf.c (sem_function::init): Unset m_checker
250 at the end of the function.
252 2019-11-18 Richard Biener <rguenther@suse.de>
254 PR tree-optimization/92558
255 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
256 reducting the width of a reduction vector def update new_phis.
258 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
260 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
261 and s390*-*-linux-musl* targets.
262 * configure: Regenerate.
264 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
266 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
267 (MUSL_DYNAMIC_LINKER64): Define.
269 2019-11-18 Martin Liska <mliska@suse.cz>
271 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
272 message for an unknown counter.
273 (dbg_cnt_process_single_pair): Support 0 as minimum value.
274 (dbg_cnt_process_opt): Remove unreachable code.
276 2019-11-18 Martin Liska <mliska@suse.cz>
279 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
280 Compare LHS types of NOP_EXPR.
282 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
284 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
285 "initial_pass_name" argument -- by running "*clean_state" pass.
286 Also free the "initial_pass_name" when done.
288 2019-11-18 Richard Biener <rguenther@suse.de>
290 PR rtl-optimization/92462
291 * alias.c (find_base_term): Restrict the look through ANDs.
292 (find_base_value): Likewise.
294 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
296 Add support for AVR devices from the 0-series.
299 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
300 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
301 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
302 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
303 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
304 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
305 for spec definitions.
306 * doc/avr-mmcu.texi: Regenerate.
308 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
311 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
312 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
313 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
314 (ix86_reassociation_width): Ditto.
315 * config/i386/i386-options.c (ix86_option_override_internal):
316 Replace TARGET_AVX128_OPTIAML with
317 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
318 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
319 (TARGET_AVX128_OPTIMAL): Deleted.
320 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
323 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
325 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
326 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
328 (cceq_rev_compare): Rename to...
329 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
331 (define_split for <bd>tf_<mode>): Add SImode first argument to
332 gen_cceq_ior_compare.
334 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
336 * common/config/powerpcspe: Delete.
338 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
340 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
341 output in UNSPEC_WRFFR.
343 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
345 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
346 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
348 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
350 * tree-data-ref.c (create_intersect_range_checks_index)
351 (create_intersect_range_checks): Print dump messages.
353 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
355 * tree-data-ref.c (dump_alias_pair): New function.
356 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
358 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
360 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
361 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
362 merging data references with different steps.
363 (create_intersect_range_checks_index): Take a
364 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
365 Bail out if DR_ALIAS_MIXED_STEPS is set.
366 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
367 instead of two dr_with_seg_lens. Update call to
368 create_intersect_range_checks_index.
369 (create_runtime_alias_checks): Update call accordingly.
371 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
373 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
374 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
375 (dr_with_seg_len_pair_t::sequencing): New enum.
376 (dr_with_seg_len_pair_t::flags): New member variable.
377 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
378 parameter and initialize the flags member variable.
379 * tree-loop-distribution.c (compute_alias_check_pairs): Update
381 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
382 Ensure the two data references in an alias pair are in statement
383 order, if there is a defined order.
384 * tree-data-ref.c (prune_runtime_alias_test_list): Use
385 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
386 swapped the references in a dr_with_seg_len_pair_t. OR together
387 the flags when merging two dr_with_seg_len_pair_ts. After merging,
388 try to restore the original dr_with_seg_len order, updating the
391 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
393 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
394 swapping the dr_as based on init values until we've decided
395 whether to merge them.
397 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
399 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
400 two accesses in each dr_with_seg_len_pair_t before trying to
401 combine separate dr_with_seg_len_pair_ts.
402 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
404 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
406 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
408 * config/aarch64/aarch64-sve.md
409 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
410 (scatter_store<SVE_24:mode><v_int_container>): ...this.
411 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
412 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
413 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
414 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
415 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
417 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
418 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
419 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
420 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
422 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
424 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
425 (SVE_4HSI): New mode iterators.
426 (ANY_EXTEND2): New code iterator.
427 * config/aarch64/aarch64-sve.md
428 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
430 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
431 ...this, handling extension to partial modes as well as full modes.
432 Describe the extension as a predicated rather than unpredicated
434 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
435 Likewise extend to...
436 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
437 ...this, making the same adjustments.
438 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
439 Likewise extend to...
440 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
441 ...this, making the same adjustments.
442 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
443 Likewise extend to...
444 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
445 ...this, making the same adjustments.
446 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
448 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
450 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
451 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
452 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
453 Describe the extension as a predicated rather than unpredicated
455 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
456 Likewise. Canonicalize to a constant extension predicate.
457 * config/aarch64/aarch64-sve-builtins-base.cc
458 (svld1_gather_extend_impl::expand): Add an extra predicate for
460 (svldff1_gather_extend_impl::expand): Likewise.
462 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
464 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
466 * config/aarch64/aarch64-sve.md
467 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
468 (gather_load<SVE_24:mode><v_int_container>): ...this.
469 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
470 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
471 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
472 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
473 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
475 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
476 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
477 Allow the nominal extension predicate to be different from the
479 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
480 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
482 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
484 * config/aarch64/aarch64-sve.md
485 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
486 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
488 (aarch64_sve_adjust_stmt_cost): Call it.
490 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
492 * config/aarch64/aarch64-sve.md
493 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
494 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
495 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
497 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
498 ...this new pattern, handling extension to partial modes as well
499 as full modes. Describe the extension as a predicated rather than
500 unpredicated extension.
501 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
502 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
503 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
505 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
506 ...this new pattern, handling extension to partial modes as well
507 as full modes. Describe the extension as a predicated rather than
508 unpredicated extension.
509 * config/aarch64/aarch64-sve-builtins.cc
510 (function_expander::use_contiguous_load_insn): Add an extra
511 predicate for extending loads.
512 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
513 (aarch64_sve_adjust_stmt_cost): Likewise.
514 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
515 the cost of SVE vector stmts.
517 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
519 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
520 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
521 * config/aarch64/aarch64-sve.md
522 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
523 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
524 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
525 comment. Avoid new narrower_mask ambiguity.
526 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
527 (*cond_uxt<mode>_2): Update comment.
528 (*cond_uxt<mode>_any): Likewise.
530 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
532 * config/aarch64/aarch64-modes.def: Define partial SVE vector
534 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
536 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
537 new vector float modes.
538 (aarch64_sve_container_bits): New function.
539 (aarch64_sve_pred_mode): Likewise.
540 (aarch64_get_mask_mode): Use it.
541 (aarch64_sve_element_int_mode): Handle structure modes and partial
543 (aarch64_sve_container_int_mode): New function.
544 (aarch64_vectorize_related_mode): Return SVE modes when given
545 SVE modes. Handle partial modes, taking the preferred number
546 of units from the size of the given mode.
547 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
549 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
550 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
551 (aarch64_split_sve_subreg_move): Use the mode form of
552 aarch64_sve_pred_mode.
553 (aarch64_secondary_reload): Handle partial modes in the same way
554 as full big-endian vectors.
555 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
556 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
557 merging with the Advanced SIMD modes. If two modes have the
558 same size, try the Advanced SIMD mode first.
559 (aarch64_simd_valid_immediate): Use the container rather than
560 the element mode for INDEX constants.
561 (aarch64_simd_vector_alignment): Make the alignment of partial
562 SVE vector modes the same as their minimum size.
563 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
564 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
565 (mov<SVE_ALL:mode>): ...this.
566 (movmisalign<SVE_FULL:mode>): Extend to...
567 (movmisalign<SVE_ALL:mode>): ...this.
568 (*aarch64_sve_mov<mode>_le): Rename to...
569 (*aarch64_sve_mov<mode>_ldr_str): ...this.
570 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
571 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
572 partial modes regardless of endianness.
573 (aarch64_sve_reload_be): Rename to...
574 (aarch64_sve_reload_mem): ...this and enable for little-endian.
575 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
576 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
577 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
578 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
579 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
580 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
581 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
582 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
583 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
584 (maskload<SVE_FULL:mode><vpred>): Extend to...
585 (maskload<SVE_ALL:mode><vpred>): ...this.
586 (maskstore<SVE_FULL:mode><vpred>): Extend to...
587 (maskstore<SVE_ALL:mode><vpred>): ...this.
588 (vec_duplicate<SVE_FULL:mode>): Extend to...
589 (vec_duplicate<SVE_ALL:mode>): ...this.
590 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
591 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
592 (sve_ld1r<SVE_FULL:mode>): Extend to...
593 (sve_ld1r<SVE_ALL:mode>): ...this.
594 (vec_series<SVE_FULL_I:mode>): Extend to...
595 (vec_series<SVE_I:mode>): ...this.
596 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
597 (*vec_series<SVE_I:mode>_plus): ...this.
598 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
600 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
601 (add<SVE_FULL_I:mode>3): Extend to...
602 (add<SVE_I:mode>3): ...this.
603 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
604 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
605 (VPRED, vpred): Likewise.
606 (Vctype): New iterator.
607 (vw): Remove SVE modes.
609 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
611 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
612 (SVE_PARTIAL_I): ...this.
613 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
615 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
617 * config/aarch64/iterators.md (SVE_ALL): Rename to...
619 (SVE_I): Rename to...
620 (SVE_FULL_I): ...this.
621 (SVE_F): Rename to...
622 (SVE_FULL_F): ...this.
623 (SVE_BHSI): Rename to...
624 (SVE_FULL_BHSI): ...this.
625 (SVE_HSD): Rename to...
626 (SVE_FULL_HSD): ...this.
627 (SVE_HSDI): Rename to...
628 (SVE_FULL_HSDI): ...this.
629 (SVE_HSF): Rename to...
630 (SVE_FULL_HSF): ...this.
631 (SVE_SD): Rename to...
632 (SVE_FULL_SD): ...this.
633 (SVE_SDI): Rename to...
634 (SVE_FULL_SDI): ...this.
635 (SVE_SDF): Rename to...
636 (SVE_FULL_SDF): ...this.
637 (SVE_S): Rename to...
638 (SVE_FULL_S): ...this.
639 (SVE_D): Rename to...
640 (SVE_FULL_D): ...this.
641 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
642 * config/aarch64/aarch64-sve2.md: Likewise.
644 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
646 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
648 * doc/invoke.texi: Document it.
649 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
650 By default, return VECT_COMPARE_COSTS for SVE.
652 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
654 * target.h (VECT_COMPARE_COSTS): New constant.
655 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
656 * doc/tm.texi: Regenerate.
657 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
658 * targhooks.c (default_autovectorize_vector_modes): Likewise.
659 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
661 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
662 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
663 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
664 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
665 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
666 (_loop_vec_info::vec_inside_cost): New member variables.
667 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
668 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
669 (vect_analyze_loop): When autovectorize_vector_modes returns
670 VECT_COMPARE_COSTS, try vectorizing the loop with each available
671 vector mode and picking the one with the lowest cost.
672 (vect_estimate_min_profitable_iters): Record the computed costs
673 in the loop_vec_info.
675 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
677 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
678 element type rather than an element mode.
679 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
680 Use get_vectype_for_scalar_type to query the natural types
681 for a given element type rather than basing everything on
682 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
683 query to MAX_FIXED_MODE_SIZE.
684 (duplicate_and_interleave): Update call accordingly.
685 * tree-vect-loop.c (vectorizable_reduction): Likewise.
687 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
689 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
690 optional maximum nunits.
691 (get_vectype_for_scalar_type): Likewise. Also declare a form that
693 (get_mask_type_for_scalar_type): Take an optional slp_tree.
694 (vect_get_mask_type_for_stmt): Likewise.
695 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
696 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
697 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
698 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
699 to get an assumed vector type for data references.
700 * tree-vect-slp.c (vect_update_shared_vectype): New function.
701 (vect_update_all_shared_vectypes): Likewise.
702 (vect_build_slp_tree_1): Pass the group size to
703 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
704 for BB vectorization.
705 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
706 before building the vectof from scalars.
707 (vect_analyze_slp_instance): Pass the group size to
708 get_vectype_for_scalar_type.
709 (vect_slp_analyze_node_operations_1): Don't recompute the vector
710 types for BB vectorization here; just handle the case in which
711 we deferred the choice for booleans.
712 (vect_get_constant_vectors): Pass the slp_tree to
713 get_vectype_for_scalar_type.
714 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
715 (vectorizable_call): Likewise.
716 (vectorizable_simd_clone_call): Likewise.
717 (vectorizable_conversion): Likewise.
718 (vectorizable_shift): Likewise.
719 (vectorizable_operation): Likewise.
720 (vectorizable_comparison): Likewise.
721 (vect_is_simple_cond): Take the slp_tree as argument and
722 pass it to get_vectype_for_scalar_type.
723 (vectorizable_condition): Update call accordingly.
724 (get_vectype_for_scalar_type): Take a group_size argument.
725 For BB vectorization, limit the the vector to that number
726 of elements. Also define an overload that takes an slp_tree.
727 (get_mask_type_for_scalar_type): Add an slp_tree argument and
728 pass it to get_vectype_for_scalar_type.
729 (vect_get_vector_types_for_stmt): Add a group_size argument
730 and pass it to get_vectype_for_scalar_type. Don't use the
731 cached vector type for BB vectorization if a group size is given.
732 Handle data references in that case.
733 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
734 pass it to get_mask_type_for_scalar_type.
736 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
738 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
740 (estimate_edge_time): Use it.
741 * ipa-inline-analysis.c (do_estimate_edge_time): Add
742 ret_nonspec_time parameter.
744 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
746 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
748 2019-11-15 Nick Clifton <nickc@redhat.com>
749 Szabolcs Nagy <szabolcs.nagy@arm.com>
752 * config/microblaze/microblaze.c (print_operand): Print value as long.
754 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
756 * ipa-inline.c (edge_badness, inline_small_functions): Revert
759 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
761 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
762 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
764 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
766 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
767 (gcn_conditional_register_usage): Use constants in place of hard-coded
769 (gcn_hsa_declare_function_name): Set lower bound for number of
770 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
771 MAX_NORMAL_VGPR_COUNT.
773 2019-11-15 Martin Jambor <mjambor@suse.cz>
775 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
778 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
780 * config/gcn/gcn.c (default_requested_args): New.
781 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
782 set with default_requested_args.
783 (gcn_conditional_register_usage): Limit register usage of non-kernel
784 functions. Reassign fixed registers if a non-standard set of args is
786 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
788 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
791 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
792 aggregate jump function when inlined-to caller has no edge summary.
794 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
796 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
798 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
800 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
802 (print_operand_address): Use v1 for zero vector offset.
804 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
806 PR tree-optimization/92515
807 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
808 types when converting a vector/scalar shift into a vector/vector one,
809 using tree_nop_conversion_p instead of useless_type_conversion_p.
810 Move the conversion code to the transform block.
812 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
814 * read-rtl-function.c
815 (function_reader::add_fixup_source_location): Take additional
816 parameter of a column.
817 (function_reader::maybe_read_location): Optionally parse column
818 information and pass to add_fixup_source_location.
820 2019-11-15 Richard Biener <rguenther@suse.de>
822 PR tree-optimization/92512
823 * tree-vect-loop.c (check_reduction_path): Fix operand index
824 computability check. Add check for second use in COND_EXPRs.
826 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
829 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
830 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
832 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
834 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
835 register class for VCC_LO and VCC_HI.
836 (gcn_spill_class): Use SGPR_REGS to spill registers in
839 2019-11-15 Richard Biener <rguenther@suse.de>
841 PR tree-optimization/92324
842 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
843 singedness of SLP reduction epilouge operations. Also reduce
844 the vector width for SLP reductions before doing elementwise
845 operations if possible.
847 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
849 * passes.c (skip_pass): Set epilogue_completed if skipping the
850 pro_and_epilogue pass.
852 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
854 * passes.c (should_skip_pass_p): Always run "dfinish".
856 2019-11-15 Richard Biener <rguenther@suse.de>
858 * ipa-inline.c (inline_small_functions): Move assignment
859 to next before call destroying edge.
861 2019-11-15 Richard Biener <rguenther@suse.de>
863 PR tree-optimization/92039
864 PR tree-optimization/91975
865 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
866 previous change, treat invariants consistently as non-constant.
867 (tree_estimate_loop_size): Ternary ops with just the first op
868 constant are not optimized away.
870 2019-11-15 Jakub Jelinek <jakub@redhat.com>
872 * gimplify.c (gimplify_call_expr): Don't call
873 omp_resolve_declare_variant after gimplification.
874 * omp-general.c (omp_context_selector_matches): For isa that might
875 match in some other function, defer if in declare simd function.
876 (omp_context_compute_score): Don't look for " score" in construct
877 trait set. Set *score to -1 if it can't ever match.
878 (omp_resolve_declare_variant): If any variants need to be deferred,
879 don't punt immediately, but compute scores of all variants and if
880 ther eis a score winner that doesn't need to be deferred, return that.
882 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
884 * ipa-comdats.c: Fix comments typo.
885 * ipa-profile.c: Fix comments typo.
886 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
887 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
888 (gimple_gen_ic_func_profiler): Likewise.
889 (pass_ipa_tree_profile::gate): Fix comments typo.
891 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
893 * ipa-inline.c (inline_small_functions): Update iterator of next.
895 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
897 * lra-spills.c (assign_spill_hard_regs): Check that the spill
898 register is suitable for the mode.
900 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
902 * range-op.h (range_operator::fold_range): Return a bool.
903 * range-op.cc (range_operator::wi_fold): Assert supported type.
904 (range_operator::fold_range): Assert supported type and return true.
905 (operator_equal::fold_range): Return true.
906 (operator_not_equal::fold_range): Same.
907 (operator_lt::fold_range): Same.
908 (operator_le::fold_range): Same.
909 (operator_gt::fold_range): Same.
910 (operator_ge::fold_range): Same.
911 (operator_plus::op1_range): Adjust call to fold_range.
912 (operator_plus::op2_range): Same.
913 (operator_minus::op1_range): Same.
914 (operator_minus::op2_range): Same.
915 (operator_exact_divide::op1_range): Same.
916 (operator_lshift::fold_range): Return true and adjust fold_range call.
917 (operator_rshift::fold_range): Same.
918 (operator_cast::fold_range): Return true.
919 (operator_logical_and::fold_range): Same.
920 (operator_logical_or::fold_range): Same.
921 (operator_logical_not::fold_range): Same.
922 (operator_bitwise_not::fold_range): Adjust call to fold_range.
923 (operator_bitwise_not::op1_range): Same.
924 (operator_cst::fold_range): Return true.
925 (operator_identity::fold_range): Return true.
926 (operator_negate::fold_range): Return true and adjust fold_range call.
927 (operator_addr_expr::fold_range): Return true.
928 (operator_addr_expr::op1_range): Adjust call to fold_range.
930 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
931 (range_fold_unary_symbolics_p): Same.
933 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
935 PR tree-optimization/92506
936 * range-op.cc (range_operator::fold_range): Start with range undefined.
937 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
940 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
942 * range-op.cc (*operator*::*range): Remove calls to
943 range_intersect, range_invert, and range_union in favor of calling
944 the in-place API methods.
946 * range.cc (range_intersect): Remove.
947 (range_union): Remove.
948 (range_invert): Remove.
949 * range.h (range_intersect): Remove.
950 (range_union): Remove.
951 (range_intersect): Remove.
953 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
955 PR rtl-optimization/92430
956 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
957 (pass_jump_after_combine::execute): Perform jump threading
960 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
961 Doug Rupp <rupp@adacore.com>
962 Olivier Hainque <hainque@adacore.com>
964 * config.gcc: Collapse the arm-vxworks entries into
965 a single arm-wrs-vxworks7* one, bpabi based. Update
966 the default cpu from arm8 to armv7-a
967 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
968 we always use ARM_UNWIND_INFO.
969 (DWARF2_UNWIND_INFO): Remove redefinition.
970 (ARM_TARGET2_DWARF_FORMAT): Likewise.
971 (VXWORKS_PERSONALITY): Define, to "llvm".
972 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
974 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
976 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
977 _VX_CPU instead of CPU and handle arm_arch8.
979 2019-11-14 Doug Rupp <rupp@adacore.com>
980 Olivier Hainque <hainque@adacore.com>
981 Jerome Lambourg <lambourg@adacore.com>
983 * config.gcc: Handle aarch64*-wrs-vxworks7*.
984 * config/aarch64/aarch64-vxworks.h: New file.
985 * config/aarch64/t-aarch64-vxworks: New file.
987 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
988 Olivier Hainque <hainque@adacore.com>
990 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
991 definition, pointless with a VxWorks specific version
993 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
994 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
995 New local macros, controlling the addition of vxworks specific
996 crtstuff objects depending on the EH mechanism and kind of
998 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
1000 2019-11-06 Pat Bernardi <bernardi@adacore.com>
1001 Jerome Lambourg <lambourg@adacore.com>
1002 Olivier Hainque <hainque@adacore.com>
1004 * config.gcc: Add comment to introduce the TARGET_VXWORKS
1005 common macro definitions, conveying VXWORKS7 or 64bit general
1006 variations. Add a block to set gcc_cv_initfini_array
1007 unconditionally to "yes" for VxWorks7.
1008 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
1009 by default. Update some comments.
1010 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
1011 default, to be added the end of VXWORKS_LIBS_RTP.
1012 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
1013 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
1015 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
1016 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
1017 to account for the now available TLS abilities.
1018 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
1019 (VXWORKS_HAVE_TLS): Likewise.
1021 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1023 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
1024 (vect_slp_convert_to_external): Likewise.
1025 (vect_slp_analyze_node_operations): If analysis fails, try building
1026 the node from scalars instead.
1028 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1030 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
1031 between vector types.
1032 * tree-vect-stmts.c (vectorizable_conversion): Extend the
1033 non-widening and non-narrowing path to handle standard
1034 conversion codes, if the target supports them.
1035 * expr.c (convert_move): Try using the extend and truncate optabs
1037 * optabs-tree.c (supportable_convert_operation): Likewise.
1038 * config/aarch64/iterators.md (Vnarroqw): New iterator.
1039 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
1040 (trunc<mode><Vnarrowq>2): New patterns.
1042 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1044 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
1045 require vectype and nunits_vectype to have the same size;
1046 instead assert that nunits_vectype has at least as many
1047 elements as vectype. Don't compute a separate nunits_vectype
1048 if the scalar type is obviously the same as vectype's.
1049 Tweak dump messages.
1051 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1053 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
1055 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
1056 (TARGET_VECTORIZE_RELATED_MODE): Define.
1058 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1060 * tree-vectorizer.h (vec_info::mode_set): New typedef.
1061 (vec_info::used_vector_mode): New member variable.
1062 (vect_chooses_same_modes_p): Declare.
1063 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
1064 chosen vector mode in vec_info::used_vector_mode.
1065 (vect_chooses_same_modes_p): New function.
1066 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
1067 the same vector statements multiple times.
1068 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1070 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1072 * machmode.h (opt_machine_mode::operator==): New function.
1073 (opt_machine_mode::operator!=): Likewise.
1074 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
1075 (get_related_vectype_for_scalar_type): Delete.
1076 (get_vectype_for_scalar_type_and_size): Declare.
1077 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
1078 whether analysis passed or failed, and with what vector modes.
1079 Use related_vector_mode to check whether trying a particular
1080 vector mode would be redundant with the autodetected mode,
1081 and print a dump message if we decide to skip it.
1082 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1083 (vect_create_epilog_for_reduction): Use
1084 get_related_vectype_for_scalar_type instead of
1085 get_vectype_for_scalar_type_and_size.
1086 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
1088 (get_related_vectype_for_scalar_type): ...this new function.
1089 Take a starting/"prevailing" vector mode rather than a vector size.
1090 Take an optional nunits argument, with the same meaning as for
1091 related_vector_mode. Use related_vector_mode when not
1092 auto-detecting a mode, falling back to mode_for_vector if no
1094 (get_vectype_for_scalar_type): Update accordingly.
1095 (get_same_sized_vectype): Likewise.
1096 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
1098 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1100 * tree-vect-stmts.c (vectorizable_call): Require the types
1101 to have the same size.
1103 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1105 * tree-vect-stmts.c (vectorizable_call): If an operand is
1106 constant or external, use get_vectype_for_scalar_type
1107 rather than get_same_sized_vectype to get its vector type.
1108 (vectorizable_conversion, vectorizable_shift): Likewise.
1109 (vectorizable_operation): Likewise.
1111 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1113 * tree-vectorizer.h (vec_info::vector_size): Replace with...
1114 (vec_info::vector_mode): ...this new field.
1115 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
1116 (vect_analyze_loop, vect_transform_loop): Likewise.
1117 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
1118 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1119 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
1120 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
1121 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
1123 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1125 * target.h (vector_sizes, auto_vector_sizes): Delete.
1126 (vector_modes, auto_vector_modes): New typedefs.
1127 * target.def (autovectorize_vector_sizes): Replace with...
1128 (autovectorize_vector_modes): ...this new hook.
1129 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1131 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
1132 * doc/tm.texi: Regenerate.
1133 * targhooks.h (default_autovectorize_vector_sizes): Delete.
1134 (default_autovectorize_vector_modes): New function.
1135 * targhooks.c (default_autovectorize_vector_sizes): Delete.
1136 (default_autovectorize_vector_modes): New function.
1137 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
1138 of autovectorize_vector_sizes. Use the number of units in the mode
1139 to calculate the maximum VF.
1140 * omp-low.c (omp_clause_aligned_alignment): Use
1141 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1142 Use a loop based on related_mode to iterate through all supported
1143 vector modes for a given scalar mode.
1144 * optabs-query.c (can_vec_mask_load_store_p): Use
1145 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1146 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
1147 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1148 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
1150 (aarch64_autovectorize_vector_modes): ...this new function.
1151 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1152 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1153 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
1154 (arc_autovectorize_vector_modes): ...this new function.
1155 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1156 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1157 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
1158 (arm_autovectorize_vector_modes): ...this new function.
1159 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1160 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1161 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
1162 (ix86_autovectorize_vector_modes): ...this new function.
1163 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1164 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1165 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
1166 (mips_autovectorize_vector_modes): ...this new function.
1167 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1168 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1170 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1172 * tree-vect-stmts.c (vectorizable_shift): Check the number
1173 of vector elements as well as the type mode when deciding
1174 whether an op1_vectype is compatible. Reuse the result of
1175 this check when generating vector statements.
1177 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1179 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
1180 targetm.vectorize.preferred_simd_mode returns an integer mode,
1181 use mode_for_vector to decide what the vector type's mode
1182 should actually be. Use build_vector_type_for_mode instead
1183 of build_vector_type.
1185 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1187 * target.def (get_mask_mode): Take a vector mode itself as argument,
1188 instead of properties about the vector mode.
1189 * doc/tm.texi: Regenerate.
1190 * targhooks.h (default_get_mask_mode): Update to reflect new
1191 get_mode_mask interface.
1192 * targhooks.c (default_get_mask_mode): Likewise. Use
1193 related_int_vector_mode.
1194 * optabs-query.c (can_vec_mask_load_store_p): Update call
1196 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
1197 first that the original mode really is a vector.
1198 * tree.c (build_truth_vector_type_for): Likewise.
1199 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
1200 get_mode_mask interface.
1201 (aarch64_expand_sve_vcond): Update call accordingly.
1202 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
1203 get_mode_mask interface.
1204 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
1206 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1208 * tree.h (build_truth_vector_type): Delete.
1209 (build_same_sized_truth_vector_type): Likewise.
1210 * tree.c (build_truth_vector_type): Rename to...
1211 (build_truth_vector_type_for): ...this. Make static and take
1212 a vector type as argument.
1213 (truth_type_for): Update accordingly.
1214 (build_same_sized_truth_vector_type): Delete.
1215 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
1216 instead of build_same_sized_truth_vector_type.
1217 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
1218 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
1219 * tree-vect-patterns.c (build_mask_conversion): Likeise.
1220 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1221 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1222 (vect_build_gather_load_calls, vectorizable_call): Likewise.
1223 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
1224 (vectorizable_store, vectorizable_condition): Likewise.
1225 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
1226 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
1227 build_truth_vector_type.
1228 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
1229 Use truth_type_for instead of build_same_sized_truth_vector_type.
1230 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
1232 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1234 * tree.h (build_truth_vector_type_for_mode): Declare.
1235 * tree.c (build_truth_vector_type_for_mode): New function,
1237 (build_truth_vector_type): ...here.
1238 (build_opaque_vector_type): Fix head comment.
1239 * tree-vectorizer.h (supportable_narrowing_operation): Remove
1241 (vect_halve_mask_nunits): Replace vec_info parameter with the
1242 mode of the new vector.
1243 (vect_double_mask_nunits): Likewise.
1244 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
1245 (vect_double_mask_nunits): Likewise.
1246 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
1247 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
1248 to vect_halve_mask_nunits, getting the required mode from the unpack
1250 (vect_set_loop_condition_masked): Update call accordingly.
1251 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
1252 parameter and update call to vect_double_mask_nunits.
1253 (vectorizable_conversion): Update call accordingly.
1254 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
1255 (vectorizable_call): Update call accordingly.
1256 (supportable_widening_operation): Update call to
1257 vect_halve_mask_nunits.
1258 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1259 Use build_truth_vector_type_mode instead of build_truth_vector_type.
1261 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1263 * machmode.h (mode_for_int_vector): Delete.
1264 (related_int_vector_mode): Declare.
1265 * stor-layout.c (mode_for_int_vector): Delete.
1266 (related_int_vector_mode): New function.
1267 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
1268 instead of mode_for_int_vector.
1269 (expand_vec_perm_const): Likewise.
1270 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
1271 (aarch64_evpc_sve_tbl): Likewise.
1272 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
1273 (s390_expand_vcond): Likewise.
1275 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1277 * target.def (related_mode): New hook.
1278 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
1279 * doc/tm.texi: Regenerate.
1280 * targhooks.h (default_vectorize_related_mode): Declare.
1281 * targhooks.c (default_vectorize_related_mode): New function.
1282 * machmode.h (related_vector_mode): Declare.
1283 * stor-layout.c (related_vector_mode): New function.
1284 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
1285 * optabs-query.c (qimode_for_vec_perm): Likewise.
1286 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
1287 (vectorizable_store, vectorizable_load): Likewise
1289 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
1291 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
1292 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
1293 * config/arm/arm-c.c (arm_cpu_builtins): Define
1294 __GCC_ASM_FLAG_OUTPUTS__.
1295 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
1296 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
1297 Define __GCC_ASM_FLAG_OUTPUTS__.
1298 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
1299 * doc/extend.texi (FlagOutputOperands): Add documentation
1300 for ARM and AArch64.
1302 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
1303 * config/arm/predicates.md (nz_comparison_operator): Rename
1304 from noov_comparison_operator.
1305 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
1306 (arm_gen_dicompare_reg): Likewise.
1307 (maybe_get_arm_condition_code): Likewise.
1308 (thumb1_final_prescan_insn): Likewise.
1309 (arm_emit_coreregs_64bit_shift): Likewise.
1310 * config/arm/arm.md (addsi3_compare0): Likewise.
1311 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
1312 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
1313 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
1314 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
1315 (*mulsi3addsi_compare0_scratch): Likewise.
1316 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1317 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
1318 (*zeroextractsi_compare0_scratch): Likewise.
1319 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
1320 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
1321 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
1322 (andsi_not_shiftsi_si_scc): Likewise.
1323 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
1324 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
1325 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
1326 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
1327 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
1328 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
1329 (return_addr_mask, *check_arch2): Likewise.
1330 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
1331 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
1332 (compare_scc splitters): Likewise.
1333 (movcond_addsi): Likewise.
1334 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
1335 (*thumb2_addsi3_compare0_scratch): Likewise.
1336 (*thumb2_mulsi_short_compare0): Likewise.
1337 (*thumb2_mulsi_short_compare0_scratch): Likewise.
1338 (compare peephole2s): Likewise.
1339 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
1340 nz_comparison_operator names.
1341 (cbranchsi4_insn): Likewise.
1343 * config/arm/constraints.md (c): Use cc_register predicate.
1345 * config/aarch64/constraints.md (c): New constraint.
1347 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1349 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
1350 ipa_merge_fn_summary_after_inlining): Micro optimize.
1352 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1354 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
1356 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1358 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
1359 (ipa_value_range_from_jfunc): New function.
1360 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
1361 known_value_ranges parameter; use it to evalulate conditions.
1362 (evaluate_properties_for_edge): Compute known value ranges.
1363 (ipa_fn_summary_t::duplicate): Update use of
1364 evaluate_conditions_for_known_args.
1365 (estimate_ipcp_clone_size_and_time): Likewise.
1366 (ipa_merge_fn_summary_after_inlining): Likewise.
1367 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
1369 2019-11-14 Martin Liska <mliska@suse.cz>
1371 * ipa-inline.c (want_inline_small_function_p): Use
1372 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
1373 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
1375 2019-11-14 Martin Liska <mliska@suse.cz>
1377 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
1378 of a callee to get value of the param.
1379 * ipa-inline.c (inline_insns_auto): Use proper
1381 * opts.c (maybe_default_option): Do not overwrite param
1382 value if optimization level does not match. Note that
1383 params usually have default value set via Init() keyword.
1384 * params.opt: Remove -param=max-inline-insns-auto-O2.
1385 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
1386 * doc/invoke.texi: Remove documentation of
1387 max-inline-insns-auto-O2.
1389 2019-11-14 Martin Liska <mliska@suse.cz>
1391 * tree-switch-conversion.c (switch_conversion::switch_conversion):
1392 Do not initialize m_other_count.
1393 (switch_conversion::collect): Do not count m_default_count and
1394 m_other_count as we use frequencies for edges.
1395 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
1397 2019-11-14 Martin Liska <mliska@suse.cz>
1400 * doc/invoke.texi: Document -fallocation-dce.
1402 2019-11-14 Martin Liska <mliska@suse.cz>
1405 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
1406 PTA_ICELAKE_CLIENT which is later interited by
1407 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
1409 2019-11-14 Martin Liska <mliska@suse.cz>
1411 * ipa-icf.c (sem_item_optimizer::execute): Save
1413 (sem_item_optimizer::parse_nonsingleton_classes):
1414 Return number of loaded symbols.
1415 (sem_item_optimizer::merge_classes): Print
1416 statistics about totally needed symbols.
1417 * ipa-icf.h (parse_nonsingleton_classes): Change return
1419 (merge_classes): Add one argument.
1421 2019-11-14 Martin Liska <mliska@suse.cz>
1423 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
1424 func_checker::hash_operand by handling of FIELD_DECLs.
1426 2019-11-14 Martin Liska <mliska@suse.cz>
1428 * ipa-icf-gimple.h (func_checker::func_checker): Add
1429 default constructor.
1430 * ipa-icf.c (sem_function::init): Make operand_equal_p
1431 and hash_operand public.
1432 (sem_item::add_expr): Remove.
1433 (sem_item::add_type): Remove.
1434 (sem_function::hash_stmt): Use m_checker for hashing
1435 of GIMPLE statements.
1436 (sem_function::parse): Init with checker.
1437 (sem_variable::parse): Pass NULL as checker.
1438 (sem_item_optimizer::parse_funcs_and_vars):
1439 Pass checker to ::parse function.
1440 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
1441 (sem_variable::parse): New function.
1442 (sem_variable::get_hash): Only return computed hash value.
1443 (sem_variable::init): Initialize hash of a variable.
1444 * ipa-icf.h: Remove add_expr, add_type and add func_checker
1445 to couple of functions as a new argument.
1447 2019-11-14 Martin Liska <mliska@suse.cz>
1449 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
1451 (func_checker::compare_gimple_assign): Likewise.
1453 2019-11-14 Jakub Jelinek <jakub@redhat.com>
1455 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
1456 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
1457 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
1459 * omp-general.c (omp_context_name_list_prop): New function.
1460 (omp_context_selector_matches): Use it. Return 0 if it returns
1462 (omp_context_selector_props_compare): Allow equivalency of an
1463 identifier and a string literal containing no embedded zeros.
1465 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1467 * range-op.cc (RANGE3): Remove.
1468 (range_tests): Remove all selftest that check for multi-ranges.
1469 Put tests in namespace selftest.
1470 * selftest.h: Move range_tests into namespace selftest.
1471 * value-range.h (class value_range): Unfriend range_tests.
1473 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1475 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
1476 normalize_symbolics and normalize_addresses working in place.
1477 (range_fold_unary_symbolics_p): Same.
1478 (range_fold_unary_symbolics_p): Same.
1479 * value-range.cc (num_pairs): Same.
1480 (lower_bound): Same.
1481 (upper_bound): Same.
1483 (normalize_addresses): Same.
1484 (normalize_symbolics): Same.
1485 * value-range.h (normalize_symbolics): Same.
1486 (normalize_addresses): Same.
1488 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
1491 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
1492 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
1493 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
1494 (ipa_agg_jump_function): Remove member function equal_to.
1495 (ipa_agg_jump_function_p): Remove typedef.
1496 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
1497 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
1498 information for aggregate jump function.
1499 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
1500 record last definition statement.
1501 (load_from_unmodified_param_or_agg): New function.
1502 (ipa_known_agg_contents_list): Add new field type and value, remove
1504 (build_agg_jump_func_from_list): Rename parameter const_count to
1505 value_count, build aggregate jump function from ipa_load_agg_data.
1506 (analyze_agg_content_value): New function.
1507 (extract_mem_content): Analyze memory store assignment to prepare
1508 information for aggregate jump function generation.
1509 (determine_known_aggregate_parts): Add new parameter fbi, remove
1510 parameter aa_walk_budeget_p.
1511 (update_jump_functions_after_inlining): Update aggregate jump function.
1512 (ipa_find_agg_cst_for_param): Change type of parameter agg.
1513 (try_make_edge_direct_simple_call): Add new parameter new_root.
1514 (try_make_edge_direct_virtual_call): Add new parameter new_root and
1516 (update_indirect_edges_after_inlining): Pass new argument to
1517 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
1518 (ipa_write_jump_function): Write aggregate jump function to file.
1519 (ipa_read_jump_function): Read aggregate jump function from file.
1520 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
1521 * ipa-cp.c (ipa_get_jf_arith_result): New function.
1522 (ipa_agg_value_from_node): Likewise.
1523 (ipa_agg_value_set_from_jfunc): Likewise.
1524 (propagate_vals_across_arith_jfunc): Likewise.
1525 (propagate_aggregate_lattice): Likewise.
1526 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
1527 (propagate_vals_across_pass_through): Call
1528 propagate_vals_across_arith_jfunc.
1529 (get_clone_agg_value): Move forward.
1530 (propagate_aggs_across_jump_function): Handle value propagation for
1531 aggregate jump function.
1532 (agg_jmp_p_vec_for_t_vec): Remove.
1533 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
1534 with vec<ipa_agg_value>.
1535 (copy_plats_to_inter, intersect_with_plats): Likewise.
1536 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
1537 (intersect_aggregate_with_edge): Likewise.
1538 (find_aggregate_values_for_callers_subset): Likewise.
1539 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
1540 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
1541 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1542 (gather_context_independent_values): Likewise.
1543 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
1544 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
1545 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1546 (evaluate_properties_for_edge): Likewise.
1547 (estimate_edge_devirt_benefit): Likewise.
1548 (estimate_edge_size_and_time): Likewise.
1549 (estimate_calls_size_and_time): Likewise.
1550 (ipa_call_context::ipa_call_context): Likewise.
1551 (estimate_ipcp_clone_size_and_time): Likewise.
1552 * ipa-fnsummary.h (ipa_call_context): Replace
1553 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1554 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
1555 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1556 (do_estimate_edge_size): Likewise.
1557 (do_estimate_edge_hints): Likewise.
1559 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1561 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
1564 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1566 * ipa-profile.c (check_argument_count): Check properly that e_info
1567 is non-NULL; do not check descriptors.
1569 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1571 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
1572 check for ipa profiles.
1574 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1577 * ipa-prop.c (update_indirect_edges_after_inlining):
1578 Mark parameter as used.
1579 * ipa-inline.c (recursive_inlining): Reset node cache
1581 (inline_small_functions): Remove checking ifdef.
1582 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
1585 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1588 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
1590 (ipa_profile): Fix reversed test.
1592 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1594 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
1595 (propagate_constants_topo): Fix typo.
1597 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
1599 * Makefile.in (OBJS): Add value-range.o.
1600 (GTFILES): Add value-range.h.
1601 * gengtype.c (open_base_files): Add value-range.h to list of
1603 * tree-vrp.c: Move the following value_range related functions:
1604 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
1605 constant_p, set_undefined, set_varying, may_contain_p,
1606 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
1607 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
1608 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
1609 value_inside_range, ranges_from_anti_range, union_ranges,
1610 intersect_ranges, intersect_helper, union_helper, union_,
1611 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
1612 upper_bound, contains_p, invert, intersect...
1613 * value-range.cc: ...to here.
1614 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
1615 associated inline methods from here...
1616 * value-range.h: ...to here.
1618 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1620 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
1621 instead of asserting its value.
1623 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
1625 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
1626 constructors and set methods so value_range_kind is the last
1627 argument and defaults to VR_RANGE.
1628 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
1629 * ipa-cp.c (propagate_vr_across_jump_function): Same.
1630 * ipa-prop.c (ipa_get_value_range): Same.
1631 (ipa_compute_jump_functions_for_edge): Same.
1632 * range-op.cc (value_range_from_overflowed_bounds): Same.
1633 (operator_cast::op1_range): Same.
1634 (range_tests): Same.
1635 * range.cc (range_nonzero): Same.
1636 * tree-ssanames.c (get_range_info): Same.
1637 * tree-vrp.c (value_range_equiv::set): Same.
1638 (value_range::value_range): Same.
1639 (value_range_equiv::value_range_equiv): Same.
1640 (value_range_equiv::update): Same.
1641 (value_range_equiv::deep_copy): Same.
1642 (value_range_equiv::move): Same.
1643 (value_range_equiv::set_undefined): Same.
1644 (value_range::set): Same.
1645 (value_range::set_nonzero): Same.
1646 (ranges_from_anti_range): Same.
1647 (extract_range_from_plus_minus_expr): Same.
1648 (value_range::intersect_helper): Same.
1649 (value_range_equiv::intersect): Same.
1650 (value_range::union_helper): Same.
1651 (value_range_equiv::union_): Same.
1652 (value_range::normalize_symbolics): Same.
1653 (value_range::invert): Same.
1654 (determine_value_range_1): Same.
1655 * tree-vrp.h (class value_range): Same.
1656 (class value_range_equiv): Same.
1657 * vr-values.c (set_value_range_to_nonnegative): Same.
1658 (set_value_range_to_truthvalue): Same.
1659 (vr_values::update_value_range): Same.
1660 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1661 (vr_values::extract_range_from_binary_expr): Same.
1662 (vr_values::extract_range_from_comparison): Same.
1663 (vr_values::extract_range_basic): Same.
1664 (vr_values::adjust_range_with_scev): Same.
1665 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
1666 (vr_values::extract_range_from_phi_node): Same.
1668 2019-11-13 Ulrich Drepper <drepper@redhat.com>
1670 * tree-dump.c (dequeue_and_dump): Print first tree operand
1671 for VIEW_CONVERT_EXPR.
1673 2019-11-13 Joseph Myers <joseph@codesourcery.com>
1675 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
1676 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
1677 * real.c (get_max_float): Add norm_max argument.
1678 * real.h (get_max_float): Update prototype.
1679 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
1682 2019-11-13 Martin Liska <mliska@suse.cz>
1684 * dbgcnt.c (test_sorted_dbg_counters): New.
1685 (dbgcnt_c_tests): Likewise.
1686 * selftest-run-tests.c (selftest::run_tests): Likewise.
1687 * selftest.h (dbgcnt_c_tests): Likewise.
1689 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1690 Martin Jambor <mjambor@suse.cz>
1693 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
1694 (identify_dead_nodes): Likewise.
1696 2019-11-13 Martin Liska <mliska@suse.cz>
1698 * ipa-icf.c (sem_function::equals_private): Do not overuse
1699 push/pop_cfun functions.
1701 2019-11-13 Martin Liska <mliska@suse.cz>
1703 * common.opt: Document change of -fdbg-cnt option.
1704 * dbgcnt.c (DEBUG_COUNTER): Remove.
1705 (dbg_cnt_is_enabled): Remove.
1706 (dbg_cnt): Work with new intervals.
1707 (dbg_cnt_set_limit_by_index): Set to new
1709 (dbg_cnt_set_limit_by_name): Likewise.
1710 (dbg_cnt_process_single_pair): Process new format.
1711 (dbg_cnt_process_opt): Likewise.
1712 (dbg_cnt_list_all_counters): Likewise.
1713 * doc/invoke.texi: Document change of -fdbg-cnt option.
1716 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1718 * ipa-inline.c (ipa_inline): Check that function is defined before
1721 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1722 Julian Brown <julian@codesourcery.com>
1724 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
1725 flag_worker_partitioning is not set.
1726 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
1727 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
1729 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1731 * config/gcn/gcn-run.c (heap_region): New global variable.
1732 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
1733 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
1734 (get_kernarg_region): Move contents to ....
1735 (get_memory_region): .... here.
1736 (get_heap_region): New function.
1737 (init_device): Initialize the heap_region.
1738 (device_malloc): Add region parameter.
1739 (struct kernargs): Move heap ....
1740 (heap): ... to global scope.
1741 (main): Allocate heap separate to kernargs.
1743 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1745 * ipa-prop.c (ipa_print_node_jump_functions,
1746 ipa_print_node_params): Print info about missing summaries.
1748 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1750 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
1751 the cost of generating loop masks.
1753 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1755 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
1757 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
1758 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1759 (vect_transform_loop): Likewise.
1760 (vect_analyze_loop_costing): Don't take the cost of versioning
1761 into account for the static profitability threshold if it turns
1762 out that no versioning is needed.
1764 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1766 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
1767 and target_option_default_node to get -fprofile-generate ctors working
1770 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1772 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
1773 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
1774 (vectorizable_assignment): Don't add a cost for nop conversions.
1775 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1777 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
1779 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1781 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
1782 number of ncopies as an additional argument.
1783 (vectorizable_conversion): Update call accordingly. Use "modifier"
1784 to check whether a conversion is between vectors with the same
1787 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1789 * config/aarch64/aarch64-sve-builtins-functions.h
1790 (unary_count::expand): Use aarch64_sve_int_mode instead of
1791 mode_for_int_vector.
1793 2019-11-13 Martin Liska <mliska@suse.cz>
1795 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
1797 2019-11-13 Martin Liska <mliska@suse.cz>
1799 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
1800 Remove call to finalize_options_struct.
1802 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
1805 * config/avr/t-avr (avr-mcus): Do not depend on
1806 $(srcdir)/config/avr/t-multilib.
1808 2019-11-13 Richard Biener <rguenther@suse.de>
1810 PR tree-optimization/92473
1811 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
1812 direct optab reduction in the correct type.
1814 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1816 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
1817 hexadecimal literal.
1819 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1821 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
1822 UNORDERED if !HONOR_NANS (DFmode).
1823 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
1824 if !HONOR_NANS (<MODE>mode).
1826 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1828 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
1829 (ipcp_verify_propagated_values): Likewise.
1830 (propagate_constants_across_call): Likewise.
1831 (propagate_constants_topo): Likewise.
1832 (ipcp_propagate_stage): Likewise.
1834 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1837 * ipa-profile.c (check_argument_count): Break out from ...;
1838 watch for missing summaries.
1839 (ipa_profile): Here.
1841 2019-11-12 Martin Sebor <msebor@redhat.com>
1843 PR tree-optimization/92412
1844 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
1847 2019-11-12 Martin Sebor <msebor@redhat.com>
1850 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
1851 (directive::argno): New member.
1852 (format_result::aliases, format_result::alias_count): New data members.
1853 (format_result::append_alias): New member function.
1854 (fmtresult::dst_offset): New data member.
1855 (pass_sprintf_length::call_info::dst_origin): New data member.
1856 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
1857 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
1858 (get_origin_and_offset): Same.
1859 (format_string): Call it.
1860 (format_directive): Call append_alias and set directive argument
1862 (maybe_warn_overlap): New function.
1863 (pass_sprintf_length::compute_format_length): Call it.
1864 (pass_sprintf_length::handle_gimple_call): Initialize new members.
1865 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
1867 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
1869 PR rtl-optimization/92430
1870 * cfgcleanup.c (pass_jump_after_combine::execute): Free
1871 dominance info at the beginning.
1873 2019-11-12 Richard Biener <rguenther@suse.de>
1875 PR tree-optimization/92460
1876 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
1877 expression before gimplifying.
1879 2019-11-12 Richard Biener <rguenther@suse.de>
1881 PR tree-optimization/92461
1882 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
1883 stmt after propagation.
1885 2019-11-12 Martin Liska <mliska@suse.cz>
1887 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
1888 Use SET_OPTION_IF_UNSET.
1889 (ix86_option_override_internal): Likewise.
1890 * opts.c (default_options_optimization): Likewise.
1891 (finish_options): Likewise.
1892 (enable_fdo_optimizations): Likewise.
1893 (common_handle_option): Likewise.
1895 2019-11-12 Martin Liska <mliska@suse.cz>
1897 * common/common-target.def: Remove option_validate_param and
1898 option_default_params.
1899 * common/common-targhooks.c (default_option_validate_param):
1901 * common/common-targhooks.h (default_option_validate_param):
1903 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
1904 Remove usage of this.
1905 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
1906 (aarch64_option_validate_param): Likewise.
1907 (aarch64_option_default_params): Likewise
1908 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
1909 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1910 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1911 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1912 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1913 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1914 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1915 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1916 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1917 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1918 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
1920 * doc/tm.texi: Remove option_default_params and option_validate_param.
1921 * doc/tm.texi.in: Likewise.
1923 2019-11-12 Martin Liska <mliska@suse.cz>
1925 * common/common-target.def:
1926 Do not mention set_default_param_value
1927 and set_param_value.
1928 * doc/tm.texi: Likewise.
1930 2019-11-12 Martin Liska <mliska@suse.cz>
1932 * common.opt: Remove param_values.
1933 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
1934 Remove finalize_options_struct.
1935 * gcc.c (driver::decode_argv): Do not call global_init_params
1937 (driver::finalize): Do not call params_c_finalize
1938 and finalize_options_struct.
1939 * opt-suggestions.c (option_proposer::get_completions): Remove
1940 special casing of params.
1941 (option_proposer::find_param_completions): Remove.
1942 (test_completion_partial_match): Update expected output.
1943 * opt-suggestions.h: Remove find_param_completions.
1944 * opts-common.c (add_misspelling_candidates): Add
1945 --param with a space.
1946 * opts.c (handle_param): Remove.
1947 (init_options_struct):. Remove init_options_struct and
1949 (finalize_options_struct): Remove.
1950 (common_handle_option): Use SET_OPTION_IF_UNSET.
1951 * opts.h (finalize_options_struct): Remove.
1952 * toplev.c (general_init): Do not call global_init_params.
1953 (toplev::finalize): Do not call params_c_finalize and
1954 finalize_options_struct.
1956 2019-11-12 Martin Liska <mliska@suse.cz>
1958 * Makefile.in: Remove PARAMS_H and params.list
1960 * params-enum.h: Remove.
1961 * params-list.h: Remove.
1962 * params-options.h: Remove.
1964 * params.def: Remove.
1966 * asan.c: Do not include params.h.
1967 * auto-profile.c: Likewise.
1968 * bb-reorder.c: Likewise.
1969 * builtins.c: Likewise.
1970 * cfgcleanup.c: Likewise.
1971 * cfgexpand.c: Likewise.
1972 * cfgloopanal.c: Likewise.
1973 * cgraph.c: Likewise.
1974 * combine.c: Likewise.
1975 * common/config/aarch64/aarch64-common.c: Likewise.
1976 * common/config/gcn/gcn-common.c: Likewise.
1977 * common/config/ia64/ia64-common.c: Likewise.
1978 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
1979 * common/config/rs6000/rs6000-common.c: Likewise.
1980 * common/config/sh/sh-common.c: Likewise.
1981 * config/aarch64/aarch64.c: Likewise.
1982 * config/alpha/alpha.c: Likewise.
1983 * config/arm/arm.c: Likewise.
1984 * config/avr/avr.c: Likewise.
1985 * config/csky/csky.c: Likewise.
1986 * config/i386/i386-builtins.c: Likewise.
1987 * config/i386/i386-expand.c: Likewise.
1988 * config/i386/i386-features.c: Likewise.
1989 * config/i386/i386-options.c: Likewise.
1990 * config/i386/i386.c: Likewise.
1991 * config/ia64/ia64.c: Likewise.
1992 * config/rs6000/rs6000-logue.c: Likewise.
1993 * config/rs6000/rs6000.c: Likewise.
1994 * config/s390/s390.c: Likewise.
1995 * config/sparc/sparc.c: Likewise.
1996 * config/visium/visium.c: Likewise.
1997 * coverage.c: Likewise.
1998 * cprop.c: Likewise.
2000 * cselib.c: Likewise.
2002 * emit-rtl.c: Likewise.
2003 * explow.c: Likewise.
2004 * final.c: Likewise.
2005 * fold-const.c: Likewise.
2008 * ggc-common.c: Likewise.
2009 * ggc-page.c: Likewise.
2010 * gimple-loop-interchange.cc: Likewise.
2011 * gimple-loop-jam.c: Likewise.
2012 * gimple-loop-versioning.cc: Likewise.
2013 * gimple-ssa-split-paths.c: Likewise.
2014 * gimple-ssa-sprintf.c: Likewise.
2015 * gimple-ssa-store-merging.c: Likewise.
2016 * gimple-ssa-strength-reduction.c: Likewise.
2017 * gimple-ssa-warn-alloca.c: Likewise.
2018 * gimple-ssa-warn-restrict.c: Likewise.
2019 * graphite-isl-ast-to-gimple.c: Likewise.
2020 * graphite-optimize-isl.c: Likewise.
2021 * graphite-scop-detection.c: Likewise.
2022 * graphite-sese-to-poly.c: Likewise.
2023 * graphite.c: Likewise.
2024 * haifa-sched.c: Likewise.
2025 * hsa-gen.c: Likewise.
2026 * ifcvt.c: Likewise.
2027 * ipa-cp.c: Likewise.
2028 * ipa-fnsummary.c: Likewise.
2029 * ipa-inline-analysis.c: Likewise.
2030 * ipa-inline.c: Likewise.
2031 * ipa-polymorphic-call.c: Likewise.
2032 * ipa-profile.c: Likewise.
2033 * ipa-prop.c: Likewise.
2034 * ipa-split.c: Likewise.
2035 * ipa-sra.c: Likewise.
2036 * ira-build.c: Likewise.
2037 * ira-conflicts.c: Likewise.
2038 * loop-doloop.c: Likewise.
2039 * loop-invariant.c: Likewise.
2040 * loop-unroll.c: Likewise.
2041 * lra-assigns.c: Likewise.
2042 * lra-constraints.c: Likewise.
2043 * modulo-sched.c: Likewise.
2044 * opt-suggestions.c: Likewise.
2046 * postreload-gcse.c: Likewise.
2047 * predict.c: Likewise.
2048 * reload.c: Likewise.
2049 * reorg.c: Likewise.
2050 * resource.c: Likewise.
2051 * sanopt.c: Likewise.
2052 * sched-deps.c: Likewise.
2053 * sched-ebb.c: Likewise.
2054 * sched-rgn.c: Likewise.
2055 * sel-sched-ir.c: Likewise.
2056 * sel-sched.c: Likewise.
2057 * shrink-wrap.c: Likewise.
2059 * targhooks.c: Likewise.
2060 * toplev.c: Likewise.
2061 * tracer.c: Likewise.
2062 * trans-mem.c: Likewise.
2063 * tree-chrec.c: Likewise.
2064 * tree-data-ref.c: Likewise.
2065 * tree-if-conv.c: Likewise.
2066 * tree-inline.c: Likewise.
2067 * tree-loop-distribution.c: Likewise.
2068 * tree-parloops.c: Likewise.
2069 * tree-predcom.c: Likewise.
2070 * tree-profile.c: Likewise.
2071 * tree-scalar-evolution.c: Likewise.
2072 * tree-sra.c: Likewise.
2073 * tree-ssa-ccp.c: Likewise.
2074 * tree-ssa-dom.c: Likewise.
2075 * tree-ssa-dse.c: Likewise.
2076 * tree-ssa-ifcombine.c: Likewise.
2077 * tree-ssa-loop-ch.c: Likewise.
2078 * tree-ssa-loop-im.c: Likewise.
2079 * tree-ssa-loop-ivcanon.c: Likewise.
2080 * tree-ssa-loop-ivopts.c: Likewise.
2081 * tree-ssa-loop-manip.c: Likewise.
2082 * tree-ssa-loop-niter.c: Likewise.
2083 * tree-ssa-loop-prefetch.c: Likewise.
2084 * tree-ssa-loop-unswitch.c: Likewise.
2085 * tree-ssa-math-opts.c: Likewise.
2086 * tree-ssa-phiopt.c: Likewise.
2087 * tree-ssa-pre.c: Likewise.
2088 * tree-ssa-reassoc.c: Likewise.
2089 * tree-ssa-sccvn.c: Likewise.
2090 * tree-ssa-scopedtables.c: Likewise.
2091 * tree-ssa-sink.c: Likewise.
2092 * tree-ssa-strlen.c: Likewise.
2093 * tree-ssa-structalias.c: Likewise.
2094 * tree-ssa-tail-merge.c: Likewise.
2095 * tree-ssa-threadbackward.c: Likewise.
2096 * tree-ssa-threadedge.c: Likewise.
2097 * tree-ssa-uninit.c: Likewise.
2098 * tree-switch-conversion.c: Likewise.
2099 * tree-vect-data-refs.c: Likewise.
2100 * tree-vect-loop.c: Likewise.
2101 * tree-vect-slp.c: Likewise.
2102 * tree-vrp.c: Likewise.
2104 * value-prof.c: Likewise.
2105 * var-tracking.c: Likewise.
2107 2019-11-12 Martin Liska <mliska@suse.cz>
2109 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
2110 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
2112 (asan_sanitize_allocas_p): Likewise.
2113 (asan_emit_stack_protection): Likewise.
2114 (asan_protect_global): Likewise.
2115 (instrument_derefs): Likewise.
2116 (instrument_builtin_call): Likewise.
2117 (asan_expand_mark_ifn): Likewise.
2118 * auto-profile.c (auto_profile): Likewise.
2119 * bb-reorder.c (copy_bb_p): Likewise.
2120 (duplicate_computed_gotos): Likewise.
2121 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
2122 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
2123 (try_crossjump_bb): Likewise.
2124 * cfgexpand.c (defer_stack_allocation): Likewise.
2125 (stack_protect_classify_type): Likewise.
2126 (pass_expand::execute): Likewise.
2127 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2128 (estimate_reg_pressure_cost): Likewise.
2129 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
2130 * combine.c (combine_instructions): Likewise.
2131 (record_value_for_reg): Likewise.
2132 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
2133 (aarch64_option_default_params): Likewise.
2134 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2135 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2136 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2137 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2138 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
2139 (aarch64_allocate_and_probe_stack_space): Likewise.
2140 (aarch64_expand_epilogue): Likewise.
2141 (aarch64_override_options_internal): Likewise.
2142 * config/alpha/alpha.c (alpha_option_override): Likewise.
2143 * config/arm/arm.c (arm_option_override): Likewise.
2144 (arm_valid_target_attribute_p): Likewise.
2145 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
2146 * config/i386/i386.c (get_probe_interval): Likewise.
2147 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
2148 (ix86_max_noce_ifcvt_seq_cost): Likewise.
2149 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
2150 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
2151 (get_stack_clash_protection_guard_size): Likewise.
2152 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
2153 * config/s390/s390.c (allocate_stack_space): Likewise.
2154 (s390_emit_prologue): Likewise.
2155 (s390_option_override_internal): Likewise.
2156 * config/sparc/sparc.c (sparc_option_override): Likewise.
2157 * config/visium/visium.c (visium_option_override): Likewise.
2158 * coverage.c (get_coverage_counts): Likewise.
2159 (coverage_compute_profile_id): Likewise.
2160 (coverage_begin_function): Likewise.
2161 (coverage_end_function): Likewise.
2162 * cse.c (cse_find_path): Likewise.
2163 (cse_extended_basic_block): Likewise.
2164 (cse_main): Likewise.
2165 * cselib.c (cselib_invalidate_mem): Likewise.
2166 * dse.c (dse_step1): Likewise.
2167 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
2168 (get_max_insn_count): Likewise.
2169 (make_debug_insn_raw): Likewise.
2170 (init_emit): Likewise.
2171 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
2172 * final.c (compute_alignments): Likewise.
2173 * fold-const.c (fold_range_test): Likewise.
2174 (fold_truth_andor): Likewise.
2175 (tree_single_nonnegative_warnv_p): Likewise.
2176 (integer_valued_real_single_p): Likewise.
2177 * gcse.c (want_to_gcse_p): Likewise.
2178 (prune_insertions_deletions): Likewise.
2179 (hoist_code): Likewise.
2180 (gcse_or_cprop_is_too_expensive): Likewise.
2181 * ggc-common.c: Likewise.
2182 * ggc-page.c (ggc_collect): Likewise.
2183 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
2184 (MAX_DATAREFS): Likewise.
2185 (OUTER_STRIDE_RATIO): Likewise.
2186 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2187 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
2188 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
2189 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
2190 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2191 (imm_store_chain_info::output_merged_store): Likewise.
2192 (pass_store_merging::process_store): Likewise.
2193 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
2194 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
2195 (scop_to_isl_ast): Likewise.
2196 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
2197 (optimize_isl): Likewise.
2198 * graphite-scop-detection.c (build_scops): Likewise.
2199 * haifa-sched.c (set_modulo_params): Likewise.
2200 (rank_for_schedule): Likewise.
2201 (model_add_to_worklist): Likewise.
2202 (model_promote_insn): Likewise.
2203 (model_choose_insn): Likewise.
2204 (queue_to_ready): Likewise.
2205 (autopref_multipass_dfa_lookahead_guard): Likewise.
2206 (schedule_block): Likewise.
2207 (sched_init): Likewise.
2208 * hsa-gen.c (init_prologue): Likewise.
2209 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
2210 (cond_move_process_if_block): Likewise.
2211 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
2212 (merge_agg_lats_step): Likewise.
2213 (devirtualization_time_bonus): Likewise.
2214 (hint_time_bonus): Likewise.
2215 (incorporate_penalties): Likewise.
2216 (good_cloning_opportunity_p): Likewise.
2217 (ipcp_propagate_stage): Likewise.
2218 * ipa-fnsummary.c (decompose_param_expr): Likewise.
2219 (set_switch_stmt_execution_predicate): Likewise.
2220 (analyze_function_body): Likewise.
2221 (compute_fn_summary): Likewise.
2222 * ipa-inline-analysis.c (estimate_growth): Likewise.
2223 * ipa-inline.c (caller_growth_limits): Likewise.
2224 (inline_insns_single): Likewise.
2225 (inline_insns_auto): Likewise.
2226 (can_inline_edge_by_limits_p): Likewise.
2227 (want_early_inline_function_p): Likewise.
2228 (big_speedup_p): Likewise.
2229 (want_inline_small_function_p): Likewise.
2230 (want_inline_self_recursive_call_p): Likewise.
2231 (edge_badness): Likewise.
2232 (recursive_inlining): Likewise.
2233 (compute_max_insns): Likewise.
2234 (early_inliner): Likewise.
2235 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
2236 * ipa-profile.c (ipa_profile): Likewise.
2237 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2238 (ipa_analyze_node): Likewise.
2239 (ipcp_transform_function): Likewise.
2240 * ipa-split.c (consider_split): Likewise.
2241 * ipa-sra.c (allocate_access): Likewise.
2242 (process_scan_results): Likewise.
2243 (ipa_sra_summarize_function): Likewise.
2244 (pull_accesses_from_callee): Likewise.
2245 * ira-build.c (loop_compare_func): Likewise.
2246 (mark_loops_for_removal): Likewise.
2247 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2248 * loop-doloop.c (doloop_optimize): Likewise.
2249 * loop-invariant.c (gain_for_invariant): Likewise.
2250 (move_loop_invariants): Likewise.
2251 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
2252 (decide_unroll_runtime_iterations): Likewise.
2253 (decide_unroll_stupid): Likewise.
2254 (expand_var_during_unrolling): Likewise.
2255 * lra-assigns.c (spill_for): Likewise.
2256 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
2257 * modulo-sched.c (sms_schedule): Likewise.
2258 (DFA_HISTORY): Likewise.
2259 * opts.c (default_options_optimization): Likewise.
2260 (finish_options): Likewise.
2261 (common_handle_option): Likewise.
2262 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2264 * predict.c (get_hot_bb_threshold): Likewise.
2265 (maybe_hot_count_p): Likewise.
2266 (probably_never_executed): Likewise.
2267 (predictable_edge_p): Likewise.
2268 (predict_loops): Likewise.
2269 (expr_expected_value_1): Likewise.
2270 (tree_predict_by_opcode): Likewise.
2271 (handle_missing_profiles): Likewise.
2272 * reload.c (find_equiv_reg): Likewise.
2273 * reorg.c (redundant_insn): Likewise.
2274 * resource.c (mark_target_live_regs): Likewise.
2275 (incr_ticks_for_insn): Likewise.
2276 * sanopt.c (pass_sanopt::execute): Likewise.
2277 * sched-deps.c (sched_analyze_1): Likewise.
2278 (sched_analyze_2): Likewise.
2279 (sched_analyze_insn): Likewise.
2280 (deps_analyze_insn): Likewise.
2281 * sched-ebb.c (schedule_ebbs): Likewise.
2282 * sched-rgn.c (find_single_block_region): Likewise.
2283 (too_large): Likewise.
2284 (haifa_find_rgns): Likewise.
2285 (extend_rgns): Likewise.
2286 (new_ready): Likewise.
2287 (schedule_region): Likewise.
2288 (sched_rgn_init): Likewise.
2289 * sel-sched-ir.c (make_region_from_loop): Likewise.
2290 * sel-sched-ir.h (MAX_WS): Likewise.
2291 * sel-sched.c (process_pipelined_exprs): Likewise.
2292 (sel_setup_region_sched_flags): Likewise.
2293 * shrink-wrap.c (try_shrink_wrapping): Likewise.
2294 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2295 * toplev.c (print_version): Likewise.
2296 (process_options): Likewise.
2297 * tracer.c (tail_duplicate): Likewise.
2298 * trans-mem.c (tm_log_add): Likewise.
2299 * tree-chrec.c (chrec_fold_plus_1): Likewise.
2300 * tree-data-ref.c (split_constant_offset): Likewise.
2301 (compute_all_dependences): Likewise.
2302 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
2303 * tree-inline.c (remap_gimple_stmt): Likewise.
2304 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
2305 * tree-parloops.c (MIN_PER_THREAD): Likewise.
2306 (create_parallel_loop): Likewise.
2307 * tree-predcom.c (determine_unroll_factor): Likewise.
2308 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
2309 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2310 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2311 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
2312 (dse_optimize_redundant_stores): Likewise.
2313 (dse_classify_store): Likewise.
2314 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2315 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2316 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
2317 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2318 (try_peel_loop): Likewise.
2319 (tree_unroll_loops_completely): Likewise.
2320 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2321 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
2322 (MAX_CONSIDERED_GROUPS): Likewise.
2323 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
2324 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
2325 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
2326 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
2327 (L1_CACHE_SIZE_BYTES): Likewise.
2328 (L2_CACHE_SIZE_BYTES): Likewise.
2329 (should_issue_prefetch_p): Likewise.
2330 (schedule_prefetches): Likewise.
2331 (determine_unroll_factor): Likewise.
2332 (volume_of_references): Likewise.
2333 (add_subscript_strides): Likewise.
2334 (self_reuse_distance): Likewise.
2335 (mem_ref_count_reasonable_p): Likewise.
2336 (insn_to_prefetch_ratio_too_small_p): Likewise.
2337 (loop_prefetch_arrays): Likewise.
2338 (tree_ssa_prefetch_arrays): Likewise.
2339 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
2340 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2341 (convert_mult_to_fma): Likewise.
2342 (math_opts_dom_walker::after_dom_children): Likewise.
2343 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
2344 (hoist_adjacent_loads): Likewise.
2345 (gate_hoist_loads): Likewise.
2346 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2347 (compute_partial_antic_aux): Likewise.
2348 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
2349 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
2350 (vn_reference_lookup): Likewise.
2351 (do_rpo_vn): Likewise.
2352 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
2353 * tree-ssa-sink.c (select_best_block): Likewise.
2354 * tree-ssa-strlen.c (new_stridx): Likewise.
2355 (new_addr_stridx): Likewise.
2356 (get_range_strlen_dynamic): Likewise.
2357 (class ssa_name_limit_t): Likewise.
2358 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
2359 (create_variable_info_for_1): Likewise.
2360 (init_alias_vars): Likewise.
2361 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
2362 (tail_merge_optimize): Likewise.
2363 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
2364 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
2365 (thread_jumps::find_jump_threads_backwards): Likewise.
2366 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
2367 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
2368 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
2369 (jump_table_cluster::can_be_handled): Likewise.
2370 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
2371 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
2372 (param_switch_conversion_branch_ratio): Likewise.
2373 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
2374 (vect_enhance_data_refs_alignment): Likewise.
2375 (vect_prune_runtime_alias_test_list): Likewise.
2376 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
2377 (vect_get_datarefs_in_loop): Likewise.
2378 (vect_analyze_loop): Likewise.
2379 * tree-vect-slp.c (vect_slp_bb): Likewise.
2380 * tree-vectorizer.h: Likewise.
2381 * tree-vrp.c (find_switch_asserts): Likewise.
2382 (vrp_prop::check_mem_ref): Likewise.
2383 * tree.c (wide_int_to_tree_1): Likewise.
2384 (cache_integer_cst): Likewise.
2385 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
2386 (reverse_op): Likewise.
2387 (vt_find_locations): Likewise.
2389 2019-11-12 Martin Liska <mliska@suse.cz>
2391 * Makefile.in: Include params.opt.
2392 * flag-types.h (enum parloops_schedule_type): Add
2393 parloops_schedule_type used in params.opt.
2394 * params.opt: New file.
2396 2019-11-12 Martin Liska <mliska@suse.cz>
2398 * common.opt: Remove --param and --param= options.
2399 * opt-functions.awk: Mark CL_PARAMS for options
2400 that have Param keyword.
2401 * opts-common.c (decode_cmdline_options_to_array):
2402 Replace --param key=value with --param=key=value.
2403 * opts.c (print_filtered_help): Remove special
2405 (print_specific_help): Update title for params.
2406 (common_handle_option): Do not handle OPT__param.
2407 opts.h (SET_OPTION_IF_UNSET): New macro.
2408 * doc/options.texi: Document Param keyword.
2410 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2411 Frederik Harwath <frederik@codesourcery.com>
2412 Thomas Schwinge <thomas@codesourcery.com>
2415 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
2416 enumeration constant.
2417 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2418 (is_gimple_omp_offloaded): Likewise.
2419 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
2420 constant. Adjust the value of ORT_NONE accordingly.
2421 (is_gimple_stmt): Handle OACC_SERIAL.
2422 (oacc_default_clause): Handle ORT_ACC_SERIAL.
2423 (gomp_needs_data_present): Likewise.
2424 (gimplify_adjust_omp_clauses): Likewise.
2425 (gimplify_omp_workshare): Handle OACC_SERIAL.
2426 (gimplify_expr): Likewise.
2427 * omp-expand.c (expand_omp_target):
2428 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2429 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
2430 * omp-low.c (is_oacc_parallel): Rename function to...
2431 (is_oacc_parallel_or_serial): ... this.
2432 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2433 (scan_sharing_clauses): Adjust accordingly.
2434 (scan_omp_for): Likewise.
2435 (lower_oacc_head_mark): Likewise.
2436 (convert_from_firstprivate_int): Likewise.
2437 (lower_omp_target): Likewise.
2438 (check_omp_nesting_restrictions): Handle
2439 GF_OMP_TARGET_KIND_OACC_SERIAL.
2440 (lower_oacc_reductions): Likewise.
2441 (lower_omp_target): Likewise.
2442 * tree.def (OACC_SERIAL): New tree code.
2443 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
2445 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
2447 2019-11-12 Jakub Jelinek <jakub@redhat.com>
2450 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
2451 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
2453 PR tree-optimization/92452
2454 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
2455 into NULL_TREE, set up_bound to NULL_TREE instead of computing
2458 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
2460 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
2463 2019-11-12 Alan Modra <amodra@gmail.com>
2465 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
2466 element of unspec vec.
2467 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
2469 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
2470 (tls_gd_pcrel, tls_ld_pcrel): New insns.
2471 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
2472 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
2474 2019-11-12 Alan Modra <amodra@gmail.com>
2476 * config/rs6000/rs6000.opt (mtls-markers): Delete.
2477 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
2478 (IS_NOMARK_TLSGETADDR): Likewise.
2479 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
2480 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
2481 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
2482 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
2483 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
2484 (rs6000_indirect_call_template_1): Likewise.
2485 (rs6000_pltseq_template): Likewise.
2486 (rs6000_opt_vars): Remove "tls-markers" entry.
2487 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
2489 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
2490 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
2491 (pltseq_plt_pcrel<mode>): Likewise.
2492 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
2493 (call_value_local64): Likewise.
2494 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
2495 output and length attribute sub-expression.
2496 (call_value_nonlocal_sysv<mode>),
2497 (call_value_nonlocal_sysv_secure<mode>),
2498 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
2499 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
2500 (call_value_indirect_pcrel<mode>): Likewise.
2501 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
2502 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
2503 * configure: Regenerate.
2504 * config.in: Regenerate.
2506 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
2508 * config/rs6000/predicates.md (prefixed_memory): New predicate.
2509 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
2510 address being a prefixed load/store.
2511 (stack_protect_testdi): Deal with either address being a prefixed
2514 2019-11-11 Jakub Jelinek <jakub@redhat.com>
2517 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
2518 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
2521 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
2523 PR tree-optimization/92420
2524 * tree-vect-stmts.c (get_negative_load_store_type): Move further
2526 (get_group_load_store_type): Use it for reversed SLP accesses.
2528 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
2530 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
2532 (ipcp_transformation_t::duplicate): Break out from ...
2533 (ipa_node_params_t::duplicate): ... here; add copying of agg
2535 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
2536 (ipcp_transformation_t): Add duplicate.
2538 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
2541 * doc/install.texi: Document that the minimum MPFR version is
2544 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
2546 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
2547 use new register constraint letters.
2549 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
2551 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
2552 as well, if interesting recover the symbol and re-legitimize the
2555 2019-11-11 Martin Liska <mliska@suse.cz>
2557 * dbgcnt.def (DEBUG_COUNTER): Sort counters
2560 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
2562 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
2563 account when checking if there are enough iterations to vectorize
2566 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
2567 Kwok Cheung Yeung <kcy@codesourcery.com>
2569 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
2570 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
2571 (LANG_HOOKS_DECLS): Rename also here.
2572 * langhooks.h (lang_hooks_for_decls): Rename
2573 omp_is_optional_argument to omp_check_optional_argument; take
2574 additional bool argument.
2575 * omp-general.h (omp_check_optional_argument): Likewise.
2576 * omp-general.h (omp_check_optional_argument): Likewise.
2577 * omp-low.c (lower_omp_target): Update calls; handle absent
2578 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
2580 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
2583 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
2584 -fPIC and -shared the last to create offload image.
2586 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
2588 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
2591 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
2592 (config.status): Use/depend on it.
2593 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
2594 * configure: Regenerate.
2596 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
2598 PR tree-optimization/88760
2599 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
2600 * gcc/common/config/rs6000/rs6000-common.c
2601 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
2602 Turn on -funroll-loops and -munroll-only-small-loops.
2603 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
2604 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2605 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
2606 Turn off -munroll-only-small-loops for explicit -funroll-loops.
2607 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
2608 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
2610 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
2612 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
2613 Make scalar_load, vector_load, unaligned_load and
2614 vector_gather_load cost more to conform hardware latency and
2617 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
2619 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
2620 (MACHO_SYMBOL_LINKER_VIS_P): New.
2622 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
2624 * lra-spills.c (assign_spill_hard_regs): Do not spill into
2625 registers in eliminable_regset.
2627 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2629 * ipa-inline.c (compute_uninlined_call_time,
2630 compute_inlined_call_time): Take edge frequency as
2631 parameter rather than computing it by itself.
2632 (big_speedup_p, edge_badness): Manually CSE sreal
2633 frequency calculations.
2635 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2637 * profile-count.c (profile_count::to_sreal_scale): Short circuit
2638 case where profiles are same.
2640 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2642 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
2644 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2646 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
2647 args summaries of inlined edge unless it holds info about
2648 described reference.
2650 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2652 * config/rs6000/rs6000.md (CC_any): New mode iterator.
2653 (*movcc_internal1): Rename to...
2654 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
2656 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2658 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
2659 (cgraph_node::create_virtual_clone): Copy it.
2660 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
2662 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
2663 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
2665 (propagate_constants_across_call): If callee is not analyzed, give up.
2666 (propagate_constants_topo): Lower to bottom latties of all callees of
2667 functions with ipa-cp disabled.
2668 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
2669 (cgraph_edge_brings_value_p): Check for availability first.
2670 (create_specialized_node): Set ipcp_clone.
2671 (ipcp_store_bits_results): Check that info is present.
2672 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
2674 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
2675 conservative when callee summary is missing.
2676 (remap_edge_summaries): Lookup call summary only when needed.
2677 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
2678 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
2680 (ipa_analyze_node): Use get_create.
2681 (propagate_controlled_uses): Do not propagate when function is not
2683 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
2684 (ipa_read_node_info): Use get_create.
2685 * ipa-prop.h (IPA_NODE_REF): Use get.
2686 (IPA_NODE_REF_GET_CREATE): New.
2688 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2690 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
2693 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2695 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
2696 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
2697 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
2698 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
2700 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2702 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
2703 capping the growth cumulated.
2704 (offline_size): Break out from ...
2705 (estimate_growth): ... here.
2706 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
2708 (growth_likely_positive): Turn to ...
2709 (growth_positive_p): Re-implement.
2710 * ipa-inline.h (growth_likely_positive): Remove.
2711 (growth_positive_p): Declare.
2712 * ipa-inline.c (want_inline_small_function_p): Use
2714 (want_inline_function_to_all_callers_p): Likewise.
2716 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2718 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
2719 calculation of min_size.
2720 (ipa_update_overall_fn_summary): Likewise.
2722 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2724 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
2725 estimate_edge_devirt_benefit when not computing hints;
2726 do not compute time when not asked for.
2727 (estimate_calls_size_and_time): Pass NULL hints and time when
2728 these are not computed; do not evaluate hint predicates when these are
2730 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
2733 2019-11-09 Jakub Jelinek <jakub@redhat.com>
2735 PR tree-optimization/92401
2736 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
2737 if res_op->code is an expression with code length 1.
2738 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
2739 if res_op->code is an expression with code length 2.
2740 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
2741 if res_op->code is an expression with code length 3.
2743 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
2745 * config/darwin.c (machopic_mcount_stub_name): Validate the
2746 symbol stub name when it is created.
2747 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
2750 2019-11-09 Jakub Jelinek <jakub@redhat.com>
2752 * symtab.c: Fix comment typos.
2753 * cgraphunit.c: Likewise.
2754 * cgraph.h: Likewise.
2755 * cgraphclones.c: Likewise.
2756 * cgraph.c: Likewise.
2757 * varpool.c: Likewise.
2758 * tree-ssa-strlen.c: Likewise.
2759 * ipa-sra.c: Likewise.
2760 (scan_expr_access, check_all_callers_for_issues): Fix typo
2763 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
2765 * config/darwin-protos.h: Add include quard.
2767 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
2769 * range-op.h (range_operator::fold_range): Return result in a
2770 reference parameter instead of by value.
2771 (range_operator::wi_fold): Same.
2772 * range-op.cc (range_operator::wi_fold): Return result in a reference
2773 parameter instead of by value.
2774 (range_operator::fold_range): Same.
2775 (value_range_from_overflowed_bounds): Same.
2776 (value_range_with_overflow): Same
2777 (create_possibly_reversed_range): Same.
2778 (operator_equal::fold_range): Same.
2779 (operator_not_equal::fold_range): Same.
2780 (operator_lt::fold_range): Same.
2781 (operator_le::fold_range): Same.
2782 (operator_gt::fold_range): Same.
2783 (operator_ge::fold_range): Same.
2784 (operator_plus::wi_fold): Same.
2785 (operator_plus::op1_range): Change call to fold_range.
2786 (operator_plus::op2_range): Change call to fold_range.
2787 (operator_minus::wi_fold): Return result via reference parameter.
2788 (operator_minus::op1_range): Change call to fold_range.
2789 (operator_minus::op2_range): Change call to fold_range.
2790 (operator_min::wi_fold): Return result via reference parameter.
2791 (operator_max::wi_fold): Same.
2792 (cross_product_operator::wi_cross_product): Same.
2793 (operator_mult::wi_fold): Same.
2794 (operator_div::wi_fold): Same.
2795 (operator_div op_floor_div): Fix whitespace.
2796 (operator_exact_divide::op1_range): Change call to fold_range.
2797 (operator_lshift::fold_range): Return result via reference parameter.
2798 (operator_lshift::wi_fold): Same.
2799 (operator_rshift::fold_range): Same.
2800 (operator_rshift::wi_fold): Same.
2801 (operator_cast::fold_range): Same.
2802 (operator_cast::op1_range): Change calls to fold_range.
2803 (operator_logical_and::fold_range): Return result via reference.
2804 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
2805 (operator_bitwise_and::wi_fold): Return result via reference.
2806 (operator_logical_or::fold_range): Same.
2807 (operator_bitwise_or::wi_fold): Same.
2808 (operator_bitwise_xor::wi_fold): Same.
2809 (operator_trunc_mod::wi_fold): Same.
2810 (operator_logical_not::fold_range): Same.
2811 (operator_bitwise_not::fold_range): Same.
2812 (operator_bitwise_not::op1_range): Change call to fold_range.
2813 (operator_cst::fold_range): Return result via reference.
2814 (operator_identity::fold_range): Same.
2815 (operator_abs::wi_fold): Same.
2816 (operator_absu::wi_fold): Same.
2817 (operator_negate::fold_range): Same.
2818 (operator_negate::op1_range): Change call to fold_range.
2819 (operator_addr_expr::fold_range): Return result via reference.
2820 (operator_addr_expr::op1_range): Change call to fold_range.
2821 (operator_pointer_plus::wi_fold): Return result via reference.
2822 (operator_pointer_min_max::wi_fold): Same.
2823 (operator_pointer_and::wi_fold): Same.
2824 (operator_pointer_or::wi_fold): Same.
2825 (range_op_handler): Change call to fold_range.
2827 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
2829 (range_fold_unary_symbolics_p): Same.
2830 (range_fold_binary_expr): Same.
2831 (range_fold_unary_expr): Same.
2833 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2835 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
2836 vector type as an argument rather than reading it from the
2838 (vect_create_epilog_for_reduction): Update accordingly.
2839 (vectorizable_reduction): Likewise.
2840 (vect_transform_cycle_phi): Likewise.
2842 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
2844 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
2845 the comparison codes that make sense for the mode used, and only the
2846 codes that can be done with a single branch instruction.
2848 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2850 PR tree-optimization/92351
2851 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
2852 peeling the main loop for alignment, make sure to set the misalignment
2853 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
2855 2019-11-08 Richard Biener <rguenther@suse.de>
2857 * dbgcnt.def (ivopts_loop): Add.
2858 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
2859 ivopts_loop before optimizing a loop.
2861 2019-11-08 Richard Biener <rguenther@suse.de>
2864 * tree-inline.c (declare_return_variable): Properly handle
2865 type mismatches for the return slot.
2867 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
2870 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
2871 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
2873 (got_helper_needed): New static variable.
2874 (output_load_pcrel_sym): New function.
2875 (get_pc_thunk_name): Remove after inlining...
2876 (load_got_register): ...here. Rework the initialization of the GOT
2877 register and of the GOT helper.
2878 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
2879 (sparc_file_end): Test got_helper_needed to decide whether the GOT
2880 helper must be emitted. Use output_asm_insn instead of fprintf.
2881 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
2882 if optimization is enabled.
2883 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
2884 by calling output_load_pcrel_sym.
2886 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2888 * tree-sra.c (create_access): Delay disqualifying the base
2889 for poly_int values until we know we have a base.
2891 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2893 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
2894 for loops with SIMDUID set. Enable epilogue vectorization for loops
2895 with SIMDLEN set after finding a main loop with a VF that matches it.
2897 2019-11-08 Jakub Jelinek <jakub@redhat.com>
2900 * gimple-ssa-store-merging.c (find_constituent_stores): For return
2901 value only, return non-NULL if there is a single non-clobber
2902 constituent store even if there are constituent clobbers and return
2903 one of clobber constituent stores if all constituent stores are
2905 (split_group): Handle clobbers.
2906 (imm_store_chain_info::output_merged_store): When computing
2907 bzero_first, look after all clobbers at the start. Don't count
2908 clobber stmts in orig_num_stmts, except if the first orig store is
2909 a clobber covering the whole area and split_stores cover the whole
2910 area, consider equal number of stmts ok. Punt if split_stores
2911 contains only ->orig stores and their number plus number of original
2912 clobbers is equal to original number of stmts. For ->orig, look past
2913 clobbers in the constituent stores.
2914 (imm_store_chain_info::output_merged_stores): Don't remove clobber
2916 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
2918 (store_valid_for_store_merging_p): Allow clobber stmts.
2919 (verify_clear_bit_region_be): Fix up a thinko in function comment.
2922 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
2923 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
2925 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
2926 force creation of a unique data.stack_parm slot.
2928 2019-11-08 Richard Biener <rguenther@suse.de>
2930 * genmatch.c (expr::gen_transform): Use the resimplify
2931 member function instead of hard-coding the gimple_resimplifyN variant.
2932 (dt_simplify::gen_1): Likewise.
2934 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2936 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2939 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2941 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
2942 instead of INTEGER_CST.
2944 2019-11-08 Richard Biener <rguenther@suse.de>
2946 PR tree-optimization/92324
2947 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2948 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
2949 sign-conversions as necessary.
2950 (vectorizable_reduction): Reject conversions in the chain
2951 that are not sign-conversions, base analysis on a non-converting
2952 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
2953 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
2955 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
2956 (STMT_VINFO_REDUC_VECTYPE): Likewise.
2958 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
2961 * config/avr/avr.opt (-mdouble=, -mlong-double=):
2962 Fix a missing '-' when displaying these options in the
2965 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2967 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
2969 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2971 * config/aarch64/aarch64-builtins.c
2972 (aarch64_builtin_vectorized_function): Remove bswap handling.
2974 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2976 * tree-core.h (tree_type_common::indivisible_p): New member variable.
2977 * tree.h (TYPE_INDIVISIBLE_P): New macro.
2978 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2979 Treat the vector types as indivisible.
2981 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2983 * optabs.def (gather_load_optab, mask_gather_load_optab)
2984 (scatter_store_optab, mask_scatter_store_optab): Turn into
2985 conversion optabs, with the offset mode given explicitly.
2986 * doc/md.texi: Update accordingly.
2987 * config/aarch64/aarch64-sve-builtins-base.cc
2988 (svld1_gather_impl::expand): Likewise.
2989 (svst1_scatter_impl::expand): Likewise.
2990 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
2991 (expand_scatter_store_optab_fn): Likewise.
2992 (direct_gather_load_optab_supported_p): Likewise.
2993 (direct_scatter_store_optab_supported_p): Likewise.
2994 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
2996 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
2997 (internal_gather_scatter_fn_supported_p): Replace the offset sign
2998 argument with the offset vector type. Require the two vector
2999 types to have the same number of elements but allow their element
3000 sizes to be different. Treat the optabs as conversion optabs.
3001 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
3002 prototype accordingly.
3003 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
3004 (supports_vec_convert_optab_p): ...this new function.
3005 (supports_vec_gather_load_p): Update accordingly.
3006 (supports_vec_scatter_store_p): Likewise.
3007 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
3008 Replace the offset sign and bits parameters with a scalar type tree.
3009 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
3010 Pass back the offset vector type instead of the scalar element type.
3011 Allow the offset to be wider than the memory elements. Search for
3012 an offset type that the target supports, stopping once we've
3013 reached the maximum of the element size and pointer size.
3014 Update call to internal_gather_scatter_fn_supported_p.
3015 (vect_check_gather_scatter): Update calls accordingly.
3016 When testing a new scale before knowing the final offset type,
3017 check whether the scale is supported for any signed or unsigned
3018 offset type. Check whether the target supports the source and
3019 target types of a conversion before deciding whether to look
3020 through the conversion. Record the chosen offset_vectype.
3021 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
3022 (vect_recog_gather_scatter_pattern): Get the scalar offset type
3023 directly from the gs_info's offset_vectype instead. Pass a zero
3024 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
3025 * tree-vect-stmts.c (check_load_store_masking): Update call to
3026 internal_gather_scatter_fn_supported_p, passing the offset vector
3027 type recorded in the gs_info.
3028 (vect_truncate_gather_scatter_offset): Update call to
3029 vect_check_gather_scatter, leaving it to search for a valid
3031 (vect_use_strided_gather_scatters_p): Convert the offset to the
3032 element type of the gs_info's offset_vectype.
3033 (vect_get_gather_scatter_ops): Get the offset vector type directly
3035 (vect_get_strided_load_store_ops): Likewise.
3036 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
3037 and IFN_MASK_GATHER_LOAD.
3038 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
3039 (gather_load<mode><v_int_equiv>): ...this.
3040 (mask_gather_load<mode>): Rename to...
3041 (mask_gather_load<mode><v_int_equiv>): ...this.
3042 (scatter_store<mode>): Rename to...
3043 (scatter_store<mode><v_int_equiv>): ...this.
3044 (mask_scatter_store<mode>): Rename to...
3045 (mask_scatter_store<mode><v_int_equiv>): ...this.
3047 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
3050 * config/rs6000/predicates.md
3051 (signed_or_equality_comparison_operator): New predicate.
3052 (unsigned_or_equality_comparison_operator): Likewise.
3053 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
3054 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
3055 * config/rs6000/vector.md
3056 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
3057 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
3058 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
3059 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
3060 vector modes and same-size integer vector modes.
3061 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
3062 (vector_lt<mode> for VEC_F): New expand.
3063 (vector_le<mode> for VEC_F): Likewise.
3064 (vector_ne<mode> for VEC_F): Likewise.
3065 (vector_unge<mode> for VEC_F): Likewise.
3066 (vector_ungt<mode> for VEC_F): Likewise.
3067 (vector_unle<mode> for VEC_F): Likewise.
3068 (vector_unlt<mode> for VEC_F): Likewise.
3069 (vector_uneq<mode>): Expose name.
3070 (vector_ltgt<mode>): Likewise.
3071 (vector_unordered<mode>): Likewise.
3072 (vector_ordered<mode>): Likewise.
3074 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
3077 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
3078 Enhance ix86_expand_vector_init_concat.
3080 2019-11-08 Joseph Myers <joseph@codesourcery.com>
3082 * doc/invoke.texi (-Wold-style-definition): Document () not being
3083 considered an old-style definition for C2x.
3085 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
3087 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
3089 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
3090 insn patterns using ldcw instruction.
3091 (memory_barrier): Remove insn pattern using sync instruction.
3092 * config/pa/pa.opt (coherent-ldcw): New option.
3093 (ordered): New option.
3095 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3097 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
3100 2019-11-07 Jakub Jelinek <jakub@redhat.com>
3102 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
3103 typo - mistmatch -> mismatch.
3104 * ipa-profile.c (ipa_profile): Likewise.
3105 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
3106 - mistmatch -> mismatch.
3108 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3110 * simplify-rtx.c (comparison_to_mask): New function.
3111 (mask_to_comparison): New function.
3112 (simplify_logical_relational_operation): New function.
3113 (simplify_binary_operation_1): Call
3114 simplify_logical_relational_operation.
3116 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
3119 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
3120 modes for integer constants.
3122 2019-11-07 Jan Hubicka <jh@suse.cz>
3125 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
3128 2019-11-07 Jan Hubicka <jh@suse.cz>
3130 * optc-save-gen.awk: Generate cl_target_option_free
3131 and cl_optimization_option_free.
3132 * opth-en.awk: Declare cl_target_option_free
3133 and cl_optimization_option_free.
3134 * tree.c (free_node): Use it.
3136 2019-11-06 Jan Hubicka <jh@suse.cz>
3138 * lto-streamer-in.c: Include alloc-pool.h.
3139 (freeing_string_slot_hasher): Remove.
3140 (string_slot_allocator): New object allocator.
3141 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
3142 (file_name_obstack): New obstack.
3143 (canon_file_name): Allocate in obstack and allocator.
3144 (lto_reader_init): Initialize obstack and allocator.
3145 (lto_free_file_name_hash): New function.
3146 * lto-streamer.h (lto_free_file_name_hash): New.
3148 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
3150 PR tree-optimization/89134
3151 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
3152 * params.def: Add min-loop-cond-split-prob.
3153 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
3154 outside checks on loop into the function.
3155 (split_info): New class.
3156 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
3157 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
3158 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
3159 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
3160 (stmt_semi_invariant_p, branch_removable_p): Likewise.
3161 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
3162 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
3163 (split_loop_on_cond): Likewise.
3164 (tree_ssa_split_loops): Add loop split on conditional statement.
3166 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
3168 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
3171 2019-11-07 Richard Biener <rguenther@suse.de>
3173 PR tree-optimization/92405
3174 * tree-vect-loop.c (vectorizable_reduction): Appropriately
3175 restrict lane-reducing ops to single stmt chains.
3177 2019-11-07 Martin Jambor <mjambor@suse.cz>
3180 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
3181 * cgraph.h (gimple_check_call_matching_types): Remove
3182 * cgraph.c (gimple_check_call_args): Likewise.
3183 (gimple_check_call_matching_types): Likewise.
3184 (symbol_table::create_edge): Do not call
3185 gimple_check_call_matching_types.
3186 (cgraph_edge::make_direct): Likewise.
3187 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3188 * value-prof.h (check_ic_target): Remove.
3189 * value-prof.c (check_ic_target): Remove.
3190 (gimple_ic_transform): Do nat call check_ic_target.
3191 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
3192 (afdo_indirect_call): Likewise.
3193 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
3194 gimple_check_call_matching_types.
3195 * ipa-inline.c (early_inliner): Likewise.
3197 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3199 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
3200 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
3201 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
3202 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3203 * config/arm/iterators.md (USSAT16): New int_iterator.
3204 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
3206 * config/arm/predicates.md (ssat16_imm): New predicate.
3207 (usat16_imm): Likewise.
3208 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
3210 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3212 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
3214 (arm_<simd32_op>): New define_expands.
3215 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
3216 __smuad, __smuadx): Define.
3217 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3218 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
3219 (SIMD32_BINOP_Q): Likewise.
3220 (simd32_op): Handle the above.
3221 * config/arm/unspecs.md: Define unspecs for the above.
3223 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3225 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
3226 * config/arm/arm.md (APSRGE_REGNUM): Define.
3227 (arm_<simd32_op>): New define_insn.
3228 (arm_sel): Likewise.
3229 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
3230 (CALL_USED_REGISTERS): Likewise.
3231 (REG_ALLOC_ORDER): Likewise.
3232 (FIRST_PSEUDO_REGISTER): Update value.
3233 (ARM_GE_BITS_READ): Define.
3234 * config/arm/arm.c (arm_conditional_register_usage): Clear
3235 APSRGE_REGNUM from operand_reg_set.
3236 (arm_ge_bits_access): Define.
3237 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
3239 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
3240 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
3241 FAIL if ARM_GE_BITS_READ.
3242 (*arm_add<mode>3): New define_insn.
3243 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
3244 (*arm_sub<mode>3): New define_insn.
3245 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
3246 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
3248 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3249 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
3250 (simd32_op): Handle the above.
3251 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
3252 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
3253 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
3254 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
3256 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3258 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
3259 (arm_smlabb): New define_expand.
3260 (*maddhisi4tb): Rename to...
3261 (maddhisi4tb): ... This.
3262 (*maddhisi4tt): Rename to...
3263 (maddhisi4tt): ... This.
3264 (arm_smlatb_setq): New define_insn.
3265 (arm_smlatb): New define_expand.
3266 (arm_smlatt_setq): New define_insn.
3267 (arm_smlatt): New define_expand.
3268 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
3269 (arm_<smlaw_op>): New define_expand.
3270 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
3271 __smlawb, __smlawt): Define.
3272 * config/arm_acle_builtins.def: Define builtins for the above.
3273 * config/arm/iterators.md (SMLAWBT): New int_iterator.
3274 (slaw_op): New int_attribute.
3275 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
3277 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3279 * config/arm/arm.md (arm_<ss_op>): New define_expand.
3280 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
3281 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
3282 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
3283 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
3284 (ss_op): New code_attr.
3286 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3288 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
3289 * config/arm/arm.md (APSRQ_REGNUM): Define.
3290 (add_setq): New define_subst.
3291 (add_clobber_q_name): New define_subst_attr.
3292 (add_clobber_q_pred): Likewise.
3293 (maddhisi4): Change to define_expand. Split into mult and add if
3295 (arm_maddhisi4): New define_insn.
3296 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
3297 (*maddhisi4tt): Likewise.
3298 (arm_ssat): New define_expand.
3299 (arm_usat): Likewise.
3300 (arm_get_apsr): New define_insn.
3301 (arm_set_apsr): Likewise.
3302 (arm_saturation_occurred): New define_expand.
3303 (arm_set_saturation): Likewise.
3304 (*satsi_<SAT:code>): Rename to...
3305 (satsi_<SAT:code><add_clobber_q_name>): ... This.
3306 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
3307 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
3308 (CALL_USED_REGISTERS): Mark apsrq.
3309 (FIRST_PSEUDO_REGISTER): Update value.
3310 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
3311 (machine_function): Add q_bit_access.
3312 (ARM_Q_BIT_READ): Define.
3313 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
3314 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
3316 (arm_q_bit_access): Define.
3317 * config/arm/arm-builtins.c: Include stringpool.h.
3318 (arm_sat_binop_imm_qualifiers,
3319 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
3320 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
3321 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
3322 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
3323 SET_SAT_QUALIFIERS): Likewise.
3324 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
3325 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
3326 Handle 0 argument expander.
3327 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
3328 (arm_check_builtin_call): Define.
3329 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
3330 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
3331 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
3332 (arm_q_bit_access): Likewise.
3333 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
3334 __saturation_occurred, __set_saturation_occurred): Define.
3335 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
3336 saturation_occurred, set_saturation_occurred.
3337 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
3338 (UNSPEC_APSR_READ): Likewise.
3339 (VUNSPEC_APSR_WRITE): Likewise.
3340 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
3341 (*arm_ssadd<mode>3): New define_insn.
3342 (sssub<mode>3): Convert to define_expand.
3343 (*arm_sssub<mode>3): New define_insn.
3344 (ssmulsa3): Convert to define_expand.
3345 (*arm_ssmulsa3): New define_insn.
3346 (usmulusa3): Convert to define_expand.
3347 (*arm_usmulusa3): New define_insn.
3348 (ssmulha3): FAIL if ARM_Q_BIT_READ.
3349 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
3350 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
3352 2019-11-07 Martin Liska <mliska@suse.cz>
3355 * cgraph.c (delete_function_version): Clear global
3356 variable version_info_node if equal to deleted
3359 2019-11-07 Martin Liska <mliska@suse.cz>
3361 * fold-const.c (operand_compare::operand_equal_p): Add comparison
3362 of CONSTRUCTOR_NO_CLEARING.
3363 (operand_compare::hash_operand): Likewise.
3365 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
3367 Support 64-bit double and 64-bit long double configurations.
3370 * config.gcc (tm_defines) [avr]: Set from --with-double=,
3371 --with-long-double=.
3372 * config/avr/t-multilib: Remove.
3373 * config/avr/t-avr: Output of genmultilib.awk is now fully
3374 dynamically generated and no more part of the repo.
3375 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
3376 Pass them down to...
3377 * config/avr/genmultilib.awk: ...here and handle them.
3378 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
3379 (-mlong-double=, avr_long_double). New option and var.
3380 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
3381 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
3382 Set default as requested by --with-double=
3383 (TARGET_HANDLE_OPTION): Define to this...
3384 (avr_handle_option): ...new hook worker.
3385 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
3386 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
3387 (avr_double_lib): New proto for spec function.
3388 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
3389 (DRIVER_SELF_SPECS): Call %:double-lib.
3390 * config/avr/avr.c (avr_option_override): Assert
3391 sizeof(long double) >= sizeof(double) for the target.
3392 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
3393 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
3394 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
3395 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
3396 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
3397 New built-in define depending on --with-double=, --with-long-double=.
3398 * config/avr/driver-avr.c (avr_double_lib): New spec function.
3399 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
3400 * doc/install.texi (Cross-Compiler-Specific Options)
3401 <--with-double=, --with-long-double=>: Doc.
3403 2019-11-07 Richard Biener <rguenther@suse.de>
3405 * dbgcnt.def (gimple_unroll): New.
3406 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
3407 gimple_unroll debug counter before applying transform.
3408 (try_peel_loop): Likewise.
3410 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
3412 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
3413 frame pointer in multiple registers.
3414 (ira_setup_eliminable_regset): Setup eliminable_regset,
3415 ira_no_alloc_regs and regs_ever_live for frame pointer in
3418 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3420 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
3423 2019-11-06 Jan Hubicka <jh@suse.cz>
3425 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
3427 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
3428 Do not silently ignore summary corruptions.
3430 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3432 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
3433 the epilogue if there are peeled iterations for it to handle.
3435 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3437 * config/arc/arc.c (arc_split_ior): Add asserts.
3438 (arc_split_mov_const): Likewise.
3439 (arc_check_ior_const): Do not match known short immediate values.
3440 * config/arc/arc.md (movsi): Don't split predicated instructions
3443 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3445 * config/arc/arc.opt (mea): Update help string.
3446 * doc/invoke.texi(ARC): Update mea option info.
3448 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3450 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
3451 (zero_extendqisi2_ac): Likewise.
3452 (zero_extendhisi2_i): Likewise.
3453 (extendqihi2_i): Likewise.
3454 (extendqisi2_ac): Likewise.
3455 (extendhisi2_i): Likewise.
3457 2019-11-06 Richard Biener <rguenther@suse.de>
3459 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
3460 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
3461 Simplify single_defuse_cycle condition.
3463 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3465 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
3466 epilogue loop, make sure that the VF is small enough or that
3467 the epilogue loop can be fully-masked.
3469 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3471 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
3472 loop when we've finished, rather than returning directly from
3473 the loop. Use a local variable to track whether we're still
3474 searching for the preferred simdlen. Make vect_epilogues
3475 record whether the next iteration should try to treat the
3476 loop as an epilogue.
3478 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
3480 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
3481 __arc_hard_float__, __ARC_HARD_FLOAT__,
3482 __arc_soft_float__, __ARC_SOFT_FLOAT__
3484 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
3486 PR tree-optimization/92317
3487 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
3488 update phi's with constant phi arguments.
3490 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
3491 Alexandre Oliva <oliva@adacore.com>
3493 * common.opt (-fcallgraph-info[=]): New option.
3494 * doc/invoke.texi (Developer options): Document it.
3495 * opts.c (common_handle_option): Handle it.
3496 * builtins.c (expand_builtin_alloca): Record allocation if
3497 -fcallgraph-info=da.
3498 * calls.c (expand_call): If -fcallgraph-info, record the call.
3499 (emit_library_call_value_1): Likewise.
3500 * flag-types.h (enum callgraph_info_type): New type.
3501 * explow.c: Include stringpool.h.
3502 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
3503 * function.c (allocate_stack_usage_info): New.
3504 (allocate_struct_function): Call it for -fcallgraph-info.
3505 (prepare_function_start): Call it otherwise.
3506 (record_final_call, record_dynamic_alloc): New.
3507 * function.h (struct callinfo_callee): New.
3508 (CALLEE_FROM_CGRAPH_P): New.
3509 (struct callinfo_dalloc): New.
3510 (struct stack_usage): Add callees and dallocs.
3511 (record_final_call, record_dynamic_alloc): Declare.
3512 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
3513 object if -fcallgraph-info=da.
3514 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
3515 * print-tree.h (print_decl_identifier): Declare.
3516 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
3517 * print-tree.c: Include print-tree.h.
3518 (print_decl_identifier): New function.
3519 * toplev.c: Include print-tree.h.
3520 (callgraph_info_file): New global variable.
3521 (callgraph_info_external_printed): Likewise.
3522 (output_stack_usage): Rename to...
3523 (output_stack_usage_1): ... this. Make it static, add cf
3524 parameter. If -fcallgraph-info=su, print stack usage to cf.
3525 If -fstack-usage, use print_decl_identifier for
3527 (INDIRECT_CALL_NAME): New.
3528 (dump_final_node_vcg_start): New.
3529 (dump_final_callee_vcg, dump_final_node_vcg): New.
3530 (output_stack_usage): New.
3531 (lang_dependent_init): Open and start file if
3532 -fcallgraph-info. Allocated callgraph_info_external_printed.
3533 (finalize): If callgraph_info_file is not null, finish it,
3534 close it, and release callgraph_info_external_printed.
3536 2019-11-06 Gergö Barany <gergo@codesourcery.com>
3537 Frederik Harwath <frederik@codesourcery.com>
3538 Thomas Schwinge <thomas@codesourcery.com>
3540 * omp-low.c (struct omp_context): New fields
3541 local_reduction_clauses, outer_reduction_clauses.
3542 (new_omp_context): Initialize these.
3543 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
3544 (scan_omp_for): Check reduction clauses for incorrect nesting.
3546 2019-11-06 Jakub Jelinek <jakub@redhat.com>
3549 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
3550 operands with non-memory constraints.
3552 2019-11-05 Martin Sebor <msebor@redhat.com>
3554 PR tree-optimization/92373
3555 * tree.c (component_ref_size): Only consider initializers of objects
3556 of matching struct types.
3557 Return null for instances of interior zero-length arrays.
3559 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
3561 * doc/md.texi (Insn Splitting): Fix combiner documentation.
3563 2019-11-05 Jason Merrill <jason@redhat.com>
3565 PR tree-optimization/91825
3566 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
3568 2019-11-05 Jim Wilson <jimw@sifive.com>
3571 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
3572 optimize_insn_for_speed_p is true.
3574 2019-11-05 Martin Sebor <msebor@redhat.com>
3578 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
3580 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
3581 name and location for a temporary variable.
3583 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3585 * tree-vrp.c (value_range::value_range): Fix whitespace.
3586 (defined_ranges_p): Same.
3587 (range_fold_binary_symbolics_p): Same.
3588 (value_range::intersect_helper): Same.
3589 (value_range::union_helper): Same.
3590 * tree-vrp.h (range_fold_binary_expr): Same.
3592 2019-11-04 Martin Sebor <msebor@redhat.com>
3596 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
3597 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
3598 of message printed in a warning for empty arrays.
3599 (vrp_prop::check_mem_ref): Also handle function parameters and
3602 2019-11-05 Richard Biener <rguenther@suse.de>
3604 PR tree-optimization/92371
3605 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
3606 on the original stmt of live stmts in the chain.
3607 (vectorizable_live_operation): Look at the original stmt when
3608 checking STMT_VINFO_REDUC_DEF.
3610 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3612 * gimple-fold.c, gimple-loop-versioning.cc,
3613 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
3614 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
3615 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
3616 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
3617 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
3618 value_range_equiv, and value_range_base to value_range.
3620 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
3622 * expr.c (build_personality_function): Fix generated type to
3623 match actual personality functions.
3625 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
3627 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
3628 enough bytes for the NULL character.
3630 2019-11-05 Richard Biener <rguenther@suse.de>
3632 PR tree-optimization/92280
3633 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
3634 had a single use do not create a new CTOR.
3635 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
3636 BIT_FIELD_REF of a CTOR via GENERIC.
3638 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
3640 * config/s390/s390.c (s390_vector_alignment): Check if the value
3641 fits into uhwi before using it.
3643 2019-11-05 Martin Liska <mliska@suse.cz>
3645 * symbol-summary.h: Use ggc_delete.
3647 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3649 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
3650 Change vec_perm field to 10.
3652 2019-11-05 Arnaud Charlet <charlet@adacore.com>
3654 * doc/install.texi: Further fix syntax for html generation.
3656 2019-11-05 Martin Liska <mliska@suse.cz>
3658 * symbol-summary.h: Rename allocator to m_allocator and
3661 2019-11-05 Richard Biener <rguenther@suse.de>
3663 PR tree-optimization/92324
3664 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
3665 all signed or unsigned operations.
3667 2019-11-05 Jan Hubicka <jh@suse.cz>
3669 * hsa-brig.c: Include alloc-pool.h
3670 * hsa-dump.c: Likewise.
3671 * hsa-gen.c: Likewise.
3672 * hse-regalloc.c: Likewise.
3673 * ipa-hsa.c: Likewise.
3674 * ipa-predicate.c: Likewise.
3675 * ipa-reference.c: Likewise.
3676 * ipa-sra.c: Likewise.
3677 * omp-expand.c: Likewise.
3678 * omp-general.c: Likewise.
3679 * omp-low.c: Likewise.
3680 * sumbol-summary.h (function_summary_base): Add allocator.
3681 (function_summary<T *>::function_summary): Update construction.
3682 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
3683 (call_summary_base): Add allcator.
3684 (call_summary<T *>::call_summary): Update construction.
3685 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
3687 2019-11-05 Jakub Jelinek <jakub@redhat.com>
3689 PR tree-optimization/91945
3690 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
3691 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
3694 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3696 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
3697 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
3698 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
3699 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
3700 (vrp_set_zero_nonzero_bits): Move to...
3701 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
3702 (vr_values::simplify_bit_ops_using_ranges): Rename
3703 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
3705 2019-11-05 Martin Liska <mliska@suse.cz>
3708 * fold-const.c (operand_compare::hash_operand): Remove
3709 FIELD_DECL handling.
3711 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3713 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
3714 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
3717 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3719 * tree-vrp.c (value_range_base::operator==): Use equal_p to
3720 properly handle symbolics.
3721 (range_compatible_p): Remove.
3723 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
3725 * common.opt (-fabi-version): Document =14.
3726 * doc/invoke.texi (C++ Dialect Options): Likewise.
3728 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3730 * tree-vrp.c (value_range_base::set): Do not special case pointers.
3732 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
3734 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
3735 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3736 gcn_omp_device_kind_arch_isa.
3737 * config/gcn/t-omp-device: New file.
3738 * configure.ac: Support gcn for omp_device_property.
3739 * configure: Regenerate.
3741 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3743 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
3744 (vrp_val_max): Same.
3745 (vrp_val_is_min): Same.
3746 (vrp_val_is_max): Same.
3747 (value_range_base::nonzero_p): Remove last argument to
3749 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
3750 (vrp_val_max): Same.
3751 (vrp_val_is_min): Same.
3752 (vrp_val_is_max): Same.
3753 (value_range_base::set_varying): Remove last argument to vrp_val*.
3754 (value_range_base::dump): Same.
3755 (value_range_base::set): Same.
3756 (value_range_base::normalize_symbolics): Same.
3757 (value_range_base::num_pairs): Same.
3758 (value_range_base::lower_bound): Same.
3759 (value_range_base::upper_bound): Same.
3760 (ranges_from_anti_range): Remove handle_pointers argument.
3761 (value_range_base::singleton_p): Remove last argument to
3762 ranges_from_anti_range.
3764 2019-11-04 Jan Hubicka <jh@suse.cz>
3766 * ipa-reference.c (init_function_info): Initialize
3767 info->global.statics_read.
3769 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3771 * tree-vrp.c (value_range_base::invert): Use constructors to build
3774 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3776 * tree-vrp.c (range_int_cst_singleton_p): Remove.
3777 * tree-vrp.h (range_int_cst_singleton_p): Remove.
3779 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3781 * tree-vrp.c (value_range_base::normalize_addresses): Handle
3784 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3786 * tree-vrp.c (dump_assert_info): New.
3787 (dump_asserts_info): New.
3789 2019-11-04 Jan Hubicka <jh@suse.cz>
3791 * ipa-inline-transform.c: Include ipa-utils.h
3792 (inline_call): Set thunk_expansion flag.
3793 * ipa-utils.h (thunk_expansion): Declare.
3794 * ipa-devirt.c (thunk_expansion): New global var.
3795 (devirt_node_removal_hook): Do not invalidate cache while
3796 doing thunk expansion.
3798 2019-11-04 Tamar Christina <tamar.christina@arm.com>
3800 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
3802 2019-11-04 Martin Sebor <msebor@redhat.com>
3804 PR tree-optimization/92349
3805 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
3806 memebers have constant sizes.
3808 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
3810 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
3812 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
3813 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
3816 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
3818 * expr.c (store_constructor): Modify to handle single element vectors.
3819 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
3821 (vect_slp_check_for_constructors): New function.
3822 (vect_slp_analyze_bb_1): Call new function to check for vector
3824 (vectorize_slp_instance_root_stmt): New function.
3825 (vect_schedule_slp): Call new function to vectorize root stmt of vector
3827 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
3829 2019-11-04 Richard Biener <rguenther@suse.de>
3831 PR tree-optimization/92345
3832 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
3833 we produced a reduction chain.
3834 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
3835 LOOP_VINFO_REDUCTIONS.
3837 2019-11-04 Jan Hubicka <jh@suse.cz>
3839 * cgraphclones.c (cgraph_node::create_version_clone): Do not
3840 duplicate summaries.
3841 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
3843 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
3844 access call summaries.
3845 (dump_ipa_call_summary): Be ready for missing edge summaries.
3846 (analyze_function_body): Use get instead of get_create to access
3848 (estimate_calls_size_and_time): Do not access summaries of
3849 inlined edges; sanity check they are missing.
3850 (ipa_call_context::estimate_size_and_time): Use get instead
3851 of get_create to access node summary.
3852 (inline_update_callee_summaries): Do not update depth of
3854 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
3856 (ipa_merge_fn_summary_after_inlining): Use get instead
3858 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
3859 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
3861 (initialize_growth_caches): Update.
3862 (do_estimate_edge_time): Remove redundant copy of context.
3863 (ipa_remove_from_growth_caches): New function.
3864 * ipa-inline.c (flatten_function): Update overall summary
3865 only when optimizing.
3866 (inline_to_all_callers): Update overall summary of function
3868 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
3869 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
3872 2019-11-04 Richard Biener <rguenther@suse.de>
3874 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
3875 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
3877 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
3879 * ggc-common.c: Include system.h before malloc.h.
3881 2019-11-04 Alexandre Oliva <oliva@adacore.com>
3883 * configure.ac: Pass --enable-obsolete=* and
3884 --enable-option-checking=* down to build configure, and fail
3885 if it fails. AC_SUBST HAVE_AUTO_BUILD.
3886 * configure: Rebuild.
3887 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
3888 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
3890 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3892 * config.in: Regenerate.
3893 * config/msp430/msp430.c (msp430_option_override): Emit an error if
3894 -mtiny-printf is used without GCC being configured with
3895 --enable-newlib-nano-formatted-io.
3896 * config/msp430/msp430.h (LINK_SPEC): Pass
3897 "--wrap puts --wrap printf" when -mtiny-printf is used.
3898 * config/msp430/msp430.opt: Document -mtiny-printf.
3899 * configure: Regenerate.
3900 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
3901 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
3902 --enable-newlib-nano-formatted-io is passed.
3903 * doc/invoke.texi: Document -mtiny-printf.
3905 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3907 * configure: Regenerate.
3909 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3911 * config/msp430/driver-msp430.c
3912 (msp430_get_linker_devices_include_path): New spec function.
3913 * config/msp430/msp430-devices.c (msp430_dirname): New function.
3914 (extract_devices_dir_from_exec_prefix): New function.
3915 (extract_devices_dir_from_collect_gcc): New function.
3916 (msp430_check_env_var_for_devices): New function.
3917 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
3918 (parse_devices_csv): Call msp430_check_env_var_for_devices if
3919 devices.csv was not found using other methods.
3920 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
3922 (msp430_dirname): Likewise.
3923 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
3924 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
3925 msp430_get_linker_devices_include_path.
3926 (TARGET_EXTRA_PRE_INCLUDES): Define.
3927 * doc/invoke.texi: Document new ways of searching for support files.
3929 2019-11-04 Richard Biener <rguenther@suse.de>
3931 PR tree-optimization/92301
3932 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
3933 as required by epilogue generation
3935 2019-11-04 Martin Liska <mliska@suse.cz>
3938 * fold-const.c (operand_compare::hash_operand): Fix field
3939 hashing of CONSTRUCTOR.
3941 2019-11-04 Martin Liska <mliska@suse.cz>
3943 * ggc.h (ggc_delete): New function.
3944 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
3945 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
3946 (ipa_free_all_node_params): Likewise.
3947 * ipa-sra.c (ipa_sra_analysis): Likewise.
3949 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3951 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
3952 set_switch_stmt_execution_predicate, compute_bb_predicates,
3953 will_be_nonconstant_expr_predicate,
3954 phi_result_unknown_predicate,
3955 analyze_function_body): Pass arround params summary.
3956 (ipa_call_context::duplicate_from): New comment;
3957 only duplicate useful values.
3958 (ipa_call_context::equal_to): Only compare useful values.
3959 (remap_edge_summaries): Pass params_summary.
3960 (remap_hint_predicate): Likewise.
3961 (ipa_merge_fn_summary_after_inlining): Likewise.
3962 (inline_read_section): Initialize params summary used flags.
3963 * ipa-predicate.c (predicate::remap_after_inlining): Pass
3964 around param_summary.
3965 (add_condition): Initialized used params summary flags.
3966 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
3967 (inline_param_summary::useless_p): New predicate.
3968 (remap_after_inlining, add_condition): Update prototype
3969 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
3971 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
3973 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
3974 (ipa_analyze_virtual_call_uses): Likewise.
3975 (update_indirect_edges_after_inlining): Update param summaries.
3976 (ipa_print_node_params): Print used flags.
3977 (ipa_read_indirect_edge_info): Update param summareis.
3978 * ipa-prop.h (ipa_param_descriptor): Add
3979 used_by_ipa_predicates, used_by_indirect_call
3980 and used_by_polymorphic_call.
3981 (ipa_set_param_used_by_ipa_predicates,
3982 ipa_set_param_used_by_indirect_call,
3983 ipa_set_param_used_by_polymorphic_call,
3984 ipa_is_param_used_by_ipa_predicates,
3985 ipa_is_param_used_by_indirect_call,
3986 ipa_is_param_used_by_polymorphic_call): New inline functions.
3988 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3990 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
3992 (ipa_call_context::release): Add ALL parameter.
3993 (ipa_call_context::equal_to): New member function.
3994 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
3995 duplicate_form, release, equal_to and exists_p member functoins.
3996 * ipa-inline-analysis.c (node_context_cache_entry): New
3998 (node_context_summary): Likewise.
3999 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
4000 node_context_clear): New static vars.
4001 (initialize_growth_caches): New function.
4002 (free_growth_caches): Also delete node_context_cache; output stats.
4003 (do_estimate_edge_time): Cache contexts.
4004 (reset_node_cache): New function.
4005 * ipa-inline.c (reset_edge_caches): Reset also node cache.
4006 (inline_small_functions): Initialize growth caches.
4007 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
4009 * ipa-predicate.h (inline_param_summary::equal_to): New.
4010 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
4011 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
4012 (ipa_agg_jump_function): Implement equal_to member function.
4014 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4016 * ipa-fnsummary.c (inline_read_section): Set vector size
4019 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4021 * ipa-fnsummary.c (ipa_call_context): New constructor.
4022 (estimate_node_size_and_time): Turn to ...
4023 (ipa_call_context::estimate_size_and_time): ... this one.
4024 (ipa_call_context::release): New.
4025 * ipa-fnsummary.h (ipa_call_context): New class.
4026 (estimate_node_size_and_time): Remove.
4027 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
4028 do_estimate_edge_hints): Update.
4030 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4032 * config.in: Regenerate.
4033 * configure: Regenerate.
4034 * configure.ac: Check for mallinfo.
4035 * ggc-common.c: Include malloc.h if available;
4037 (report_heap_memory_use): New functoin.
4038 * ggc-page.c (ggc_grow): Do not print "start".
4039 * ggc.h (report_heap_memory_use): Declare.
4040 * pases.c (execute_one_pass): Report memory after IPA passes.
4041 (ipa_read_summaries_1): Likewise.
4042 (ipa_read_optimization_summaries_1): Likewise.
4044 2019-11-02 Jakub Jelinek <jakub@redhat.com>
4046 * gimplify.h (omp_construct_selector_matches): Change return
4047 type to int, add a new SCORES argument.
4048 * gimplify.c (omp_construct_selector_matches): Likewise. If
4049 SCORES is non-NULL, compute scores of each construct.
4050 * omp-general.h (omp_get_context_selector): Declare.
4051 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
4052 Adjust omp_construct_selector_matches callers.
4053 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
4054 (omp_context_compute_score): New function.
4055 (omp_resolve_declare_variant): Compute scores and decide based on
4059 * configure.ac: Don't look for omp-device-properties files from
4060 installed offloading compilers. Instead add tmake_file snippets
4061 for configured offloading targets and use files they generate.
4062 * Makefile.in (install): Don't depend on
4063 install-omp-device-properties.
4064 (install-omp-device-properties): Remove goal.
4065 * config/i386/t-omp-device: New file.
4066 * config/i386/t-intelmic (omp-device-properties): Remove goal.
4067 * config/nvptx/t-omp-device: New file.
4068 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
4069 * configure: Regenerated.
4071 * omp-general.h (omp_context_selector_set_compare): Declare.
4072 * omp-general.c (omp_construct_simd_compare,
4073 omp_context_selector_props_compare, omp_context_selector_set_compare,
4074 omp_context_selector_compare): New functions.
4075 (omp_resolve_declare_variant): Prune variants that are strict subset
4078 2019-11-01 Martin Sebor <msebor@redhat.com>
4084 * doc/invoke.texi (-Wzero-length-bounds): Document.
4085 * gimple-match-head.c (try_conditional_simplification): Use memcpy
4086 instead of a hand-rolled loop to avoid PR 92323.
4087 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
4089 (vrp_prop::check_mem_ref): Handle declared struct objects.
4090 * tree.c (last_field): New function.
4091 (array_at_struct_end_p): Handle MEM_REF.
4092 (get_initializer_for): New helper.
4093 (component_ref_size): Add argument. Rename locals. Call
4094 get_initializer_for instead of fold_ctor_reference. Correct handling
4095 of flexible array members.
4096 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
4098 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4100 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
4101 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
4102 UNSPEC_VSX_CVSPUXDS): Remove.
4103 (vsx_xvcvspdp): New define_expand, old define_insn split to...
4104 (vsx_xvcvspdp_be): ... this. New. And...
4105 (vsx_xvcvspdp_le): ... this. New.
4106 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
4107 (vsx_xvcv<su>xwdp_be): ... this. New. And...
4108 (vsx_xvcv<su>xwdp_le): ... this. New.
4109 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
4110 (vsx_xvcvsp<su>xds_be): ... this. New. And...
4111 (vsx_xvcvsp<su>xds_le): ... this. New.
4113 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4115 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
4116 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
4117 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
4118 UNSPEC_VSX_XVCVSPSXWS): Remove.
4119 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
4120 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
4122 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4124 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
4125 (UNSPEC_VSX_XVCDPSP): Remove.
4126 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
4127 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
4129 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4131 * hooks.c (hook_tree_tree_bool_null): New.
4132 * hooks.h (hook_tree_tree_bool_null): Declare.
4133 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
4134 (LANG_HOOKS_DECLS): Add it.
4135 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
4136 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
4137 (lower_omp_target): Handle Fortran array with descriptor in
4138 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
4140 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
4142 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4143 Assert that the type we store in abi_vector_types is its own
4145 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
4147 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4149 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
4150 from a CONST_INT address when TARGET_THUMB2.
4152 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4154 * config/arm/arm.md (add_not_cin): New insn.
4155 (add_not_shift_cin): Likewise.
4157 2019-10-31 Martin Liska <mliska@suse.cz>
4159 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
4160 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
4161 and compare_memory_operand.
4163 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4165 * configure.ac: Compute and substitute omp_device_properties and
4166 omp_device_property_deps.
4167 * Makefile.in (generated_files): Add omp-device-properties.h.
4168 (omp-general.o): Depend on omp-device-properties.h.
4169 (omp_device_properties): New make variable.
4170 (omp-device-properties.h, s-omp-device-properties-h,
4171 install-omp-device-properties): New goals.
4172 (install): Depend on install-omp-device-properties for accelerators.
4173 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
4174 * target.h (enum omp_device_kind_arch_isa): New enum.
4175 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
4177 * omp-general.c: Include omp-device-properties.h.
4178 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
4179 colon instead of comma.
4180 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
4182 (omp_context_selector_matches): Implement device set arch/isa
4183 selectors, improve device set kind selector handling.
4184 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
4185 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
4186 TARGET_SIMD_CLONE_USABLE): Formatting fix.
4187 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4188 ix86_omp_device_kind_arch_isa.
4189 * config/i386/i386-options.c (struct ix86_target_opts): Move type
4190 definition from ix86_target_string to file scope.
4191 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
4193 (ix86_omp_device_kind_arch_isa): New function.
4194 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
4195 isa_opts definitions to file scope.
4196 * config/i386/t-intelmic (omp-device-properties): New goal.
4197 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
4198 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
4199 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4200 nvptx_omp_device_kind_arch_isa.
4201 * configure: Regenerate.
4202 * doc/tm.texi: Regenerate.
4205 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
4206 DECL_BUILT_IN in comment. Remove redundant ()s around return
4208 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
4209 before calling fndecl_built_in_p.
4210 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
4211 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
4212 fndecl_built_in_p on it.
4214 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4216 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
4218 2019-10-31 Martin Liska <mliska@suse.cz>
4220 * config/arm/arm.c (arm_get_pcs_model): Remove usage
4221 of cgraph_local_info and use local_info_node instead.
4222 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
4223 (bfin_function_ok_for_sibcall): Likewise.
4224 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
4225 (must_reload_pic_reg_p): Likewise.
4227 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4230 * tree.h (type_initializer_zero_p): Remove.
4231 * tree.c (type_initializer_zero_p): Remove.
4233 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4235 * doc/invoke.texi (-Wshadow, -Wshadow=global
4236 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
4238 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4240 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
4241 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
4242 and 'target exit data'.
4244 2019-10-30 Martin Jambor <mjambor@suse.cz>
4247 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
4248 availability comparison.
4250 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4252 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
4253 calls to __mspabi_mpy* functions.
4254 * config/msp430/msp430.md (mulhisi3): New define_expand.
4255 (umulhisi3): New define_expand.
4256 (*mulhisi3_inline): Use old mulhisi3 define_insn.
4257 (*umulhisi3_inline): Use old umulhisi3 define_insn.
4259 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4261 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
4262 (msp430_check_plus_not_high_mem): New.
4263 (msp430_op_not_in_high_mem): Use new functions to check if the operand
4264 might be in low memory.
4265 Indicate that a 16-bit absolute address is in lower memory.
4267 2019-10-30 Martin Jambor <mjambor@suse.cz>
4269 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
4270 ultimate_alias_target.
4272 2019-10-30 Richard Biener <rguenther@suse.de>
4274 PR tree-optimization/92275
4275 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
4276 Copy all loop-closed PHIs.
4278 2019-10-30 Martin Liska <mliska@suse.cz>
4280 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
4281 const_tree as function argument.
4282 (func_checker::compare_decl): Likewise.
4283 (func_checker::operand_equal_p): Likewise.
4284 (func_checker::compare_variable_decl): Likewise.
4285 (func_checker::parse_labels): Likewise.
4286 * ipa-icf-gimple.h: Likewise.
4288 2019-10-30 Martin Liska <mliska@suse.cz>
4290 * ipa-icf-gimple.c (func_checker::compatible_types_p):
4291 Do not compare alias sets. It's handled by operand_equal_p.
4293 2019-10-30 Martin Liska <mliska@suse.cz>
4295 * ipa-icf-gimple.c (func_checker::func_checker): Do not
4296 initialize m_compare_polymorphic.
4297 (func_checker::compare_decl): Do not compare polymorphic types.
4298 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
4299 * ipa-icf.c (sem_function::equals_private): Do not call
4300 compare_polymorphic_p.
4302 2019-10-30 Martin Liska <mliska@suse.cz>
4304 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
4306 (func_checker::compare_memory_operand): Remove.
4307 (func_checker::compare_cst_or_decl): Remove.
4308 (func_checker::operand_equal_valueize): Do not handle
4310 (func_checker::compare_gimple_call): Call compare_operand.
4311 (func_checker::compare_gimple_assign): Likewise.
4312 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
4313 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
4314 * ipa-icf.h (icf_handled_component_p): Remove.
4316 2019-10-30 Martin Liska <mliska@suse.cz>
4318 * ipa-icf-gimple.c (func_checker::hash_operand): New.
4319 (func_checker::compare_cst_or_decl): Remove handling
4321 (func_checker::compare_operand): Transform to ...
4322 (func_checker::operand_equal_p): ... this.
4323 * ipa-icf-gimple.h (class func_checker): Add
4324 operand_equal_p and hash_operand.
4325 * ipa-icf.c (sem_function::equals_private): Fix
4326 pushing and popping of cfun.
4328 2019-10-30 Martin Liska <mliska@suse.cz>
4330 * fold-const.c (operand_equal_p): Move to ...
4331 (operand_compare::operand_equal_p): ... here.
4332 (operand_compare::verify_hash_value): New.
4333 (add_expr): Move to ...
4334 (operand_compare::hash_operand): ... here.
4335 * fold-const.h (operand_equal_p): Move to the class.
4336 (class operand_compare): New.
4337 * tree.c (add_expr): Remove.
4339 2019-10-30 Martin Liska <mliska@suse.cz>
4341 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
4342 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
4344 2019-10-30 Martin Liska <mliska@suse.cz>
4348 * cgraph.c (cgraph_node::get_create): Overwrite node->order
4349 from a first_clone in order to get proper LTO section
4351 (cgraph_node::get_untransformed_body):
4352 Use lto_get_section_data where symtab_node::order
4354 * cgraphclones.c (cgraph_node::find_replacement):
4355 Update also symbol order.
4356 * ipa-fnsummary.c (ipa_fn_summary_read):
4357 Use new function lto_get_summary_section_data.
4358 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
4359 * ipa-icf.c (sem_item_optimizer::read_summary):
4361 * ipa-prop.c (ipa_prop_read_jump_functions):
4363 (ipcp_read_transformation_summaries): Likewise.
4364 * ipa-sra.c (ipa_sra_read_summary): Likewise.
4365 * lto-cgraph.c (input_node): Add also order_base.
4366 (input_varpool_node): Likewise.
4367 (input_cgraph_1): Assign the order_base.
4368 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
4369 * lto-opts.c (lto_write_options): Pass new argument.
4370 * lto-section-in.c (lto_get_section_data): Add new argumente order.
4371 (lto_get_summary_section_data): New.
4372 (lto_get_raw_section_data): Add order argument.
4373 (lto_create_simple_input_block): Likewise.
4374 * lto-section-out.c (lto_destroy_simple_output_block):
4376 * lto-streamer-in.c (lto_input_toplevel_asms):
4377 Use lto_get_summary_section_data.
4378 (lto_input_mode_table): Likewise.
4379 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
4380 (lto_output_toplevel_asms): Pass new argument.
4381 (copy_function_or_variable): Likewise.
4382 (produce_lto_section):Likewise.
4383 (produce_symtab): Likewise.
4384 (lto_write_mode_table): Likewise.
4385 (produce_asm_for_decls): Likewise.
4386 * lto-streamer.c (lto_get_section_name): Concat symbol name
4388 * lto-streamer.h (lto_get_section_data): Add order argument.
4389 (lto_get_summary_section_data): New.
4390 (lto_get_raw_section_data): Add order argument.
4391 (lto_get_section_name): Likewise.
4392 * varpool.c (varpool_node::get_constructor): Pass order argument.
4394 2019-10-30 Jakub Jelinek <jakub@redhat.com>
4396 PR tree-optimization/92262
4397 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
4398 ubase or cbase here.
4399 (remove_unused_ivs): Unshare comp before using it.
4401 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
4403 * ipa-prop.c (update_jump_functions_after_inlining):
4404 Watch for missing summaries.
4406 2019-10-30 Richard Biener <rguenther@suse.de>
4408 PR tree-optimization/65930
4409 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
4410 chains also allow a leading and trailing conversion.
4411 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
4412 intermediate reduction chains.
4413 (vect_analyze_slp_instance): Likewise. Build a SLP
4414 node for a trailing conversion manually.
4416 2019-10-30 Martin Liska <mliska@suse.cz>
4418 * cgraph.c (cgraph_node::local_info): Transform to ...
4419 (cgraph_node::local_info_node): ... this.
4420 (cgraph_node::dump): Remove cgraph_local_info and
4421 put its fields directly into cgraph_node.
4422 (cgraph_node::get_availability): Likewise.
4423 (cgraph_node::make_local): Likewise.
4424 (cgraph_node::verify_node): Likewise.
4425 * cgraph.h (struct GTY): Likewise.
4426 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
4427 (duplicate_thunk_for_node): Likewise.
4428 (cgraph_node::create_clone): Likewise.
4429 (cgraph_node::create_virtual_clone): Likewise.
4430 (cgraph_node::create_version_clone): Likewise.
4431 * cgraphunit.c (cgraph_node::reset): Likewise.
4432 (cgraph_node::finalize_function): Likewise.
4433 (cgraph_node::add_new_function): Likewise.
4434 (analyze_functions): Likewise.
4435 * combine.c (setup_incoming_promotions): Likewise.
4436 * config/i386/i386.c (ix86_function_regparm): Likewise.
4437 (ix86_function_sseregparm): Likewise.
4438 (init_cumulative_args): Likewise.
4439 * ipa-cp.c (determine_versionability): Likewise.
4440 (count_callers): Likewise.
4441 (set_single_call_flag): Likewise.
4442 (initialize_node_lattices): Likewise.
4443 (estimate_local_effects): Likewise.
4444 (create_specialized_node): Likewise.
4445 (identify_dead_nodes): Likewise.
4446 * ipa-fnsummary.c (compute_fn_summary): Likewise.
4447 (ipa_fn_summary_generate): Likewise.
4448 * ipa-hsa.c (check_warn_node_versionable): Likewise.
4449 (process_hsa_functions): Likewise.
4450 * ipa-icf.c (set_local): Likewise.
4451 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
4452 * ipa-inline.c (speculation_useful_p): Likewise.
4453 * ipa-profile.c (ipa_propagate_frequency): Likewise.
4454 (ipa_profile): Likewise.
4455 * ipa-split.c (split_function): Likewise.
4456 (execute_split_functions): Likewise.
4457 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
4458 (ipa_sra_ipa_function_checks): Likewise.
4459 * ipa-visibility.c (function_and_variable_visibility): Likewise.
4460 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4461 * lto-cgraph.c (lto_output_node): Likewise.
4462 (input_overwrite_node): Likewise.
4463 * multiple_target.c (expand_target_clones): Likewise.
4464 * omp-simd-clone.c (simd_clone_create): Likewise.
4465 * trans-mem.c (expand_call_tm): Likewise.
4466 (ipa_tm_mayenterirr_function): Likewise.
4467 (ipa_tm_diagnose_tm_safe): Likewise.
4468 (ipa_tm_diagnose_transaction): Likewise.
4469 (ipa_tm_create_version): Likewise.
4470 (ipa_tm_transform_calls_redirect): Likewise.
4471 (ipa_tm_execute): Likewise.
4472 * tree-inline.c (expand_call_inline): Likewise.
4474 2019-10-29 Martin Liska <mliska@suse.cz>
4476 * symbol-summary.h (function_summary): Pass memory location
4477 to underlaying hash_map (or vec).
4478 (V>::fast_function_summary): Likewise.
4480 2019-10-29 Martin Liska <mliska@suse.cz>
4482 * ggc.h (ggc_alloc_no_dtor): New function.
4483 * ipa-fnsummary.c (ipa_free_fn_summary): Call
4484 destructor and ggc_free.
4485 (ipa_free_size_summary): Call delete instead
4487 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
4488 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
4489 (ipa_free_all_edge_args): Call destructor and ggc_free.
4490 (ipa_free_all_node_params): Likewise.
4491 (ipcp_free_transformation_sum): Likewise.
4492 * ipa-prop.h (ipa_check_create_node_params):
4493 Call new ggc_alloc_no_dtor.
4494 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
4495 (ipa_sra_analysis): Call destructor and ggc_free.
4496 Replace release with delete operator.
4497 * symbol-summary.h (release): Remove ..
4498 (V>::~fast_function_summary): and move logic here.
4499 Likewise for other classes.
4501 2019-10-29 Richard Biener <rguenther@suse.de>
4503 PR tree-optimization/92260
4504 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
4507 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
4509 PR tree-optimization/88915
4510 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
4511 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
4512 and make the valueize function pointer also take a void pointer.
4513 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
4514 around vn_valueize, to call it without a context.
4515 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
4516 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
4517 (~_loop_vec_info): Release epilogue_vinfos.
4518 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
4519 number of iterations of epilogue.
4520 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
4521 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
4522 versioning threshold needed for main loop.
4523 (vect_analyze_loop): Likewise.
4524 (find_in_mapping): New helper function.
4525 (update_epilogue_loop_vinfo): New function.
4526 (vect_transform_loop): When vectorizing epilogues re-use analysis done
4527 on main loop and call update_epilogue_loop_vinfo to update it.
4528 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
4529 stmts on loop preheader edge.
4530 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
4531 we decided to vectorize epilogues. Update epilogues NITERS and
4532 construct ADVANCE to update epilogues data references where needed.
4533 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
4534 (vect_do_peeling, vect_update_inits_of_drs,
4535 determine_peel_for_niter, vect_analyze_loop): Add or update
4537 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
4538 created loop_vec_info's for epilogues when available. Otherwise analyse
4539 epilogue separately.
4541 2019-10-29 Richard Biener <rguenther@suse.de>
4543 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
4546 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4548 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
4549 index for the COND_EXPR from stmt_info rather than reduc_info.
4551 2019-10-29 Richard Biener <rguenther@suse.de>
4553 PR tree-optimization/65930
4554 * tree-vect-loop.c (check_reduction_path): Relax single-use
4555 check allowing out-of-loop uses.
4556 (vect_is_simple_reduction): SLP reduction chains cannot have
4557 intermediate stmts used outside of the loop.
4558 (vect_create_epilog_for_reduction): The adjustment might need
4560 (vectorizable_reduction): Annotate live stmts of the reduction
4561 chain with STMT_VINFO_REDUC_DEF.
4562 * tree-vect-stms.c (process_use): Remove no longer true asserts.
4564 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4566 * calls.c (pass_by_reference): Leave the target to decide whether
4567 POLY_INT_CST-sized arguments should be passed by value or reference,
4568 rather than forcing them to be passed by reference.
4569 (must_pass_in_stack_var_size): Likewise.
4570 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
4571 V31_REGNUM to P15_REGNUM.
4572 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
4573 Take an extra "silent_p" parameter, defaulting to false.
4574 (aarch64_sve::svbool_type_p): Declare.
4575 (aarch64_sve::nvectors_if_data_type): Likewise.
4576 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
4577 (aarch64_frame::reg_offset): Turn into poly_int64s.
4578 (aarch64_frame::save_regs_size): Likewise.
4579 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
4580 (aarch64_frame::sve_callee_adjust): Likewise.
4581 (aarch64_frame::spare_reg_reg): Likewise.
4582 (ARM_PCS_SVE): New arm_pcs value.
4583 (CUMULATIVE_ARGS::aapcs_nprn): New field.
4584 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
4585 (CUMULATIVE_ARGS::silent_p): Likewise.
4586 (BITS_PER_SVE_PRED): New macro.
4587 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
4588 function. Reject aarch64_vector_pcs attributes on SVE functions.
4589 (aarch64_attribute_table): Use the above handler.
4590 (aarch64_sve_abi): New function.
4591 (aarch64_sve_argument_p): Likewise.
4592 (aarch64_returns_value_in_sve_regs_p): Likewise.
4593 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
4594 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
4595 descriptor for them.
4596 (aarch64_simd_decl_p): Delete.
4597 (aarch64_emit_cfi_for_reg_p): New function.
4598 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
4599 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
4600 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
4601 as partly clobbered for the SVE PCS.
4602 (aarch64_function_ok_for_sibcall): Check whether the two functions
4603 use the same ABI, rather than checking specifically for whether
4604 they're aarch64_vector_pcs functions.
4605 (aarch64_pass_by_reference): Raise an error for attempts to pass
4606 SVE arguments when SVE is disabled. Pass SVE arguments by reference
4607 if there are not enough free registers left, or if the argument is
4609 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
4610 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
4612 (aarch64_layout_arg): Take a function_arg_info rather than
4613 individual properties. Handle SVE predicates, vectors and tuples.
4614 Raise an error if they are passed to unprototyped functions.
4615 (aarch64_function_arg): If the silent_p flag is set, suppress the
4616 usual error about using float registers without TARGET_FLOAT.
4617 (aarch64_init_cumulative_args): Take a silent_p parameter and store
4618 it in the cumulative_args structure. Initialize aapcs_nprn and
4619 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
4620 error about using float registers without TARGET_FLOAT.
4621 If the silent_p flag is not set, also raise an error about
4622 using SVE functions when SVE is disabled.
4623 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
4624 and call it for SVE functions too. Update aapcs_nprn similarly
4625 to the other register counts.
4626 (aarch64_layout_frame): If a big-endian function needs to save
4627 and restore Z8-Z15, search for a spare predicate that it can use.
4628 Store SVE predicates at the bottom of the register save area,
4629 followed by SVE vectors, then followed by the normal slots.
4630 Keep pointing the hard frame pointer at the base of the normal slots,
4631 above the SVE vectors. Update the various frame creation and
4632 tear-down strategies for the new layout, initializing the new
4633 sve_callee_adjust field. Add an additional layout for frames
4634 whose saved registers are all SVE registers.
4635 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
4636 (aarch64_return_address_signing_enabled): Likewise.
4637 (aarch64_push_regs, aarch64_pop_regs): Update calls to
4638 aarch64_reg_save_mode.
4639 (aarch64_adjust_sve_callee_save_base): New function.
4640 (aarch64_add_cfa_expression): Move earlier in file. Take the
4641 saved register as an rtx rather than a register number and use
4642 its mode for the MEM slot.
4643 (aarch64_save_callee_saves): Remove the mode argument and instead
4644 use aarch64_reg_save_mode to get the mode of each save slot.
4645 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
4646 offsets. Allow GP offsets to be saved at a VL-based offset from
4647 the stack, handling this case using the frame pointer if available
4648 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
4649 big-endian SVE functions; use normal moves for other SVE saves.
4650 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
4651 returns true. Add explicit CFA notes when not storing via the
4652 stack pointer. Do not try to pair SVE saves.
4653 (aarch64_restore_callee_saves): Cope with poly_int64 register
4654 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
4655 use normal moves for other SVE restores. Only add CFA restore notes
4656 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
4658 (aarch64_get_separate_components): Always keep the first SVE save
4659 in the prologue if we need to use it as a stack probe. Don't allow
4660 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
4661 Likewise the spare predicate register that they need. Update the
4662 offset calculation to account for the SVE save area. Use the
4663 appropriate range check for SVE LDR and STR instructions.
4664 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
4665 (aarch64_process_components): Likewise. Update the offset
4666 calculation to account for the SVE save area. Only mark the
4667 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
4668 Do not try to pair SVE saves.
4669 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
4670 reg_offsets. When handling the final allocation, expect the
4671 first SVE register save to be part of the initial allocation
4672 and for it to act as a probe at SP. Account for the SVE callee
4673 save area in the dump information.
4674 (aarch64_expand_prologue): Update the frame diagram. Fold the
4675 SVE callee allocation into the initial allocation if stack clash
4676 protection is enabled. Use new variables to track the offset
4677 of the frame chain (and hard frame pointer) from the current
4678 stack pointer, and likewise the offset of the bottom of the
4679 register save area. Update calls to aarch64_save_callee_saves
4680 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
4681 saving the FP&SIMD registers. Save the predicate registers.
4682 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
4683 into account when setting the stack pointer from the frame pointer,
4684 and when deciding whether we can inherit the initial adjustment
4685 amount from the prologue. Restore the predicate registers after
4686 the vector registers, then apply sve_callee_adjust, then restore
4687 the general registers.
4688 (aarch64_secondary_reload): Don't use secondary SVE reloads
4690 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
4691 (aarch64_short_vector_p): Return false for SVE types.
4692 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
4693 at the start of the function. Return false for SVE types.
4694 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
4696 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
4697 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
4698 to big-endian targets for bytewise moves.
4699 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
4701 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4702 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4703 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4705 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
4706 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
4707 aarch64-sve-builtins-base.o to extra_objs. Add
4708 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
4709 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
4710 (aarch64-sve-builtins-shapes.o): Likewise.
4711 (aarch64-sve-builtins-base.o): New rules.
4712 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
4713 (aarch64_resolve_overloaded_builtin): Likewise.
4714 (aarch64_check_builtin_call): Likewise.
4715 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
4716 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
4718 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
4719 (aarch64_svprfop): New enum.
4720 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
4721 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
4722 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
4723 (aarch64_output_sve_cnt_pat_immediate): Likewise.
4724 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
4725 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
4726 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
4727 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
4728 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
4729 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
4730 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
4731 (aarch64_sve::mangle_builtin_type): Likewise.
4732 (aarch64_sve::resolve_overloaded_builtin): Likewise.
4733 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
4734 (aarch64_sve::expand_builtin): Likewise.
4735 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
4736 (aarch64_sve_int_mode): Likewise.
4737 (aarch64_ptrue_all_mode): New function.
4738 (aarch64_convert_sve_data_to_pred): Make public.
4739 (svprfop_token): New function.
4740 (aarch64_output_sve_prefetch): Likewise.
4741 (aarch64_fold_sve_cnt_pat): Likewise.
4742 (aarch64_output_sve_cnt_pat_immediate): Likewise.
4743 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
4744 instead of gen_while_ult.
4745 (aarch64_replace_reg_mode): Make public.
4746 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
4747 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
4748 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
4749 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
4750 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
4751 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
4752 (aarch64_sve_ptrue_svpattern_p): Likewise.
4753 (aarch64_sve_pred_valid_immediate): Check
4754 aarch64_sve_ptrue_svpattern_p.
4755 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
4756 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
4758 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
4759 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
4760 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
4761 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
4762 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
4763 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
4765 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
4766 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
4767 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
4768 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
4769 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
4770 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
4771 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
4772 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
4773 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
4774 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
4775 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
4776 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
4777 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
4778 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
4779 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
4780 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
4781 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
4782 (Vesize): Handle partial vector modes.
4783 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
4785 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
4787 (s, paired_extend, inc_dec): New code attributes.
4788 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
4789 (SVE_INT_UNARY): Add UNSPEC_RBIT.
4790 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
4791 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
4792 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
4793 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4795 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
4796 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
4797 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4798 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
4799 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
4800 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
4801 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
4802 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
4803 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
4804 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
4805 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
4806 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
4807 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
4808 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
4809 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
4810 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
4812 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4813 (binqops_op, binqops_op_rev, last_op): New int attributes.
4814 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
4815 (fn, ab): New int attributes.
4816 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
4817 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
4818 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
4819 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
4821 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
4822 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
4823 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
4824 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
4825 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4827 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
4828 (brk_reg_con, brk_reg_opno): New int attributes.
4829 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
4830 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
4831 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
4833 (max_elem_bits): New int attribute.
4834 (min_elem_bits): Handle UNSPEC_RBIT.
4835 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
4836 TRUNCATE as well as SUBREG.
4837 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
4838 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
4839 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
4840 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
4841 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
4842 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
4843 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
4844 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
4845 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
4846 (aarch64_gather_scale_operand_h): New predicates.
4847 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
4848 (vgd, vgh, vgw, vsQ, vsS): New constraints.
4849 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
4850 (*aarch64_sve_reinterpret<mode>): Allow any source register
4851 instead of requiring an exact match.
4852 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
4853 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
4854 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
4855 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
4856 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
4857 (aarch64_update_ffrt): New patterns.
4858 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4859 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4860 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4861 (@aarch64_ld<fn>f1<mode>): New patterns.
4862 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4863 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4864 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4865 (@aarch64_ldnt1<mode>): New patterns.
4866 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4867 the scalar part of the address.
4868 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
4869 scalar part of the addresse and add an alternative for handling
4871 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4872 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
4873 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4874 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4875 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4876 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4877 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
4878 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
4879 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4880 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4881 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4882 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4883 (@aarch64_sve_prefetch<mode>): New patterns.
4884 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
4885 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
4886 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
4887 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
4888 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
4889 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4890 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4891 (@aarch64_stnt1<mode>): New patterns.
4892 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4893 the scalar part of the address.
4894 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
4895 the scalar part of the addresse and add an alternative for handling
4897 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4898 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
4899 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4900 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4901 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
4902 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
4904 (vec_duplicate<mode>): Use QI as the mode of the input operand.
4905 (extract_last_<mode>): Generalize to...
4906 (@extract_<LAST:last_op>_<mode>): ...this.
4907 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
4908 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
4909 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
4910 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
4911 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
4912 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
4913 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
4914 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
4915 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
4916 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
4917 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
4918 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
4919 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
4920 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
4921 (*aarch64_adr_uxtw_unspec): Likewise.
4922 (*aarch64_adr_uxtw): Rename to...
4923 (*aarch64_adr_uxtw_and): ...this.
4924 (@aarch64_adr<mode>_shift): New expander.
4925 (*aarch64_adr_shift_sxtw): New pattern.
4926 (aarch64_<su>abd<mode>_3): Rename to...
4927 (@aarch64_pred_<su>abd<mode>): ...this.
4928 (<su>abd<mode>_3): Update accordingly.
4929 (@aarch64_cond_<su>abd<mode>): New expander.
4930 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
4931 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
4932 (*<su>mul<mode>3_highpart): Rename to...
4933 (@aarch64_pred_<optab><mode>): ...this.
4934 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
4935 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
4936 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
4937 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
4938 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
4939 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
4940 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
4941 (*v<ASHIFT:optab><mode>3): Rename to...
4942 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
4943 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
4944 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
4945 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
4946 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
4947 (@cond_asrd<mode>): New expander.
4948 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
4949 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
4950 (*sdiv_pow2<mode>3): Delete.
4951 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
4952 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
4953 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
4954 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
4955 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
4956 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
4957 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
4958 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
4959 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
4960 (*add<SVE_F:mode>3): Rename to...
4961 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
4963 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
4964 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
4965 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
4966 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
4967 (*sub<SVE_F:mode>3): Rename to...
4968 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
4970 (@aarch64_pred_abd<SVE_F:mode>): New expander.
4971 (*fabd<SVE_F:mode>3): Rename to...
4972 (*aarch64_pred_abd<SVE_F:mode>): ...this.
4973 (@aarch64_cond_abd<SVE_F:mode>): New expander.
4974 (*mul<SVE_F:mode>3): Rename to...
4975 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
4977 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
4978 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
4980 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
4981 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
4982 (*<nlogical><PRED_ALL:mode>3): Rename to...
4983 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
4984 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
4985 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
4986 (*<logical_nn><PRED_ALL:mode>3): Rename to...
4987 (aarch64_pred_<logical_nn><mode>_z): ...this.
4988 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
4989 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
4990 (*fma<SVE_I:mode>4): Rename to...
4991 (@aarch64_pred_fma<SVE_I:mode>): ...this.
4992 (*fnma<SVE_I:mode>4): Rename to...
4993 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
4994 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
4995 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
4996 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
4997 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
4998 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
4999 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
5000 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
5001 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
5002 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
5003 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
5004 (@aarch64_sve_tmad<mode>): Likewise.
5005 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
5006 (*aarch64_sel_dup<mode>): Rename to...
5007 (@aarch64_sel_dup<mode>): ...this.
5008 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
5009 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
5010 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
5011 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
5012 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
5013 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
5014 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
5015 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
5016 (*fcm<cmp_op><mode>): Rename to...
5017 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
5018 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5019 (*fcmuo<mode>): Rename to...
5020 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
5021 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5022 (@aarch64_pred_fac<cmp_op><mode>): New expander.
5023 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
5024 (fold_extract_last_<mode>): Generalize to...
5025 (@fold_extract_<last_op>_<mode>): ...this.
5026 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
5027 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
5028 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
5029 DImode result explicit.
5030 (reduc_plus_scal_<mode>): Update accordingly.
5031 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
5032 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
5033 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
5034 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
5035 (*aarch64_sve_tbl<mode>): Rename to...
5036 (@aarch64_sve_tbl<mode>): ...this.
5037 (@aarch64_sve_compact<mode>): New pattern.
5038 (*aarch64_sve_dup_lane<mode>): Rename to...
5039 (@aarch64_sve_dup_lane<mode>): ...this.
5040 (@aarch64_sve_dupq_lane<mode>): New pattern.
5041 (@aarch64_sve_splice<mode>): Likewise.
5042 (aarch64_sve_<perm_insn><mode>): Rename to...
5043 (@aarch64_sve_<perm_insn><mode>): ...this.
5044 (*aarch64_sve_ext<mode>): Rename to...
5045 (@aarch64_sve_ext<mode>): ...this.
5046 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
5047 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
5049 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
5050 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5052 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5054 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
5055 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
5056 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
5057 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
5059 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
5060 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
5062 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
5063 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
5064 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
5066 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
5067 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
5068 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
5069 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
5070 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
5072 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
5073 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
5074 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
5075 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
5076 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
5077 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
5078 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
5079 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
5080 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
5081 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
5082 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
5083 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
5084 (aarch64_sve_cnt_pat): Likewise.
5085 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5086 (*aarch64_sve_incsi_pat): Likewise.
5087 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5088 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5089 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5090 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5091 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5092 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5093 (*aarch64_sve_decsi_pat): Likewise.
5094 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5095 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5096 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5097 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5098 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5099 (@aarch64_pred_cntp<mode>): Likewise.
5100 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5102 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5103 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5104 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5106 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5108 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
5109 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5110 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
5111 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5112 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
5113 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5114 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5116 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5117 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5118 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5120 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5122 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
5124 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5125 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
5127 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5128 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
5130 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5131 * config/aarch64/arm_sve.h: New file.
5132 * config/aarch64/aarch64-sve-builtins.h: Likewise.
5133 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
5134 * config/aarch64/aarch64-sve-builtins.def: Likewise.
5135 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
5136 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
5137 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
5138 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
5139 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
5140 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
5142 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5144 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
5146 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
5149 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5151 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
5152 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
5154 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
5155 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
5156 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
5157 (aarch64_hard_regno_nregs): Handle the new register classes.
5158 (aarch64_hard_regno_mode_ok): Likewise.
5159 (aarch64_regno_regclass): Likewise.
5160 (aarch64_class_max_nregs): Likewise.
5161 (aarch64_register_move_cost): Likewise.
5162 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
5163 as general register_operands.
5165 2019-10-29 Martin Liska <mliska@suse.cz>
5167 * ggc-common.c: One can't subtract unsigned types
5168 in compare function.
5170 2019-10-29 Martin Liska <mliska@suse.cz>
5172 * cgraphunit.c (symbol_table::compile): Pass
5173 title as dump_memory_report argument.
5174 * toplev.c (dump_memory_report): New argument.
5175 (finalize): Pass new argument.
5176 * toplev.h (dump_memory_report): Add argument.
5178 2019-10-29 Martin Liska <mliska@suse.cz>
5180 * ggc-common.c: Move Leak to the first column.
5182 2019-10-29 Martin Liska <mliska@suse.cz>
5184 * cgraphunit.c (symbol_table::compile): Remove argument
5185 for dump_memory_report.
5186 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
5187 (compare_final): Remove in order to make report
5189 * ggc.h (dump_ggc_loc_statistics): Remove argument.
5190 * mem-stats.h (mem_alloc_description::get_list):
5192 (mem_alloc_description::dump): Likewise here.
5193 * toplev.c (dump_memory_report): Remove final
5195 (finalize): Likewise.
5196 * toplev.h (dump_memory_report): Remove argument.
5198 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5200 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
5201 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
5202 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
5203 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
5206 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5208 * coretypes.h (string_int_pair): New typedef.
5209 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
5210 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
5211 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
5213 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5215 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
5216 (simulate_builtin_function_decl): Declare.
5217 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
5218 (LANG_HOOKS_INITIALIZER): Include it.
5219 * langhooks.c (add_builtin_function_common): Rename to...
5220 (build_builtin_function): ...this. Add a location parameter and use
5221 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
5223 (add_builtin_function): Update accordingly, passing the returned
5224 decl to the lang hook.
5225 (add_builtin_function_ext_scope): Likewise
5226 (simulate_builtin_function_decl): New function.
5228 2019-10-29 Jakub Jelinek <jakub@redhat.com>
5230 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
5231 example, use actual names of supported offload targets.
5234 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
5236 2019-10-28 Martin Sebor <msebor@redhat.com>
5238 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
5239 (handle_store): Pass argument to get_addr_stridx.
5241 2019-10-28 Martin Sebor <msebor@redhat.com>
5243 PR tree-optimization/92226
5244 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
5245 the offset is in the open range outlined by SI's length.
5247 2019-10-28 Martin Sebor <msebor@redhat.com>
5250 * doc/cpp.texi (__has_builtin): Document.
5251 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
5253 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5256 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
5257 doubleword and low doubleword result of multiplication on
5260 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
5261 pure qualifier to the built-in.
5262 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
5264 (struct mips_builtin_description): Add is_pure flag.
5265 (mips_init_builtins): Mark built-in as pure if the flag in the
5266 corresponding mips_builtin_description struct is set.
5268 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
5269 alternative which covers the floating-point input value. Also
5270 forbid the split of insert.d pattern for floating-point values.
5272 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
5274 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
5275 * config/riscv/riscv-sr.c: New file.
5276 * config/riscv/riscv.c (riscv_reorg): New function.
5277 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5278 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
5279 (riscv_remove_unneeded_save_restore_calls): Declare.
5280 * config/riscv/t-riscv (riscv-sr.o): New build rule.
5282 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5284 PR tree-optimization/92163
5285 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
5286 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
5287 before calling bitmap_set_bit.
5288 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
5289 delete_dead_or_redundant_assignment.
5290 (dse_dom_walker::dse_optimize_stmt): Likewise.
5291 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
5293 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5296 * tree-vect-stmts.c (vectorizable_condition): Support
5297 EXTRACT_LAST_REDUCTION with fully-masked loops.
5299 2019-10-28 Richard Biener <rguenther@suse.de>
5301 PR tree-optimization/92252
5302 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
5303 STMT_VINFO_REDUC_IDX when swapping operands.
5305 2019-10-28 Richard Biener <rguenther@suse.de>
5307 PR tree-optimization/92241
5308 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
5309 we failed to update the reduction index do not use the pattern
5310 stmts for the reduction chain.
5311 (vectorizable_reduction): When the reduction chain is corrupt,
5313 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
5314 fail to update the reduction chain.
5316 2019-10-28 Richard Biener <rguenther@suse.de>
5318 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5319 STMT_VINFO_REDUC_IDX from the actual stmt.
5320 (vect_transform_reduction): Likewise.
5321 (vectorizable_reduction): Compute the reduction chain length,
5322 do not recompute the reduction operand index. Remove no longer
5323 necessary restriction for condition reduction chains.
5325 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5328 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
5329 condition for V2DImode.
5331 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5333 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
5334 Remove %k operand modifier.
5335 (*vec_extractv2df_1_sse): Remove %q operand modifier.
5337 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
5339 PR rtl-optimization/92007
5340 * cfgcleanup.c (thread_jump): Add an assertion that we don't
5341 call it after reload if hot/cold partitioning has been done.
5342 (class pass_postreload_jump): Rename to
5343 pass_jump_after_combine.
5344 (make_pass_postreload_jump): Rename to
5345 make_pass_jump_after_combine.
5346 * passes.def(pass_postreload_jump): Move before reload, rename
5347 to pass_jump_after_combine.
5348 * tree-pass.h (make_pass_postreload_jump): Rename to
5349 make_pass_jump_after_combine.
5351 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
5354 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
5355 for missing EDGE_REF
5356 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
5358 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
5360 PR tree-optimization/88760
5361 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
5362 Enable -funroll-loops for -O2 and above.
5363 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
5364 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
5365 do not turn on web and rngreg implicitly, if the unroller is not
5368 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5370 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
5373 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
5375 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
5376 * cgraph.h (cgraph_node::rtl_info): Likewise.
5378 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5380 * ipa-cp.c (propagate_constants_across_call): If args are not available
5381 just drop everything to varying.
5382 (find_aggregate_values_for_callers_subset): Watch for missing
5384 (find_more_scalar_values_for_callers_subs): Likewise.
5385 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
5386 update_jump_functions_after_inlining, propagate_controlled_uses):
5387 Watch for missing summaries.
5388 (ipa_propagate_indirect_call_infos): Remove summary after propagation
5390 (ipa_write_node_info): Watch for missing summaries.
5391 (ipa_read_edge_info): Create new ref.
5392 (ipa_edge_args_sum_t): Add remove.
5393 (IPA_EDGE_REF_GET_CREATE): New macro.
5394 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
5396 (remap_edge_change_prob): Likewise.
5398 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5400 * ipa-inline-transform.c (inline_call): update function summaries
5401 after expanidng thunk.
5403 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5405 * ipa-icf.c (sem_function::merge): Update function summaries.
5406 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
5408 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
5410 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
5411 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
5412 operand already has scalar mode.
5413 (iptr): Remove SF/DF.
5415 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
5418 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
5419 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
5422 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
5424 * config/i386/sse.md
5425 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
5426 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
5427 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
5428 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
5429 <sse>_vmmaskcmp<mode>3):
5430 Change predicates from vector_operand to nonimmediate_operand,
5431 constraints xBm to xm, since scalar operations don't need
5432 memory address alignment.
5433 (avx512f_vmcmp<mode>3<round_saeonly_name>,
5434 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
5435 round_saeonly_nimm_predicate with
5436 round_saeonly_nimm_scalar_predicate.
5437 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5438 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
5439 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5440 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
5441 avx512f_vmfmadd_<mode>_mask3<round_name>,
5442 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5443 *avx512f_vmfmsub_<mode>_mask<round_name>,
5444 avx512f_vmfmsub_<mode>_mask3<round_name>,
5445 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
5446 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5447 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5448 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5449 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5450 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
5451 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
5452 cvtusi2<ssescalarmodesuffix>32<round_name>,
5453 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
5454 round_nimm_predicate with round_nimm_scalr_predicate.
5455 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
5456 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
5457 avx512er_vmrcp28<mode><round_saeonly_name>,
5458 avx512er_vmrsqrt28<mode><round_saeonly_name>,
5459 ): Replace round_saeonly_nimm_predicate with
5460 round_saeonly_nimm_scalar_predicate.
5461 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
5462 vector_operand with nonimmediate_operand.
5463 * config/i386/subst.md (round_scalar_nimm_predicate,
5464 round_saeonly_scalar_nimm_predicate): Replace
5465 vector_operand with nonimmediate_operand.
5467 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
5470 * config/i386/i386.md (*rcpsf2_sse): Add
5471 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
5472 (*rsqrtsf2_sse): Ditto.
5473 (*sqrt<mode>2_sse): Ditto.
5474 (sse4_1_round<mode>2): separate constraint vm, add
5475 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
5476 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
5478 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
5480 (*sse_vmrsqrtv4sf2): Ditto.
5481 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
5482 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
5483 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
5484 <iptr> pointer size modifier since vround support memory operand.
5486 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5489 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
5492 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
5493 Tobias Burnus <tobias@codesourcery.com>
5495 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
5496 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
5499 2019-10-25 Richard Biener <rguenther@suse.de>
5501 PR tree-optimization/92222
5502 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
5503 (_slp_oprnd_info::second_pattern): Likewise.
5504 (_slp_oprnd_info::any_pattern): New.
5505 (vect_create_oprnd_info): Adjust.
5506 (vect_get_and_check_slp_defs): Compute whether any stmt is
5508 (vect_build_slp_tree_2): Avoid building up a node from scalars
5509 if any of the operand defs, not just the first, is in a pattern.
5511 2019-10-25 Richard Biener <rguenther@suse.de>
5513 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
5514 swapping if we actually have to modify the IL on a shared stmt.
5515 (vect_build_slp_tree_2): Never fail swapping on shared stmts
5516 because we no longer modify the IL.
5518 2019-10-25 Martin Liska <mliska@suse.cz>
5520 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
5522 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
5524 * tree-vect-loop.c (vectorizable_reduction): Restrict the
5525 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
5526 handled by vect_transform_reduction. Allow fully-masked loops
5527 to be used with reduction chains.
5528 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
5529 operations in fully-masked loops.
5530 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
5531 operations in fully-masked loops.
5533 2019-10-25 Richard Biener <rguenther@suse.de>
5535 * tree-vect-loop.c (vectorizable_reduction): Verify
5536 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
5538 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
5539 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
5542 2019-10-24 Jakub Jelinek <jakub@redhat.com>
5544 * gimplify.h (omp_construct_selector_matches): Declare.
5545 * gimplify.c (struct gimplify_omp_ctx): Add code member.
5546 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
5547 called function if needed for flag_openmp.
5548 (gimplify_scan_omp_clauses): Set ctx->code.
5549 (omp_construct_selector_matches): New function.
5550 * omp-general.h (omp_constructor_traits_to_codes,
5551 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
5552 * omp-general.c (omp_constructor_traits_to_codes,
5553 omp_context_selector_matches, omp_resolve_declare_variant): New
5556 * config/arc/arc.c (hwloop_optimize): Add missing space in string
5558 * config/rx/rx.c (rx_print_operand): Likewise.
5559 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5560 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5561 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
5563 * genemit.c (emit_c_code): Likewise.
5564 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
5566 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5568 * symbols-summary.h (fast_function_summary<T *, V>::release,
5569 fast_call_summary<T *, V>::release): Free m_vector.
5571 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5573 * cgraphunit.c (symbol_table::process_new_functions): Call
5574 ipa_free_size_summary.
5575 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
5576 (devirtualization_time_bonus): Update.
5577 (ipcp_propagate_stage): Update.
5578 * ipa-fnsummary.c (ipa_size_summaries): New.
5579 (ipa_fn_summary_alloc): Alloc size summary.
5580 (dump_ipa_call_summary): Update.
5581 (ipa_dump_fn_summary): Update.
5582 (analyze_function_body): Update.
5583 (compute_fn_summary): Likewise.
5584 (ipa_get_stack_frame_offset): New function.
5585 (inline_update_callee_summaries): Do not update frame offsets.
5586 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
5587 remove call and function summary.
5588 (ipa_update_overall_fn_summary): Update.
5589 (inline_read_section): Update.
5590 (ipa_fn_summary_write): Update.
5591 (ipa_free_fn_summary): Do not remove summaries.
5592 (ipa_free_size_summary): New.
5593 (release summary pass): Also run at WPA.
5594 * ipa-fnsummary.h (ipa_size_summary): Declare.
5595 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
5596 estimated_self_stack_size.
5597 (ipa_size_summary_t): New type.
5598 (ipa_size_summaries): Declare.
5599 (ipa_free_size_summary): Declare.
5600 (ipa_get_stack_frame_offset): Declare.
5601 * ipa-icf.c (sem_function::merge): Update.
5602 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
5603 (estimate_growth): Update.
5604 (growth_likely_positive): Update.
5605 (clone_inlined_nodes): Update.
5606 (inline_call): Update.
5607 * ipa-inline.c (caller_growth_limits): Update.
5608 (edge_badness): Update.
5609 (recursive_inlining): Update.
5610 (inline_small_functions): Update.
5611 (inline_to_all_callers_1): Update.
5612 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
5614 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
5616 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
5617 (uavg<mode>3_ceil): ... This.
5618 (altivec_vavgs<VI_char>): Rename to...
5619 (avg<mode>3_ceil): ... This.
5620 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
5621 VAVGUW, VAVGSW): Adjust.
5623 2019-10-24 Nathan Sidwell <nathan@acm.org>
5625 * dumpfile.c (dump_begin): Reorder decls to use RAII.
5627 2019-10-24 Martin Liska <mliska@suse.cz>
5629 * symbol-summary.h (gt_pch_nx): Mark all functions
5630 with gcc_unreachable as we do not expect to be called.
5632 2019-10-24 Richard Biener <rguenther@suse.de>
5634 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
5635 chains try harder with operand swapping and instead of
5636 putting a shifted chain into the reduction operands put
5637 a repetition of the final reduction op there as if we'd
5638 reassociate the expression.
5640 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5642 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
5643 statics_not_read and statics_not_written to statics_read and
5644 statics_written respectively.
5645 (no_module_statics): New static var.
5646 (ipa_reference_get_not_read_global): Rename to ...
5647 (ipa_reference_get_read_global): ... this.
5648 (ipa_reference_get_not_written_global): Rename to ...
5649 (ipa_reference_get_written_global): ... this.
5650 (dump_static_vars_set_to_file): Dump no_module_statics.
5651 (copy_static_var_set): Add for propagation parameter.
5652 (ipa_init): Initialize no_module_statics.
5653 (ipa_ref_opt_summary_t::duplicate): Update.
5654 (ipa_ref_opt_summary_t::remove): Update.
5655 (propagate): Update.
5656 (write_node_summary_p): Look correctly for bitmap differences.
5657 (ipa_reference_write_optimization_summary): Update.
5658 (ipa_reference_read_optimization_summary): Update.
5660 (ipa_reference_get_not_read_global): Rename to ...
5661 (ipa_reference_get_read_global): ... this.
5662 (ipa_reference_get_not_written_global): Rename to ...
5663 (ipa_reference_get_written_global): ... this.
5664 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
5665 (call_may_clobber_ref_p_1): Update.
5667 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5669 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
5671 (msp430_hard_regno_nregs_with_padding): Remove.
5673 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5675 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
5676 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
5677 shift amount is between 1 and 4.
5678 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
5681 2019-10-24 Richard Biener <rguenther@suse.de>
5683 PR tree-optimization/92205
5684 * tree-vect-loop.c (vectorizable_reduction): Restrict
5685 search for alternate vectype_in to lane-reducing patterns
5688 2019-10-24 Richard Biener <rguenther@suse.de>
5690 PR tree-optimization/92203
5691 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
5692 Skip eliminating conversion stmts inserted by insertion.
5694 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
5696 * config/s390/s390.c (s390_get_thread_pointer): Use
5697 gen_get_thread_pointer.
5698 (s390_expand_split_stack_prologue): Likewise.
5699 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
5700 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
5701 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
5702 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
5705 2019-10-24 Richard Biener <rguenther@suse.de>
5707 * tree-vect-slp.c (vect_analyze_slp): When reduction group
5708 SLP discovery fails try to handle the reduction as part
5709 of SLP reduction discovery.
5711 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
5713 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
5715 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
5716 attribute if it exists, rather than the insn size. If we use the
5717 insn size, adjust the size to remove the extra size that prefixed
5719 (rs6000_adjust_insn_length): New function.
5720 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
5721 update the instruction sized if prefixed instructions are used.
5722 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
5723 (non_prefixed_length attribute): Delete.
5724 (num_insns attribute): New insn attribute to return the number of
5726 (max_prefixed_insns attribute): New insn attribute to return the
5727 maximum number of prefixed instructions in an insn.
5728 (length attribute): Do not adjust for prefix instructions here,
5729 punt to ADJUST_INSN_LENGTH.
5730 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
5731 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
5732 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
5733 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
5734 max_prefixed_insns and num_insns.
5736 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
5737 (movtd_64bit_nodm): Reformat.
5738 (mov<mode>_32bit): Reformat.
5739 (mov<mode>_softfloat): Reformat.
5740 (FMOVE128_GPR splitter): Reformat.
5741 (DIFD splitter): Reformat.
5742 (TI2 splitter): Reformat.
5743 * config/rs6000/predicates.md (lwa_operand): If the bottom two
5744 bits of the offset for the memory address are non-zero, use PLWA
5745 if prefixed instructions are available.
5747 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5749 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
5751 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5753 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
5756 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5758 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
5759 (cmp_symbol_files): New.
5760 (lto_output): Copy sections in file order.
5761 * lto-streamer.h (lto_file_decl_data): Add field order.
5763 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5765 * ipa-reference.h (ipa_reference_var_uid): Move offline.
5766 * ipa-reference.c (reference_vars_map_t): new type.
5767 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
5768 (ipa_reference_var_uid): Implement.
5769 (varpool_node_hooks): New static var.
5770 (varpool_removal_hook): New function.
5771 (is_improper): Do not check bitmap for id==-1
5772 (get_static_name): Update.
5773 (ipa_init): Initialize new datastructures.
5774 (analyze_function): Do not recompute ids.
5775 (propagate): Free reference_vars_to_consider.
5776 (stream_out_bitmap): Update.
5777 (ipa_reference_read_optimization_summary): Update.
5779 2019-10-23 qing zhao <qing.zhao@oracle.com>
5781 PR gcov-profile/91971
5782 * coverage.c (coverage_init): Mangle the full path of filename when
5783 filename is a absolute path.
5785 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5787 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
5788 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
5789 (msp430_has_hwmult): New.
5790 (msp430_output_labelref):
5791 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
5792 * config/msp430/msp430.md (mulhisi3): Likewise.
5793 (umulhisi3): Likewise.
5794 (mulsidi3): Likewise.
5795 (umulsidi3): Likewise.
5797 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5800 * params.def (inline-heuristics-hint-percent): Set to 600.
5802 2019-10-23 Richard Biener <rguenther@suse.de>
5804 PR tree-optimization/65930
5805 * tree-vect-loop.c (check_reduction_path): Allow conversions
5806 that only change the sign.
5807 (vectorizable_reduction): Relax latch def stmts we handle further.
5809 2019-10-23 Jakub Jelinek <jakub@redhat.com>
5812 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
5813 (remove_unused_ivs): Use it instead of get_computation_at. When
5814 choosing best candidate, only consider candidates where
5815 get_debug_computation_at actually returns non-NULL.
5817 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
5819 PR tree-optimization/92131
5820 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
5821 range would be symbolic, drop to varying for any explicit overflow
5822 in the constant part or if neither range is a singleton.
5824 2019-10-23 Martin Liska <mliska@suse.cz>
5827 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
5830 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
5832 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
5833 int_mode_for_mode rather than mode_for_int_vector for scalars.
5835 2019-10-23 Richard Biener <rguenther@suse.de>
5837 PR tree-optimization/92179
5838 * tree-vect-stmts.c (vectorizable_shift): For shift args
5839 that are all the same remove type restriction in the SLP case.
5840 Adjust SLP code to handle converting of the shift arg to
5841 only apply in case the modes are different.
5843 2019-10-23 Martin Liska <mliska@suse.cz>
5846 * ipa-inline.c (recursive_inlining): Do not print
5847 when curr->count is not initialized.
5849 2019-10-23 Richard Biener <rguenther@suse.de>
5851 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
5852 op from scalars in case there's a constant operand in its
5855 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
5857 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
5858 against out of range max skip or log values.
5860 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
5862 * cgraph.c (dump_graphviz): Change name to dump_name
5864 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5866 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
5867 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5868 subtraction from a carry operation.
5870 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5872 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
5874 2019-10-22 Richard Biener <rguenther@suse.de>
5876 PR tree-optimization/92173
5877 * tree-vect-loop.c (vectorizable_reduction): If
5878 vect_transform_reduction cannot handle code-generation try without
5879 the single-def-use-cycle optimization. Pass optab_vector to
5880 optab_for_tree_code to get vector shifts as that's what we'd
5883 2019-10-22 Michael Matz <matz@suse.de>
5886 * gimple-loop-jam.c (any_access_function_variant_p): New function.
5887 (adjust_unroll_factor): Use it to constrain safety, new parameter.
5888 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
5890 2019-10-22 Richard Biener <rguenther@suse.de>
5892 PR tree-optimization/92173
5893 * tree-vect-loop.c (vectorizable_reduction): If
5894 vect_transform_reduction cannot handle code-generation try without
5895 the single-def-use-cycle optimization. Pass optab_vector to
5896 optab_for_tree_code to get vector shifts as that's what we'd
5899 2019-10-22 Martin Liska <mliska@suse.cz>
5901 * diagnostic-format-json.cc (json_from_expanded_location):
5902 Use json::integer_number.
5903 * gcov.c (output_intermediate_json_line): Use new
5904 json::integer_number.
5905 (output_json_intermediate_file): Likewise.
5906 * json.cc (number::print): Move to ...
5907 (float_number::print): ... this.
5908 (integer_number::print): New.
5909 (test_writing_numbers): Move to ...
5910 (test_writing_float_numbers): ... this.
5911 (test_writing_integer_numbers): New.
5912 (json_cc_tests): Register test_writing_integer_numbers.
5913 * json.h (class value): Add forward declaration
5914 for float_number and integer_number.
5915 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
5916 (class number): Move to ...
5917 (class float_number): ... this.
5918 (class integer_number): New.
5919 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
5920 Use json::integer_number.
5921 (optrecord_json_writer::location_to_json): Likewise.
5922 (optrecord_json_writer::profile_count_to_json): Likewise.
5923 (optrecord_json_writer::pass_to_json): Likewise.
5925 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
5927 * tree-vect-slp.c (vect_slp_bb_region): Check whether
5928 autodetected_vector_size rather than vector_size is zero.
5929 * tree-vect-loop.c (vect_analyze_loop): Likewise.
5930 Set autodetected_vector_size immediately after calling
5931 vect_analyze_loop_2. Check for a fatal error before advancing
5934 2019-10-21 Jason Merrill <jason@redhat.com>
5936 * lock-and-run.sh: Check for process existence rather than timeout.
5938 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5940 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
5941 widening multiplication.
5943 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
5945 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
5946 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
5948 (subsi3_carryin_shift): Separate into register and constant controlled
5949 alternatives. Use shift_amount_operand for operand 4. Set shift
5950 attribute and simplify type attribute.
5951 (subsi3_carryin_shift_alt): Likewise.
5952 (rsbsi3_carryin_shift): Likewise.
5953 (rsbsi3_carryin_shift_alt): Likewise.
5954 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
5955 and register controlled shifts into distinct alternatives.
5956 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
5957 (andsi_not_shiftsi_si_scc): Likewise.
5958 (arm_cmpsi_negshiftsi_si): Likewise.
5959 (not_shiftsi): Remove redundant M constraint from alternative 1.
5960 (not_shiftsi_compare0): Likewise.
5961 (arm_cmpsi_insn): Remove redundant alternative 2.
5962 (cmpsi_shift_swp): Likewise.
5963 (sub_shiftsi): Likewise.
5964 (sub_shiftsi_compare0_scratch): Likewise.
5965 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
5966 (thumb2_cmpsi_neg_shiftsi): Likewise.
5968 2019-10-21 Richard Biener <rguenther@suse.de>
5970 PR tree-optimization/92162
5971 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
5972 STMT_VINFO_REDUC_IDX in reduc_info.
5973 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5975 2019-10-21 Richard Biener <rguenther@suse.de>
5977 * tree-vectorizer.h (_slp_tree::ops): New member.
5978 (SLP_TREE_SCALAR_OPS): New.
5979 (vect_get_slp_defs): Adjust prototype.
5980 * tree-vect-slp.c (vect_free_slp_tree): Release
5981 SLP_TREE_SCALAR_OPS.
5982 (vect_create_new_slp_node): Initialize it. New overload for
5983 initializing by an operands array.
5984 (_slp_oprnd_info::ops): New member.
5985 (vect_create_oprnd_info): Initialize it.
5986 (vect_free_oprnd_info): Release it.
5987 (vect_get_and_check_slp_defs): Populate the operands array.
5988 Do not swap operands in the IL when not necessary.
5989 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
5990 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
5991 swap operands in the operands array. Do not swap operands in
5993 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
5994 (vect_gather_slp_loads): Fix.
5995 (vect_detect_hybrid_slp_stmts): Likewise.
5996 (vect_slp_analyze_node_operations_1): Search for a internal
5997 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
5998 (vect_slp_analyze_node_operations): Skip ops-only stmts for
5999 the def-type push/pop dance.
6000 (vect_get_constant_vectors): Compute number_of_vectors here.
6001 Use SLP_TREE_SCALAR_OPS and simplify greatly.
6002 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
6003 (vect_get_slp_defs): Simplify greatly.
6004 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
6005 (vect_transform_reduction): Likewise.
6006 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
6007 (vectorizable_call): Likewise.
6008 (vectorizable_operation): Likewise.
6009 (vectorizable_load): Likewise.
6010 (vectorizable_condition): Likewise.
6011 (vectorizable_comparison): Likewise.
6013 2019-10-21 Richard Biener <rguenther@suse.de>
6015 PR tree-optimization/92161
6016 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
6019 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6021 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
6022 (aarch64_rndr): New define_insn.
6023 (aarch64_rndrrs): Likewise.
6024 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
6025 (TARGET_RNG): Likewise.
6026 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
6028 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
6029 Add fourth argument in prototype.
6030 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
6031 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
6032 (aarch64_init_rng_builtins): Define.
6033 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
6034 (aarch64_expand_rng_builtin): Define.
6035 (aarch64_general_expand_builtin): Use IGNORE argument, handle
6037 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6038 __ARM_FEATURE_RNG when TARGET_RNG.
6039 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
6041 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
6043 * tree-vect-stmts (ensure_base_align): Only change alignment if new
6044 alignment is more restrictive.
6046 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6048 * tree-vectorizer.h (vec_info::vector_size): New member variable.
6049 (vect_update_max_nunits): Update comment.
6050 (current_vector_size): Delete.
6051 * tree-vect-stmts.c (current_vector_size): Likewise.
6052 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
6053 of current_vector_size.
6054 (get_mask_type_for_scalar_type): Likewise.
6055 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
6056 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
6057 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
6058 (vect_double_mask_nunits, vect_transform_loop): Likewise.
6059 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6060 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
6062 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6064 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
6065 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
6066 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
6069 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6071 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
6072 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
6073 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
6075 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6077 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6079 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
6081 (vect_set_loop_condition_masked): Update call accordingly.
6083 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6085 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
6086 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6087 (simple_integer_narrowing): Update call accordingly.
6088 (vectorizable_conversion): Likewise.
6090 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6092 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
6093 (vectorizable_call): Update call accordingly.
6095 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6097 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
6098 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6099 (duplicate_and_interleave): Update call accordingly.
6100 * tree-vect-loop.c (vectorizable_reduction): Likewise.
6102 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6104 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
6105 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
6106 (vect_get_constant_vectors): Update call accordingly.
6107 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
6109 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6111 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
6112 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
6113 (vect_prologue_cost_for_slp_op): Update call accordingly.
6114 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
6115 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
6116 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
6117 (get_mask_type_for_scalar_type): Likewise.
6118 (vect_get_vector_types_for_stmt): Likewise.
6119 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6120 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6121 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
6122 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
6123 (vect_split_statement, vect_convert_input): Likewise.
6124 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
6125 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
6126 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
6127 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
6128 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
6129 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
6130 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
6131 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
6132 (vect_recog_mask_conversion_pattern): Likewise.
6133 (vect_add_conversion_to_pattern): Likewise.
6134 (vect_recog_gather_scatter_pattern): Likewise.
6135 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
6136 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
6138 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6140 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
6141 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
6142 (vect_check_load_store_mask): Update call accordingly.
6143 (vect_get_mask_type_for_stmt): Likewise.
6144 * tree-vect-patterns.c (check_bool_pattern): Likewise.
6145 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
6146 (vect_convert_mask_for_vectype): Likewise.
6148 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6150 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
6152 (vect_recog_dot_prod_pattern): Update call accordingly.
6153 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
6154 (vect_recog_widen_sum_pattern): Likewise.
6156 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6158 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
6159 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
6160 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
6163 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6165 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
6166 get_vectype_for_scalar_type_and_size instead of
6167 get_vectype_for_scalar_type.
6169 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6171 * common.opt (-fcommon): Fix description.
6173 2019-10-20 Jakub Jelinek <jakub@redhat.com>
6175 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
6176 * config/i386/i386.c (ix86_pre_reload_split): New function.
6177 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
6178 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
6179 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
6180 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
6181 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
6182 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
6183 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
6184 *<shift_insn><dwi>3_doubleword_mask,
6185 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
6186 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
6187 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
6188 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
6189 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
6190 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
6191 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
6192 *avx2_<code>v8qiv8si2<mask_name>_2,
6193 *sse4_1_<code>v4qiv4si2<mask_name>_2,
6194 *sse4_1_<code>v4hiv4si2<mask_name>_2,
6195 *avx512f_<code>v8qiv8di2<mask_name>_2,
6196 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
6197 *sse4_1_<code>v2hiv2di2<mask_name>_2,
6198 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
6199 sse4_2_pcmpistr): Likewise.
6201 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
6203 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
6204 now defaults to https.
6206 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
6208 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
6209 skip non-zero array accesses.
6211 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6213 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
6214 and return a boolean success value. Move the allocation and
6215 initialization of the bb_vec_info to...
6216 (vect_slp_bb_region): ...here. Update call accordingly.
6217 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
6218 than in vect_slp_analyze_bb_1.
6220 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6222 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
6223 when processing the given datarefs for the first time and
6224 check_datarefs subsequently.
6225 (vect_slp_bb_region): New function, split out of...
6226 (vect_slp_bb): ...here. Don't recompute the region bounds and
6227 dataref sets when retrying with a different vector size.
6229 2019-10-19 Jakub Jelinek <jakub@redhat.com>
6230 Uroš Bizjak <ubizjak@gmail.com>
6233 * config/i386/predicates.md (int_nonimmediate_operand): New special
6235 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
6236 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
6237 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
6238 define_insn_and_split patterns.
6240 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
6242 * config/rs6000/rs6000.md: Delete out--of-date comment about
6243 special-casing integer loads.
6245 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
6247 * escaped_string.h (escaped_string): New header.
6248 * tree.c (escaped_string): Remove escaped_string class.
6250 2019-10-18 Martin Sebor <msebor@redhat.com>
6252 PR tree-optimization/92157
6253 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
6254 compute_string_length to return a negative result.
6256 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6258 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
6259 (negvsi3, negvdi3): Delete.
6260 (negdi2_compare): Delete.
6262 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6264 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
6266 (subdi3_compare1): Delete pattern.
6267 (subvsi3_borrow): New insn pattern.
6268 (subvsi3_borrow_imm): Likewise.
6270 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6272 * config/arm/arm.md (subv<mode>4): Delete.
6273 (subvdi4): New expander pattern.
6274 (subvsi4): Likewise. Handle some immediate values.
6275 (subvsi3_intmin): New insn pattern.
6276 (subvsi3): Likewise.
6277 (subvsi3_imm1): Likewise.
6278 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
6281 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6283 * config/arm/arm.md (usubvdi4): Allow registers or integers for
6284 incoming operands. Early split the calculation into SImode
6286 (usubvsi3_borrow): New insn pattern.
6287 (usubvsi3_borrow_imm): Likewise.
6289 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6291 * config/arm/arm.md (usubv<mode>4): Delete expansion.
6292 (usubvsi4): New pattern. Allow some immediate values for inputs.
6293 (usubvdi4): New pattern.
6295 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6297 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
6298 or second operand of the PLUS inside a DImode equality test to be
6299 sign-extend when selecting CC_Vmode.
6300 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
6302 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
6304 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
6305 (addsi3_cin_vout_0): Likewise.
6306 (adddi3_compareV): Delete.
6308 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6310 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
6311 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
6312 to transform this back into the summation version when that leads
6315 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6317 * config/arm/arm.md (addv<mode>4): Delete.
6318 (addvsi4): New pattern. Handle immediate values that the architecture
6320 (addvdi4): New pattern.
6321 (addsi3_compareV): Rename to ...
6322 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
6323 and use COMPARE rather than NE.
6324 (addsi3_compareV_imm): New pattern.
6325 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
6326 a signed-overflow check.
6328 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6330 * config/arm/arm-modes.def (CC_ADC): New CC mode.
6331 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
6333 (maybe_get_arm_condition_code): Handle CC_ADCmode.
6334 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
6336 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
6338 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
6339 (addsi3_cin_cout_imm_insn): Likewise.
6340 (adddi3_compareC): Delete insn.
6341 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
6343 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6345 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
6346 * (uaddv<mode>4): Delete expansion pattern.
6347 (uaddvsi4): New pattern.
6348 (uaddvdi4): Likewise.
6349 (addsi3_compareC): Delete pattern, change callers to use
6351 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
6352 reduce the number of alternatives and re-work type attribute handling.
6353 (addsi3_compare_op2): Clean up constraints to reduce the number of
6354 alternatives and re-work type attribute handling.
6355 (compare_addsi2_op0): Likewise.
6356 (compare_addsi2_op1): Likewise.
6358 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6360 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
6361 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
6362 for DImode operands.
6363 (arm_gen_dicompare_reg): Remove unreachable expansion code.
6364 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
6366 * config/arm/arm.md (arm_cmpdi_insn): Delete.
6367 (arm_cmpdi_unsigned): Delete.
6369 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6371 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
6372 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
6373 unchanged only if that will be cheaper.
6374 (arm_select_cc_mode): Recognize a swapped comparison that will
6375 be regenerated using RSBS or RSCS. Relax restriction on selecting
6377 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
6379 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
6381 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
6383 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
6384 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
6386 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6388 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
6389 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
6391 (arm_gen_dicompare_reg): New code to early expand the sub-operations
6392 of EQ, NE, LT, GE, LTU and GEU.
6393 * config/arm/iterators.md (CC_EXTEND): New code attribute.
6394 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
6395 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
6396 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
6397 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
6399 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6401 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
6403 (cstoredi4): Similarly, but for operand 3.
6404 * config/arm/arm.c (arm_canoncialize_comparison): Allow
6405 canonicalization of unsigned compares with a constant on Arm.
6406 Prefer using const+1 and adjusting the comparison over swapping the
6407 operands whenever the original constant was not valid.
6408 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
6410 (arm_validize_comparison): Do not force invalid DImode operands to
6413 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6415 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
6416 return CC_Zmode if comparing against a constant where one word is
6418 (arm_gen_compare_reg): Split DImode handling to ...
6419 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
6420 against simple constants.
6421 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
6423 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6425 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
6426 (rsbsi3_carryin_shift_alt): Likewise.
6428 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6430 * config/arm/arm.md (negscc_borrow): New pattern.
6431 (mov_negscc): Don't split if the insn would match negscc_borrow.
6432 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
6433 (thumb2_mov_negscc_strict_it): Likewise.
6435 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6437 * config/arm/arm.c (arm_insn_cost): New function.
6438 (TARGET_INSN_COST): Override default definition.
6440 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6442 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6445 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6447 * config/arm/arm.c (strip_carry_operation): New function.
6448 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
6451 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6453 * config/arm/predicates.md (arm_carry_operation): New special
6455 * config/arm/iterators.md (LTUGEU): Delete iterator.
6456 (cnb): Delete code attribute.
6457 (optab): Delete ltu and geu elements.
6458 * config/arm/arm.md (addsi3_carryin): Renamed from
6459 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
6460 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
6461 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
6462 (addsi3_carryin_clobercc): Similarly.
6463 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
6466 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6468 * config/arm/arm.md (arm_subdi3): Delete insn.
6469 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
6471 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6473 * config/arm/arm-modes.def (CC_RSB): New CC mode.
6474 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
6475 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
6477 (maybe_get_arm_condition_code): Handle CC_RSBmode.
6478 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
6480 (subdi3): Rewrite to early-expand the sub-operations.
6481 (rsb_im_compare): New pattern.
6483 (negdi2_insn): Delete.
6484 (arm_negsi2): Correct type attribute to alu_imm.
6485 (negsi2_0compare): New insn pattern.
6486 (negsi2_carryin): New insn pattern.
6488 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6490 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
6493 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6495 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
6496 to match canonical form.
6498 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6500 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
6501 (extend<mode>di2): Likewise.
6503 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6505 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
6506 * config/arm/arm.c (arm_decompose_di_binop): New function.
6507 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
6508 If not generating Thumb-1 code, decompose the operation into 32-bit
6510 * add0si_carryin_<optab>: New pattern.
6512 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6514 * arm.md (adddi3): Only accept register operands.
6515 (arm_adddi3): Convert to simple insn with no split. Do not accept
6517 (adddi_sesidi_di): Delete patern.
6518 (adddi_zesidi_di): Likewise.
6519 (uaddv<mode>4): Use LTU as condition for branch.
6520 (adddi3_compareV): Convert to simple insn with no split.
6521 (addsi3_compareV_upper): Delete pattern.
6522 (adddi3_compareC): Convert to simple insn with no split. Correct
6523 flags setting expression.
6524 (addsi3_compareC_upper): Delete pattern.
6525 (addsi3_compareC): Correct flags setting expression.
6526 (subdi3_compare1): Convert to simple insn with no split.
6527 (subsi3_carryin_compare): Delete pattern.
6528 (arm_subdi3): Convert to simple insn with no split.
6529 (subdi_zesidi): Delete pattern.
6530 (subdi_di_sesidi): Delete pattern.
6531 (subdi_zesidi_di): Delete pattern.
6532 (subdi_sesidi_di): Delete pattern.
6533 (subdi_zesidi_zesidi): Delete pattern.
6534 (negvdi3): Use s_register_operand.
6535 (negdi2_compare): Convert to simple insn with no split.
6536 (negdi2_insn): Likewise.
6537 (negsi2_carryin_compare): Delete pattern.
6538 (negdi_zero_extendsidi): Delete pattern.
6539 (arm_cmpdi_insn): Convert to simple insn with no split.
6540 (negdi2): Don't call gen_negdi2_neon.
6541 * config/arm/neon.md (adddi3_neon): Delete pattern.
6542 (subdi3_neon): Delete pattern.
6543 (negdi2_neon): Delete pattern.
6544 (splits for negdi2_neon): Delete splits.
6546 2019-10-18 Jakub Jelinek <jakub@redhat.com>
6549 * ggc-page.c (release_pages): Read g->alloc_size before free rather
6552 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
6554 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
6555 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
6556 new multilib variants and new mappings.
6558 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6561 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
6563 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6564 Richard Sandiford <richard.sandiford@arm.com>
6567 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
6568 and define hashmap traits for it.
6569 (loop_vec_info::scalar_cond_masked_set): New member.
6570 (vect_record_loop_mask): Adjust prototype.
6571 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
6573 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
6574 vect_record_loop_mask.
6575 (vectorizable_live_operation): Likewise.
6576 (vect_record_loop_mask): New param scalar_mask. Add entry
6577 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
6578 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
6579 Pass it as last arg to vect_record_loop_mask.
6580 (vectorizable_call): Pass scalar_mask as last arg to
6581 vect_record_loop_mask.
6582 (vectorizable_store): Likewise.
6583 (vectorizable_load): Likewise.
6584 (vectorizable_condition): Check if another part of vectorized code
6585 applies loop_mask to condition or to it's inverse, and if yes,
6586 apply loop_mask to result of vector comparison.
6588 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
6590 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
6592 2019-10-18 Jakub Jelinek <jakub@redhat.com>
6594 PR tree-optimization/92056
6595 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
6596 before calling compute_builtin_object_size.
6598 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
6601 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
6602 (movdi_low_st): Delete.
6603 * config/rs6000/rs6000.c
6604 (darwin_rs6000_legitimate_lo_sum_const_p): New.
6605 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
6606 * config/rs6000/rs6000.md (movsi_low): Delete.
6608 2019-10-17 Jason Merrill <jason@redhat.com>
6610 * gimplify.h (get_initialized_tmp_var): Add default argument to
6612 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
6613 NULL post_p argument.
6614 * targhooks (std_gimplify_va_arg_expr): Likewise.
6616 2019-10-17 Richard Biener <rguenther@suse.de>
6618 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
6619 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
6620 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
6621 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
6622 * tree-vect-loop.c (vect_is_simple_reduction): Set
6623 STMT_VINFO_REDUC_CODE.
6624 (vectorizable_reduction): Remove dead and redundant code, use
6625 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
6627 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
6629 Fix breakage introduced by r276985.
6631 * config/avr/avr.c (avr_option_override): Remove set of
6632 PARAM_ALLOW_STORE_DATA_RACES.
6633 * common/config/avr/avr-common.c (avr_option_optimization_table)
6634 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
6636 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
6638 * config/i386/i386.h (processor_costs): Add clear_ratio.
6639 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
6640 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
6641 of 6 and move_ratio in all cost models.
6643 2019-10-17 Richard Biener <rguenther@suse.de>
6645 * tree-vect-loop.c (check_reduction_path): Compute reduction
6647 (vect_is_simple_reduction): Remove special-case of single-stmt
6648 reduction path detection.
6650 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
6652 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
6654 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
6656 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
6657 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
6658 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
6659 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
6660 New combine patterns.
6661 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
6663 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
6665 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
6667 * tree-vrp.c (value_range_base::dump): Display +INF for both
6668 pointers and integers when appropriate.
6670 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6672 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
6673 when to use versioning threshold.
6675 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6677 * tree-vect-loop.c (determine_peel_for_niter): New function contained
6678 outlined code from ...
6679 (vect_analyze_loop_2): ... here.
6681 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6683 * tree-vect-loop.c (vect_transform_loop): Move code from here...
6684 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
6685 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
6687 2019-10-17 Richard Biener <rguenther@suse.de>
6689 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
6690 (vect_is_simple_reduction): Move all validity checks ...
6691 (vectorizable_reduction): ... here. Compute whether we
6692 need a fold-left reduction here.
6693 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
6694 both overloads, check needs_fold_left_reduction_p directly.
6695 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
6697 2019-10-17 Richard Biener <rguenther@suse.de>
6699 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
6700 TARGET_MEM_REF creation.
6702 2019-10-17 Richard Biener <rguenther@suse.de>
6704 PR tree-optimization/92129
6705 * tree-vect-loop.c (vectorizable_reduction): Also fail
6706 on GIMPLE_SINGLE_RHS.
6708 2019-10-17 Jakub Jelinek <jakub@redhat.com>
6710 PR tree-optimization/92056
6711 * tree-object-size.c (cond_expr_object_size): Return early if then_
6712 processing resulted in unknown size.
6714 PR tree-optimization/92115
6715 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
6716 temporary if it could trap.
6718 2019-10-17 Richard Biener <rguenther@suse.de>
6721 * dwarf2out.c (gen_formal_parameter_die): Also try to match
6722 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
6724 2019-10-16 Jakub Jelinek <jakub@redhat.com>
6726 * tree-ssa-strlen.c (maybe_invalidate): Use
6727 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
6729 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
6730 Jim Wilson <jimw@sifive.com>
6732 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
6733 regs to SIBCALL_REGS.
6734 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
6735 passing regs to SIBCALL_REGS.
6737 2019-10-16 Martin Sebor <msebor@redhat.com>
6739 PR tree-optimization/83821
6740 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
6741 the length of a string when available.
6742 (handle_builtin_memset) Add argument.
6743 (handle_store, strlen_check_and_optimize_call): Same.
6744 (check_and_optimize_stmt): Same. Pass it to callees.
6746 2019-10-16 Martin Sebor <msebor@redhat.com>
6748 PR tree-optimization/91996
6749 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
6751 (compare_nonzero_chars): Add an overload.
6752 (count_nonzero_bytes): Add an argument. Call overload above.
6753 Handle non-constant lengths in some range.
6754 (handle_store): Add an argument.
6755 (check_and_optimize_stmt): Pass an argument to handle_store.
6757 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
6759 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
6761 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6763 * config/mips/mips.c (mips_expand_builtin_insn): Force the
6764 operands which correspond to the same input-output register to
6765 have the same pseudo assigned to them.
6767 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
6769 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
6771 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
6773 * config/aarch64/aarch64.c (aarch64_classify_symbol):
6774 Apply reasonable limit to symbol offsets.
6776 2019-10-16 Richard Biener <rguenther@suse.de>
6778 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
6779 (vect_is_simple_reduction): Delay checking to
6780 vectorizable_reduction and relax the checking.
6781 (vectorizable_reduction): Check we have a simple use. Check
6782 for bogus condition reductions.
6783 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
6784 are looking at the last stmt in a pattern sequence when
6785 filling in backedge PHI values.
6787 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
6788 Jiufu Guo <guojiufu@linux.ibm.com>
6791 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
6792 the callee explicitly disables some isa_flags the caller is using.
6794 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6796 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
6798 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6800 * genmodes.c (mode_data::order): New field.
6801 (blank_mode): Update accordingly.
6802 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
6803 (make_vector_modes): Likewise.
6804 (VECTOR_MODES): Update use accordingly.
6805 (cmp_modes): Sort by the new order field ahead of sorting by size.
6806 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
6807 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
6808 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
6809 (aarch64_classify_vector_mode): Handle the new partial modes.
6810 (aarch64_vl_bytes): New function.
6811 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
6812 when counting the number of registers in an SVE mode.
6813 (aarch64_class_max_nregs): Likewise.
6814 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
6816 (aarch64_classify_address): Treat partial vectors analogously
6818 (aarch64_print_address_internal): Consolidate the printing of
6819 MUL VL addresses, using aarch64_vl_bytes as the number of
6820 bytes represented by "VL".
6821 (aarch64_vector_mode_supported_p): Reject partial vector modes.
6823 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6825 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
6826 rather than known_lt when choosing frame layouts.
6828 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6830 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
6831 that all the adjustments add up to the full frame size.
6832 Use crtl->outgoing_args_size directly as the final adjustment
6835 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6837 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
6838 "frame" reference instead of always referring directly to
6839 "cfun->machine->frame".
6841 2019-10-16 Richard Biener <rguenther@suse.de>
6843 PR tree-optimization/92119
6844 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
6845 against missing bswap lhs.
6847 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6850 * poly-int.h (constant_lower_bound_with_limit): New function.
6851 (constant_upper_bound_with_limit): Likewise.
6852 * doc/poly-int.texi: Document them.
6853 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
6854 into the worst-case INTEGER_CST bounds.
6856 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
6859 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
6860 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
6861 * ipa-predicat.h (struct expr_eval_op): New struct.
6862 (expr_eval_ops): New typedef.
6863 (struct condition): Add type and param_ops fields, remove size field.
6864 (add_condition): Replace size parameter with type parameter, add
6865 param_ops parameter.
6866 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
6867 (predicate::add_clause): Add comparisons on type and param_ops.
6868 (dump_condition): Add debug dump for param_ops.
6869 (remap_after_inlining): Adjust call arguments to add_condition.
6870 (add_condition): Replace size parameter with type parameter, add
6871 param_ops parameter. Unshare constant value used in conditions.
6872 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
6873 parameter expressions using param_ops.
6874 (decompose_param_expr): New function.
6875 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
6876 to replace call to unmodified_parm_or_parm_agg_item.
6877 (set_switch_stmt_execution_predicate): Likewise.
6878 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
6880 (inline_read_section): Read param_ops from summary stream.
6881 (ipa_fn_summary_write): Write param_ops to summary stream.
6883 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6885 PR rtl-optimization/92107
6886 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
6889 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6891 * config/darwin.c: Update description of fix and continue.
6893 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6895 * config/darwin.c (darwin_binds_local_p): Update to call
6896 default_binds_local_p_3 () directly. amend comments.
6898 2019-10-15 Richard Biener <rguenther@suse.de>
6900 * lto-streamer-out.c (lto_variably_modified_type_p): New.
6901 (tree_is_indexable): Use it.
6902 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6903 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
6904 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6906 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6908 * config/msp430/msp430.md (zero_extendqipsi2): New.
6909 (zero_extendqisi2): Optimize case where src register and base dst
6910 register are the same.
6911 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
6912 (zero_extendpsisi2): Optimize r->m case.
6913 Add unnamed insn patterns to catch insns combine searches for when
6914 optimizing pointer manipulation.
6916 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6918 * config/msp430/msp430.md: Group zero_extend* insns together.
6920 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6922 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
6924 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
6926 (msp430_subreg): Likewise.
6927 (msp430_split_addsi): Likewise.
6928 (msp430_print_operand_addr): Likewise.
6929 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
6930 (USE_STORE_POST_INCREMENT): Define.
6931 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
6932 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
6933 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
6934 (msp430_general_dst_operand): New.
6935 (msp430_general_dst_nonv_operand): New.
6936 (msp430_nonsubreg_operand): Remove.
6937 (msp430_nonsubreg_dst_operand): New.
6938 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
6939 of defunct msp430_nonsubreg_operand.
6940 (msp430_nonsubregnonpostinc_or_imm_operand): New.
6942 2019-10-15 Richard Biener <rguenther@suse.de>
6944 PR tree-optimization/91929
6945 * tree-ssa-pre.c (pre_expr_d::loc): New member.
6946 (get_or_alloc_expr_for_name): Initialize it.
6947 (get_or_alloc_expr_for_constant): Likewise.
6948 (phi_translate_1): Copy it.
6949 (create_expression_by_pieces): Use the original location
6950 of the expression for the inserted stmt.
6951 (compute_avail): Record the location of the stmt for the
6952 expressions created.
6954 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
6956 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
6957 before using tree_to_uhwi.
6959 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
6961 * config/s390/s390.md: Run %a0:DI splitters only after reload.
6963 2019-10-15 Richard Biener <rguenther@suse.de>
6965 PR tree-optimization/92094
6966 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
6967 do not adjust the reduction definition def type.
6968 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
6969 defines the latch argument of the PHI.
6971 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
6974 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
6975 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
6976 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
6977 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
6978 _mm_maskz_roundscale_round_sd): New intrinsics.
6979 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
6980 __builtin_ia32_rndscales?_mask_round builtins instead of
6981 __builtin_ia32_rndscales?_round.
6982 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
6983 __builtin_ia32_rndscalesd_round): Remove.
6984 (__builtin_ia32_rndscaless_mask_round,
6985 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
6986 * config/i386/sse.md
6987 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
6988 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
6989 ... this, adjust and add subst atrributes to make it maskable.
6991 2019-10-15 Richard Biener <rguenther@suse.de>
6994 * common.opt (fallow-store-data-races): New.
6995 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
6996 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
6997 * doc/invoke.texi (fallow-store-data-races): Document.
6998 (--param allow-store-data-races): Remove docs.
6999 * opts.c (default_options_table): Enable -fallow-store-data-races
7001 (default_options_optimization): Do not enable --param
7002 allow-store-data-races at -Ofast.
7003 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
7004 instead of PARAM_ALLOW_STORE_DATA_RACES.
7005 * tree-ssa-loop-im.c (execute_sm): Likewise.
7007 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7009 PR tree-optimization/92085
7010 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
7011 instead of calling it unconditionally after
7012 delete_dead_or_redundant_assignment and fix indentation.
7014 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7016 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
7018 (*fmsub<SDF:mode>4): Likewise.
7019 *fnmsub<SDF:mode>4): Likewise.
7020 (*fnmadd<SDF:mode>4): Likewise.
7022 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
7024 * doc/tree-ssa.texi: Update renamed macro name.
7026 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7028 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
7031 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
7033 * config/darwin.c: Use unsigned ints for the picbase label
7034 counters, initialise the vars explicitly.
7035 (update_pic_label_number_if_needed): Move a variable declaration
7036 to where it's needed.
7037 (machopic_output_function_base_name): Use a more strict checking
7038 assert, and and unsigned int for the picbase label counter.
7039 (machopic_get_function_picbase): Likewise.
7041 2019-10-14 Richard Biener <rguenther@suse.de>
7044 * dse.c (scan_insn): Use param max_active_local_stores.
7045 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
7046 based on optimization level.
7047 * loop-invariant.c (move_loop_invariants): Adjust
7048 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
7049 * opts.c (default_options_optimization): Do not adjust
7050 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
7051 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
7053 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7055 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
7057 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7059 * config/arm/arm.c (arm_option_override): Don't override sched
7062 2019-10-14 Richard Biener <rguenther@suse.de>
7064 PR tree-optimization/92069
7065 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
7066 cycles do not set vect_nested_cycle on the latch definition.
7068 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
7070 * function-abi.h (expr_callee_abi): Declare.
7071 * function-abi.cc (expr_callee_abi): New function.
7073 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
7075 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
7077 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
7078 non-zero being represented as [1,MAX].
7080 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7082 * tree-sra.c (dump_access): Add missing braces.
7084 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7086 * config/darwin.c (machopic_indirection_name): Rework the
7087 function to emit linker-visible symbols only for indirections
7088 in the data section. Clean up the code and update comments.
7090 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7092 * config/darwin.c (machopic_indirect_data_reference): Remove
7095 2019-10-13 Nathan Sidwell <nathan@acm.org>
7097 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
7099 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7101 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
7104 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
7106 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
7107 so non-virutal are before virutals.
7108 (output_function): Avoid body modifications.
7110 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7112 * config/pa/pa.c (pa_output_call): Load descriptor address to register
7113 %r22. Load function address before global pointer.
7114 (pa_attr_length_indirect_call): Adjust length of inline versions of
7116 (pa_output_indirect_call): Remove fast inline version of $$dyncall
7117 before normal cases. Update inline $$dyncall sequences to preserve
7118 function descriptor address in register %r22.
7119 (TRAMPOLINE_CODE_SIZE): Adjust.
7120 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
7121 register %r22 contains trampoline address.
7122 (pa_trampoline_init): Adjust offsets.
7123 (pa_trampoline_adjust_address): Likewise.
7124 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
7126 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7129 * config/darwin.c (machopic_indirection): New field to flag
7130 non-lazy-symbol-pointers in the data section.
7131 (machopic_indirection_name): Compute if an indirection should
7132 appear in the data section.
7133 (machopic_output_data_section_indirection): New callback split
7134 from machopic_output_indirection.
7135 (machopic_output_stub_indirection): Likewise.
7136 (machopic_output_indirection): Retain the code for non-lazy
7137 symbol pointers in their regular section.
7138 (machopic_finish): Use the new callbacks to order the indirection
7141 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7143 * config/darwin-protos.h (machopic_finish): Delete.
7144 * config/darwin.c (machopic_finish): Make static.
7146 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7148 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
7149 sections when building kernel extension code.
7151 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
7153 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
7156 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7158 * config/pa/pa.c (pa_option_override): Remove trailing comma
7161 2019-10-12 Jakub Jelinek <jakub@redhat.com>
7164 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
7165 <case VEC_COND_EXPR>: Return false with *handled = false.
7166 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
7167 recursing on the first operand.
7168 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
7169 instead of tree_could_trap_p.
7170 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
7172 2019-10-11 Jim Wilson <jimw@sifive.com>
7174 PR rtl-optimization/91860
7175 * combine.c (subst): If new_rtx is a constant, also check for
7176 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
7178 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
7180 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
7181 INTVAL when calling store_bit_field.
7183 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
7185 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
7188 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
7190 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
7191 vectorizable_live_operation.
7192 (vectorizable_live_operation): Adjust parameters.
7193 * tree-vect-stmts.c (vect_init_vector,
7194 vect_gen_widened_results_half): Fix typo in function comment.
7195 (can_vectorize_live_stmts): Adjust function comment.
7196 Adjust parameters. Adjust call to vectorizable_live_operation.
7197 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
7198 (vect_transform_stmt): Adjust function comment. Adjust call to
7199 can_vectorize_live_stmts.
7200 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
7202 2019-10-11 Richard Biener <rguenther@suse.de>
7204 PR tree-optimization/90883
7205 PR tree-optimization/91091
7206 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
7207 alias-sets both for recording VN table entries and continuing
7208 walking after translating through copies. Handle same-sized
7209 reads from SSA names by returning the plain SSA name.
7210 (eliminate_dom_walker::eliminate_stmt): Properly handle
7211 non-size precision stores in redundant store elimination.
7213 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7215 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
7216 (ggc_collect): Dump later to not interfere with release_page dump.
7217 (ggc_trim): New function.
7218 * ggc-none.c (ggc_trim): New.
7219 * ggc.h (ggc_trim): Declare.
7221 2019-10-11 Richard Biener <rguenther@suse.de>
7223 PR tree-optimization/92066
7224 PR tree-optimization/92046
7225 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7226 Fix bogus cost model check.
7228 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7230 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
7231 (LANG_HOOKS_DECLS): Add it.
7232 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
7233 update comment for omp_is_optional_argument.
7234 * omp-general.c (omp_is_allocatable_or_ptr): New.
7235 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
7236 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
7237 Fortran's optional arguments and allocatable/pointer scalars
7238 with use_device_addr.
7240 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
7243 * config/s390/2827.md: Add new opcodes.
7244 * config/s390/2964.md: Likewise.
7245 * config/s390/3906.md: Likewise.
7246 * config/s390/8561.md: Likewise.
7247 * config/s390/s390-builtins.def (s390_vfchesb): Use
7248 the new vec_cmpgev4sf_quiet_nocc.
7249 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
7250 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
7251 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
7252 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
7253 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
7254 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
7255 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
7256 * config/s390/s390-modes.def (CCSFPS): New mode.
7257 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
7258 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
7259 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
7260 (s390_expand_vec_compare): Use non-signaling patterns where
7262 (s390_reverse_condition): Support CCSFPS.
7263 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
7264 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
7265 (asm_fcmp_op): Likewise.
7266 (*smaxv2df3_vx): Use pattern for quiet comparison.
7267 (*sminv2df3_vx): Likewise.
7268 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
7269 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
7270 (vec_cmpgt<mode>_quiet_nocc): Likewise.
7271 (vec_cmplt<mode>_quiet_nocc): New expander.
7272 (vec_cmpge<mode>_quiet_nocc): New pattern.
7273 (vec_cmple<mode>_quiet_nocc): New expander.
7274 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
7275 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
7276 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
7277 (*vec_cmpge<mode>_signaling_nocc): Likewise.
7278 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
7279 (vec_cmpungt<mode>): New expander.
7280 (vec_cmpunge<mode>): Likewise.
7281 (vec_cmpuneq<mode>): Use quiet patterns.
7282 (vec_cmpltgt<mode>): Allow only on z14+.
7283 (vec_cmpordered<mode>): Use quiet patterns.
7284 (vec_cmpunordered<mode>): Likewise.
7285 (VEC_CMP_EXPAND): Add ungt and unge.
7287 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7289 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
7291 * lto-streamer-out.c: Include tree-dfa.h.
7292 (output_cfg): Do not use cfun.
7293 (lto_prepare_function_for_streaming): New.
7294 (output_function): Do not push cfun; do not initialize loop optimizer.
7295 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
7296 * passes.c (ipa_write_summaries): Use it.
7297 (ipa_write_optimization_summaries): Do not modify bodies.
7298 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
7299 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
7300 * tree-ssa-dse.c (pass_dse::execute): Update use of
7301 renumber_gimple_stmt_uids.
7302 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
7304 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
7306 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7307 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
7309 2019-10-10 Joseph Myers <joseph@codesourcery.com>
7311 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
7313 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
7314 Also define DFP macros for these conditions.
7315 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
7316 DEC128_SUBNORMAL_MIN): Do not define.
7317 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
7318 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
7320 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
7321 Sandra Loosemore <sandra@codesourcery.com>
7324 * doc/lto.texi (IPA): Reference to the IPA passes.
7325 * doc/passes.texi (Pass manager): Add node IPA passes and
7326 description for each IPA pass.
7328 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7330 * ipa-reference.c: Do not include splay-tree.h
7331 (reference_vars_to_consider): Turn to hash map.
7332 (get_static_name, ipa_init, analyze_function, propagate,
7333 stream_out_bitmap, ipa_reference_write_optimization_summary,
7334 ipa_reference_write_optimization_summary): Update.
7336 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7338 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
7340 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
7342 * config/darwin.c: Lookup Objective C metadata and force indirection
7345 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
7347 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
7349 (mem_operand_gpr): Add check for prefixed addresses.
7350 (mem_operand_ds_form): Add check for prefixed addresses.
7351 (rs6000_legitimate_offset_address_p): If we support prefixed
7352 addresses, check for a 34-bit offset instead of 16-bit.
7353 (rs6000_legitimate_address_p): Add check for prefixed addresses.
7354 Do not allow load/store with update if the address is prefixed.
7355 (rs6000_mode_dependent_address): If we support prefixed
7356 addresses, check for a 34-bit offset instead of 16-bit.
7358 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
7361 * config/s390/vector.md (vcond_comparison_operator): New
7363 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
7365 2019-10-10 David Malcolm <dmalcolm@redhat.com>
7368 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
7370 * configure.ac (--with-documentation-root-url): New option.
7371 * configure: Regenerate.
7372 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
7373 option URL, add it as a new string field of the diagnostic option.
7374 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
7375 (print_option_information): If get_option_url is non-NULL, call
7376 it, and if the result is non-NULL, potentially emit an escape
7377 sequence to markup the option text with the resulting URL.
7378 * diagnostic.h (diagnostic_context::get_option_url): New callback.
7379 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
7380 example of JSON output.
7381 * opts-diagnostic.h (get_option_url): New decl.
7382 * opts.c (get_option_url): New function.
7383 * toplev.c (general_init): Initialize the get_option_url callback.
7385 2019-10-10 David Malcolm <dmalcolm@redhat.com>
7388 * common.opt (fdiagnostics-urls=): New option.
7389 (diagnostic-url.h): Add SourceInclude.
7390 (diagnostic_url_rule): New enum.
7391 * diagnostic-color.c: Include "diagnostic-url.h".
7392 (diagnostic_urls_enabled_p): New function.
7393 * diagnostic-url.h: New file.
7394 * diagnostic.c: Include "diagnostic-url.h".
7395 (diagnostic_urls_init): New function.
7396 * diagnostic.h (diagnostic_urls_init): New decl.
7397 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
7398 -fdiagnostics-urls to the list.
7399 (-fdiagnostics-urls): New option.
7400 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
7401 (driver::global_initializations): Call diagnostic_urls_init.
7402 * opts-global.c (init_options_once): Likewise.
7403 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
7404 * pretty-print.c (pretty_printer::pretty_printer): Initialize
7406 (pp_begin_url): New function.
7407 (pp_end_url): New function.
7408 (selftest::test_urls): New selftest.
7409 (selftest::pretty_print_c_tests): Call it.
7410 * pretty-print.h (pretty_printer::show_urls): New field.
7411 (pp_begin_url): New decl.
7412 (pp_end_url): New decl.
7414 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
7417 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
7419 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
7422 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
7423 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
7424 also for TARGET_FPU_SH4_300.
7425 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
7427 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
7428 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
7429 (*negsf2_i): Split into ...
7430 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
7431 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
7432 (**abssf2_i): Split into ...
7433 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
7434 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
7435 (*negdf2_i): Split into ...
7436 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
7437 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
7438 (**abssf2_i): Split into ...
7439 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
7441 2019-10-10 Richard Biener <rguenther@suse.de>
7444 * opts.c (finish_options): Do not influence global --params
7445 from options that are adjustable per function.
7446 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7447 Apply --param adjustment based on active cost-model.
7448 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
7449 further store-sinking when vectorization or if-conversion
7452 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7455 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
7456 rather than ggc_alloc_cleared to alloc symbol table.
7457 * toplev.c (general_init): Likewise.
7458 * cgraph.h (symbol_table): Explicitly construct every field.
7460 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
7462 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
7464 * config.gcc: Add z15 as option for --with-arch and --with-tune
7466 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
7467 error reporting for unsupported builtins.
7468 * config/s390/s390-opts.h (enum processor_type): Rename
7469 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
7470 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
7471 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7473 * config/s390/s390-builtins.def: Likewise.
7474 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
7475 (s390_expand_builtin): Add missing check for unsupported builtins.
7476 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
7477 (s390_rtx_costs): Likewise.
7478 (s390_get_sched_attrmask): Rename arch13 to z15.
7479 (s390_get_unit_mask): Likewise.
7480 (s390_is_fpd): Likewise.
7481 (s390_is_fxd): Likewise.
7482 * config/s390/s390.h (enum processor_flags): Likewise.
7483 * config/s390/s390.md: Likewise.
7484 * config/s390/vector.md: Likewise.
7485 * config/s390/vx-builtins.md: Likewise.
7486 * config/s390/s390.opt: Add z15 to processor_type value.
7488 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
7491 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
7493 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
7494 ("split_stack_data", "split_stack_call")
7495 ("split_stack_call_<mode>", "split_stack_cond_call")
7496 ("split_stack_cond_call_<mode>"): Remove.
7497 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
7499 * config/s390/s390.c (s390_output_split_stack_data): New function.
7500 (s390_expand_split_stack_prologue): Use the merged expander.
7502 2019-10-09 Martin Sebor <msebor@redhat.com>
7504 PR tree-optimization/90879
7505 * builtins.c (check_access): Avoid using maxbound when null.
7506 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
7507 * doc/invoke.texi (-Wstring-compare): Document new warning option.
7508 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
7510 (get_range_strlen): Overwrite initial maxbound when non-null.
7511 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
7513 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
7514 (used_only_for_zero_equality): New function.
7515 (handle_builtin_memcmp): Call it.
7516 (determine_min_objsize): Return an integer instead of tree.
7517 (get_len_or_size, strxcmp_eqz_result): New functions.
7518 (maybe_warn_pointless_strcmp): New function.
7519 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
7520 between a longer string and a smaller array.
7521 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
7523 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
7525 * config/darwin.c (darwin_override_options): Make the check for
7526 Objective-C ABI version more specific for 64bit code.
7528 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
7530 * config/darwin.c (machopic_indirect_data_reference): Set flag to
7531 indicate that the new symbol is an indirection.
7532 (machopic_indirect_call_target): Likewise.
7533 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
7534 (MACHO_SYMBOL_INDIRECTION_P): New.
7535 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
7537 2019-10-08 Jason Merrill <jason@redhat.com>
7539 * doc/invoke.texi: Document -fconcepts-ts.
7541 2019-10-09 Richard Biener <rguenther@suse.de>
7543 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
7544 allow stmts other than GIMPLE_ASSIGN in nested cycles.
7546 2019-10-08 Richard Biener <rguenther@suse.de>
7548 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
7549 (_stmt_vec_info::force_single_cycle): Likewise.
7550 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
7551 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
7552 * tree-vect-loop.c (vectorizable_reduction): Set
7553 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
7554 (vect_transform_reduction): Use them to remove redundant code.
7555 (vect_transform_cycle_phi): Likewise.
7557 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
7559 PR tree-optimization/90836
7560 * match.pd (popcount): New pattern.
7562 2019-10-08 Martin Sebor <msebor@redhat.com>
7566 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
7567 again once nbytes has been set. Set the access size when not yet set.
7569 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
7571 * config/darwin.c (machopic_select_section): Remove dead code for
7572 old Objective-C section selection method, replace with unreachable.
7574 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
7576 * config/darwin.c (machopic_indirect_data_reference): Check for
7577 required indirections before making direct access to defined
7579 (machopic_output_indirection): Place the indirected pointes for
7580 required indirections into the non-lazy symbol pointers section.
7581 (darwin_encode_section_info):
7582 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
7583 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
7585 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
7588 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
7589 instead of ALL_SSE_REG to check if function call preserves some
7590 256-bit SSE registers.
7592 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7594 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
7595 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
7596 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
7598 2019-10-08 Richard Biener <rguenther@suse.de>
7600 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
7601 (_stmt_vec_info::is_reduc_info): Add.
7602 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
7603 (vectorizable_condition): Remove.
7604 (vectorizable_shift): Likewise.
7605 (vectorizable_reduction): Adjust.
7606 (info_for_reduction): New.
7607 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
7608 (vect_analyze_scalar_cycles_1): ... here.
7609 (vect_analyze_loop_operations): Adjust.
7610 (needs_fold_left_reduction_p): Simplify for single caller.
7611 (vect_is_simple_reduction): Likewise. Remove stmt restriction
7612 for nested cycles not part of double reductions.
7613 (vect_model_reduction_cost): Pass in the reduction type.
7614 (info_for_reduction): New function.
7615 (vect_create_epilog_for_reduction): Use it, access reduction
7616 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
7617 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
7618 (vectorize_fold_left_reduction): Remove pointless assert.
7619 (vectorizable_reduction): Analyze the full reduction when
7620 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
7621 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
7622 stmt code-generation to vectorizable_* in most cases. Verify
7623 code-generation only for cases handled by
7624 vect_transform_reductuon.
7625 (vect_transform_reduction): Use info_for_reduction to get at
7626 reduction meta. Simplify.
7627 (vect_transform_cycle_phi): Likewise.
7628 (vectorizable_live_operation): Likewise.
7629 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
7630 at the PHI node for STMT_VINFO_REDUC_TYPE.
7631 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
7632 longer necessary code.
7633 * tree-vect-stmts.c (vectorizable_shift): Make static again.
7634 (vectorizable_condition): Likewise. Get at reduction related
7635 info via info_for_reduction.
7636 (vect_analyze_stmt): Adjust.
7637 (vect_transform_stmt): Likewise.
7638 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7639 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
7641 2019-10-08 Joseph Myers <joseph@codesourcery.com>
7643 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
7644 -fno-fp-int-builtin-inexact default for C2X.
7646 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7647 Richard Biener <rguenther@suse.de>
7649 PR tree-optimization/91532
7650 * tree-if-conv.c: Include tree-ssa-dse.h.
7651 (ifcvt_local_dce): Change param from bb to loop,
7652 and call dse_classify_store.
7653 (tree_if_conversion): Pass loop instead of loop->header as arg
7655 * tree-ssa-dse.c: Include tree-ssa-dse.h.
7656 (delete_dead_or_redundant_assignment): Remove static qualifier from
7657 declaration, and add prototype in tree-ssa-dse.h.
7658 (dse_store_status): Move to tree-ssa-dse.h.
7659 (dse_classify_store): Remove static qualifier and add new tree param
7660 stop_at_vuse, and add prototype in tree-ssa-dse.h.
7661 * tree-ssa-dse.h: New header.
7663 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
7665 * config/darwin.c (machopic_output_indirection): Don't put
7666 hidden symbol indirections into the .data section, use the
7667 non-lazy symbol pointers section as normal.
7668 (darwin_encode_section_info): Record if a symbol is hidden.
7669 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
7670 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
7672 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
7674 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
7675 predicates instead of accessing bits directly.
7676 (machopic_indirect_call_target): Likewise.
7677 (machopic_output_indirection): Likewise.
7678 (darwin_encode_section_info): Improve description. Use renamed
7679 symbol flags. Use predicate macros for variables and functions.
7681 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
7682 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
7683 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
7684 (MACHO_SYMBOL_VARIABLE_P): New.
7685 (MACHO_SYMBOL_DEFINED_P):New.
7686 (MACHO_SYMBOL_STATIC_P): New.
7687 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
7688 (SYMBOL_FLAG_SUBT_DEP): New.
7689 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
7691 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7693 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
7694 (msp430_expand_epilogue): Likewise.
7695 * config/msp430/predicates.md: Likewise.
7696 * config/msp430/msp430.md: Likewise.
7697 Replace blocks of 8 spaces with tabs.
7699 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7701 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
7702 * config/msp430/msp430.c (msp430_split_addsi): New.
7703 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
7704 a block of C code for splitting addsi.
7706 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
7708 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
7709 ix86_expand_rounddf_32): Reorder functions.
7710 * config/i386/i386-protos.h: Update.
7712 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7714 * config.in: Regenerate.
7715 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
7716 Add new "Yx" constraint.
7717 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
7719 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
7721 * config/msp430/msp430.c (msp430_option_override): Allow the lower
7722 code/data region to be selected in the small memory model.
7723 (msp430_section_attr): Don't warn if the "section" and "lower"
7724 attributes are used together.
7725 (msp430_handle_generic_attribute): Likewise.
7726 (msp430_var_in_low_mem): New function.
7727 (TARGET_ENCODE_SECTION_INFO): Define.
7728 (msp430_encode_section_info): New function.
7729 (gen_prefix): Return early in the small memory model.
7730 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
7731 ".lower" prefix if -m{code,data}-region=lower have been passed.
7732 (msp430_output_aligned_decl_common): Emit common symbols when
7733 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
7735 (TARGET_ASM_FILE_END): Define.
7736 (msp430_file_end): New function.
7737 (msp430_do_not_relax_short_jumps): Allow relaxation when
7738 function will be in the lower region.
7739 (msp430_op_not_in_high_mem): New function.
7740 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
7741 the 'X' operand selector.
7742 Clarify comment for 'x' operand selector.
7743 * config/msp430/msp430.h (LINK_SPEC): Propagate
7744 -m{code,data}-region to the linker via spec function
7745 msp430_propagate_region_opt.
7746 (msp430_propagate_region_opt): New prototype.
7747 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
7748 (SYMBOL_FLAG_LOW_MEM): Define.
7749 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
7751 (zero_extendqihi2): Fix operand number used by "%X" selector.
7752 (zero_extendqisi2): Likewise.
7753 (zero_extendhisi2): Likewise.
7754 (movqi): Use "Yx" constraint in place of "%X" operand selector.
7759 (addhi3_cy): Likewise.
7760 (addchi4_cy): Likewise.
7764 (bic<mode>3): Likewise.
7765 (and<mode>3): Likewise.
7766 (ior<mode>3): Likewise.
7767 (xor<mode>3): Likewise.
7768 (slli_1): Add missing "%X" operand selector.
7776 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
7778 (cbranchhi4_real): Likewise.
7779 (cbranchqi4_reversed): Likewise.
7780 (cbranchhi4_reversed): Likewise.
7781 (*bitbranch<mode>4): Likewise.
7782 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
7783 * config/msp430/msp430.opt (mcode-region=): Set default to
7784 MSP430_REGION_LOWER. Improve docstring.
7785 (mdata-region=): Likewise.
7786 (muse-lower-region-prefix): New option.
7787 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
7788 mdata-region=none multilib.
7789 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
7790 mdata-region=none multilib.
7791 MULTILIB_EXCEPTIONS: Remove.
7792 MULTILIB_REQUIRED: Define.
7793 * configure: Regenerate.
7794 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
7795 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
7796 * doc/extend.texi: Clarify comment for {upper,lower,either}
7797 function attributes.
7798 Add separate description for "lower" variable attribute.
7800 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7803 * optabs-tree.c (vcond_icode_p): New function.
7804 (vcond_eq_icode_p): Likewise.
7805 (expand_vec_cond_expr_p): Use vcond_icode_p and
7807 * optabs.c (can_vcond_compare_p): New function.
7808 * optabs.h (can_vcond_compare_p): Likewise.
7810 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7813 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
7814 caller passes a non-trapping condition.
7815 (is_gimple_condexpr): Allow trapping conditions.
7816 (is_gimple_condexpr_1): New helper function.
7817 (is_gimple_condexpr_for_cond): New function, acts like old
7819 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
7820 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
7821 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
7822 * gimplify.c (gimplify_cond_expr): Use
7823 is_gimple_condexpr_for_cond.
7824 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
7825 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
7827 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
7828 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
7829 is_gimple_condexpr_for_cond, remove pointless tmp check
7830 (forward_propagate_into_cond): Remove pointless tmp check.
7832 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7834 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
7835 match that of other gsi_next_* functions. Adjust the comment.
7836 (gsi_start_nonvirtual_phis): New function.
7837 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
7838 gsi_next_nonvirtual_phi accordingly. (No functional change.)
7840 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7842 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
7843 setjmp situation here. Fix a verb's ending: "the exact variables or
7844 elements for which there are warnings depends" -> "... depend".
7846 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7848 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
7850 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7852 * ipa-prop.c (ipa_vr::nonzero_p): New.
7853 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
7855 * ipa-prop.h (class ipa_vr): Add nonzero_p.
7856 * tree-vrp.c (range_has_numeric_bounds_p): New.
7857 (range_int_cst_p): Use range_has_numeric_bounds_p.
7858 (get_range_op_handler): New.
7859 (supported_types_p): New.
7860 (defined_ranges_p): New.
7861 (drop_undefines_to_varying): New.
7862 (range_fold_binary_symbolics_p): New.
7863 (range_fold_unary_symbolics_p): New.
7864 (range_fold_unary_expr): Extract out into above functions.
7865 (range_fold_binary_expr): Same.
7866 (value_range_base::normalize_addresses): New.
7867 (value_range_base::normalize_symbolics): Normalize addresses.
7868 * tree-vrp.h (class value_range_base): Add normalize_addresses.
7870 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7872 * tree-vrp.c (value_range_base::singleton_p): Use
7873 value_range_base::num_pairs instead of vrp_val_is* to check
7874 if a range has one sub-range.
7876 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7878 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
7879 DEF is not a true earlyclobber but is tied to a specific input
7880 operand, and so is effectively earlyclobber wrt inputs that have
7882 (make_early_clobber_and_input_conflicts): Pass this case to the above.
7884 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7886 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
7887 (pod_mode): Mark operators likewise.
7888 (scalar_int_mode): Mark non-default constructors and
7889 operators with CONSTEXPR.
7890 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
7891 (fixed_size_mode): Likewise.
7893 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7896 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
7897 and wrap the unspec_volatile in a parallel.
7898 (*avx_vzeroupper): New define_insn. Use a match_parallel around
7899 the unspec_volatile.
7900 * config/i386/predicates.md (vzeroupper_pattern): Expect the
7901 unspec_volatile to be wrapped in a parallel.
7902 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
7903 (ix86_add_reg_usage_to_vzerouppers): New functions.
7904 (rest_of_handle_insert_vzeroupper): Use them to add register
7905 usage information to the vzeroupper instructions.
7907 2019-10-07 Richard Biener <rguenther@suse.de>
7909 PR tree-optimization/91975
7910 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
7913 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
7915 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
7916 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
7918 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
7920 * config/darwin.c (darwin_override_options): Adjust objective-c
7921 ABI version error messages to avoid punctuation and contracted
7924 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
7926 * ipa-inline.c: Fix type; compute size rather than self_size
7927 for size of caller function.
7929 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
7932 * config/darwin.c (darwin_rodata_section): Add relocation flag,
7933 choose const_data section for constants with relocations.
7934 (machopic_select_section): Pass relocation flag to
7935 darwin_rodata_section ().
7937 2019-10-05 Jakub Jelinek <jakub@redhat.com>
7939 PR tree-optimization/91734
7940 * generic-match-head.c: Include fold-const-call.h.
7941 * match.pd (sqrt(x) cmp c): Check the boundary value and
7942 in case inexact computation of c*c affects comparison of the boundary,
7943 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
7944 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
7945 for -frounding-math. For c2, try the next smaller or larger floating
7946 point constant depending on comparison code and if it has the same
7947 sqrt as c2, use it instead of c2.
7949 2019-10-04 Martin Sebor <msebor@redhat.com>
7952 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
7953 MEM_REF right operand. Avoid failing for MEM_REF assignments from
7954 uninitialized objects.
7956 2019-10-04 Martin Sebor <msebor@redhat.com>
7958 * builtins.c (compute_objsize): Add an argument.
7959 * tree-object-size.c (addr_object_size): Same.
7960 (compute_builtin_object_size): Same.
7961 * tree-object-size.h (compute_builtin_object): Same.
7963 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
7965 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
7967 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
7969 * match.pd (sinh (x) / cosh (x)): New simplification rule.
7971 2019-10-04 Martin Jambor <mjambor@suse.cz>
7973 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
7974 fntype when switching to calling memcpy instead of memset.
7976 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7978 * hash-table.h (hash_table::empty_slow): Don't assign
7979 size_t values to int variables.
7981 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7983 * expr.c (convert_mode_scalar): Remove shadowing local var.
7984 (emit_block_move): Rename local vars.
7985 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
7986 (emit_push_insn): Rename local vars.
7987 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
7988 shadowing local vars.
7989 (store_constructor): Remove shadowing local vars. Rename local var.
7990 (store_field, expand_cond_expr_using_cmove,
7991 expand_expr_real_2): Remove shadowing local vars.
7992 (expand_expr_real_1,
7993 do_store_flag): Remove shadowing local vars. Rename local vars.
7995 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7997 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
7999 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8001 * genmatch.c (commutate): Rename local var.
8002 (lower_cond): Reuse local var.
8003 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
8004 dt_operand::gen, dt_operand::gen_gimple_expr,
8005 dt_simplify::gen): Add a param. Rename generated vars.
8006 (decision_tree::insert_operand,
8007 (capture_info::walk_match, capture_info::walk_result,
8008 capture_info::walk_c_expr): Rename local vars.
8009 (expr::gen_transform): Rename generated vars.
8010 Use snprintf. Rename local vars.
8011 (capture::gen_transform, dt_operand::get_name,
8012 dt_operand::gen_opname): Rename generated vars.
8013 (write_predicate): Adjust call to gen_kids.
8014 (parser::get_internal_capture_id): Rename generated vars.
8015 (parser::parse_expr): Rename local vars.
8016 (parser::parse_if): Remove local var.
8017 (parser::parse_pattern, add_operator): Rename local vars.
8019 2019-10-04 Joseph Myers <joseph@codesourcery.com>
8021 * builtins.def (DEF_C2X_BUILTIN): New macro.
8022 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
8023 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
8024 (strndup): Use DEF_C2X_BUILTIN.
8025 * coretypes.h (enum function_class): Add function_c2x_misc.
8027 2019-10-04 Maya Rashish <coypu@sdf.org>
8029 * ira-color.c (update_costs_from_allocno): Call
8030 ira_init_register_move_cost_if_necessary.
8032 2019-10-04 Jeff Law <law@redhat.com>
8034 * config/h8300/h8300.md (cpymemsi): Disable.
8035 (movmd, movmd_internal_<mode>, movstr, movsd):
8036 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
8037 (movmd splitter, movsd splitter): Likewise.
8039 * range-op.cc (range_tests): Avoid two tests when ints and
8040 shorts are the same size.
8042 2019-10-04 Richard Biener <rguenther@suse.de>
8045 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
8048 2019-10-04 Richard Biener <rguenther@suse.de>
8050 PR tree-optimization/91982
8051 * tree-vect-loop.c (vectorizable_live_operation): Also guard
8052 against EXTRACT_LAST_REDUCTION.
8053 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
8055 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
8057 * range-op.o (value_range_from_overflowed_bounds): Rename from
8058 adjust_overflow_bound.
8059 (value_range_with_overflow): Rename from
8060 create_range_with_overflow.
8061 (create_possibly_reversed_range): Adjusted for above renames.
8062 (operator_*::wi_fold): Same.
8063 (cross_product_operator::wi_cross_productor): Same.
8065 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8067 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
8068 -Wshadow=compatible-local): Fix description.
8069 Add an example where -Wshadow=compatible-local does not
8072 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
8074 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
8076 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
8077 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
8079 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8081 * expr.c (emit_block_move_hints): Slightly cleaner fix to
8082 can_move_by_pieces issue.
8084 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
8087 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
8088 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
8089 is available and the user has not set one on the command line.
8091 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8094 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
8095 instead of REGNO equality check on addr.reg.
8097 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
8099 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
8100 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
8101 * doc/invoke.texi (inline-heuristics-hint-percent,
8102 inline-heuristics-hint-percent-O2): Document.
8103 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
8105 (can_inline_edge_by_limits_p): Use it.
8107 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
8109 * config/arm/arm.c (arm_print_value): Use real_to_decimal
8110 to print CONST_DOUBLEs.
8112 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
8114 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
8115 * ipa-prop.c (ipcp_free_transformation_sum): New function.
8116 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
8118 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
8120 * Makefile.in (OBJS): Add range.o and range-op.o.
8121 Remove wide-int-range.o.
8122 * function-tests.c (test_ranges): New.
8123 (function_tests_c_tests): Call test_ranges.
8124 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
8125 range_fold_unary_expr instead of extract_range_from_unary_expr.
8126 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
8127 * range-op.cc: New file.
8128 * range-op.h: New file.
8129 * range.cc: New file.
8130 * range.h: New file.
8131 * selftest.h (range_tests): New prototype.
8132 * ssa.h: Include range.h.
8133 * tree-vrp.c (value_range_base::value_range_base): New
8135 (value_range_base::singleton_p): Do not call
8136 ranges_from_anti_range until sure we will need to.
8137 (value_range_base::type): Rename gcc_assert to
8138 gcc_checking_assert.
8139 (vrp_val_is_max): New argument.
8140 (vrp_val_is_min): Same.
8141 (wide_int_range_set_zero_nonzero_bits): Move from
8143 (extract_range_into_wide_ints): Remove.
8144 (extract_range_from_multiplicative_op): Remove.
8145 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
8146 from extract_range_from_binary_expr.
8147 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
8148 from extract_range_from_binary_expr.
8149 (extract_range_from_binary_expr): Remove.
8150 (normalize_for_range_ops): New.
8151 (range_fold_binary_expr): New.
8152 (range_fold_unary_expr): New.
8153 (value_range_base::num_pairs): New.
8154 (value_range_base::lower_bound): New.
8155 (value_range_base::upper_bound): New.
8156 (value_range_base::upper_bound): New.
8157 (value_range_base::contains_p): New.
8158 (value_range_base::invert): New.
8159 (value_range_base::union_): New.
8160 (value_range_base::intersect): New.
8161 (range_compatible_p): New.
8162 (value_range_base::operator==): New.
8163 (determine_value_range_1): Call range_fold_*expr instead of
8164 extract_range_from_*expr.
8165 * tree-vrp.h (class value_range_base): Add new constructors.
8166 Add methods for union_, intersect, operator==, contains_p,
8167 num_pairs, lower_bound, upper_bound, invert.
8168 (vrp_val_is_min): Add handle_pointers argument.
8169 (vrp_val_is_max): Same.
8170 (extract_range_from_unary_expr): Remove.
8171 (extract_range_from_binary_expr): Remove.
8172 (range_fold_unary_expr): New.
8173 (range_fold_binary_expr): New.
8174 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
8175 range_fold_binary_expr instead of extract_range_from_binary_expr.
8176 (vr_values::extract_range_basic): Same.
8177 (vr_values::extract_range_from_unary_expr): Call
8178 range_fold_unary_expr instead of extract_range_from_unary_expr.
8179 * wide-int-range.cc: Remove.
8180 * wide-int-range.h: Remove.
8182 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
8184 * config/rs6000/rs6000.c (mem_operand_gpr): Use
8185 SIGNED_16BIT_OFFSET_EXTRA_P macro.
8186 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
8187 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
8190 2019-10-02 Joseph Myers <joseph@codesourcery.com>
8192 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
8193 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
8194 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
8195 * glimits.h: Likewise.
8197 2019-10-03 Jakub Jelinek <jakub@redhat.com>
8199 PR rtl-optimization/91976
8200 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
8201 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
8202 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
8204 2019-10-02 Martin Sebor <msebor@redhat.com>
8206 PR tree-optimization/80936
8207 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
8209 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8211 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
8212 instead of reg_class_contents[ALL_REGS].
8214 2019-09-30 Jason Merrill <jason@redhat.com>
8216 Add some hash_map_safe_* functions like vec_safe_*.
8217 * hash-map.h (default_hash_map_size): New variable.
8218 (create_ggc): Use it as default argument.
8219 (hash_map_maybe_create, hash_map_safe_get)
8220 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
8222 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
8224 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
8225 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
8226 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
8227 (can_inline_edge_by_limits_p): Use it.
8228 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
8229 (want_inline_small_function_p): Use O2 bounds.
8230 (edge_badness): LIkewise.
8231 * opts.c (default_options): Add OPT_finline_functions.
8232 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
8233 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
8235 * doc/invoke.texi (-finline-functions): Update documentation.
8236 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
8237 inline-min-speedup-O2): Document.
8238 (early-inlining-insns-O2): Simplify docs.
8240 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
8242 PR rtl-optimization/87047
8243 * ifcvt.c (average_cost): New static function. Use it...
8244 (noce_process_if_block): ... here.
8246 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8248 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
8249 * config/rs6000/rs6000-string.c (expand_block_move): Add
8251 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
8252 (cpymemsi): Add might_overlap parm to expand_block_move() call.
8254 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8256 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
8257 (expand_builtin_memcpy): Use might_overlap parm.
8258 (expand_builtin_mempcpy_args): Use might_overlap parm.
8259 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
8260 (expand_builtin_memory_copy_args): Add might_overlap parm.
8261 * expr.c (emit_block_move_via_cpymem): Rename to
8262 emit_block_move_via_pattern, add might_overlap parm, use cpymem
8263 or movmem optab as appropriate.
8264 (emit_block_move_hints): Add might_overlap parm, do the right
8265 thing for might_overlap==true.
8266 * expr.h (emit_block_move_hints): Update prototype.
8268 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
8270 * tree-eh.h (unsplit_eh_edges): Declare.
8271 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
8272 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
8273 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
8274 (struct store_immediate_info): Add lp_nr field.
8275 (store_immediate_info::store_immediate_info): Add NR2 parameter and
8276 initialize lp_nr with it.
8277 (struct merged_store_group): Add lp_nr and only_constants fields.
8278 (merged_store_group::merged_store_group): Initialize them.
8279 (merged_store_group::can_be_merged_into): Deal with them.
8280 (pass_store_merging): Rename terminate_and_release_chain into
8281 terminate_and_process_chain.
8282 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
8283 renaming and remove useless assertions.
8284 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
8285 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
8286 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
8287 instead of always recomputing it and compare lp_nr.
8288 (imm_store_chain_info::output_merged_store): If the group is in an
8289 active EH region, register new stores if they can throw. Moreover,
8290 if the insertion has created new basic blocks, adjust the PHI nodes
8291 of the post landing pad.
8292 (imm_store_chain_info::output_merged_stores): If the original stores
8293 are in an active EH region, deregister them.
8294 (lhs_valid_for_store_merging_p): Prettify.
8295 (adjust_bit_pos): New function extracted from...
8296 (mem_valid_for_store_merging): ...here. Use it for the base address
8297 and also for the offset if it is the addition of a constant.
8298 (lp_nr_for_store): New function.
8299 (pass_store_merging::process_store): Change return type to bool.
8300 Call lp_nr_for_store to initialize the store info. Propagate the
8301 return status of various called functions to the return value.
8302 (store_valid_for_store_merging_p): New predicate.
8303 (enum basic_block_status): New enumeration.
8304 (get_status_for_store_merging): New function.
8305 (pass_store_merging::execute): If the function can throw and catch
8306 non-call exceptions, unsplit the EH edges on entry and clean up the
8307 CFG on exit if something changed. Call get_status_for_store_merging
8308 for every basic block and keep the chains open across basic blocks
8309 when possible. Terminate and process open chains at the end, if any.
8311 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8313 * reginfo.c (globalize_reg): Fix shadowed variable in
8316 2019-10-02 Martin Jambor <mjambor@suse.cz>
8318 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
8319 do not compute some stuff when set.
8320 (cgraph_node::create_edge): Likewise.
8321 (cgraph_node::create_indirect_edge): Renamed last parameter to
8322 coning_p and flipped its meaning, don't even calculate
8323 inline_failed when set.
8324 * cgraph.h (cgraph_node::create_edge): Add new parameter.
8325 (symbol_table::::create_edge): Likewise.
8326 (cgraph_node::create_indirect_edge): Rename last parameter, flip
8328 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
8329 call graph edge creating functions.
8331 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8334 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
8337 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
8339 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
8341 2019-10-02 Richard Biener <rguenther@suse.de>
8343 * tree-vectorizer.h (vect_transform_reduction): Declare.
8344 * tree-vect-stmts.c (vect_transform_stmt): Use it.
8345 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
8346 stmt transform to ...
8347 (vect_transform_reduction): ... this.
8349 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
8351 * omp-low.c (lower_omp_target): Dereference optional argument
8352 to work with the right pointer.
8354 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
8356 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
8358 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
8359 * langhooks.h (omp_is_optional_argument): New hook.
8360 * omp-general.c (omp_is_optional_argument): New.
8361 * omp-general.h (omp_is_optional_argument): New declaration.
8362 * omp-low.c (lower_omp_target): Create temporary for received value
8363 and take the address for new_var if the original variable was a
8364 DECL_BY_REFERENCE. Use size of referenced object when a
8365 pass-by-reference optional argument used as argument to firstprivate.
8367 2019-10-02 Jakub Jelinek <jakub@redhat.com>
8369 PR tree-optimization/91940
8370 * tree-vect-patterns.c: Include tree-vector-builder.h and
8372 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
8373 unpromoting the argument back to uint16_t, or by converting into a
8374 rotate, or into shifts plus ior.
8376 2019-10-02 Richard Biener <rguenther@suse.de>
8378 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
8380 (vect_transform_cycle_phi): Declare.
8381 * tree-vect-stmts.c (vect_transform_stmt): Call
8382 vect_transform_cycle_phi.
8383 * tree-vect-loop.c (vectorizable_reduction): Split out
8384 PHI transformation stage to ...
8385 (vect_transform_cycle_phi): ... here.
8387 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8390 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
8391 eliminable registers.
8392 (make_hard_regno_live): Likewise, and don't make them live.
8394 2019-10-01 David Malcolm <dmalcolm@redhat.com>
8396 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
8397 Call pp_emit_prefix.
8398 (layout::print_source_line): Likewise.
8399 (layout::start_annotation_line): Likewise.
8400 (diagnostic_show_locus): Remove call to temporarily clear the
8402 (selftest::test_one_liner_fixit_remove): Add test coverage for the
8403 interaction of pp_set_prefix with rulers and fix-it hints.
8404 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
8405 prefix when calling diagnostic_show_locus, rather than destroying
8407 (print_parseable_fixits): Temporarily clear prefix.
8408 * pretty-print.c (pp_format): Save and restore line_length, rather
8409 than assuming it is zero.
8410 (pp_output_formatted_text): Remove assertion that line_length is
8413 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8415 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
8417 (nonoverlapping_refs_since_match_p): ... this; handle also
8419 (alias_stats): Update stats.
8420 (dump_alias_stats): Likewise.
8421 (cheap_array_ref_low_bound): New function.
8422 (aliasing_matching_component_refs_p): Add partial_overlap
8424 pass it to nonoverlapping_refs_since_match_p.
8425 (aliasing_component_refs_walk): Update call of
8426 aliasing_matching_component_refs_p
8427 (nonoverlapping_array_refs_p): New function.
8428 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
8429 indirect_refs_may_alias_p): Update calls of
8430 nonoverlapping_refs_since_match_p.
8432 2019-10-01 Maya Rashish <coypu@sdf.org>
8435 * ira-color.c (allocno_copy_cost_saving): Call
8436 ira_init_register_move_cost_if_necessary.
8438 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
8440 * Makefile.in (gnat_install_lib): New variable.
8441 * configure.ac: Substitute it.
8442 * configure: Regenerate.
8444 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8447 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
8448 is matched with non-C++ type
8450 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8452 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
8455 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8457 * doc/invoke.texi (early-inlining-insns-O2): Document.
8458 (early-inlining-insns): Update.
8459 * params.def (early-inlining-insns-O2): New bound.
8460 (early-inlining-insns): Update docs.
8461 * ipa-inline.c (want_early_inline_function_p): Use new bound.
8463 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
8466 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
8467 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
8468 a memory access insn.
8470 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
8472 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
8475 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
8478 * config/s390/s390.c (s390_expand_vec_compare): Use
8479 gen_vec_cmpordered and gen_vec_cmpunordered.
8480 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
8481 vec_unordered): Delete.
8482 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
8483 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
8484 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
8485 (vec_cmp<code>): Generic dispatcher.
8487 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
8490 * config/s390/vector.md (V_HW): Add V1TI in order to make
8491 vcond$a$b generate vcondv1tiv1tf.
8493 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8495 PR rtl-optimization/91948
8496 * ira-build.c (ira_create_allocno): Initialize
8497 ALLOCNO_CROSSED_CALLS_ABIS.
8498 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
8499 than regno to ira_need_caller_save_p.
8501 2019-10-01 Alexandre Oliva <oliva@adacore.com>
8503 * config/i386/i386-options.c
8504 (ix86_recompute_optlev_based_flags): New, moved out of...
8505 (ix86_option_override_internal): ... this. Call it.
8506 (ix86_override_options_after_change): Call it here too.
8509 * dwarf2out.c (override_type_for_decl_p): New.
8510 (gen_variable_die): Use it.
8512 2019-10-01 Richard Biener <rguenther@suse.de>
8514 * tree-vect-loop.c (vectorizable_reduction): Move variables
8515 to where they are used.
8517 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8519 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
8520 (build_def_use): Use PC instead of CC0 in a comment.
8522 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8524 * rtl.def (CLOBBER_HIGH): Delete.
8525 * doc/rtl.texi (clobber_high): Remove documentation.
8526 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
8527 (reg_is_clobbered_by_clobber_high): Delete.
8528 (gen_hard_reg_clobber_high): Likewise.
8529 * alias.c (record_set): Remove CLOBBER_HIGH handling.
8530 * cfgexpand.c (expand_gimple_stmt): Likewise.
8531 * combine-stack-adj.c (single_set_for_csa): Likewise.
8532 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
8533 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
8534 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
8535 * cse.c (invalidate_reg): Remove clobber_high parameter.
8536 (invalidate): Update call accordingly.
8537 (canonicalize_insn): Remove CLOBBER_HIGH handling.
8538 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
8539 (count_reg_usage, insn_live_p): Likewise.
8540 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
8541 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
8542 (cselib_invalidate_rtx_note_stores): Update call accordingly.
8543 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
8544 (cselib_invalidate_regno, cselib_process_insn): Likewise.
8545 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
8546 (mark_nonreg_stores_2): Likewise.
8547 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
8548 (df_get_call_refs): Likewise.
8549 * dwarf2out.c (mem_loc_descriptor): Likewise.
8550 * emit-rtl.c (verify_rtx_sharing): Likewise.
8551 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
8552 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
8553 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
8554 * genemit.c (gen_exp, gen_insn): Likewise.
8555 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
8556 * haifa-sched.c (haifa_classify_rtx): Likewise.
8557 * ira-build.c (create_insn_allocnos): Likewise.
8558 * ira-costs.c (scan_one_insn): Likewise.
8559 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
8560 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
8561 * jump.c (mark_jump_label_1): Likewise.
8562 * lra-int.h (lra_insn_reg::clobber_high): Delete.
8563 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
8565 (mark_not_eliminable): Likewise.
8566 * lra-lives.c (process_bb_lives): Likewise.
8567 * lra.c (new_insn_reg): Remove clobber_high parameter.
8568 (collect_non_operand_hard_regs): Likewise. Update call to new
8569 insn_reg. Remove CLOBBER_HIGH handling.
8570 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
8571 to collect_non_operand_hard_regs.
8572 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
8573 Update call to new_insn_reg.
8574 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
8575 * postreload.c (reload_cse_simplify, reload_combine_note_use)
8576 (move2add_note_store): Likewise.
8577 * print-rtl.c (print_pattern): Likewise.
8578 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
8579 (if_test_bypass_p): Likewise.
8580 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
8581 * reginfo.c (reg_scan_mark_refs): Likewise.
8582 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
8583 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
8584 (forget_old_reloads_1): Likewise.
8585 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
8586 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
8587 (dbr_schedule): Likewise.
8588 * resource.c (update_live_status, mark_referenced_resources)
8589 (mark_set_resources): Likewise.
8590 * rtl.c (copy_rtx): Likewise.
8591 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
8592 (note_pattern_stores): Likewise.
8593 (reg_is_clobbered_by_clobber_high): Delete.
8594 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
8595 CLOBBER_HIGH handling.
8597 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8600 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
8601 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
8602 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8603 Handle ARM_PCS_TLSDESC.
8604 (aarch64_tlsdesc_abi_id): New function.
8605 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
8606 rtx instead of a list of clobbers and clobber_highs.
8607 (tlsdesc_small_<mode>): Update accordingly.
8609 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8611 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
8612 extra callee_abi argument.
8613 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
8614 Insert a CALLEE_ABI unspec into the call pattern as the second
8615 element in the PARALLEL.
8616 (aarch64_simd_call_p): Delete.
8617 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
8618 the new CALLEE_ABI element of the PARALLEL.
8619 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
8620 from the function type, if given.
8621 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
8622 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
8623 when passed the function_arg_info end marker.
8624 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
8625 final argument of gen_sibcall.
8626 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
8627 (call): Make operand 2 a const_int_operand and pass it to expand_call.
8628 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
8630 (call_value): Likewise operand 3.
8631 (sibcall): Likewise operand 2. Place the unspec before rather than
8633 (sibcall_value): Likewise operand 3.
8634 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
8635 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
8636 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
8638 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
8640 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8642 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
8643 choose_hard_reg_mode.
8644 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8646 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8648 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
8649 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
8650 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
8652 2019-09-30 David Malcolm <dmalcolm@redhat.com>
8654 * diagnostic-show-locus.c (line_label::line_label): Initialize
8656 (line_label::comparator): Reverse the sort order by m_state_idx,
8657 so that when the list is walked backwards the labels appear in
8658 order of insertion into the rich_location.
8659 (line_label::m_has_vbar): New field.
8660 (layout::print_any_labels): When dealing with multiple labels at
8661 the same line and column, only print vertical bars for the one
8662 with the highest label_line.
8663 (selftest::test_one_liner_labels): Update test for multiple labels
8664 to expect the labels to be in the order of insertion into the
8665 rich_location. Add a test for many such labels, where the column
8666 numbers are out-of-order relative to the insertion order.
8668 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8670 * config/i386/i386.h (ix86_frame::expensive_p): New field.
8671 (ix86_frame::expensive_count): Likewise.
8672 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
8673 of use_fast_prologue_epilogue robust against incidental changes
8676 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8679 * config/s390/vector.md (vec_unordered<mode>): Call
8680 gen_vec_ordered<mode>.
8682 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
8684 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
8685 New pattern for ASRD.
8686 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
8687 * internal-fn.def (IFN_DIV_POW2): New internal function.
8688 * optabs.def (sdiv_pow2_optab): New optab.
8689 * tree-vect-patterns.c (vect_recog_divmod_pattern):
8690 Modify pattern to support new operation.
8691 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
8692 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
8693 Document new target selector.
8695 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8697 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
8698 to test whether we're compiling a vector PCS function and to test
8699 whether the function needs to save a particular register.
8700 Remove the vector PCS handling of df_set_regs_ever_live.
8701 (aarch64_components_for_bb): Use crtl->abi to test whether
8702 the function needs to save a particular register.
8703 (aarch64_process_components): Use crtl->abi to test whether
8704 we're compiling a vector PCS function.
8705 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
8706 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
8708 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8710 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
8712 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
8713 whether the block calls a function that clobbers more registers
8714 than the current function is allowed to.
8715 (aarch64_use_simple_return_insn_p): Delete.
8716 * config/aarch64/aarch64.md (simple_return): Remove condition.
8718 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8720 * function-abi.h (function_abi_aggregator): New class.
8721 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
8723 * ira.c (update_equiv_regs_prescan): New function. Call
8724 set_paradoxical_subreg here rather than...
8725 (update_equiv_regs): ...here.
8726 (ira): Call update_equiv_regs_prescan.
8728 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8730 * hard-reg-set.h (regs_invalidated_by_call): Only define if
8732 (call_used_or_fixed_regs): Likewise.
8733 (call_used_or_fixed_reg_p): Likewise.
8734 * reginfo.c (regs_invalidated_by_call): New macro.
8736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8738 * shrink-wrap.c: Include function-abi.h.
8739 (requires_stack_frame_p): Use crtl->abi to test whether the
8740 current function can use a register without saving it first.
8742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8744 * sel-sched-ir.h (_def::crosses_call): Replace with...
8745 (_def::crossed_call_abis): ..this new field.
8746 (def_list_add): Take a mask of ABIs instead of a crosses_call
8748 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
8749 of _def accordingly.
8750 * sel-sched.c: Include function-abi.h.
8751 (hard_regs_data::regs_for_call_clobbered): Delete.
8752 (reg_rename::crosses_call): Replace with...
8753 (reg_rename::crossed_call_abis): ...this new field.
8754 (fur_static_params::crosses_call): Replace with...
8755 (fur_static_params::crossed_call_abis): ...this new field.
8756 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
8757 (init_hard_regs_data): Use crtl->abi to test which registers the
8758 current function would need to save before it uses them.
8759 (mark_unavailable_hard_regs): Update handling of call-clobbered
8760 registers, using call_clobbers_in_region to find out which registers
8761 might be call-clobbered (but without taking -fipa-ra into account
8762 for now). Remove separate handling of partially call-clobbered
8764 (verify_target_availability): Use crossed_call_abis instead of
8766 (get_spec_check_type_for_insn, find_used_regs): Likewise.
8767 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
8769 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8771 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
8772 function to test whether a register is fully or partly clobbered.
8774 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8776 * rtlanal.c: Include function-abi.h.
8777 (reg_set_p): Use insn_callee_abi to get the ABI of the called
8778 function and clobbers_reg_p to test whether the register
8780 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
8781 to get the ABI of the called function and full_reg_clobbers to
8782 get the set of fully call-clobbered registers. Warn about the
8783 pitfalls of using this mode.
8785 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8787 * reload.c: Include function-abi.h.
8788 (find_equiv_reg): Use clobbers_reg_p to test whether either
8789 of the equivalent registers is clobbered by a call.
8790 * reload1.c: Include function-abi.h.
8791 (reg_reloaded_call_part_clobbered): Delete.
8792 (reload): Use crtl->abi to test which registers would need
8793 saving in the prologue before use.
8794 (find_reg): Likewise.
8795 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
8796 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
8797 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
8799 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8801 * regrename.h (du_head::call_clobber_mask): New field.
8802 (du_head::need_caller_save_reg): Replace with...
8803 (du_head::call_abis): ...this new field.
8804 * regrename.c: Include function-abi.h.
8805 (call_clobbered_in_chain_p): New function.
8806 (check_new_reg_p): Use crtl->abi when deciding whether a register
8807 is free for use after RA. Use call_clobbered_in_chain_p to test
8808 whether a candidate register would be clobbered by a call.
8809 (find_rename_reg): Don't add call-clobber conflicts here.
8810 (rename_chains): Check call_abis instead of need_caller_save_reg.
8811 (merge_chains): Update for changes to du_head.
8812 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
8813 target. Record the ABI identifier in call_abis and the set of
8814 fully or partially clobbered registers in call_clobber_mask.
8815 Add fully-clobbered registers to hard_conflicts here rather
8816 than in find_rename_reg.
8817 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
8818 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
8819 * config/aarch64/falkor-tag-collision-avoidance.c: Include
8821 * config/c6x/c6x.c: Likewise.
8823 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8825 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
8826 mode of the register when deciding whether it is no longer
8827 available after a call.
8829 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8831 * recog.c: Include function-abi.h.
8832 (peep2_find_free_register): Use crtl->abi when deciding whether
8833 a register is free for use after RA.
8835 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8837 * postreload-gcse.c: Include regs.h and function-abi.h.
8838 (record_opr_changes): Use insn_callee_abi to get the ABI of the
8839 call insn target. Conservatively assume that partially-clobbered
8840 registers are altered.
8842 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8844 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
8845 when deciding whether a register is free for use after RA.
8846 (reload_combine): Remove unnecessary use of fixed_reg_set.
8847 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
8848 call insn target. Use reg_mode when testing whether a register
8849 is no longer available.
8851 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8853 * target.def (return_call_with_max_clobbers): Delete.
8854 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8855 * doc/tm.texi: Regenerate.
8856 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
8857 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8858 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
8859 (lra_reg::call_insn): Delete.
8860 * lra.c: Include function-abi.h.
8861 (initialize_lra_reg_info_element): Don't initialize the fields above.
8862 (lra): Use crtl->abi to test whether the current function needs to
8863 save a register in the prologue. Remove special pre-inheritance
8864 lra_create_live_ranges pass for flag_ipa_ra.
8865 * lra-assigns.c: Include function-abi.h
8866 (find_hard_regno_for_1): Use crtl->abi to test whether the current
8867 function needs to save a register in the prologue.
8868 (lra_assign): Assert that registers aren't allocated to a
8869 conflicting register, rather than checking only for overlaps
8870 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
8871 and for registers that are not live across a call.
8872 * lra-constraints.c (last_call_for_abi): New variable.
8873 (full_and_partial_call_clobbers): Likewise.
8874 (setup_next_usage_insn): Remove the register from
8875 full_and_partial_call_clobbers.
8876 (need_for_call_save_p): Use call_clobbered_in_region_p to test
8877 whether the register needs a caller save.
8878 (need_for_split_p): Use full_and_partial_reg_clobbers instead
8879 of call_used_or_fixed_regs.
8880 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
8881 full_and_partial_call_clobbers.
8882 * lra-lives.c (check_pseudos_live_through_calls): Replace
8883 last_call_used_reg_set and call_insn arguments with an abi argument.
8884 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
8885 as the set of conflicting registers.
8886 (calls_have_same_clobbers_p): Delete.
8887 (process_bb_lives): Track the ABI of the last call instead of an
8888 insn/HARD_REG_SET pair. Update calls to
8889 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
8890 the set of registers that could be clobbered by an EH edge.
8891 Include partially-clobbered as well as fully-clobbered registers.
8892 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
8893 * lra-remat.c: Include function-abi.h.
8894 (call_used_regs_arr_len, call_used_regs_arr): Delete.
8895 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
8896 registers and bitmap_view to combine them into dead_regs.
8897 (call_used_input_regno_present_p): Take a function_abi argument
8898 and use it to test whether a register is call-clobbered.
8899 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
8900 call insn target. Update tje call to call_used_input_regno_present_p.
8901 (do_remat): Likewise.
8902 (lra_remat): Remove the initialization of call_used_regs_arr_len
8903 and call_used_regs_arr.
8905 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8907 * loop-iv.c: Include regs.h and function-abi.h.
8908 (simplify_using_initial_values): Use insn_callee_abi to get the
8909 ABI of the call insn target. Conservatively assume that
8910 partially-clobbered registers are altered.
8912 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8914 * function-abi.h (call_clobbers_in_region): Declare.
8915 (call_clobbered_in_region_p): New function.
8916 * function-abi.cc (call_clobbers_in_region): Likewise.
8917 * ira-int.h: Include function-abi.h.
8918 (ira_allocno::crossed_calls_abis): New field.
8919 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
8920 (ira_need_caller_save_regs): New function.
8921 (ira_need_caller_save_p): Likewise.
8922 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
8923 of call_used_or_fixed_regs.
8924 (do_reload): Use crtl->abi to test whether the current function
8925 needs to save a register in the prologue. Count registers that
8926 need to be saved rather than registers that don't.
8927 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
8928 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8929 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
8930 (propagate_some_info_from_allocno): Likewise.
8931 (copy_info_to_removed_store_destinations): Likewise.
8932 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
8933 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
8934 (ira_build): Use ira_need_caller_save_regs instead of
8935 call_used_or_fixed_regs.
8936 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
8937 whether the current function would need to save a register
8939 (calculate_spill_cost): Likewise.
8940 (allocno_reload_assign): Use ira_need_caller_save_regs and
8941 ira_need_caller_save_p instead of call_used_or_fixed_regs.
8942 * ira-conflicts.c (ira_build_conflicts): Use
8943 ira_need_caller_save_regs rather than call_used_or_fixed_regs
8944 as the set of call-clobbered registers. Remove the
8945 call_used_or_fixed_regs mask from the calculation of
8946 temp_hard_reg_set and mask its use instead. Remove special
8947 handling of partially-clobbered registers.
8948 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
8949 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
8950 calculate the set of conflicting registers for calls that
8951 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
8952 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
8953 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8954 Use eh_edge_abi to calculate the set of registers that could
8955 be clobbered by an EH edge. Include partially-clobbered as
8956 well as fully-clobbered registers.
8958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8960 * haifa-sched.c: Include function-abi.h.
8961 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
8962 the function would need to save a register before using it.
8964 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8966 * gcse.c: Include function-abi.h.
8967 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
8968 the call insn target. Invalidate partially call-clobbered
8969 registers as well as fully call-clobbered ones.
8971 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8973 * function.c (aggregate_value_p): Work out which ABI the
8974 function is using before testing which registers are at least
8975 partly preserved by a call.
8977 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8979 * early-remat.c: Include regs.h and function-abi.h.
8980 (early_remat::maybe_add_candidate): Don't check for call-clobbered
8982 (early_remat::restrict_remat_for_unavail_regs): New function.
8983 (early_remat::restrict_remat_for_call): Likewise.
8984 (early_remat::process_block): Before calling emit_remat_insns
8985 for a previous call in the block, invalidate any candidates
8986 that would clobber call-preserved registers.
8987 (early_remat::emit_remat_insns_for_block): Likewise for the
8988 final call in a block. Do the same thing for live-in registers
8989 when calling emit_remat_insns at the head of a block.
8991 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8993 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
8994 whether the current function needs to save at least part of a
8995 register before using it.
8996 (df_get_exit_block_use_set): Likewise for epilogue restores.
8998 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9000 * df-problems.c: Include regs.h and function-abi.h.
9001 (df_rd_problem_data): Rename sparse_invalidated_by_call to
9002 sparse_invalidated_by_eh and dense_invalidated_by_call to
9003 dense_invalidated_by_eh.
9004 (df_print_bb_index): Update accordingly.
9005 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
9006 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
9007 that are clobbered by an EH edge. Clobber partially-clobbered
9008 registers as well as fully-clobbered ones.
9009 (df_md_confluence_n): Likewise.
9010 (df_rd_local_compute): Likewise. Update for changes to
9012 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
9013 of registers that are clobbered by an EH edge. Includde partially-
9014 clobbered registers as well as fully-clobbered ones.
9016 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9018 * cselib.c (cselib_process_insn): If we know what mode a
9019 register was set in, check whether it is clobbered in that
9020 mode by a call. Only fall back to reg_raw_mode if that fails.
9022 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9024 * cse.c: Include regs.h and function-abi.h.
9025 (invalidate_for_call): Take the call insn as an argument.
9026 Use insn_callee_abi to get the ABI of the call and invalidate
9027 partially clobbered registers as well as fully clobbered ones.
9028 (cse_insn): Update call accordingly.
9030 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9032 * combine.c: Include function-abi.h.
9033 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
9034 of the target of call insns. Invalidate partially-clobbered
9035 registers as well as fully-clobbered ones.
9037 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9039 * cfgloopanal.c: Include regs.h and function-abi.h.
9040 (init_set_costs): Use default_function_abi to test whether
9041 a general register is call-clobbered.
9043 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9045 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
9046 instead of the call-clobbered sets.
9048 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9050 * caller-save.c (setup_save_areas): Remove redundant |s of
9052 (save_call_clobbered_regs): Likewise. Use the call ABI rather
9053 than call_used_or_fixed_regs to decide whether a REG_RETURNED
9056 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9058 * rtl.h (predefined_function_abi): Declare.
9059 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9060 instead of a boolean call_save flag.
9061 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
9063 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9064 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9065 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
9066 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9067 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9068 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
9069 * reginfo.c (init_reg_modes_target): Likewise.
9070 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9071 instead of a boolean call_save flag.
9072 * targhooks.c: Include function-abi.h.
9073 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
9074 using eh_edge_abi to choose the mode.
9076 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9078 * target.def (hard_regno_call_part_clobbered): Take an ABI
9079 identifier instead of an rtx_insn.
9080 * doc/tm.texi: Regenerate.
9081 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
9082 (hook_bool_uint_uint_mode_false): New function.
9083 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
9084 (hook_bool_uint_uint_mode_false): New function.
9085 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9086 Take an ABI identifier instead of an rtx_insn.
9087 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
9088 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
9089 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
9090 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
9091 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
9093 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
9094 * cselib.c: Include function-abi.h.
9095 (cselib_process_insn): Update call to
9096 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9097 to get the appropriate ABI identifier.
9098 * function-abi.cc (predefined_function_abi::initialize): Update call
9099 to targetm.hard_regno_call_part_clobbered.
9100 * ira-conflicts.c (ira_build_conflicts): Likewise.
9101 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9102 * lra-constraints.c: Include function-abi.h.
9103 (need_for_call_save_p): Update call to
9104 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9105 to get the appropriate ABI identifier.
9106 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9107 * regcprop.c (copyprop_hardreg_forward_1): Update call
9108 to targetm.hard_regno_call_part_clobbered.
9109 * reginfo.c (choose_hard_reg_mode): Likewise.
9110 * regrename.c (check_new_reg_p): Likewise.
9111 * reload.c (find_equiv_reg): Likewise.
9112 * reload1.c (emit_reload_insns): Likewise.
9113 * sched-deps.c: Include function-abi.h.
9114 (deps_analyze_insn): Update call to
9115 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9116 to get the appropriate ABI identifier.
9117 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
9118 call to targetm.hard_regno_call_part_clobbered.
9119 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
9121 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9123 * config/i386/i386.c: Include function-abi.h.
9124 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
9125 if they preserve some 256-bit or 512-bit SSE registers.
9127 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9129 * target.def (insn_callee_abi): New hook.
9130 (remove_extra_call_preserved_regs): Delete.
9131 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
9132 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9133 * doc/tm.texi: Regenerate.
9134 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
9135 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
9136 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
9138 (aarch64_remove_extra_call_preserved_regs): Delete.
9139 (aarch64_insn_callee_abi): New function.
9140 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9141 (TARGET_INSN_CALLEE_ABI): New macro.
9142 * rtl.h (get_call_fndecl): Declare.
9143 (cgraph_rtl_info): Fix formatting. Tweak comment for
9144 function_used_regs. Remove function_used_regs_valid.
9145 * rtlanal.c (get_call_fndecl): Moved from final.c
9146 * function-abi.h (insn_callee_abi): Declare.
9147 (target_function_abi_info): Mention insn_callee_abi.
9148 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
9149 way to get_call_reg_set_usage did.
9150 (insn_callee_abi): New function.
9151 * regs.h (get_call_reg_set_usage): Delete.
9152 * final.c: Include function-abi.h.
9153 (collect_fn_hard_reg_usage): Add fixed and stack registers to
9154 function_used_regs before the main loop rather than afterwards.
9155 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
9156 if function_used_regs ends up not being useful.
9157 (get_call_fndecl): Move to rtlanal.c
9158 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
9159 * caller-save.c: Include function-abi.h.
9160 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
9161 instead of get_call_reg_set_usage.
9162 * cfgcleanup.c: Include function-abi.h.
9163 (old_insns_match_p): Use insn_callee_abi instead of
9164 get_call_reg_set_usage.
9165 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
9167 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
9169 * df-scan.c: Include function-abi.h.
9170 (df_get_call_refs): Use insn_callee_abi instead of
9171 get_call_reg_set_usage.
9172 * ira-lives.c: Include function-abi.h.
9173 (process_bb_node_lives): Use insn_callee_abi instead of
9174 get_call_reg_set_usage.
9175 * lra-lives.c: Include function-abi.h.
9176 (process_bb_lives): Use insn_callee_abi instead of
9177 get_call_reg_set_usage.
9178 * postreload.c: Include function-abi.h.
9179 (reload_combine): Use insn_callee_abi instead of
9180 get_call_reg_set_usage.
9181 * regcprop.c: Include function-abi.h.
9182 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
9183 get_call_reg_set_usage.
9184 * resource.c: Include function-abi.h.
9185 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
9186 instead of get_call_reg_set_usage.
9187 * var-tracking.c: Include function-abi.h.
9188 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
9189 get_call_reg_set_usage.
9191 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9193 * target.def (fntype_abi): New target hook.
9194 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
9195 * doc/tm.texi: Regenerate.
9196 * target.h (predefined_function_abi): Declare.
9197 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
9199 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
9200 * config/aarch64/aarch64.c: Include function-abi.h.
9201 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
9202 (TARGET_FNTYPE_ABI): Define.
9204 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9206 * Makefile.in (OBJS): Add function-abi.o.
9207 (GTFILES): Add function-abi.h.
9208 * function-abi.cc: New file.
9209 * function-abi.h: Likewise.
9210 * emit-rtl.h (rtl_data::abi): New field.
9211 * function.c: Include function-abi.h.
9212 (prepare_function_start): Initialize crtl->abi.
9213 * read-rtl-function.c: Include regs.h and function-abi.h.
9214 (read_rtl_function_body): Initialize crtl->abi.
9215 (read_rtl_function_body_from_file_range): Likewise.
9216 * reginfo.c: Include function-abi.h.
9217 (init_reg_sets_1): Initialize default_function_abi.
9218 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
9219 when making a register global.
9220 * target-globals.h (this_target_function_abi_info): Declare.
9221 (target_globals::function_abi_info): New field.
9222 (restore_target_globals): Copy it.
9223 * target-globals.c: Include function-abi.h.
9224 (default_target_globals): Initialize the function_abi_info field.
9225 (target_globals): Allocate it.
9226 (save_target_globals): Free it.
9228 2019-09-30 Nick Clifton <nickc@redhat.com>
9231 * config/frv/frv.c (frv_register_move_cost): Add break statements
9232 to avoid falling through to the wrong cases. Tidy code.
9234 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9236 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9237 For multi-registers modes, test how big each register part is.
9239 2019-09-30 Nick Clifton <nickc@redhat.com>
9242 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
9243 (TARGET_ASM_SELECT_SECTION): Remove definition.
9244 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
9246 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9248 * emit-rtl.c (init_raw_REG): New function.
9249 (gen_raw_REG): Use init_raw_REG.
9250 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
9252 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
9253 * rtl.h (rtx_init): New function.
9254 (rtx_alloca): New function.
9255 (init_raw_REG): New function.
9256 (alloca_raw_REG): New macro.
9258 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
9260 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
9261 (pcrel_local_address): Replace pcrel_address predicate, use the
9262 new function address_to_insn_form.
9263 (pcrel_external_address): Replace with new implementation using
9264 address_to_insn_form..
9265 (prefixed_mem_operand): Delete predicate which is now unused.
9266 (pcrel_external_mem_operand): Delete predicate which is now
9268 * config/rs6000/rs6000-protos.h (enum insn_form): New
9270 (enum non_prefixed_form): New enumeration.
9271 (address_to_insn_form): New declaration.
9272 (prefixed_load_p): New declaration.
9273 (prefixed_store_p): New declaration.
9274 (prefixed_paddi_p): New declaration.
9275 (rs6000_asm_output_opcode): New declaration.
9276 (rs6000_final_prescan_insn): Move declaration and update calling
9278 (address_is_prefixed): New helper inline function.
9279 * config/rs6000/rs6000.c(print_operand_address): Check for either
9280 PC-relative local symbols or PC-relative external symbols.
9281 (rs6000_emit_move): Support loading PC-relative addresses.
9282 (mode_supports_prefixed_address_p): Delete, no longer used.
9283 (rs6000_prefixed_address_mode_p): Delete, no longer used.
9284 (address_to_insn_form): New function to decode an address format.
9285 (reg_to_non_prefixed): New function to identify what the
9286 non-prefixed memory instruction format is for a register.
9287 (prefixed_load_p): New function to identify prefixed loads.
9288 (prefixed_store_p): New function to identify prefixed stores.
9289 (prefixed_paddi_p): New function to identify prefixed load
9291 (next_insn_prefixed_p): New static state variable.
9292 (rs6000_final_prescan_insn): New function to determine if an insn
9293 uses a prefixed instruction.
9294 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
9295 prefixed instruction.
9296 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
9297 (ASM_OUTPUT_OPCODE): New target hook.
9298 * config/rs6000/rs6000.md (prefixed): New insn attribute for
9299 prefixed instructions.
9300 (prefixed_length): New insn attribute for the size of prefixed
9302 (non_prefixed_length): New insn attribute for the size of
9303 non-prefixed instructions.
9304 (pcrel_local_addr): New insn to load up a local PC-relative
9306 (pcrel_extern_addr): New insn to load up an external PC-relative
9308 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
9309 GPR and loading a 128-bit floating point type to a GPR.
9311 2019-09-30 Richard Biener <rguenther@suse.de>
9313 * gimple.c (gimple_get_lhs): For PHIs return the result.
9314 * tree-vectorizer.h (vectorizable_live_operation): Also get the
9315 SLP instance as argument.
9316 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
9317 double-reduction PHIs with vectorizable_lc_phi.
9318 (vect_analyze_loop_operations): Adjust.
9319 (vect_create_epilog_for_reduction): Remove all code not dealing
9320 with reduction LC PHI or epilogue generation.
9321 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
9322 for live stmts of reductions.
9323 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
9324 do not handle defs that are not vect_internal_def.
9325 (can_vectorize_live_stmts): Adjust.
9326 (vect_analyze_stmt): When the vectorized stmt defined a value
9327 used on backedges adjust the backedge uses of vectorized PHIs.
9329 2019-09-30 Martin Jambor <mjambor@suse.cz>
9332 * tree-inline.c (force_value_to_type): New function.
9333 (setup_one_parameter): Use force_value_to_type to convert type.
9334 * tree-inline.c (force_value_to_type): Declare.
9335 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
9336 with register type mismatches.
9338 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
9340 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
9342 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
9343 * config/rs6000/t-freebsd64: Make use of the above define and build
9344 the 32-bit libraries with secure-plt.
9346 2019-09-30 Jakub Jelinek <jakub@redhat.com>
9349 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
9350 gen_int_mode instead of GEN_INT.
9352 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
9354 * config/darwin.c (gen_macho_low): Amend to include the mode
9356 (machopic_indirect_data_reference): Amend gen_macho_low call
9357 to include mode argument
9358 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
9359 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
9360 the macho_high expander and two define_insn entries.
9362 2019-09-29 Jakub Jelinek <jakub@redhat.com>
9365 * optc-save-gen.awk: Fix up printing string option differences.
9367 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9369 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9370 vec_perm cost to 1 for non-Power7 VSX architectures.
9372 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9374 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
9375 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
9376 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
9378 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
9380 * config/darwin.c (gen_macho_high): Amend to include the mode
9382 (machopic_indirect_data_reference): Amend gen_macho_high call
9383 to include mode argument.
9384 (machopic_legitimize_pic_address): Likewise.
9385 * config/rs6000/rs6000.c (rs6000_legitimize_address):
9386 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
9387 the macho_high expander and two define_insn entries.
9389 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9392 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
9394 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9397 * config/sh/sh.c (parse_validate_atomic_model_option): Use
9398 std::string::compare instead of std::string::find.
9400 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9402 * configure: Regenerate.
9404 2019-09-27 Jakub Jelinek <jakub@redhat.com>
9407 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
9408 variables as shared.
9410 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
9412 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
9413 replaces the expander and two define_insn entries.
9414 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
9416 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
9418 2019-09-27 David Malcolm <dmalcolm@redhat.com>
9420 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
9421 (fibonacci_heap::nodes): Likewise.
9422 (fibonacci_heap::min_key): Likewise.
9423 (fibonacci_heap::min): Likewise.
9425 2019-09-27 David Malcolm <dmalcolm@redhat.com>
9427 * cgraph.c (cgraph_node::get_fun): Make const.
9428 * cgraph.h (cgraph_node::get_fun): Likewise.
9430 2019-09-27 Jakub Jelinek <jakub@redhat.com>
9433 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
9436 2019-09-27 Richard Biener <rguenther@suse.de>
9438 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
9439 (STMT_VINFO_REDUC_FN): Likewise.
9440 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9441 STMT_VINFO_REDUC_FN.
9442 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
9443 for condition reductions.
9444 (vect_create_epilog_for_reduction): Compute all required state
9445 from the stmt to be vectorized.
9446 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
9447 invocation and remove then dead code. For single def-use chains
9448 record only a single vector stmt.
9450 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9452 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
9453 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
9454 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
9455 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
9456 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
9457 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
9458 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
9459 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
9460 (aarch64_general_builtin_rsqrt): Declare.
9461 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
9463 (aarch64_mangle_builtin_type): Rename to...
9464 (aarch64_general_mangle_builtin_type): ...this.
9465 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
9466 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
9467 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
9468 aarch64_general_add_builtin instead of add_builtin_function.
9469 (aarch64_init_builtins): Rename to...
9470 (aarch64_general_init_builtins): ...this. Use
9471 aarch64_general_add_builtin instead of add_builtin_function.
9472 (aarch64_builtin_decl): Rename to...
9473 (aarch64_general_builtin_decl): ...this and remove the unused
9475 (aarch64_expand_builtin): Rename to...
9476 (aarch64_general_expand_builtin): ...this and remove the unused
9478 (aarch64_builtin_rsqrt): Rename to...
9479 (aarch64_general_builtin_rsqrt): ...this.
9480 (aarch64_fold_builtin): Rename to...
9481 (aarch64_general_fold_builtin): ...this. Take the function subcode
9482 and return type as arguments. Remove the "ignored" argument.
9483 (aarch64_gimple_fold_builtin): Rename to...
9484 (aarch64_general_gimple_fold_builtin): ...this. Take the function
9485 subcode and gcall as arguments, and return the new function call.
9486 * config/aarch64/aarch64.c (aarch64_init_builtins)
9487 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
9488 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
9489 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
9490 instead of aarch64_builtin_rsqrt.
9491 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
9492 instead of aarch64_mangle_builtin_type.
9494 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9496 * target.def (check_builtin_call): New target hook.
9497 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
9498 * doc/tm.texi: Regenerate.
9500 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9502 PR tree-optimization/91909
9503 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
9504 reduc_index parameter. When handling COND_REDUCTION, make sure
9505 that the reduction phi operand is in the correct arm of the
9507 (vectorizable_reduction): Pass reduc_index to the above.
9509 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
9511 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
9512 New combine pattern.
9514 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
9516 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
9517 loop instruction into new basic block before the loop when basic
9518 block that precedes the loop is empty.
9520 2019-09-26 Jakub Jelinek <jakub@redhat.com>
9522 * function.c (gimplify_parameters): Use build_clobber function.
9523 * tree-ssa.c (execute_update_addresses_taken): Likewise.
9524 * tree-inline.c (expand_call_inline): Likewise.
9525 * tree-sra.c (clobber_subtree): Likewise.
9526 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
9527 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
9528 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
9529 lower_omp_target): Likewise.
9530 * omp-expand.c (expand_omp_for_generic): Likewise.
9531 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
9533 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
9535 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
9536 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
9537 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
9538 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
9539 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
9540 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
9541 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
9542 LD_ELEMREV_V16QI): Use the PURE attribute.
9544 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
9546 * config/rs6000/darwin.md: Replace the expanders for
9547 load_macho_picbase and reload_macho_picbase with use of '@'
9548 and <mode> in their respective define_insns.
9549 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
9550 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
9551 Pmode to gen_load_macho_picbase.
9552 * config/rs6000/rs6000.md: Likewise.
9554 2019-09-25 Richard Biener <rguenther@suse.de>
9556 PR tree-optimization/91896
9557 * tree-vect-loop.c (vectorizable_reduction): The single
9558 def-use cycle optimization cannot apply when there's more
9559 than one pattern stmt involved.
9561 2019-09-26 Richard Biener <rguenther@suse.de>
9563 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
9564 loop-closed PHIs that are vect_internal_def.
9565 (vect_create_epilog_for_reduction): Exit early for nested cycles.
9567 (vectorizable_lc_phi): New.
9568 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
9569 (vect_transform_stmt): Likewise.
9570 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
9571 (vectorizable_lc_phi): Declare.
9573 2019-09-26 Richard Biener <rguenther@suse.de>
9575 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
9576 vectorizable_reduction for vect_double_reduction_def.
9577 (vect_transform_loop): Likewise.
9578 (vect_create_epilog_for_reduction): Move double-reduction
9579 PHI creation and preheader argument setting of PHIs ...
9580 (vectorizable_reduction): ... here. Also process
9581 vect_double_reduction_def PHIs, creating the vectorized
9582 PHI nodes, remembering the scalar adjustment computed for
9583 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
9584 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
9585 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
9586 Initialize STMT_VINFO_REDUC_CODE.
9587 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
9588 (_stmt_vec_info::reduc_code): Likewise.
9589 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
9590 (STMT_VINFO_REDUC_CODE): Likewise.
9592 2019-09-26 Matt Turner <mattst88@gmail.com>
9595 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
9596 (mtune=): Add Negative(mtune=).
9597 (mcpu=): Add Negative(mcpu=).
9598 * config/arm/arm.opt: Likewise.
9600 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9602 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
9603 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
9605 * config/arm/arm_acle.h: Define builtins for the above.
9606 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
9607 (simd32_op): Handle the above.
9608 * config/arm/unspecs.md: Define unspecs for the above.
9610 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9612 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
9613 (arm_<sup>xtb16): Likewise.
9614 (arm_usada8): Likewise.
9615 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
9616 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
9617 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
9618 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
9619 __sxtb16, __uxtab16, __uxtb16): Define.
9620 * config/arm/arm_acle_builtins.def: Define builtins for the above.
9621 * config/arm/unspecs.md: Define unspecs for the above.
9622 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
9623 (USXTB16): Likewise.
9624 (simd32_op): New int_attribute.
9625 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
9626 * doc/sourcebuild.exp (arm_simd32_ok): Document.
9628 2019-09-26 Martin Jambor <mjambor@suse.cz>
9630 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
9633 2019-09-26 Martin Jambor <mjambor@suse.cz>
9635 * ipa-sra.c (process_scan_results): Fix continue condition.
9637 2019-09-26 Martin Liska <mliska@suse.cz>
9639 PR tree-optimization/91885
9640 * tree-vectorizer.c (try_vectorize_loop_1): Add
9641 TODO_update_ssa_only_virtuals similarly to what slp pass does.
9643 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
9645 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
9646 aarch64_plus_immediate rather than aarch64_uimm12_shift
9647 to test for valid PLUS immediates.
9649 2019-09-25 Martin Jambor <mjambor@suse.cz>
9651 * tree-sra.c (no_accesses_p): Remove.
9652 (no_accesses_representant): Likewise.
9654 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9656 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
9658 (vaba_s16): Likewise.
9659 (vaba_s32): Likewise.
9660 (vaba_u8): Likewise.
9661 (vaba_u16): Likewise.
9662 (vaba_u32): Likewise.
9663 (vabal_high_s8): Likewise.
9664 (vabal_high_s16): Likewise.
9665 (vabal_high_s32): Likewise.
9666 (vabal_high_u8): Likewise.
9667 (vabal_high_u16): Likewise.
9668 (vabal_high_u32): Likewise.
9669 (vabal_s8): Likewise.
9670 (vabal_s16): Likewise.
9671 (vabal_s32): Likewise.
9672 (vabal_u8): Likewise.
9673 (vabal_u16): Likewise.
9674 (vabal_u32): Likewise.
9675 (vabaq_s8): Likewise.
9676 (vabaq_s16): Likewise.
9677 (vabaq_s32): Likewise.
9678 (vabaq_u8): Likewise.
9679 (vabaq_u16): Likewise.
9680 (vabaq_u32): Likewise.
9681 (vabd_s8): Likewise.
9682 (vabd_s16): Likewise.
9683 (vabd_s32): Likewise.
9684 (vabd_u8): Likewise.
9685 (vabd_u16): Likewise.
9686 (vabd_u32): Likewise.
9687 (vabdl_high_s8): Likewise.
9688 (vabdl_high_s16): Likewise.
9689 (vabdl_high_s32): Likewise.
9690 (vabdl_high_u8): Likewise.
9691 (vabdl_high_u16): Likewise.
9692 (vabdl_high_u32): Likewise.
9693 (vabdl_s8): Likewise.
9694 (vabdl_s16): Likewise.
9695 (vabdl_s32): Likewise.
9696 (vabdl_u8): Likewise.
9697 (vabdl_u16): Likewise.
9698 (vabdl_u32): Likewise.
9699 (vabdq_s8): Likewise.
9700 (vabdq_s16): Likewise.
9701 (vabdq_s32): Likewise.
9702 (vabdq_u8): Likewise.
9703 (vabdq_u16): Likewise.
9704 (vabdq_u32): Likewise.
9705 (vaddlv_s8): Likewise.
9706 (vaddlv_s16): Likewise.
9707 (vaddlv_u8): Likewise.
9708 (vaddlv_u16): Likewise.
9709 (vaddlvq_s8): Likewise.
9710 (vaddlvq_s16): Likewise.
9711 (vaddlvq_s32): Likewise.
9712 (vaddlvq_u8): Likewise.
9713 (vaddlvq_u16): Likewise.
9714 (vaddlvq_u32): Likewise.
9715 (vcvtx_f32_f64): Likewise.
9716 (vcvtx_high_f32_f64): Likewise.
9717 (vcvtxd_f32_f64): Likewise.
9718 (vmla_n_f32): Likewise.
9719 (vmla_n_s16): Likewise.
9720 (vmla_n_s32): Likewise.
9721 (vmla_n_u16): Likewise.
9722 (vmla_n_u32): Likewise.
9723 (vmla_s8): Likewise.
9724 (vmla_s16): Likewise.
9725 (vmla_s32): Likewise.
9726 (vmla_u8): Likewise.
9727 (vmla_u16): Likewise.
9728 (vmla_u32): Likewise.
9729 (vmlal_high_n_s16): Likewise.
9730 (vmlal_high_n_s32): Likewise.
9731 (vmlal_high_n_u16): Likewise.
9732 (vmlal_high_n_u32): Likewise.
9733 (vmlal_high_s8): Likewise.
9734 (vmlal_high_s16): Likewise.
9735 (vmlal_high_s32): Likewise.
9736 (vmlal_high_u8): Likewise.
9737 (vmlal_high_u16): Likewise.
9738 (vmlal_high_u32): Likewise.
9739 (vmlal_n_s16): Likewise.
9740 (vmlal_n_s32): Likewise.
9741 (vmlal_n_u16): Likewise.
9742 (vmlal_n_u32): Likewise.
9743 (vmlal_s8): Likewise.
9744 (vmlal_s16): Likewise.
9745 (vmlal_s32): Likewise.
9746 (vmlal_u8): Likewise.
9747 (vmlal_u16): Likewise.
9748 (vmlal_u32): Likewise.
9749 (vmlaq_n_f32): Likewise.
9750 (vmlaq_n_s16): Likewise.
9751 (vmlaq_n_s32): Likewise.
9752 (vmlaq_n_u16): Likewise.
9753 (vmlaq_n_u32): Likewise.
9754 (vmlaq_s8): Likewise.
9755 (vmlaq_s16): Likewise.
9756 (vmlaq_s32): Likewise.
9757 (vmlaq_u8): Likewise.
9758 (vmlaq_u16): Likewise.
9759 (vmlaq_u32): Likewise.
9760 (vmls_n_f32): Likewise.
9761 (vmls_n_s16): Likewise.
9762 (vmls_n_s32): Likewise.
9763 (vmls_n_u16): Likewise.
9764 (vmls_n_u32): Likewise.
9765 (vmls_s8): Likewise.
9766 (vmls_s16): Likewise.
9767 (vmls_s32): Likewise.
9768 (vmls_u8): Likewise.
9769 (vmls_u16): Likewise.
9770 (vmls_u32): Likewise.
9771 (vmlsl_high_n_s16): Likewise.
9772 (vmlsl_high_n_s32): Likewise.
9773 (vmlsl_high_n_u16): Likewise.
9774 (vmlsl_high_n_u32): Likewise.
9775 (vmlsl_high_s8): Likewise.
9776 (vmlsl_high_s16): Likewise.
9777 (vmlsl_high_s32): Likewise.
9778 (vmlsl_high_u8): Likewise.
9779 (vmlsl_high_u16): Likewise.
9780 (vmlsl_high_u32): Likewise.
9781 (vmlsl_n_s16): Likewise.
9782 (vmlsl_n_s32): Likewise.
9783 (vmlsl_n_u16): Likewise.
9784 (vmlsl_n_u32): Likewise.
9785 (vmlsl_s8): Likewise.
9786 (vmlsl_s16): Likewise.
9787 (vmlsl_s32): Likewise.
9788 (vmlsl_u8): Likewise.
9789 (vmlsl_u16): Likewise.
9790 (vmlsl_u32): Likewise.
9791 (vmlsq_n_f32): Likewise.
9792 (vmlsq_n_s16): Likewise.
9793 (vmlsq_n_s32): Likewise.
9794 (vmlsq_n_u16): Likewise.
9795 (vmlsq_n_u32): Likewise.
9796 (vmlsq_s8): Likewise.
9797 (vmlsq_s16): Likewise.
9798 (vmlsq_s32): Likewise.
9799 (vmlsq_u8): Likewise.
9800 (vmlsq_u16): Likewise.
9801 (vmlsq_u32): Likewise.
9802 (vmovl_high_s8): Likewise.
9803 (vmovl_high_s16): Likewise.
9804 (vmovl_high_s32): Likewise.
9805 (vmovl_high_u8): Likewise.
9806 (vmovl_high_u16): Likewise.
9807 (vmovl_high_u32): Likewise.
9808 (vmovl_s8): Likewise.
9809 (vmovl_s16): Likewise.
9810 (vmovl_s32): Likewise.
9811 (vmovl_u8): Likewise.
9812 (vmovl_u16): Likewise.
9813 (vmovl_u32): Likewise.
9814 (vmovn_high_s16): Likewise.
9815 (vmovn_high_s32): Likewise.
9816 (vmovn_high_s64): Likewise.
9817 (vmovn_high_u16): Likewise.
9818 (vmovn_high_u32): Likewise.
9819 (vmovn_high_u64): Likewise.
9820 (vmovn_s16): Likewise.
9821 (vmovn_s32): Likewise.
9822 (vmovn_s64): Likewise.
9823 (vmovn_u16): Likewise.
9824 (vmovn_u32): Likewise.
9825 (vmovn_u64): Likewise.
9826 (vmull_high_n_s16): Likewise.
9827 (vmull_high_n_s32): Likewise.
9828 (vmull_high_n_u16): Likewise.
9829 (vmull_high_n_u32): Likewise.
9830 (vmull_high_p8): Likewise.
9831 (vmull_high_s8): Likewise.
9832 (vmull_high_s16): Likewise.
9833 (vmull_high_s32): Likewise.
9834 (vmull_high_u8): Likewise.
9835 (vmull_high_u16): Likewise.
9836 (vmull_high_u32): Likewise.
9837 (vmull_n_s16): Likewise.
9838 (vmull_n_s32): Likewise.
9839 (vmull_n_u16): Likewise.
9840 (vmull_n_u32): Likewise.
9841 (vmull_p8): Likewise.
9842 (vmull_s8): Likewise.
9843 (vmull_s16): Likewise.
9844 (vmull_s32): Likewise.
9845 (vmull_u8): Likewise.
9846 (vmull_u16): Likewise.
9847 (vmull_u32): Likewise.
9848 (vpadal_s8): Likewise.
9849 (vpadal_s16): Likewise.
9850 (vpadal_s32): Likewise.
9851 (vpadal_u8): Likewise.
9852 (vpadal_u16): Likewise.
9853 (vpadal_u32): Likewise.
9854 (vpadalq_s8): Likewise.
9855 (vpadalq_s16): Likewise.
9856 (vpadalq_s32): Likewise.
9857 (vpadalq_u8): Likewise.
9858 (vpadalq_u16): Likewise.
9859 (vpadalq_u32): Likewise.
9860 (vpaddl_s8): Likewise.
9861 (vpaddl_s16): Likewise.
9862 (vpaddl_s32): Likewise.
9863 (vpaddl_u8): Likewise.
9864 (vpaddl_u16): Likewise.
9865 (vpaddl_u32): Likewise.
9866 (vpaddlq_s8): Likewise.
9867 (vpaddlq_s16): Likewise.
9868 (vpaddlq_s32): Likewise.
9869 (vpaddlq_u8): Likewise.
9870 (vpaddlq_u16): Likewise.
9871 (vpaddlq_u32): Likewise.
9872 (vpaddq_s8): Likewise.
9873 (vpaddq_s16): Likewise.
9874 (vpaddq_s32): Likewise.
9875 (vpaddq_s64): Likewise.
9876 (vpaddq_u8): Likewise.
9877 (vpaddq_u16): Likewise.
9878 (vpaddq_u32): Likewise.
9879 (vpaddq_u64): Likewise.
9880 (vqdmulh_n_s16): Likewise.
9881 (vqdmulh_n_s32): Likewise.
9882 (vqdmulhq_n_s16): Likewise.
9883 (vqdmulhq_n_s32): Likewise.
9884 (vqmovn_high_s16): Likewise.
9885 (vqmovn_high_s32): Likewise.
9886 (vqmovn_high_s64): Likewise.
9887 (vqmovn_high_u16): Likewise.
9888 (vqmovn_high_u32): Likewise.
9889 (vqmovn_high_u64): Likewise.
9890 (vqmovun_high_s16): Likewise.
9891 (vqmovun_high_s32): Likewise.
9892 (vqmovun_high_s64): Likewise.
9893 (vqrdmulh_n_s16): Likewise.
9894 (vqrdmulh_n_s32): Likewise.
9895 (vqrdmulhq_n_s16): Likewise.
9896 (vqrdmulhq_n_s32): Likewise.
9897 (vrsqrte_u32): Likewise.
9898 (vrsqrteq_u32): Likewise.
9899 (vtst_p8): Likewise.
9900 (vtst_p16): Likewise.
9901 (vtst_p64): Likewise.
9902 (vtstq_p8): Likewise.
9903 (vtstq_p16): Likewise.
9904 (vtstq_p64): Likewise.
9905 (vaddlv_s32): Likewise.
9906 (vaddlv_u32): Likewise.
9907 (vqtbl1_p8): Likewise.
9908 (vqtbl1_s8): Likewise.
9909 (vqtbl1_u8): Likewise.
9910 (vqtbl1q_p8): Likewise.
9911 (vqtbl1q_s8): Likewise.
9912 (vqtbl1q_u8): Likewise.
9913 (vqtbx1_s8): Likewise.
9914 (vqtbx1_u8): Likewise.
9915 (vqtbx1_p8): Likewise.
9916 (vqtbx1q_s8): Likewise.
9917 (vqtbx1q_u8): Likewise.
9918 (vqtbx1q_p8): Likewise.
9919 (vtbl1_s8): Likewise.
9920 (vtbl1_u8): Likewise.
9921 (vtbl1_p8): Likewise.
9922 (vtbl2_s8): Likewise.
9923 (vtbl2_u8): Likewise.
9924 (vtbl2_p8): Likewise.
9925 (vtbl3_s8): Likewise.
9926 (vtbl3_u8): Likewise.
9927 (vtbl3_p8): Likewise.
9928 (vtbl4_s8): Likewise.
9929 (vtbl4_u8): Likewise.
9930 (vtbl4_p8): Likewise.
9931 (vtbx2_s8): Likewise.
9932 (vtbx2_u8): Likewise.
9933 (vtbx2_p8): Likewise.
9934 (vld1_f32): Likewise.
9935 (vld1_f64): Likewise.
9936 (vld1_p8): Likewise.
9937 (vld1_p16): Likewise.
9938 (vld1_p64): Likewise.
9939 (vld1_s8): Likewise.
9940 (vld1_s16): Likewise.
9941 (vld1_s32): Likewise.
9942 (vld1_s64): Likewise.
9943 (vld1_u8): Likewise.
9944 (vld1_u16): Likewise.
9945 (vld1_u32): Likewise.
9946 (vld1_u64): Likewise.
9947 (vld1q_f32): Likewise.
9948 (vld1q_f64): Likewise.
9949 (vld1q_p8): Likewise.
9950 (vld1q_p16): Likewise.
9951 (vld1q_p64): Likewise.
9952 (vld1q_s8): Likewise.
9953 (vld1q_s16): Likewise.
9954 (vld1q_s32): Likewise.
9955 (vld1q_s64): Likewise.
9956 (vld1q_u8): Likewise.
9957 (vld1q_u16): Likewise.
9958 (vld1q_u32): Likewise.
9959 (vld1q_u64): Likewise.
9960 (vpmax_s8): Likewise.
9961 (vpmax_s16): Likewise.
9962 (vpmax_s32): Likewise.
9963 (vpmax_u8): Likewise.
9964 (vpmax_u16): Likewise.
9965 (vpmax_u32): Likewise.
9966 (vpmaxq_s8): Likewise.
9967 (vpmaxq_s16): Likewise.
9968 (vpmaxq_s32): Likewise.
9969 (vpmaxq_u8): Likewise.
9970 (vpmaxq_u16): Likewise.
9971 (vpmaxq_u32): Likewise.
9972 (vpmax_f32): Likewise.
9973 (vpmaxq_f32): Likewise.
9974 (vpmaxq_f64): Likewise.
9975 (vpmaxqd_f64): Likewise.
9976 (vpmaxs_f32): Likewise.
9977 (vpmaxnm_f32): Likewise.
9978 (vpmaxnmq_f32): Likewise.
9979 (vpmaxnmq_f64): Likewise.
9980 (vpmaxnmqd_f64): Likewise.
9981 (vpmaxnms_f32): Likewise.
9982 (vpmin_s8): Likewise.
9983 (vpmin_s16): Likewise.
9984 (vpmin_s32): Likewise.
9985 (vpmin_u8): Likewise.
9986 (vpmin_u16): Likewise.
9987 (vpmin_u32): Likewise.
9988 (vpminq_s8): Likewise.
9989 (vpminq_s16): Likewise.
9990 (vpminq_s32): Likewise.
9991 (vpminq_u8): Likewise.
9992 (vpminq_u16): Likewise.
9993 (vpminq_u32): Likewise.
9994 (vpmin_f32): Likewise.
9995 (vpminq_f32): Likewise.
9996 (vpminq_f64): Likewise.
9997 (vpminqd_f64): Likewise.
9998 (vpmins_f32): Likewise.
9999 (vpminnm_f32): Likewise.
10000 (vpminnmq_f32): Likewise.
10001 (vpminnmq_f64): Likewise.
10002 (vpminnmqd_f64): Likewise.
10003 (vpminnms_f32): Likewise.
10004 (vmla_f32): Likewise.
10005 (vmlaq_f32): Likewise.
10006 (vmlaq_f64): Likewise.
10007 (vmls_f32): Likewise.
10008 (vmlsq_f32): Likewise.
10009 (vmlsq_f64): Likewise.
10010 (vqtbl2_s8): Likewise.
10011 (vqtbl2_u8): Likewise.
10012 (vqtbl2_p8): Likewise.
10013 (vqtbl2q_s8): Likewise.
10014 (vqtbl2q_u8): Likewise.
10015 (vqtbl2q_p8): Likewise.
10016 (vqtbl3_s8): Likewise.
10017 (vqtbl3_u8): Likewise.
10018 (vqtbl3_p8): Likewise.
10019 (vqtbl3q_s8): Likewise.
10020 (vqtbl3q_u8): Likewise.
10021 (vqtbl3q_p8): Likewise.
10022 (vqtbl4_s8): Likewise.
10023 (vqtbl4_u8): Likewise.
10024 (vqtbl4_p8): Likewise.
10025 (vqtbl4q_s8): Likewise.
10026 (vqtbl4q_u8): Likewise.
10027 (vqtbl4q_p8): Likewise.
10028 (vqtbx2_s8): Likewise.
10029 (vqtbx2_u8): Likewise.
10030 (vqtbx2_p8): Likewise.
10031 (vqtbx2q_s8): Likewise.
10032 (vqtbx2q_u8): Likewise.
10033 (vqtbx2q_p8): Likewise.
10034 (vqtbx3_s8): Likewise.
10035 (vqtbx3_u8): Likewise.
10036 (vqtbx3_p8): Likewise.
10037 (vqtbx3q_s8): Likewise.
10038 (vqtbx3q_u8): Likewise.
10039 (vqtbx3q_p8): Likewise.
10040 (vqtbx4_s8): Likewise.
10041 (vqtbx4_u8): Likewise.
10042 (vqtbx4_p8): Likewise.
10043 (vqtbx4q_s8): Likewise.
10044 (vqtbx4q_u8): Likewise.
10045 (vqtbx4q_p8): Likewise.
10046 (vrev16_p8): Likewise.
10047 (vrev16_s8): Likewise.
10048 (vrev16_u8): Likewise.
10049 (vrev16q_p8): Likewise.
10050 (vrev16q_s8): Likewise.
10051 (vrev16q_u8): Likewise.
10052 (vrev32_p8): Likewise.
10053 (vrev32_p16): Likewise.
10054 (vrev32_s8): Likewise.
10055 (vrev32_s16): Likewise.
10056 (vrev32_u8): Likewise.
10057 (vrev32_u16): Likewise.
10058 (vrev32q_p8): Likewise.
10059 (vrev32q_p16): Likewise.
10060 (vrev32q_s8): Likewise.
10061 (vrev32q_s16): Likewise.
10062 (vrev32q_u8): Likewise.
10063 (vrev32q_u16): Likewise.
10064 (vrev64_f32): Likewise.
10065 (vrev64_p8): Likewise.
10066 (vrev64_p16): Likewise.
10067 (vrev64_s8): Likewise.
10068 (vrev64_s16): Likewise.
10069 (vrev64_s32): Likewise.
10070 (vrev64_u8): Likewise.
10071 (vrev64_u16): Likewise.
10072 (vrev64_u32): Likewise.
10073 (vrev64q_f32): Likewise.
10074 (vrev64q_p8): Likewise.
10075 (vrev64q_p16): Likewise.
10076 (vrev64q_s8): Likewise.
10077 (vrev64q_s16): Likewise.
10078 (vrev64q_s32): Likewise.
10079 (vrev64q_u8): Likewise.
10080 (vrev64q_u16): Likewise.
10081 (vrev64q_u32): Likewise.
10082 (vsha1cq_u32): Likewise.
10083 (vsha1mq_u32): Likewise.
10084 (vsha1pq_u32): Likewise.
10085 (vsha1h_u32): Likewise.
10086 (vsha1su0q_u32): Likewise.
10087 (vsha1su1q_u32): Likewise.
10088 (vsha256hq_u32): Likewise.
10089 (vsha256h2q_u32): Likewise.
10090 (vsha256su0q_u32): Likewise.
10091 (vsha256su1q_u32): Likewise.
10092 (vmull_p64): Likewise.
10093 (vmull_high_p64): Likewise.
10094 (vsqrt_f32): Likewise.
10095 (vsqrtq_f32): Likewise.
10096 (vsqrt_f64): Likewise.
10097 (vsqrtq_f64): Likewise.
10098 (vst1_f32): Likewise.
10099 (vst1_f64): Likewise.
10100 (vst1_p8): Likewise.
10101 (vst1_p16): Likewise.
10102 (vst1_p64): Likewise.
10103 (vst1_s8): Likewise.
10104 (vst1_s16): Likewise.
10105 (vst1_s32): Likewise.
10106 (vst1_s64): Likewise.
10107 (vst1_u8): Likewise.
10108 (vst1_u16): Likewise.
10109 (vst1_u32): Likewise.
10110 (vst1_u64): Likewise.
10111 (vst1q_f32): Likewise.
10112 (vst1q_f64): Likewise.
10113 (vst1q_p8): Likewise.
10114 (vst1q_p16): Likewise.
10115 (vst1q_p64): Likewise.
10116 (vst1q_s8): Likewise.
10117 (vst1q_s16): Likewise.
10118 (vst1q_s32): Likewise.
10119 (vst1q_s64): Likewise.
10120 (vst1q_u8): Likewise.
10121 (vst1q_u16): Likewise.
10122 (vst1q_u32): Likewise.
10123 (vst1q_u64): Likewise.
10124 (vst1_s64_x2): Likewise.
10125 (vst1_u64_x2): Likewise.
10126 (vst1_f64_x2): Likewise.
10127 (vst1_s8_x2): Likewise.
10128 (vst1_p8_x2): Likewise.
10129 (vst1_s16_x2): Likewise.
10130 (vst1_p16_x2): Likewise.
10131 (vst1_s32_x2): Likewise.
10132 (vst1_u8_x2): Likewise.
10133 (vst1_u16_x2): Likewise.
10134 (vst1_u32_x2): Likewise.
10135 (vst1_f16_x2): Likewise.
10136 (vst1_f32_x2): Likewise.
10137 (vst1_p64_x2): Likewise.
10138 (vst1q_s8_x2): Likewise.
10139 (vst1q_p8_x2): Likewise.
10140 (vst1q_s16_x2): Likewise.
10141 (vst1q_p16_x2): Likewise.
10142 (vst1q_s32_x2): Likewise.
10143 (vst1q_s64_x2): Likewise.
10144 (vst1q_u8_x2): Likewise.
10145 (vst1q_u16_x2): Likewise.
10146 (vst1q_u32_x2): Likewise.
10147 (vst1q_u64_x2): Likewise.
10148 (vst1q_f16_x2): Likewise.
10149 (vst1q_f32_x2): Likewise.
10150 (vst1q_f64_x2): Likewise.
10151 (vst1q_p64_x2): Likewise.
10152 (vst1_s64_x3): Likewise.
10153 (vst1_u64_x3): Likewise.
10154 (vst1_f64_x3): Likewise.
10155 (vst1_s8_x3): Likewise.
10156 (vst1_p8_x3): Likewise.
10157 (vst1_s16_x3): Likewise.
10158 (vst1_p16_x3): Likewise.
10159 (vst1_s32_x3): Likewise.
10160 (vst1_u8_x3): Likewise.
10161 (vst1_u16_x3): Likewise.
10162 (vst1_u32_x3): Likewise.
10163 (vst1_f16_x3): Likewise.
10164 (vst1_f32_x3): Likewise.
10165 (vst1_p64_x3): Likewise.
10166 (vst1q_s8_x3): Likewise.
10167 (vst1q_p8_x3): Likewise.
10168 (vst1q_s16_x3): Likewise.
10169 (vst1q_p16_x3): Likewise.
10170 (vst1q_s32_x3): Likewise.
10171 (vst1q_s64_x3): Likewise.
10172 (vst1q_u8_x3): Likewise.
10173 (vst1q_u16_x3): Likewise.
10174 (vst1q_u32_x3): Likewise.
10175 (vst1q_u64_x3): Likewise.
10176 (vst1q_f16_x3): Likewise.
10177 (vst1q_f32_x3): Likewise.
10178 (vst1q_f64_x3): Likewise.
10179 (vst1q_p64_x3): Likewise.
10180 (vst2_s64): Likewise.
10181 (vst2_u64): Likewise.
10182 (vst2_f64): Likewise.
10183 (vst2_s8): Likewise.
10184 (vst2_p8): Likewise.
10185 (vst2_s16): Likewise.
10186 (vst2_p16): Likewise.
10187 (vst2_s32): Likewise.
10188 (vst2_u8): Likewise.
10189 (vst2_u16): Likewise.
10190 (vst2_u32): Likewise.
10191 (vst2_f16): Likewise.
10192 (vst2_f32): Likewise.
10193 (vst2_p64): Likewise.
10194 (vst2q_s8): Likewise.
10195 (vst2q_p8): Likewise.
10196 (vst2q_s16): Likewise.
10197 (vst2q_p16): Likewise.
10198 (vst2q_s32): Likewise.
10199 (vst2q_s64): Likewise.
10200 (vst2q_u8): Likewise.
10201 (vst2q_u16): Likewise.
10202 (vst2q_u32): Likewise.
10203 (vst2q_u64): Likewise.
10204 (vst2q_f16): Likewise.
10205 (vst2q_f32): Likewise.
10206 (vst2q_f64): Likewise.
10207 (vst2q_p64): Likewise.
10208 (vst3_s64): Likewise.
10209 (vst3_u64): Likewise.
10210 (vst3_f64): Likewise.
10211 (vst3_s8): Likewise.
10212 (vst3_p8): Likewise.
10213 (vst3_s16): Likewise.
10214 (vst3_p16): Likewise.
10215 (vst3_s32): Likewise.
10216 (vst3_u8): Likewise.
10217 (vst3_u16): Likewise.
10218 (vst3_u32): Likewise.
10219 (vst3_f16): Likewise.
10220 (vst3_f32): Likewise.
10221 (vst3_p64): Likewise.
10222 (vst3q_s8): Likewise.
10223 (vst3q_p8): Likewise.
10224 (vst3q_s16): Likewise.
10225 (vst3q_p16): Likewise.
10226 (vst3q_s32): Likewise.
10227 (vst3q_s64): Likewise.
10228 (vst3q_u8): Likewise.
10229 (vst3q_u16): Likewise.
10230 (vst3q_u32): Likewise.
10231 (vst3q_u64): Likewise.
10232 (vst3q_f16): Likewise.
10233 (vst3q_f32): Likewise.
10234 (vst3q_f64): Likewise.
10235 (vst3q_p64): Likewise.
10236 (vst4_s64): Likewise.
10237 (vst4_u64): Likewise.
10238 (vst4_f64): Likewise.
10239 (vst4_s8): Likewise.
10240 (vst4_p8): Likewise.
10241 (vst4_s16): Likewise.
10242 (vst4_p16): Likewise.
10243 (vst4_s32): Likewise.
10244 (vst4_u8): Likewise.
10245 (vst4_u16): Likewise.
10246 (vst4_u32): Likewise.
10247 (vst4_f16): Likewise.
10248 (vst4_f32): Likewise.
10249 (vst4_p64): Likewise.
10250 (vst4q_s8): Likewise.
10251 (vst4q_p8): Likewise.
10252 (vst4q_s16): Likewise.
10253 (vst4q_p16): Likewise.
10254 (vst4q_s32): Likewise.
10255 (vst4q_s64): Likewise.
10256 (vst4q_u8): Likewise.
10257 (vst4q_u16): Likewise.
10258 (vst4q_u32): Likewise.
10259 (vst4q_u64): Likewise.
10260 (vst4q_f16): Likewise.
10261 (vst4q_f32): Likewise.
10262 (vst4q_f64): Likewise.
10263 (vst4q_p64): Likewise.
10264 (vtbx4_s8): Likewise.
10265 (vtbx4_u8): Likewise.
10266 (vtbx4_p8): Likewise.
10267 (vtrn_f32): Likewise.
10268 (vtrn_p8): Likewise.
10269 (vtrn_p16): Likewise.
10270 (vtrn_s8): Likewise.
10271 (vtrn_s16): Likewise.
10272 (vtrn_s32): Likewise.
10273 (vtrn_u8): Likewise.
10274 (vtrn_u16): Likewise.
10275 (vtrn_u32): Likewise.
10276 (vtrnq_f32): Likewise.
10277 (vtrnq_p8): Likewise.
10278 (vtrnq_p16): Likewise.
10279 (vtrnq_s8): Likewise.
10280 (vtrnq_s16): Likewise.
10281 (vtrnq_s32): Likewise.
10282 (vtrnq_u8): Likewise.
10283 (vtrnq_u16): Likewise.
10284 (vtrnq_u32): Likewise.
10285 (vrsqrte_f16): Likewise.
10286 (vrsqrteq_f16): Likewise.
10287 (vsqrt_f16): Likewise.
10288 (vsqrtq_f16): Likewise.
10289 (vabd_f16): Likewise.
10290 (vabdq_f16): Likewise.
10291 (vpadd_f16): Likewise.
10292 (vpaddq_f16): Likewise.
10293 (vpmax_f16): Likewise.
10294 (vpmaxq_f16): Likewise.
10295 (vpmaxnm_f16): Likewise.
10296 (vpmaxnmq_f16): Likewise.
10297 (vpmin_f16): Likewise.
10298 (vpminq_f16): Likewise.
10299 (vpminnm_f16): Likewise.
10300 (vpminnmq_f16): Likewise.
10301 (vrsqrts_f16): Likewise.
10302 (vrsqrtsq_f16): Likewise.
10304 2019-09-25 Richard Biener <rguenther@suse.de>
10306 PR tree-optimization/91896
10307 * tree-vect-loop.c (vectorizable_reduction): The single
10308 def-use cycle optimization cannot apply when there's more
10309 than one pattern stmt involved.
10311 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10313 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
10314 the 'P' mode iterator, replacing the (removed) SI and DI variants.
10315 (reload_macho_picbase_<mode>): Likewise.
10317 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10319 * config/rs6000/rs6000.md: Move darwin.md include until
10320 after the definition of the mode iterators.
10322 2019-09-23 Martin Sebor <msebor@redhat.com>
10324 PR tree-optimization/91570
10325 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
10326 non-constant minlen, maxlen and maxbound.
10328 2019-09-24 Richard Biener <rguenther@suse.de>
10330 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
10332 (_stmt_vec_info::cond_reduc_code): ... this.
10333 (_stmt_vec_info::induc_cond_initial_val): Add.
10334 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
10335 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
10336 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
10337 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
10338 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
10339 the reduction code.
10340 (vect_create_epilog_for_reduction): Drop special
10341 induction condition reduction params, pass in reduction code
10343 (vectorizable_reduction): Perform condition reduction kind
10344 selection only at analysis time. Adjust passing on state.
10346 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10348 * config/aarch64/aarch64.md (mov<mode>): Don't call
10349 aarch64_split_dimode_const_store on volatile MEM.
10351 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
10353 * config/aarch64/aarch64-option-extensions.def (fp16fml):
10354 Update hwcap string for fp16fml.
10356 2019-09-24 Jakub Jelinek <jakub@redhat.com>
10358 PR middle-end/91866
10359 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
10360 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
10362 2019-09-24 Martin Liska <mliska@suse.cz>
10364 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
10365 instead of if-elseif-elseif-...
10366 * gimple-expr.c (extract_ops_from_tree): Likewise.
10367 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10368 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
10370 2019-09-24 Martin Jambor <mjambor@suse.cz>
10373 * ipa-param-manipulation.c (carry_over_param): Make a method of
10374 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
10375 in case of a context mismatch.
10376 (ipa_param_body_adjustments::common_initialization): Adjust call to
10378 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
10379 private method carry_over_param.
10381 2019-09-24 Martin Jambor <mjambor@suse.cz>
10384 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
10386 2019-09-24 Richard Biener <rguenther@suse.de>
10388 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
10391 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10393 * config/arm/t-arm (arm-builtins.o): Add dependency on
10394 arm_acle_builtins.def.
10396 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
10399 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
10400 canonical CONST_INTs. Use gen_rtvec.
10402 2019-09-23 Richard Biener <rguenther@suse.de>
10404 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
10405 avoid adjusting by + 0 or * 1.
10406 (vect_create_epilog_for_reduction): Get reduction code only
10407 when necessary. Deal with adjustment_def only when necessary.
10409 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
10411 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
10414 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10417 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
10420 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
10422 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
10423 code. Merge code blocks with common conditionals. Use declared
10424 macro instead of a magic number for PIC level.
10426 2019-09-21 Martin Sebor <msebor@redhat.com>
10428 PR middle-end/91830
10429 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
10430 Simplify computation of the offset of the referenced subobject.
10432 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
10434 * config/darwin.c (machopic_legitimize_pic_address): Check
10435 for lra not reload.
10437 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
10439 * ira-conflicts.c (can_use_same_reg_p): New function.
10440 (process_reg_shuffles): Take an insn parameter. Ignore cases
10441 in which input operand op_num could seemingly never be allocated
10442 to the same register as the destination.
10443 (add_insn_allocno_copies): Update call to process_reg_shuffles.
10445 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
10447 * simplify-rtx.c (neg_const_int): Replace with...
10448 (neg_poly_int_rtx): ...this new function.
10449 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
10450 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
10451 (simplify_plus_minus): Likewise for constant terms here.
10453 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
10455 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
10456 HOST_WIDE_PRINT_UNSIGNED.
10458 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
10460 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
10463 2019-09-20 Maya Rashish <coypu@sdf.org>
10466 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
10467 Define to speculation_safe_value_not_needed.
10469 2019-09-20 Richard Biener <rguenther@suse.de>
10470 Uros Bizjak <ubizjak@gmail.com>
10473 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
10475 (general_scalar_chain::convert_op): Force not suitable memory
10476 operands to a register.
10478 2019-09-20 Richard Biener <rguenther@suse.de>
10480 PR tree-optimization/91821
10481 * tree-vect-loop.c (check_reduction_path): Check we can compute
10483 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
10484 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
10485 operands in canonical order.
10486 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10487 STMT_VINFO_REDUC_IDX.
10488 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
10489 (STMT_VINFO_REDUC_IDX): Likewise.
10491 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
10494 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10496 2019-09-20 Richard Biener <rguenther@suse.de>
10498 PR tree-optimization/91822
10499 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
10501 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
10502 for reduc_index in nested cycles, adjust vectorizable_condition
10504 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
10506 (vect_analyze_stmt): Adjust.
10507 (vect_transform_stmt): Likewise.
10509 2019-09-20 Richard Biener <rguenther@suse.de>
10512 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
10513 Ensure there's a sequence point between allocating the new register
10514 and passing a reference to a reg via regno_reg_rtx.
10516 2019-09-20 Martin Jambor <mjambor@suse.cz>
10518 * coretypes.h (cgraph_edge): Declare.
10519 * ipa-param-manipulation.c: Rewrite.
10520 * ipa-param-manipulation.h: Likewise.
10521 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
10522 (OBJS): Added ipa-sra.o.
10523 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
10524 and ref_p, added fields param_adjustments and performed_splits.
10525 (struct cgraph_clone_info): Remove ags_to_skip and
10526 combined_args_to_skip, new field param_adjustments.
10527 (cgraph_node::create_clone): Changed parameters to use
10528 ipa_param_adjustments.
10529 (cgraph_node::create_virtual_clone): Likewise.
10530 (cgraph_node::create_virtual_clone_with_body): Likewise.
10531 (tree_function_versioning): Likewise.
10532 (cgraph_build_function_type_skip_args): Removed.
10533 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
10534 using ipa_param_adjustments.
10535 (clone_of_p): Likewise.
10536 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
10537 (build_function_decl_skip_args): Likewise.
10538 (duplicate_thunk_for_node): Adjust parameters using
10539 ipa_param_body_adjustments, copy param_adjustments instead of
10541 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
10542 (cgraph_node::create_virtual_clone): Likewise.
10543 (cgraph_node::create_version_clone_with_body): Likewise.
10544 (cgraph_materialize_clone): Likewise.
10545 (symbol_table::materialize_all_clones): Likewise.
10546 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
10547 ipa_replace_map check.
10548 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
10549 (initialize_node_lattices): Make aware that some parameters might have
10550 already been removed.
10551 (want_remove_some_param_p): New function.
10552 (create_specialized_node): Convert to using ipa_param_adjustments and
10553 deal with possibly pre-existing adjustments.
10554 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
10555 (output_node_opt_summary): Do not stream removed fields. Stream
10556 parameter adjustments instead of argumetns to skip.
10557 (input_node_opt_summary): Likewise.
10558 (input_node_opt_summary): Likewise.
10559 * lto-section-in.c (lto_section_name): Added ipa-sra section.
10560 * lto-streamer.h (lto_section_type): Likewise.
10561 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
10563 (copy_decl_to_var): Declare.
10564 * tree-inline.c (update_clone_info): Do not remap old_tree.
10565 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
10566 statements, walk all extra generated statements and remap their
10568 (redirect_all_calls): Add killed SSA names to a hash set.
10569 (remap_ssa_name): Do not remap killed SSA names.
10570 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
10571 half of functionality moved to ipa_param_body_adjustments.
10572 (copy_decl_to_var): Make exported.
10573 (copy_body): Destroy killed_new_ssa_names hash set.
10574 (expand_call_inline): Remap performed splits.
10575 (update_clone_info): Likewise.
10576 (tree_function_versioning): Simplify tree_map processing. Updated to
10577 accept ipa_param_adjustments and use ipa_param_body_adjustments.
10578 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
10579 for the new interface.
10580 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
10581 (simd_clone_compute_base_data_type): Likewise.
10582 (simd_clone_init_simd_arrays): Adjust for the new interface.
10583 (simd_clone_adjust_argument_types): Likewise.
10584 (struct modify_stmt_info): Likewise.
10585 (ipa_simd_modify_stmt_ops): Likewise.
10586 (ipa_simd_modify_function_body): Likewise.
10587 (simd_clone_adjust): Likewise.
10588 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
10589 (type_internals_preclude_sra_p): Make public.
10590 * tree-sra.h: New file.
10591 * ipa-inline-transform.c (save_inline_function_body): Update to
10592 refelct new tree_function_versioning signature.
10593 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
10594 ipa_param_adjustments to get current parameter indices.
10595 (ipcp_modif_dom_walker::before_dom_children): Likewise.
10596 (ipcp_update_bits): Likewise.
10597 (ipcp_update_vr): Likewise.
10598 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
10599 * ipa-sra.c: New file.
10600 * multiple_target.c (create_target_clone): Update to reflet new type
10601 of create_version_clone_with_body.
10602 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
10603 tree_function_versioning.
10604 (modify_function): Update to reflect new type of
10605 tree_function_versioning.
10606 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
10607 * passes.def: Remove old IPA-SRA and add new one.
10608 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
10609 (make_pass_ipa_sra): Declare.
10610 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
10612 * doc/invoke.texi (ipa-sra-max-replacements): New.
10614 2019-09-19 Martin Sebor <msebor@redhat.com>
10616 PR middle-end/91631
10617 * builtins.c (component_size): Correct trailing array computation,
10618 rename to component_ref_size and move...
10619 (compute_objsize): Adjust.
10620 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
10621 (builtin_access::strict): Do not consider memmove.
10622 (builtin_access::write_off): New function.
10623 (builtin_memref::builtin_memref): Initialize refsize.
10624 (builtin_memref::set_base_and_offset): Adjust refoff and compute
10626 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
10628 (builtin_access::builtin_access): Initialize dstoff to destination
10629 refeence offset here instead of in maybe_diag_overlap. Adjust
10630 referencess even to unrelated objects. Adjust sizrange of bounded
10631 string functions to reflect bound. For strcat, adjust destination
10632 sizrange by that of source.
10633 (builtin_access::strcat_overlap): Adjust offsets and sizes
10634 to reflect the increase in destination sizrange above.
10635 (builtin_access::overlap): Do not set dstoff here but instead
10636 in builtin_access::builtin_access.
10637 (check_bounds_or_overlap): Use builtin_access::write_off.
10638 (maybe_diag_access_bounds): Add argument. Add informational notes.
10639 (dump_builtin_memref, dump_builtin_access): New functions.
10640 * tree.c (component_ref_size): ...to here.
10641 * tree.h (component_ref_size): Declare.
10642 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
10643 nul in the size of the source string.
10645 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
10648 * doc/cpp.texi: Document support for extended characters in
10650 * doc/cppopts.texi: Likewise.
10652 2019-09-19 Richard Biener <rguenther@suse.de>
10654 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
10655 (check_reduction_path): New overload having the path as result.
10656 (vect_is_simple_reduction): From the detected reduction
10657 path build a SLP reduction chain if possible.
10659 2019-09-19 Richard Biener <rguenther@suse.de>
10662 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
10663 Force operand to a register if it isn't nonimmediate_operand.
10665 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
10667 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
10668 * config/arm/iterators.md (optab): Add and, ior, xor entries.
10669 (logical_op): Remove code attribute.
10670 (logical_OP): Likewise.
10672 2019-09-19 Martin Liska <mliska@suse.cz>
10674 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
10675 Use proper casting.
10677 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
10679 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
10682 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
10683 for NE comparison of TImode values.
10684 (aarch64_emit_load_exclusive): Add support for TImode.
10685 (aarch64_emit_store_exclusive): Likewise.
10686 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
10687 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
10688 Change iterator from ALLI to ALLI_TI.
10689 (@atomic_compare_and_swap<JUST_TI>): New.
10690 (@atomic_compare_and_swap<JUST_TI>_lse): New.
10691 (aarch64_load_exclusive_pair): New.
10692 (aarch64_store_exclusive_pair): New.
10693 * config/aarch64/iterators.md (JUST_TI): New.
10695 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
10696 strong_zero_p for aarch64_track_speculation; unify some code paths;
10697 use aarch64_gen_compare_reg instead of open-coding.
10699 * config/aarch64/aarch64.opt (-moutline-atomics): New.
10700 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
10701 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
10702 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
10703 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
10704 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
10705 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
10706 (atomic_<atomic_op><ALLI>): Likewise.
10707 (atomic_fetch_<atomic_op><ALLI>): Likewise.
10708 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
10709 * doc/invoke.texi: Document -moutline-atomics.
10711 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
10713 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
10714 trivial predicate for condition branch.
10715 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
10717 (compute_bb_predicates): Update predicate based on post-dominating
10719 (analyze_function_body): Calculate post-dominating information.
10721 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
10723 * tree-vectorizer.h (vectorizable_condition): Take an int
10724 reduction index instead of a boolean flag.
10725 * tree-vect-stmts.c (vectorizable_condition): Likewise.
10726 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
10727 reductions if the reduction accumulator is the "then" rather
10728 than the "else" value.
10729 (vect_analyze_stmt): Update call accordingly.
10730 (vect_transform_stmt): Likewise.
10731 * tree-vect-loop.c (vectorizable_reduction): Likewise,
10732 asserting that the index is > 0.
10734 2019-09-19 Martin Liska <mliska@suse.cz>
10736 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
10737 (sort_congruence_classes_by_decl_uid): Likewise.
10738 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
10740 (sem_item_optimizer::merge_classes): Likewise.
10742 2019-09-19 Richard Biener <rguenther@suse.de>
10744 PR tree-optimization/91812
10745 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
10748 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
10750 * defaults.h (TARGET_UNIT): New macro.
10751 (target_unit): New type.
10752 * rtl.h (native_encode_rtx, native_decode_rtx)
10753 (native_decode_vector_rtx, subreg_size_lsb): Declare.
10754 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
10755 * rtlanal.c (subreg_lsb_1): Delete.
10756 (subreg_size_lsb): New function.
10757 * simplify-rtx.c: Include rtx-vector-builder.h
10758 (simplify_immed_subreg): Delete.
10759 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
10760 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
10762 (simplify_subreg): Use them.
10763 (test_vector_subregs_modes, test_vector_subregs_repeating)
10764 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
10765 (test_vector_subregs): New functions.
10766 (test_vector_ops): Call test_vector_subregs for integer vector
10767 modes with at least 2 elements.
10769 2019-09-19 Richard Biener <rguenther@suse.de>
10771 * tree-parloops.c (parloops_is_slp_reduction): Do not set
10772 LOOP_VINFO_OPERANDS_SWAPPED.
10773 (parloops_is_simple_reduction): Likewise.
10774 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
10775 initialize operands_swapped.
10776 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
10777 (vect_is_slp_reduction): Do not swap operands.
10778 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
10779 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
10781 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
10784 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
10785 Add avx_partial_xmm_update.
10787 2019-09-18 Jim Wilson <jimw@sifive.com>
10790 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
10791 (riscv_move_integer): Likewise.
10792 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
10793 riscv_move_integer arg.
10794 (riscv_legitimize_move): Likewise.
10795 (riscv_force_temporary): New parameter in_splitter. Don't call
10797 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
10799 (riscv_add_offset): Likewise.
10800 (riscv_split_symbol): New parameter in_splitter. Pass to
10801 riscv_force_temporary.
10802 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
10804 (riscv_move_integer): New parameter in_splitter. New local
10805 can_create_psuedo. Don't call riscv_split_integer or force_reg when
10807 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
10808 riscv_split_symbol, and riscv_force_temporary args.
10809 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
10810 riscv_move_integer arg.
10811 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
10813 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10816 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
10817 hard register store cost to 6.
10819 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10822 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
10823 pseudo register store cost from 3 to 6 to make it the same as
10826 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10829 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
10830 (one_cmpldi2): Likewise.
10831 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
10832 of the constant parts is simple.
10833 * config/arm/iterators.md (LOGICAL): Add new code iterator.
10834 (logical_op): Add new code attribute.
10835 (logical_OP): Likewise.
10836 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
10837 (arm_iordi_operand): Add predicate.
10838 (arm_xordi_operand): Add predicate.
10840 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10842 * config/arm/arm.md (maddsidi4): Remove expander.
10843 (mulsidi3adddi): Remove pattern.
10844 (mulsidi3adddi_v6): Likewise.
10845 (mulsidi3_nov6): Likewise.
10846 (mulsidi3_v6): Likewise.
10847 (umulsidi3): Remove expander.
10848 (umulsidi3_nov6): Remove pattern.
10849 (umulsidi3_v6): Likewise.
10850 (umulsidi3adddi): Likewise.
10851 (umulsidi3adddi_v6): Likewise.
10852 (<Us>mulsidi3): Add combined expander.
10853 (<Us>maddsidi4): Likewise.
10854 (<US>mull): Add combined umull and smull pattern.
10855 (<US>mlal): Likewise.
10856 * config/arm/iterators.md (Us): Add new iterator.
10858 2019-09-18 Richard Biener <rguenther@suse.de>
10860 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
10862 (vectorize_fold_left_reduction): Remove assert.
10863 (vectorizable_reduction): Also expect COND_EXPR non-reduction
10864 operand in position 2. Remove assert.
10866 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10868 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
10869 (smulsi3_highpart_nov6): Remove pattern.
10870 (smulsi3_highpart_v6): Likewise.
10871 (umulsi3_highpart): Likewise.
10872 (umulsi3_highpart_nov6): Likewise.
10873 (umulsi3_highpart_v6): Likewise.
10874 (<US>mull_high): Add new combined multiply pattern.
10876 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10878 * config/arm/arm.md (arm_mulsi3): Remove pattern.
10879 (arm_mulsi3_v6): Likewise.
10880 (mulsi3addsi_v6): Likewise.
10881 (mulsi3subsi): Likewise.
10882 (mul): Add new multiply pattern.
10886 2019-09-18 Richard Biener <rguenther@suse.de>
10888 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
10889 (parloops_valid_reduction_input_p): Copy from
10890 valid_reduction_input_p.
10891 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
10892 (parloops_needs_fold_left_reduction_p): Copy from
10893 needs_fold_left_reduction_p.
10894 (parloops_is_simple_reduction): Copy from
10895 vect_is_simple_reduction.
10896 (parloops_force_simple_reduction): Copy from
10897 vect_force_simple_reduction.
10898 (gather_scalar_reductions): Adjust.
10899 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
10900 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
10902 2019-09-18 Richard Biener <rguenther@suse.de>
10904 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
10905 * tree-vect-loop.c (get_initial_def_for_reduction): Make
10907 (vect_create_epilog_for_reduction): Remove dead code.
10909 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10911 * varasm.c (assemble_real): Generate canonical const_ints.
10913 2019-09-18 Richard Biener <rguenther@suse.de>
10916 * lto-streamer-in.c (input_eh_regions): Move EH init to
10917 lto_materialize_function.
10918 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
10921 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10923 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
10926 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10928 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
10929 of checking specifically for INTEGER_CST.
10931 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10933 * stor-layout.c (compute_record_mode): Operate on poly_uint64
10934 sizes instead of uhwi sizes.
10936 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10938 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
10939 (add_const_value_attribute): Handle CONST_POLY_INT.
10941 2019-09-18 Martin Liska <mliska@suse.cz>
10943 * dbgcnt.def (store_merging): New counter.
10944 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
10945 Use it in store merging.
10947 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10949 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
10951 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10952 * config/arm/arm.c (arm_sched_variable_issue): New function.
10953 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10955 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10957 * config/arm/types.md (no_reservation): New reservation.
10958 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
10960 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
10961 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
10962 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
10963 * config/arm/arm1020e.md (1020alu_op): Likewise.
10964 * config/arm/arm1026ejs.md (alu_op): Likewise.
10965 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10966 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10967 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10968 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
10969 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10970 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10971 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
10972 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
10973 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10974 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10975 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10976 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
10977 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
10978 * config/arm/fa526.md (526_alu_op): Likewise.
10979 * config/arm/fa606te.md (606te_alu_op): Likewise.
10980 * config/arm/fa626te.md (626te_alu_op): Likewise.
10981 * config/arm/fa726te.md (726te_alu_op): Likewise.
10982 * config/arm/xgene1.md (xgene1_nop): Likewise.
10984 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10986 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
10987 "no_insn" to "branch".
10989 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10991 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
10993 2019-09-17 Richard Biener <rguenther@suse.de>
10996 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
10997 was missing generate locations only once.
10999 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
11002 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
11004 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
11005 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
11006 for switch default case using range analysis information.
11008 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
11011 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
11012 mode attributed is supported by FDPIC.
11014 2019-09-17 Richard Biener <rguenther@suse.de>
11016 PR tree-optimization/91790
11017 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
11018 use the correct DR for setting up realignment.
11020 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
11023 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11024 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
11025 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
11026 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11028 2019-09-16 Jason Merrill <jason@redhat.com>
11030 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
11032 2019-09-16 Martin Liska <mliska@suse.cz>
11034 * gimple-fold.c (or_comparisons_1): Remove rules moved
11036 * match.pd: ... here.
11038 2019-09-16 Martin Liska <mliska@suse.cz>
11040 * gimple-fold.c (or_comparisons_1): Remove rules
11042 * match.pd: ... here.
11044 2019-09-16 Martin Liska <mliska@suse.cz>
11046 * genmatch.c (dt_node::append_simplify): Do not print
11047 warning when we have duplicate patterns belonging
11048 to a same simplify rule.
11049 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
11050 (maybe_fold_comparisons_from_match_pd): Handle
11051 tcc_comparison as a results.
11052 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
11054 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11055 Qi Feng <ffengqi@linux.ibm.com>
11057 PR middle-end/88784
11058 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
11059 (x > y && x == XXX_MIN): Optimize into 'false'.
11060 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
11061 (x < y && x != XXX_MAX): Optimize into 'x < y'.
11062 (x < y && x == XXX_MAX): Optimize into 'false'.
11063 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
11064 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
11065 (x <= y || x != XXX_MIN): Optimize into 'true'.
11066 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
11067 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
11068 (x >= y || x != XXX_MAX): Optimize into 'true'.
11069 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
11071 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11072 Martin Liska <mliska@suse.cz>
11074 * gimple-fold.c (and_comparisons_1): Add type as first
11076 (and_var_with_comparison): Likewise.
11077 (and_var_with_comparison_1): Likewise.
11078 (or_comparisons_1): Likewise.
11079 (or_var_with_comparison): Likewise.
11080 (or_var_with_comparison_1): Likewise.
11081 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
11082 (maybe_fold_or_comparisons): Likewise.
11083 (maybe_fold_comparisons_from_match_pd): New.
11084 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
11085 (maybe_fold_or_comparisons): Likewise.
11086 * gimple.c (gimple_size): Make it public and add num_ops argument.
11087 (gimple_init): New function.
11088 (gimple_alloc): Call gimple_init.
11089 * gimple.h (gimple_size): New.
11090 (gimple_init): Likewise.
11091 * tree-if-conv.c (fold_or_predicates): Pass type.
11092 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11093 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
11094 (optimize_vec_cond_expr): Likewise.
11095 (ovce_extract_ops): Return type of conditional expression.
11096 * tree-ssanames.c (init_ssa_name_imm_use): New.
11097 (make_ssa_name_fn): Use init_ssa_name_imm_use.
11098 * tree-ssanames.h (init_ssa_name_imm_use): New.
11100 2019-09-16 Richard Biener <rguenther@suse.de>
11102 PR tree-optimization/91756
11103 PR tree-optimization/87132
11104 * tree-ssa-alias.h (enum translate_flags): New.
11105 (get_continuation_for_phi): Use it instead of simple bool flag.
11106 (walk_non_aliased_vuses): Likewise.
11107 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11108 (get_continuation_for_phi): When looking across backedges only
11109 disallow valueization.
11110 (walk_non_aliased_vuses): Adjust.
11111 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
11114 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
11116 PR middle-end/80791
11117 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
11118 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11119 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11120 * target.def (have_count_reg_decr_p): New hook.
11121 (doloop_cost_for_generic): Likewise.
11122 (doloop_cost_for_address): Likewise.
11123 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
11124 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11125 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11126 * doc/tm.texi: Regenerate.
11127 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
11129 (record_group): Init doloop_p.
11130 (add_candidate_1): Add optional argument doloop, change the handlings
11132 (add_candidate): Likewise.
11133 (generic_predict_doloop_p): Update attribute.
11134 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
11135 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
11136 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
11138 (get_computation_cost): Update for doloop IV cand extra cost.
11139 (determine_group_iv_cost_cond): Update for doloop IV cand.
11140 (determine_iv_cost): Likewise.
11141 (ivopts_estimate_reg_pressure): Likewise.
11142 (may_eliminate_iv): Update handlings for doloop IV cand.
11143 (add_iv_candidate_for_doloop): New function.
11144 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
11145 (iv_ca_set_no_cp): Update for doloop IV cand.
11146 (iv_ca_set_cp): Likewise.
11147 (iv_ca_dump): Dump register cost.
11148 (find_doloop_use): New function.
11149 (analyze_and_mark_doloop_use): Likewise.
11150 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
11152 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11154 PR middle-end/91708
11155 * cse.c (cse_insn): Do not replace anything with a
11158 2019-09-13 Ian Lance Taylor <iant@golang.org>
11160 * doc/invoke.texi (Optimize Options): Fix typo.
11162 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
11164 PR tree-optimization/89386
11165 * config/i386/sse.md (smulhrs<mode>3): New expander.
11166 (smulhrsv4hi3): Ditto.
11168 2019-09-12 Richard Biener <rguenther@suse.de>
11170 PR tree-optimization/91750
11171 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
11172 in the type of the evolution.
11174 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
11176 PR tree-optimization/89386
11177 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
11178 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
11179 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
11180 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
11181 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
11182 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
11183 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
11184 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
11185 (su, r): Handle the unspecs above.
11186 (bt): New int attribute.
11187 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
11188 * internal-fn.c (first_commutative_argument): Commutativity info for
11190 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
11191 (umulhrs_optab): New optabs.
11192 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
11193 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
11194 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
11196 (vect_vect_recog_func_ptrs): Add it.
11198 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
11200 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
11203 2019-09-11 Nathan Sidwell <nathan@acm.org>
11205 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
11206 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
11208 2019-09-11 Richard Biener <rguenther@suse.de>
11210 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
11211 * lto-wrapper.c (merge_and_complain): Pick up -g.
11212 (append_compiler_options): Likewise.
11213 (run_gcc): Re-instantiate handling -g0 at link-time.
11214 * doc/invoke.texi (flto): Document debug info generation.
11216 2019-09-11 Richard Biener <rguenther@suse.de>
11218 PR tree-optimization/90387
11219 * vr-values.c (vr_values::extract_range_basic): After inlining
11220 simplify non-constant __builtin_constant_p to false.
11222 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
11224 PR rtl-optimization/89795
11225 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
11226 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
11228 2019-09-11 Jakub Jelinek <jakub@redhat.com>
11230 PR tree-optimization/91723
11231 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
11232 instead of pointer equality when checking if argument vectypes are
11235 PR middle-end/91725
11236 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
11237 of get_nonzero_bits, only call it for integral types.
11239 2019-09-11 Richard Biener <rguenther@suse.de>
11242 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11244 * match.pd: Add flag_unsafe_math_optimizations check
11245 before deciding on the widest type in a binary math operation.
11247 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11249 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
11250 and CALL_REALLY_USED_REGISTERS must be defined, and that
11251 CALL_REALLY_USED_REGISTERS is preferred.
11252 * doc/tm.texi: Regenerate.
11253 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
11254 (call_really_used_regs): Likewise.
11255 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
11256 CALL_REALLY_USED_REGISTERS are defined.
11257 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
11258 initial value if defined.
11259 (initial_call_really_used_regs): Delete.
11260 (saved_call_really_used_regs): Likewise.
11261 (CALL_REALLY_USED_REGNO_P): Likewise.
11262 (init_reg_sets): Remove handling of call_really_used_regs.
11263 (save_register_info, restore_register_info, globalize_reg): Likewise.
11264 (init_reg_sets_1): Likewise. Use call_used_regs instead of
11265 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
11266 outside operand_reg_set.
11267 (fix_register): Don't change call_used_regs if
11268 CALL_REALLY_USED_REGISTERS is defined.
11269 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
11270 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
11271 instead of call_really_used_regs.
11272 (csky_conditional_register_usage): Remove the old handling of
11273 call_used_regs and change the handling of call_really_used_regs
11274 to use call_used_regs instead.
11275 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
11276 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
11277 making a register fixed.
11278 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
11279 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
11280 instead of call_really_used_regs.
11281 (m32r_conditional_register_usage): Don't set call_used_regs when
11282 making a register fixed.
11283 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
11284 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
11285 instead of call_really_used_regs.
11286 (mips_interrupt_extra_call_saved_reg_p): Likewise.
11287 (mips_cfun_call_saved_reg_p): Likewise.
11288 (mips_swap_registers): Remove the old handling of call_used_regs
11289 and change the handling of call_really_used_regs to use call_used_regs
11291 (mips_conditional_register_usage): Likewise.
11292 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
11293 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
11294 instead of call_really_used_regs.
11295 (mn10300_get_live_callee_saved_regs): Likewise.
11296 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
11297 (mn10300_conditional_register_usage): Don't set call_used_regs when
11298 making a register fixed.
11299 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
11300 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11301 Remove the old handling of call_used_regs and change the handling
11302 of call_really_used_regs to use call_used_regs instead.
11303 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
11304 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
11305 instead of call_really_used_regs.
11306 (s390_register_info_gprtofpr, s390_register_info): Likewise.
11307 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
11308 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
11309 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
11310 (s390_conditional_register_usage): Remove the old handling of
11311 call_used_regs and change the handling of call_really_used_regs
11312 to use call_used_regs instead.
11313 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
11314 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
11315 (sh_fix_range, reg_unused_after): Likewise.
11316 (sh_conditional_register_usage): Remove the old handling of
11317 call_used_regs and change the handling of call_really_used_regs
11318 to use call_used_regs instead.
11319 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
11320 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
11321 call_used_regs when making a register fixed.
11322 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
11323 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
11324 call_used_regs when making a register fixed.
11325 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
11326 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
11327 set call_used_regs when making a register fixed.
11328 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
11329 * config/visium/visium.c (visium_conditional_register_usage): Remove
11330 the old handling of call_used_regs and change the handling of
11331 call_really_used_regs to use call_used_regs instead.
11333 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11335 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
11336 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
11337 * reginfo.c (call_used_regs): New macro.
11339 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11341 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
11343 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11344 (bpf_expand_epilogue): Likewise.
11345 * config/c6x/c6x.c (c6x_save_reg): Likewise.
11346 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11347 (ft32_expand_epilogue): Likewise.
11348 * config/i386/i386.c (ix86_save_reg): Likewise.
11349 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
11350 (moxie_expand_epilogue): Likewise.
11351 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11352 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11353 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11355 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11357 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
11358 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
11359 instead of testing call_used_regs directly.
11360 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
11361 (aarch64_components_for_bb): Likewise.
11362 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
11363 * config/arc/arc.c (arc_must_save_register): Likewise.
11364 (arc_epilogue_uses): Likewise.
11365 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
11366 (legitimize_pic_address, callee_saved_reg_p): Likewise.
11367 (arm_compute_save_reg0_reg12_mask): Likewise.
11368 (arm_compute_save_core_reg_mask): Likewise.
11369 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
11370 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
11371 (cmse_nonsecure_entry_clear_before_return): Likewise.
11372 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
11373 (arm_expand_epilogue): Likewise.
11374 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
11375 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
11376 (_reg_unused_after): Likewise.
11377 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
11378 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
11379 (add_to_reg, hwloop_optimize): Likewise.
11380 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11381 (bpf_expand_epilogue): Likewise.
11382 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
11383 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
11384 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
11385 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
11386 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
11387 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
11388 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
11389 * config/frv/frv.c (frv_stack_info): Likewise.
11390 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
11391 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
11392 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
11393 (move_callee_saved_registers): Likewise.
11394 * config/h8300/h8300.c (byte_reg): Likewise.
11395 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
11396 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
11397 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
11398 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
11399 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
11400 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
11401 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
11402 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
11403 * config/m32c/m32c.c (need_to_save): Likewise.
11404 * config/m68k/m68k.c (m68k_save_reg): Likewise.
11405 * config/mcore/mcore.c (calc_live_regs): Likewise.
11406 * config/microblaze/microblaze.c (microblaze_must_save_register):
11408 * config/mmix/mmix.c (mmix_local_regno): Likewise.
11409 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
11410 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
11411 (mmix_expand_epilogue): Likewise.
11412 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
11413 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
11414 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
11415 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
11416 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
11417 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
11418 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
11419 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
11420 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
11421 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
11422 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
11423 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
11424 * config/rl78/rl78.c (need_to_save): Likewise.
11425 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
11426 (rs6000_stack_info, generate_set_vrsave): Likewise.
11427 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
11428 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
11429 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11430 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11431 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
11432 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
11433 (save_local_or_in_reg_p): Likewise.
11434 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
11435 (xstormy16_epilogue_uses): Likewise.
11436 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11437 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11438 * config/v850/v850.c (compute_register_save_size): Likewise.
11439 * config/vax/vax.c (vax_expand_prologue): Likewise.
11440 * config/visium/visium.c (visium_save_reg_p): Likewise.
11441 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11442 * cselib.c (cselib_process_insn): Likewise.
11443 * df-scan.c (df_get_entry_block_def_set): Likewise.
11444 * function.c (aggregate_value_p): Likewise.
11445 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
11446 * ira-lives.c (process_bb_node_lives): Likewise.
11447 * ira.c (do_reload): Likewise.
11448 * lra-lives.c (process_bb_lives): Likewise.
11449 * lra-remat.c (lra_remat): Likewise.
11450 * lra.c (lra): Likewise.
11451 * postreload.c (reload_combine_recognize_pattern): Likewise.
11452 (reload_cse_move2add): Likewise.
11453 * recog.c (peep2_find_free_register): Likewise.
11454 * regrename.c (check_new_reg_p): Likewise.
11455 * reload.c (find_equiv_reg): Likewise.
11456 * reload1.c (reload, find_reg): Likewise.
11457 * sel-sched.c (init_hard_regs_data): Likewise.
11459 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11461 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
11462 regs_invalidated_by_call & ~fixed_reg_set instead of
11463 call_used_or_fixed_regs & ~fixed_reg_set.
11464 * config/sh/sh.c (output_stack_adjust): Likewise.
11466 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11468 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
11469 (call_used_reg_set): Delete.
11470 (call_used_or_fixed_regs): New macro.
11471 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
11472 of call_used_reg_set.
11473 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
11474 instead of call_used_regs.
11475 (save_call_clobbered_regs): Likewise.
11476 * cfgcleanup.c (old_insns_match_p): Likewise.
11477 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
11478 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
11480 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11481 * config/sh/sh.c (output_stack_adjust): Likewise.
11482 * final.c (collect_fn_hard_reg_usage): Likewise.
11483 * ira-build.c (ira_build): Likewise.
11484 * ira-color.c (calculate_saved_nregs): Likewise.
11485 (allocno_reload_assign, calculate_spill_cost): Likewise.
11486 * ira-conflicts.c (ira_build_conflicts): Likewise.
11487 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11488 * ira-lives.c (process_bb_node_lives): Likewise.
11489 * ira.c (setup_reg_renumber): Likewise.
11490 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
11491 * lra-constraints.c (need_for_call_save_p): Likewise.
11492 (need_for_split_p, inherit_in_ebb): Likewise.
11493 * lra-lives.c (process_bb_lives): Likewise.
11494 * lra-remat.c (call_used_input_regno_present_p): Likewise.
11495 * postreload.c (reload_combine): Likewise.
11496 * regrename.c (find_rename_reg): Likewise.
11497 * reload1.c (reload_as_needed): Likewise.
11498 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11499 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11500 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11502 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11504 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
11505 (no_caller_save_reg_set): Delete.
11506 * caller-save.c (init_caller_save): Don't initialize it.
11507 * ira-conflicts.c (ira_build_conflicts): Calculate
11508 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
11510 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11512 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
11513 (target_hard_regs::x_savable_regs): New field.
11514 (call_fixed_reg_set): Delete.
11515 (savable_regs): New macro,
11516 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
11517 (init_reg_sets_1): Likewise. Initialize savable_regs.
11518 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
11519 for all registers. Set savable_regs instead of call_fixed_reg_set.
11520 (setup_save_areas, save_call_clobbered_regs): Replace uses of
11521 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
11522 * config/sh/sh.c (output_stack_adjust): Likewise.
11524 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11526 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
11527 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
11528 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
11530 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11532 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
11533 * rtlanal.c (get_call_rtx_from): Likewise.
11534 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
11535 than the pattern to get_call_rtx_from.
11536 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
11537 an rtx_insn * instead of an rtx.
11538 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
11540 2019-09-10 Martin Liska <mliska@suse.cz>
11542 * common.opt: Use newly added WarnRemoved.
11543 * config/aarch64/aarch64.opt: Likewise.
11544 * config/arm/arm.opt: Likewise.
11545 * config/i386/i386.opt: Likewise.
11546 * config/ia64/ia64.opt: Likewise.
11547 * config/rs6000/rs6000.opt: Likewise.
11548 * doc/options.texi: Document WarnRemoved properly.
11549 * dwarf2out.c (gen_producer_string): Handle renamed
11550 OPT_SPECIAL_warn_removed.
11551 * lto-opts.c (lto_write_options): Likewise.
11552 * lto-wrapper.c (merge_and_complain): Likewise.
11553 * opts-common.c (decode_cmdline_option): Likewise.
11554 (prune_options): Likewise.
11555 (read_cmdline_option): Likewise.
11556 (control_warning_option): Likewise.
11557 * opts.c (print_filtered_help): Likewise.
11558 * optc-gen.awk: Parse for WarnRemoved and make usage
11559 of Deprecated an error.
11560 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
11562 2019-09-10 Arnaud Charlet <charlet@adacore.com>
11564 * doc/install.texi: Fix syntax for html generation.
11566 2019-09-10 Jakub Jelinek <jakub@redhat.com>
11568 PR middle-end/91680
11569 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
11570 the shift type to type.
11572 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11574 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
11576 (stack_protect_combined_test_insn): Likewise.
11578 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11579 Mickaël Guêné <mickael.guene@st.com>
11581 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
11582 * config/arm/arm.md (FDPIC_REGNUM): New constant.
11583 (load_tp_soft_fdpic): New pattern.
11584 (load_tp_soft): Disable in FDPIC mode.
11586 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11587 Mickaël Guêné <mickael.guene@st.com>
11589 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
11590 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
11591 (arm_call_tls_get_addr): Add FDPIC support.
11592 (legitimize_tls_address): Likewise.
11593 (arm_emit_tls_decoration): Likewise.
11595 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11596 Mickaël Guêné <mickael.guene@st.com>
11598 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
11600 (arm_trampoline_init): Likewise.
11601 (arm_trampoline_adjust_address): Likewise.
11602 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
11604 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11605 Mickaël Guêné <mickael.guene@st.com>
11607 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
11608 (legitimize_pic_address): Enforce binding rules on function
11609 pointers in FDPIC mode.
11610 (arm_assemble_integer): Likewise.
11612 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11613 Mickaël Guêné <mickael.guene@st.com>
11615 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
11616 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
11619 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11620 Mickaël Guêné <mickael.guene@st.com>
11622 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
11625 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11626 Mickaël Guêné <mickael.guene@st.com>
11628 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
11630 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
11632 * config/arm/arm.c (arm_option_override): Define pic register to
11634 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
11635 have no decl or go through PLT.
11636 (calculate_pic_address_constant): New function.
11637 (legitimize_pic_address): Call calculate_pic_address_constant.
11638 (arm_load_pic_register): Handle TARGET_FDPIC.
11639 (arm_is_segment_info_known): New function.
11640 (arm_pic_static_addr): Add support for FDPIC.
11641 (arm_load_function_descriptor): New function.
11642 (arm_emit_call_insn): Add support for FDPIC.
11643 (arm_assemble_integer): Add support for FDPIC.
11644 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
11645 Define. (FDPIC_REGNUM): New define.
11646 * config/arm/arm.md (call): Add support for FDPIC.
11647 (call_value): Likewise.
11648 (restore_pic_register_after_call): New pattern.
11649 (untyped_call): Disable if FDPIC.
11650 (untyped_return): Likewise.
11651 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
11653 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11654 Mickaël Guêné <mickael.guene@st.com>
11656 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
11657 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
11658 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
11659 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
11660 (CC1_SPEC): Use FDPIC_CC1_SPEC.
11661 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
11662 * config/arm/uclinuxfdpiceabi.h: New file.
11664 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11666 * config.gcc: Handle *-*-uclinuxfdpiceabi.
11668 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11669 Mickaël Guêné <mickael.guene@st.com>
11671 * config/arm/arm.opt: Add -mfdpic option.
11672 * doc/invoke.texi: Add documentation for -mfdpic.
11674 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11676 * expmed.c (extract_bit_field): Update function comment
11678 * expr.c (expand_expr_real): Update function comment
11680 (expand_misaligned_mem_ref): New helper function.
11681 (expand_expr_real_2): Use expand_misaligned_mem_ref.
11682 Remove duplicate assignment to "base" at case MEM_REF.
11683 Remove a shadowed variable "unsignedp" at case VCE.
11685 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11687 * regset.h (regs_invalidated_by_call_regset): Delete.
11688 (fixed_reg_set_regset): Likewise.
11689 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
11690 (fixed_reg_set_regset, persistent_obstack): Likewise.
11691 (init_reg_sets_1, globalize_reg): Update accordingly.
11692 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
11693 instead of a bitmap.
11694 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
11695 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
11696 instead of regs_invalidated_by_call_regset.
11697 (df_lr_confluence_n, df_md_confluence_n): Likewise.
11698 * df-scan.c (df_scan_start_dump): Likewise.
11699 * dse.c (copy_fixed_regs): Likewise.
11700 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
11702 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11704 * array-traits.h: New file.
11705 * coretypes.h (array_traits, bitmap_view): New types.
11706 * bitmap.h: Include "array-traits.h"
11707 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
11708 (base_bitmap_view, bitmap_view): New classes.
11709 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
11710 * hard-reg-set.h: Include array-traits.h.
11711 (array_traits<HARD_REG_SET>): New struct.
11712 * regset.h (IOR_REG_SET_HRS): New macro.
11713 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
11714 rather than iterating over each hard register.
11715 * sched-deps.c (sched_analyze_insn): Likewise.
11716 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
11718 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11720 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
11721 instead of a HARD_REG_SET *.
11722 * ira-build.c (ior_hard_reg_conflicts): Likewise.
11723 (ira_build): Update call accordingly.
11724 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
11726 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11728 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
11729 (HARD_REG_SET::operator!=): Likewise.
11730 (hard_reg_set_equal_p): Delete.
11731 * cfgcleanup.c (old_insns_match_p): Use == instead of
11732 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
11733 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
11734 (add_allocno_hard_regs_to_forest): Likewise.
11735 (setup_allocno_available_regs_num): Likewise.
11736 * ira.c (setup_pressure_classes): Likewise.
11737 (setup_allocno_and_important_classes): Likewise.
11738 (setup_reg_class_relations): Likewise.
11739 * lra-lives.c (process_bb_lives): Likewise.
11740 * reg-stack.c (change_stack, convert_regs_1): Likewise.
11742 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11744 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
11745 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11746 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
11747 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
11749 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
11750 * ira.c (setup_reg_renumber): Likewise.
11751 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11752 * regrename.c (regrename_find_superclass): Likewise.
11753 * reload1.c (find_reg): Likewise.
11755 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11757 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
11758 * caller-save.c (setup_save_areas): Use "&~" instead of
11759 AND_COMPL_HARD_REG_SET.
11760 (save_call_clobbered_regs): Likewise.
11761 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
11763 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11764 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11765 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
11766 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11767 (mips_conditional_register_usage): Likewise.
11768 * config/sh/sh.c (output_stack_adjust): Likewise.
11769 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
11770 (setup_profitable_hard_regs): Likewise.
11771 (get_conflict_and_start_profitable_regs): Likewise.
11772 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11773 (ira_build_conflicts): Likewise.
11774 * ira-costs.c (restrict_cost_classes): Likewise.
11775 (setup_regno_cost_classes_by_aclass): Likewise.
11776 * ira-lives.c (process_bb_node_lives): Likewise.
11777 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
11778 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
11779 (setup_allocno_and_important_classes, setup_class_translate_array)
11780 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
11782 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11783 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11784 (process_alt_operands, inherit_in_ebb): Likewise.
11785 * lra-eliminations.c (update_reg_eliminate): Likewise.
11786 * lra-lives.c (process_bb_lives): Likewise.
11787 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
11788 * resource.c (find_dead_or_set_registers): Likewise.
11789 (mark_target_live_regs): Likewise.
11790 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
11791 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11792 (implicit_clobber_conflict_p): Likewise.
11793 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11794 (try_shrink_wrapping): Likewise.
11796 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11798 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
11799 (HARD_REG_SET::operator|=): Likewise.
11800 (IOR_HARD_REG_SET): Delete.
11801 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
11803 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11804 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
11805 * final.c (collect_fn_hard_reg_usage): Likewise.
11806 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
11807 * ira-build.c (merge_hard_reg_conflicts): Likewise.
11808 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
11809 (propagate_some_info_from_allocno): Likewise.
11810 (copy_info_to_removed_store_destinations): Likewise.
11811 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
11812 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
11813 (fast_allocation): Likewise.
11814 * ira-conflicts.c (ira_build_conflicts): Likewise.
11815 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
11816 (process_bb_node_lives): Likewise.
11817 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
11818 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11819 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11820 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
11821 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
11822 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
11823 (process_bb_lives): Likewise.
11824 * lra-spills.c (assign_spill_hard_regs): Likewise.
11825 * postreload.c (reload_combine): Likewise.
11826 * reginfo.c (init_reg_sets_1): Likewise.
11827 * regrename.c (merge_overlapping_regs, find_rename_reg)
11828 (merge_chains): Likewise.
11829 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
11830 (find_reload_regs, finish_spills, choose_reload_regs_init)
11831 (emit_reload_insns): Likewise.
11832 * reorg.c (redundant_insn): Likewise.
11833 * resource.c (find_dead_or_set_registers, mark_set_resources)
11834 (mark_target_live_regs): Likewise.
11835 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11836 * sched-deps.c (sched_analyze_insn): Likewise.
11837 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11838 (find_best_reg_for_expr): Likewise.
11839 * shrink-wrap.c (try_shrink_wrapping): Likewise.
11841 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11843 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
11844 (HARD_REG_SET::operator&): Likewise.
11845 (AND_HARD_REG_SET): Delete.
11846 * caller-save.c (setup_save_areas): Use "&" instead of
11848 (save_call_clobbered_regs): Likewise.
11849 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11850 * config/m32c/m32c.c (reduce_class): Likewise.
11851 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11852 * final.c (get_call_reg_set_usage): Likewise.
11853 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
11854 (setup_left_conflict_sizes_p): Likewise.
11855 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11856 (ira_build_conflicts): Likewise.
11857 * ira-costs.c (restrict_cost_classes): Likewise.
11858 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
11859 (setup_reg_class_relations): Likewise.
11860 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
11861 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
11862 * resource.c (find_dead_or_set_registers): Likewise.
11863 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11865 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11867 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
11868 (COMPL_HARD_REG_SET): Delete.
11869 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
11870 of COMPL_HARD_REG_SET.
11871 (try_rename_operands): Likewise.
11872 * config/sh/sh.c (push_regs): Likewise.
11873 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11874 * lra-constraints.c (contains_reg_p): Likewise.
11875 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
11877 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11879 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
11880 * caller-save.c (save_call_clobbered_regs): Use assignment instead
11881 of COPY_HARD_REG_SET.
11882 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
11883 (epiphany_conditional_register_usage): Likewise.
11884 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11885 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11886 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11887 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11888 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
11889 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11890 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
11891 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11892 * config/sh/sh.c (output_stack_adjust): Likewise.
11893 * final.c (collect_fn_hard_reg_usage): Likewise.
11894 (get_call_reg_set_usage): Likewise.
11895 * ira-build.c (ira_create_object, remove_low_level_allocnos)
11896 (ira_flattening): Likewise.
11897 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
11898 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
11899 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
11900 (ira_reassign_pseudos): Likewise.
11901 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11902 (ira_build_conflicts): Likewise.
11903 * ira-costs.c (restrict_cost_classes): Likewise.
11904 (setup_regno_cost_classes_by_aclass): Likewise.
11905 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
11906 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
11907 (setup_stack_reg_pressure_class, setup_pressure_classes)
11908 (setup_allocno_and_important_classes, setup_class_translate_array)
11909 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
11910 (ira_setup_eliminable_regset): Likewise.
11911 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11912 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11913 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11914 (process_alt_operands, inherit_in_ebb): Likewise.
11915 * lra-lives.c (process_bb_lives): Likewise.
11916 * lra-spills.c (assign_spill_hard_regs): Likewise.
11917 * lra.c (lra): Likewise.
11918 * mode-switching.c (new_seginfo): Likewise.
11919 * postreload.c (reload_combine): Likewise.
11920 * reg-stack.c (straighten_stack): Likewise.
11921 * reginfo.c (save_register_info, restore_register_info): Likewise.
11922 (init_reg_sets_1, record_subregs_of_mode): Likewise
11923 * regrename.c (create_new_chain, rename_chains): Likewise.
11924 * reload1.c (order_regs_for_reload, find_reg): Likewise.
11925 (find_reload_regs): Likewise.
11926 * resource.c (find_dead_or_set_registers): Likewise.
11927 (mark_target_live_regs): Likewise.
11928 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11930 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11932 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
11933 (note_pattern_stores): Declare.
11934 (note_stores): Take an rtx_insn *.
11935 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
11936 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
11937 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
11938 (note_stores): Take an rtx_insn * as argument and process
11939 CALL_INSN_FUNCTION_USAGE. Rename old function to...
11940 (note_pattern_stores): ...this.
11941 (find_first_parameter_load): Pass the insn rather than
11942 its pattern to note_stores.
11943 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
11944 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
11945 (insert_one_insn): Likewise.
11946 * combine.c (combine_instructions): Likewise.
11947 (likely_spilled_retval_p): Likewise.
11948 (try_combine): Use note_pattern_stores instead of note_stores.
11949 (record_dead_and_set_regs): Pass the insn rather than its pattern
11951 (reg_dead_at_p): Likewise.
11952 * config/bfin/bfin.c (workaround_speculation): Likewise.
11953 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
11954 rather than an rtx.
11955 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
11956 instead of note_stores.
11957 (frv_optimize_membar_local): Pass the insn rather than its pattern
11959 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11960 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
11961 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
11962 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
11963 (mips_reorg_process_insns): Likewise.
11964 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
11965 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
11967 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
11968 its pattern to note_stores.
11969 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
11971 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
11972 the insn to note_stores.
11973 (prescan_insns_for_dce): Update call accordingly.
11974 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
11976 * df-problems.c (can_move_insns_across): Likewise.
11977 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
11978 * function.c (assign_parm_setup_reg): Likewise.
11979 * gcse-common.c (record_last_mem_set_info_common): Likewise.
11980 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
11981 (single_set_gcse): Likewise.
11982 * ira.c (validate_equiv_mem): Likewise.
11983 (update_equiv_regs): Use note_pattern_stores rather than note_stores
11985 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
11986 pattern to note_stores.
11987 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11988 * loop-iv.c (simplify_using_initial_values): Likewise.
11989 * mode-switching.c (optimize_mode_switching): Likewise.
11990 * optabs.c (emit_libcall_block_1): Likewise.
11991 (expand_atomic_compare_and_swap): Likewise.
11992 * postreload-gcse.c (load_killed_in_block_p): Likewise.
11993 (record_opr_changes): Likewise. Remove explicit handling of
11994 CALL_INSN_FUNCTION_USAGE.
11995 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
11996 * regcprop.c (kill_clobbered_values): Likewise.
11997 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
11999 * regrename.c (build_def_use): Likewise.
12000 * reload1.c (reload): Use note_pattern_stores instead of note_stores
12001 for mark_not_eliminable.
12002 (reload_as_needed): Pass the insn rather than its pattern
12004 (emit_output_reload_insns): Likewise.
12005 * resource.c (mark_target_live_regs): Likewise.
12006 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12007 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
12008 instead of note_stores.
12009 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
12010 its pattern to note_stores.
12011 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
12012 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
12014 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12016 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
12017 than a #define. Use a structure rather than an array as the
12018 fallback definition. Remove special cases for low array sizes.
12019 (const_hard_reg_set): New typedef.
12020 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
12021 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
12022 (hard_reg_set_empty_p): Likewise.
12023 (SET_HARD_REG_BIT): Use a function rather than a macro to
12024 handle the case in which HARD_REG_SET is a structure.
12025 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
12026 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12027 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12028 (IOR_COMPL_HARD_REG_SET): Likewise.
12029 (hard_reg_set_iterator::pset): Constify the pointer target.
12030 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
12031 of a "const HARD_REG_SET". Update the handling of non-integer
12033 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
12034 * reload.h: Likewise.
12035 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
12036 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
12037 of a "const HARD_REG_SET".
12038 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
12039 (range_in_hard_reg_set_p): Likewise.
12040 * ira-costs.c (restrict_cost_classes): Likewise.
12041 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
12042 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12043 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
12044 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
12045 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
12046 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
12047 take an unsigned int and open-code the HARD_REG_SET operations.
12049 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12051 * Makefile.in (OBJS): Remove bt-load.o.
12052 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
12053 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12054 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
12055 document that the option no longer does anything.
12056 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12057 * target.def (branch_target_register_class): Delete.
12058 (branch_target_register_callee_saved): Likewise.
12059 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12060 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
12061 * doc/tm.texi: Regenerate.
12062 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
12063 (make_pass_branch_target_load_optimize2): Likewise.
12064 * passes.def (pass_branch_target_load_optimize1): Likewise.
12065 (pass_branch_target_load_optimize2): Likewise.
12066 * targhooks.h (default_branch_target_register_class): Likewise.
12067 * targhooks.c (default_branch_target_register_class): Likewise.
12068 * opt-suggestions.c (test_completion_valid_options): Remove
12069 -fbtr-bb-exclusive from the list of test options.
12070 * bt-load.c: Remove.
12072 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12074 * match.pd: Add flag_unsafe_math_optimizations check
12075 before deciding on the widest type in a binary math operation.
12077 2019-09-09 Martin Liska <mliska@suse.cz>
12079 * config/i386/i386.opt: Update comment of removed
12080 options that are preserved only for backward
12083 2019-09-09 Jakub Jelinek <jakub@redhat.com>
12086 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
12087 instead of __v16qs.
12090 * config/i386/avxintrin.h (__v32qs): New typedef.
12091 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
12092 instead of __v32qi.
12094 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12096 * doc/invoke.texi (Option Summary): Cover eBPF.
12097 (eBPF Options): New section.
12098 * doc/extend.texi (BPF Built-in Functions): Likewise.
12099 (BPF Kernel Helpers): Likewise.
12101 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12103 * config.gcc: Support for bpf-*-* targets.
12104 * common/config/bpf/bpf-common.c: New file.
12105 * config/bpf/t-bpf: Likewise.
12106 * config/bpf/predicates.md: Likewise.
12107 * config/bpf/constraints.md: Likewise.
12108 * config/bpf/bpf.opt: Likewise.
12109 * config/bpf/bpf.md: Likewise.
12110 * config/bpf/bpf.h: Likewise.
12111 * config/bpf/bpf.c: Likewise.
12112 * config/bpf/bpf-protos.h: Likewise.
12113 * config/bpf/bpf-opts.h: Likewise.
12114 * config/bpf/bpf-helpers.h: Likewise.
12115 * config/bpf/bpf-helpers.def: Likewise.
12117 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12119 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12122 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12124 * opt-functions.awk (integer_range_info): Make sure values are in
12125 numeric context before operating with them.
12127 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
12129 * genemit.c (gen_split): Print the filename and line number where the
12130 splitter (or peephole2) was defined, to the dump file.
12132 2019-09-07 Jakub Jelinek <jakub@redhat.com>
12134 PR tree-optimization/91665
12135 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
12136 incompatible with the type of PHI result.
12138 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
12141 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
12142 gen_unaligned_storedi for 4-byte aligned addresses.
12144 2019-09-06 Jim Wilson <jimw@sifive.com>
12146 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
12149 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12151 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
12153 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12155 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
12156 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
12158 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
12161 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
12162 cost of SSE->integer and integer->SSE moves from 2 to 6.
12163 (core_cost): Ditto.
12165 2019-09-06 Jakub Jelinek <jakub@redhat.com>
12167 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
12168 before testing TYPE_TRANSPARENT_AGGR.
12169 * calls.c (initialize_argument_information, load_register_parameters):
12172 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
12174 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
12176 (cmp_ior): Likewise.
12178 2019-09-06 Martin Liska <mliska@suse.cz>
12180 * doc/match-and-simplify.texi: Separate tuples with ;.
12182 2019-09-06 Martin Liska <mliska@suse.cz>
12185 * Makefile.in: Remove tlink.o.
12186 * collect2.c (do_link): New function isolated
12189 * collect2.h (do_tlink): Remove declaration of do_tlink.
12190 * doc/extend.texi: Remove documentation of -frepo.
12191 * doc/invoke.texi: Likewise.
12192 * doc/sourcebuild.texi: Remove cleanup-repo-files.
12195 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12196 Jim Wilson <jimw@sifive.com>
12199 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
12200 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
12201 paradoxical_subreg_p (operands[0]).
12202 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
12203 use as intermediate value.
12205 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
12207 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
12208 (sync_compare_and_swap<mode>_insn): Likewise.
12210 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12212 PR middle-end/91615
12213 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
12214 without movmisalign optab.
12216 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12218 PR middle-end/91001
12219 PR middle-end/91105
12220 PR middle-end/91106
12221 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
12222 types, use type of their first field instead of type of
12223 args[i].tree_value.
12225 2019-09-05 Richard Biener <rguenther@suse.de>
12227 PR rtl-optimization/91656
12228 * postreload-gcse.c (record_last_mem_set_info): Revert addition
12231 2019-09-05 Richard Biener <rguenther@suse.de>
12233 PR middle-end/90501
12234 * tree-inline.c (declare_return_variable): Mark the return
12235 slot as addressable after building an address of it.
12237 2019-09-05 Arnaud Charlet <charlet@adacore.com>
12239 * doc/install.texi: Update and clarify requirements to build GNAT.
12241 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
12243 PR middle-end/91577
12244 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
12245 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
12246 call to be in memory.
12247 (pass_expand::execute): Call discover_nonconstant_array_refs before
12248 setting currently_expanding_to_rtl.
12250 2019-09-04 Caroline Tice <cmtice@google.com>
12252 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
12253 specified together.
12255 2019-09-04 Marek Polacek <polacek@redhat.com>
12257 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
12259 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
12262 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12263 for QI and HImode moves between SSE and general registers.
12265 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12268 * doc/invoke.texi: Document -Wenum-conversion.
12270 2019-09-04 Richard Biener <rguenther@suse.de>
12272 PR rtl-optimization/36262
12273 * postreload-gcse.c: Include intl.h and gcse.h.
12274 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
12275 to avoid linear list walk.
12276 (record_last_mem_set_info): Gate off if not computing transparentness.
12277 (get_bb_avail_insn): If transparentness isn't computed give up
12279 (gcse_after_reload_main): Skip compute_transp and extended PRE
12280 if gcse_or_cprop_is_too_expensive says so.
12282 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12284 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
12286 (msp430_select_section): Handle decls with the "noinit" attribute with
12287 default_elf_select_section.
12288 Handle SECCAT_RODATA_MERGE_* section types with
12289 default_elf_select_section.
12290 Add comments about handling of unsupported section types.
12291 (msp430_section_type_flags): Remove handling of the noinit section.
12293 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12295 * config/msp430/msp430.c (msp430_attr): Remove warnings about
12296 conflicting msp430-specific attributes.
12297 (msp430_section_attr): Likewise.
12298 Add warnings about conflicts with generic "noinit" and "section"
12300 Fix grammar in -mlarge error message.
12301 (msp430_data_attr): Rename to msp430_persist_attr.
12302 Add warnings about conflicts with generic "noinit" and "section"
12304 Add warning for when variable is not initialized.
12305 Chain conditionals which prevent the attribute being added.
12306 (ATTR_EXCL): New helper.
12307 (attr_reent_exclusions): New exclusion table.
12308 (attr_naked_exclusions): Likewise.
12309 (attr_crit_exclusions): Likewise.
12310 (attr_lower_exclusions): Likewise.
12311 (attr_upper_exclusions): Likewise.
12312 (attr_either_exclusions): Likewise.
12313 (attr_persist_exclusions): Likewise.
12314 (msp430_attribute_table): Update with exclusion rules.
12315 (msp430_output_aligned_decl_common): Don't output common symbol if decl
12318 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12320 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
12321 (msp430_handle_generic_attribute): New function.
12322 * doc/tm.texi: Regenerate.
12323 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
12324 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12325 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12326 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
12328 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
12330 PR tree-optimization/91504
12331 * match.pd: Add ((~a & b) ^a) --> (a | b).
12333 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12336 * config/i386/i386-expand.c (split_double_mode): If there is more than
12337 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
12338 already split matching MEM operand instead of calling adjust_address
12341 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
12343 * config.gcc: Obsolete spu target. Remove references to spu.
12344 * configure.ac: Remove references to spu.
12345 * configure: Regenerate.
12346 * config/spu/: Remove directory.
12347 * common/config/spu/: Remove directory.
12349 * doc/extend.texi: Remove references to spu.
12350 * doc/invoke.texi: Likewise.
12351 * doc/md.texi: Likewise.
12352 * doc/sourcebuild.texi: Likewise.
12354 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12356 PR middle-end/91603
12357 PR middle-end/91612
12358 PR middle-end/91613
12359 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
12360 and SSA_NAME referring to CONSTANT_P correctly.
12362 2019-09-03 Richard Biener <rguenther@suse.de>
12364 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
12365 (vn_nary_op_insert): Likewise.
12366 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
12367 (vn_nary_op_lookup): Likewise.
12368 (vn_nary_op_insert): Likewise.
12370 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
12372 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
12373 (*op0, 1) instead of XEXP (*op1, 0).
12375 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12377 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
12378 (aarch64_fjcvtzs): New define_insn.
12379 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
12380 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
12382 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
12383 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
12384 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
12385 __ARM_FEATURE_JCVT where appropriate.
12386 * config/aarch64/arm_acle.h (__jcvt): Define.
12388 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12390 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
12391 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
12392 (aarch64_<frintnzs_op><mode>): New define_insn.
12393 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
12394 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
12395 __ARM_FEATURE_FRINT when appropriate.
12396 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
12397 frint32x, frint64z, frint64x.
12398 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
12399 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
12400 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
12401 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
12402 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
12403 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
12404 * config/aarch64/iterators.md (VSFDF): Define.
12405 (FRINTNZX): Likewise.
12406 (frintnzs_op): Likewise.
12408 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
12410 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
12411 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
12413 * config/aarch64/aarch64-tune.md: Regenerated.
12414 * doc/invoke.texi: Document the new processors.
12416 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12418 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
12422 (sve2-sm4): Likewise.
12423 (sveaes): Likewise.
12424 (svesha3): Likewise.
12425 (svebitperm): Likewise.
12427 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12428 Richard Biener <rguenther@suse.de>
12430 PR tree-optimization/91597
12431 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
12432 BIT_AND_EXPR optimization for pointers, even if both operand
12433 ranges don't include NULL, the result can be NULL.
12435 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12437 PR middle-end/91605
12438 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
12439 (non_mem_decl_p): ...this.
12440 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
12441 (expand_assignment): Call mem_ref_referes_to_non_mem_p
12442 unconditionally as before.
12444 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
12447 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
12448 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
12449 * tree.def (LTGT_EXPR): Likewise.
12450 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
12452 2019-09-02 Jakub Jelinek <jakub@redhat.com>
12455 * fold-const.c (range_check_type): For enumeral and boolean
12456 type, pass 1 to type_for_size langhook instead of
12457 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
12458 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
12459 (build_range_check): Don't call unsigned_type_for for pointer types.
12460 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
12461 range_check_type result.
12463 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
12465 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
12466 (replace_ref): Do not replace a chain of only two candidates which are
12467 valid memory references.
12469 2019-09-02 Martin Liska <mliska@suse.cz>
12471 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
12472 Bail out when we'll end up with the same number of clusters as
12474 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
12475 (jump_table_cluster::can_be_handled): Remove the guard
12476 as it's already handled in ::is_enabled. Allocate output
12477 after early bail out.
12479 2019-09-02 Martin Liska <mliska@suse.cz>
12481 PR gcov-profile/91601
12482 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
12483 (path_contains_zero_or_negative_cycle_arc): ... this and handle
12484 also negative edges.
12485 (circuit): Handle also negative edges as they can happen
12486 in some situations.
12488 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
12491 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
12492 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
12493 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
12495 2019-09-01 Jakub Jelinek <jakub@redhat.com>
12497 PR middle-end/91623
12498 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
12499 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
12500 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
12504 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
12505 GIMPLE_ASM TREE_LIST operands.
12507 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
12509 * doc/generic.texi (Unary and Binary Expressions): Mark up
12510 an instance of TYPE_MIN.
12512 2019-08-31 Stafford Horne <shorne@gmail.com>
12514 * config/or1k/constraints.md (t): New constraint.
12515 * config/or1k/or1k.h (GOT_REGS): New register class.
12516 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
12518 2019-08-30 Jim Wilson <jimw@sifive.com>
12520 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
12521 and -fpic and -mplt then disable -msave-restore and warn.
12523 2019-08-30 Martin Sebor <msebor@redhat.com>
12525 PR middle-end/91599
12526 * tree-ssa-strlen.c (handle_store): Use a fallback location if
12527 the statement doesn't have one.
12528 * gimple-pretty-print.c (percent_G_format): Same.
12530 PR middle-end/91584
12531 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
12532 before using them to validate MEM_REF offset.
12534 2019-08-30 Marek Polacek <polacek@redhat.com>
12536 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
12538 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12540 * config/arm/arm.md (unaligned_loaddi,
12541 unaligned_storedi): New unspec insn patterns.
12542 * config/arm/neon.md (unaligned_storev8qi): Likewise.
12543 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
12544 and unaligned_storedi for 4-byte aligned memory.
12545 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
12546 4-byte aligned memory.
12548 2019-08-30 Martin Jambor <mjambor@suse.cz>
12550 tree-optimization/91579
12551 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
12552 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
12554 (arg_needs_copy_p): Removed.
12555 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
12557 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
12559 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
12561 * config/i386/i386-features.c
12562 (general_scalar_chain::compute_convert_gain):
12563 Correct cost for double-word shifts.
12564 (general_scalar_to_vector_candidate_p): Reject count operands
12565 greater or equal to mode bitsize.
12567 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
12569 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12570 for moves between SSE and non-general registers and between
12571 mask and non-general registers.
12572 (ix86_register_move_cost): Remove stalled comment.
12574 2019-08-29 Richard Biener <rguenther@suse.de>
12576 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
12577 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
12579 2019-08-29 Richard Biener <rguenther@suse.de>
12582 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
12583 Do not emit scalar copies for debug-insns, instead replace
12584 their uses with the reg copy used in the chain or reset them
12585 if there is a reaching definition outside of the chain as well.
12587 2019-08-29 Jakub Jelinek <jakub@redhat.com>
12590 * config/i386/i386-expand.c (expand_vec_perm_movs,
12591 expand_vec_perm_blend, expand_vec_perm_vpermil,
12592 expand_vec_perm_pshufb, expand_vec_perm_1,
12593 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
12594 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
12595 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
12596 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
12597 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
12598 comments - replace ix86_expand_vec_perm_builtin_1 with
12599 ix86_expand_vec_perm_const_1.
12600 (expand_vec_perm2_vperm2f128_vblend): New function.
12601 (ix86_expand_vec_perm_const_1): New forward declaration. Call
12602 expand_vec_perm2_vperm2f128_vblend as last resort.
12603 (canonicalize_perm): Formatting fix.
12605 PR tree-optimization/91351
12606 * tree-cfg.c (generate_range_test): Use range_check_type instead of
12608 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
12609 range_check_type returns NULL.
12610 * tree-switch-conversion.c (switch_conversion::build_one_array):
12611 Use range_check_type instead of unsigned_type_for, don't perform
12612 linear opt if it returns NULL.
12613 (bit_test_cluster::find_bit_tests): Formatting fix.
12614 (bit_test_cluster::emit): Use range_check_type instead of
12616 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
12619 2019-08-29 Richard Biener <rguenther@suse.de>
12621 PR tree-optimization/91568
12622 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
12623 (vect_update_max_nunits): Add overload for poly_uint64.
12624 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
12625 (vect_build_slp_tree): Record max_nunits into the subtree
12626 and merge it upwards.
12627 (vect_print_slp_tree): Print max_nunits.
12629 2019-08-28 Marek Polacek <polacek@redhat.com>
12631 Implement P1152R4: Deprecating some uses of volatile.
12633 * doc/invoke.texi: Document -Wvolatile.
12635 2019-08-28 Marek Polacek <polacek@redhat.com>
12637 PR c++/91360 - Implement C++20 P1143R2: constinit.
12638 * doc/invoke.texi: Document -Wc++20-compat.
12640 2019-08-28 Martin Sebor <msebor@redhat.com>
12642 PR tree-optimization/91457
12643 * builtins.c (component_size): New function.
12644 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
12645 * builtins.h (compute_objsize): Add argument.
12646 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
12647 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
12648 (vrp_prop::check_mem_ref): Same.
12649 (vrp_prop::search_for_addr_array): Set no-warning bit.
12650 (check_array_bounds): Same.
12652 2019-08-28 Martin Sebor <msebor@redhat.com>
12655 * opts-common.c (option_enabled): Correct checking for language
12658 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
12660 * config/i386/i386.c (ix86_register_move_cost): Do not
12661 limit the cost of moves to/from XMM register to minimum 8.
12663 2019-08-28 Martin Jambor <mjambor@suse.cz>
12666 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
12667 checking assert a normal assert to test it really is redundant.
12668 * ipa-prop.c (compute_complex_assign_jump_func): Removed
12670 (update_jump_functions_after_inlining): Removed combining unary
12671 arithmetic operations with an ancestor jump function.
12672 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
12675 2019-08-28 Richard Biener <rguenther@suse.de>
12677 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
12678 add the MD problem.
12680 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
12681 Richard Biener <rguenther@suse.de>
12683 * expr.c (expand_assignment): Handle misaligned DECLs.
12684 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
12685 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
12687 (assign_parm_setup_stack): Allocate properly aligned stack slots.
12688 * varasm.c (build_constant_desc): Align constants of misaligned types.
12689 * config/arm/predicates.md (aligned_operand): New predicate.
12690 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
12691 aligned_operand to check restrictions on memory addresses.
12692 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
12693 * config/arm/vec-common.md (mov<VALL>): Likewise.
12695 2019-08-28 Jakub Jelinek <jakub@redhat.com>
12698 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
12699 V_128 iterator instead of VI_128.
12701 2019-08-28 Martin Liska <mliska@suse.cz>
12703 PR tree-optimization/90970
12704 * builtins.c (check_access): Remove assignment to maxread
12705 as it hasn't been used since when it was introduced in r255755.
12707 2019-08-27 Martin Sebor <msebor@redhat.com>
12709 PR tree-optimization/91567
12710 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
12711 of unknown strings.
12712 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
12713 to PTRDIFF_MAX - 2.
12715 2019-08-27 Jeff Law <law@redhat.com>
12717 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
12718 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
12720 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
12723 * config/i386/i386-features.c (convert_scalars_to_vector):
12724 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
12725 crtl->stack_realign_processed. Update crtl->drap_reg by calling
12726 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
12727 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
12729 2019-08-27 Richard Biener <rguenther@suse.de>
12731 * config/i386/i386-features.h
12732 (general_scalar_chain::~general_scalar_chain): Add.
12733 (general_scalar_chain::insns_conv): New bitmap.
12734 (general_scalar_chain::n_sse_to_integer): New.
12735 (general_scalar_chain::n_integer_to_sse): Likewise.
12736 (general_scalar_chain::make_vector_copies): Adjust signature.
12737 * config/i386/i386-features.c
12738 (general_scalar_chain::general_scalar_chain): Outline,
12739 initialize new members.
12740 (general_scalar_chain::~general_scalar_chain): New.
12741 (general_scalar_chain::mark_dual_mode_def): Record insns
12742 we need to insert conversions at and count them.
12743 (general_scalar_chain::compute_convert_gain): Account
12744 for conversion instructions at chain boundary.
12745 (general_scalar_chain::make_vector_copies): Generate a single
12746 copy for a def by a specific insn.
12747 (general_scalar_chain::convert_registers): First populate
12748 defs_map, then make copies at out-of chain insns.
12750 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
12752 * config/arm/arm.md (stack_protect_set_insn): Add security-related
12754 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
12756 2019-08-27 Martin Liska <mliska@suse.cz>
12758 * cgraph.c (cgraph_node::remove): Remove dead assignment before
12760 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
12761 Enclose in anonymous namespace.
12762 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
12763 hard_register initialization in braces.
12764 * tree-vrp.h (value_range_base::supports_type_p): Return false
12765 for function with boolean return type.
12767 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
12769 * config/i386/i386.c (emit_i387_cw_initialization)
12770 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
12772 2019-08-26 Martin Sebor <msebor@redhat.com>
12775 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
12776 (sprintf_dom_walker): Remove class.
12777 (get_int_range): Make argument const.
12778 (directive::fmtfunc, directive::set_precision): Same.
12779 (format_none): Same.
12780 (build_intmax_type_nodes): Same.
12781 (adjust_range_for_overflow): Same.
12782 (format_floating): Same.
12783 (format_character): Same.
12784 (format_string): Same.
12785 (format_plain): Same.
12786 (get_int_range): Cast away constness.
12787 (format_integer): Same.
12788 (get_string_length): Call get_range_strlen_dynamic. Handle
12789 null lendata.maxbound.
12790 (should_warn_p): Adjust argument scope qualifier.
12791 (maybe_warn): Same.
12792 (format_directive): Same.
12793 (parse_directive): Same.
12794 (is_call_safe): Same.
12795 (try_substitute_return_value): Same.
12796 (sprintf_dom_walker::handle_printf_call): Rename...
12797 (handle_printf_call): ...to this. Initialize target to host charmap
12798 here instead of in pass_sprintf_length::execute.
12799 (struct call_info): Make global.
12800 (sprintf_dom_walker::compute_format_length): Make global.
12801 (sprintf_dom_walker::handle_gimple_call): Same.
12802 * passes.def (pass_sprintf_length): Replace with pass_strlen.
12803 * print-rtl.c (print_pattern): Reduce the number of spaces to
12804 avoid -Wformat-truncation.
12805 * tree-pass.h (make_pass_warn_printf): New function.
12806 * tree-ssa-strlen.c (strlen_optimize): New variable.
12807 (get_string_length): Add comments.
12808 (get_range_strlen_dynamic): New function.
12809 (check_and_optimize_call): New function.
12810 (handle_integral_assign): New function.
12811 (strlen_check_and_optimize_stmt): Factor code out into
12812 strlen_check_and_optimize_call and handle_integral_assign.
12813 (strlen_dom_walker::evrp): New member.
12814 (strlen_dom_walker::before_dom_children): Use evrp member.
12815 (strlen_dom_walker::after_dom_children): Use evrp member.
12816 (printf_strlen_execute): New function.
12817 (pass_strlen::gate): Update to handle printf calls.
12818 (dump_strlen_info): New function.
12819 (pass_data_warn_printf): New variable.
12820 (pass_warn_printf): New class.
12821 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
12822 (handle_printf_call): Same.
12823 * tree-vrp.c (value_range_base::type): Adjust assertion.
12824 * vr-values.c (vr_values::update_value_range): Use type of the first
12825 argument rather than the second.
12827 2019-08-26 Richard Biener <rguenther@suse.de>
12829 * config/i386/i386-features.c (general_remove_non_convertible_regs):
12831 (convert_scalars_to_vector): Do not call it.
12833 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12834 Uros Bizjak <ubizjak@gmail.com>
12836 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
12837 CASE_MATHFN_FLOATN for roundeven.
12838 * config/i386/i386.c (ix86_i387_mode_needed): Add case
12840 (ix86_mode_needed): Likewise.
12841 (ix86_mode_after): Likewise.
12842 (ix86_mode_entry): Likewise.
12843 (ix86_mode_exit): Likewise.
12844 (ix86_emit_mode_set): Likewise.
12845 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
12846 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
12847 (ix86_entity): Add I387_ROUNDEVEN.
12848 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
12849 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
12850 (define_int_iterator): Likewise.
12851 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
12852 (define_constant): Define ROUND_ROUNDEVEN mode.
12853 (define_attr): Add roundeven mode for i387_cw.
12854 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
12855 * internal-fn.def (ROUNDEVEN): New builtin function.
12856 * optabs.def (roundeven_optab): New optab.
12858 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12860 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
12862 * builtins.def: Added function definitions for roundeven function
12864 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
12865 function call. Adjust condition for floor, ceil, trunc and round.
12866 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
12867 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
12868 (integer_valued_real_call_p): Added case for roundeven function.
12869 * real.c (is_even): New function. Returns true if real number is even,
12870 otherwise returns false.
12871 (is_halfway_below): New function. Returns true if real number is
12872 halfway between two integers, else return false.
12873 (real_roundeven): New function. Round real number to nearest integer,
12874 rounding halfway cases towards even.
12875 * real.h (real_value): Added descriptive comments. Added function
12876 declaration for roundeven function.
12877 * doc/extend.texi (Other Builtins): List roundeven variants among
12878 functions which can be handled as builtins.
12880 2019-08-26 Richard Biener <rguenther@suse.de>
12884 * config/i386/i386-features.h (general_scalar_chain::defs_map):
12886 (general_scalar_chain::replace_with_subreg): Remove.
12887 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12888 (general_scalar_chain::convert_reg): Adjust signature.
12889 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
12890 iterate over all defs of a reg.
12891 (general_scalar_chain::replace_with_subreg): Remove.
12892 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12893 (general_scalar_chain::make_vector_copies): Populate defs_map,
12894 place copy only after defs that are used as vectors in the chain.
12895 (general_scalar_chain::convert_reg): Emit a copy for a specific
12896 def in a specific instruction.
12897 (general_scalar_chain::convert_op): All reg uses are converted here.
12898 (general_scalar_chain::convert_insn): Emit copies for scalar
12899 uses of defs here. Replace uses with the copies we created.
12900 Replace and convert the def. Adjust REG_DEAD notes, remove
12901 REG_EQUIV/EQUAL notes.
12902 (general_scalar_chain::convert_registers): Only handle copies
12903 into the chain here.
12905 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12907 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
12909 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12911 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
12912 Add nop_convert case.
12913 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
12914 Fold all statements if requested.
12915 * tree-ssa-propagate.h (class substitute_and_fold_engine):
12916 Allow to fold all statements.
12917 * tree-vrp.c (class vrp_folder):
12918 Let substitute_and_fold_engine fold all statements.
12920 2019-08-26 Richard Biener <rguenther@suse.de>
12922 PR tree-optimization/91526
12923 * passes.def: Note that after late FRE we do TODO_update_address_taken.
12924 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
12925 TODO_update_address_taken.
12927 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12929 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
12932 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
12934 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
12935 machine mode for unspec_volatile operand.
12937 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12939 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
12940 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
12941 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
12942 (prefer_neon_for_64bits): Remove.
12943 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
12944 (tune_params): Remove PREF_NEON_64_FALSE uses.
12945 (arm_option_override): Remove prefer_neon selection code.
12946 (arm_print_tune_info): Remove prefer_neon_for_64bits.
12947 * config/arm/arm-protos.h (tune_params): Remove
12948 prefer_neon_for_64bits.
12949 (prefer_neon_for_64bits): Remove.
12951 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
12954 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
12955 and issue any diagnostics needed before collecting the pre-PCH
12958 2019-08-23 Jakub Jelinek <jakub@redhat.com>
12960 PR middle-end/91283
12961 * common.opt (fexcess-precision=): Add Optimization flag. Use
12962 flag_excess_precision variable instead of
12963 flag_excess_precision_cmdline.
12964 * flags.h (class target_flag_state): Remove x_flag_excess_precision
12966 (flag_excess_precision): Don't define.
12967 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
12968 flag_excess_precision_cmdline. Remove comment.
12969 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
12970 and x_flag_excess_precision instead of
12971 frontend_set_flag_excess_precision_cmdline and
12972 x_flag_excess_precision_cmdline.
12973 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
12974 x_flag_excess_precision_cmdline.
12975 * toplev.c (init_excess_precision): Remove.
12976 (lang_dependent_init_target): Don't call it.
12978 2019-08-23 Martin Liska <mliska@suse.cz>
12980 * lto-wrapper.c (run_gcc): When setting jobserver
12981 set also parallel to 1. This was done so before r273908.
12983 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
12985 * config/arm/arm-cpus.in (cortex-m35p): New entry.
12986 (cortex-a76ae): Likewise.
12987 (cortex-a77): Likewise
12988 * config/arm/arm-tables.opt: Regenerate.
12989 * config/arm/arm-tune.md: Likewise.
12990 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
12991 cortex-a77 CPU options.
12993 2019-08-23 Martin Liska <mliska@suse.cz>
12995 * profile.c (instrument_values): Do not set
12996 0 as last argument.
12997 * tree-profile.c (gimple_gen_interval_profiler): Remove
12999 (gimple_gen_pow2_profiler): Likewise.
13000 (gimple_gen_topn_values_profiler): Likewise.
13001 (gimple_gen_ic_profiler): Likewise.
13002 (gimple_gen_time_profiler): Likewise.
13003 (gimple_gen_average_profiler): Likewise.
13004 (gimple_gen_ior_profiler): Likewise.
13005 * value-prof.c (dump_histogram_value): Use default
13006 in switch statement instead of HIST_TYPE_MAX.
13007 (stream_in_histogram_value): Likewise.
13008 (gimple_duplicate_stmt_histograms): Do not
13009 use NULL for implicitly set arguments.
13010 (gimple_divmod_values_to_profile): Do not use
13011 reserve+quick_push.
13012 (gimple_indirect_call_to_profile): Likewise.
13013 (gimple_find_values_to_profile): Use implicit
13014 function call arguments.
13015 * value-prof.h (gimple_alloc_histogram_value):
13016 Set default values.
13017 (gimple_gen_interval_profiler): Remove last argument.
13018 (gimple_gen_pow2_profiler): Likewise.
13019 (gimple_gen_topn_values_profiler): Likewise.
13020 (gimple_gen_ic_profiler): Likewise.
13021 (gimple_gen_time_profiler): Likewise.
13022 (gimple_gen_average_profiler): Likewise.
13023 (gimple_gen_ior_profiler): Likewise.
13025 2019-08-22 Martin Sebor <msebor@redhat.com>
13027 PR middle-end/91490
13028 * builtins.c (c_strlen): Rename argument and introduce new local.
13029 Set no-warning bit on original argument.
13030 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
13031 Fold empty and zero constructors into empty strings.
13032 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
13033 for missing initializers.
13034 * tree.c (build_string_literal): Handle optional argument.
13035 * tree.h (build_string_literal): Add defaulted argument.
13036 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
13037 no-warning bit on original expression.
13039 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13042 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13043 and UNSPEC_DARN_RAW.
13044 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
13046 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
13047 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
13048 (darn): Use an unspec_volatile, and UNSPECV_DARN.
13050 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13052 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13053 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
13054 * config/rs6000/rs6000.md (unspec): ... here.
13055 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
13056 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13057 cmpeqb, *cmpeqb_internal): Delete, move to...
13058 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
13059 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13060 cmpeqb, *cmpeqb_internal): ... here.
13062 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13064 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
13065 intrinsics if __ARM_FP.
13066 Use __ARM_FEATURE_CRC32 ifdef guard.
13068 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13070 * config/arm/arm.md (neon_for_64bits): Remove.
13071 (avoid_neon_for_64bits): Remove.
13072 (arm_adddi3): Always split early.
13073 (arm_subdi3): Always split early.
13074 (negdi2): Remove Neon expansion.
13075 (split zero_extend): Split before reload.
13076 (split sign_extend): Split before reload.
13078 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13080 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
13081 (qhs_extenddi_cstr): Likewise.
13082 * config/arm/arm.md (ashldi3): Always expand early.
13083 (ashlsi3): Likewise.
13084 (ashrsi3): Likewise.
13085 (zero_extend<mode>di2): Remove Neon variants.
13086 (extend<mode>di2): Likewise.
13087 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
13088 (signed_shift_di3_neon): Likewise.
13089 (unsigned_shift_di3_neon): Likewise.
13090 (ashrdi3_neon_imm_noclobber): Likewise.
13091 (lshrdi3_neon_imm_noclobber): Likewise.
13092 (<shift>di3_neon): Likewise.
13093 (split extend): Remove DI extend split patterns.
13095 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13097 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
13098 (split not): Add DImode not splitter.
13099 (anddi3): Remove pattern.
13100 (anddi3_insn): Likewise.
13101 (anddi_zesidi_di): Likewise.
13102 (anddi_sesdi_di): Likewise.
13103 (anddi_notdi_di): Likewise.
13104 (anddi_notzesidi_di): Likewise.
13105 (anddi_notsesidi_di): Likewise.
13106 (iordi3): Likewise.
13107 (iordi3_insn): Likewise.
13108 (iordi_zesidi_di): Likewise.
13109 (iordi_sesidi_di): Likewise.
13110 (xordi3): Likewise.
13111 (xordi3_insn): Likewise.
13112 (xordi_sesidi_di): Likewise.
13113 (xordi_zesidi_di): Likewise.
13114 (one_cmpldi2): Likewise.
13115 (one_cmpldi2_insn): Likewise.
13116 * config/arm/constraints.md: Remove De, Df, Dg constraints.
13117 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
13119 (iwmmxt_xordi3): Likewise.
13120 (iwmmxt_anddi3): Likewise.
13121 * config/arm/neon.md (orndi3_neon): Remove pattern.
13122 (anddi_notdi_di): Likewise.
13123 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
13124 (arm_iordi_operand_neon): Likewise.
13125 (arm_xordi_operand_neon): Likewise.
13126 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
13127 (iordi_notzesidi_di): Likewise.
13128 (iordi_notdi_zesidi): Likewise.
13129 (iordi_notsesidi_di): Likewise.
13131 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
13133 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
13135 (iorsi3_compare0_scratch): Likewise.
13137 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
13139 * config/aarch64/aarch64-simd-builtins.def:
13142 * config/aarch64/aarch64-simd.md:
13143 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
13144 (aarch64_st1x4<VALLDIF:mode>): Likewise.
13145 (aarch64_ld1_x4_<mode>): Likewise.
13146 (aarch64_st1_x4_<mode>): Likewise.
13147 * config/aarch64/arm_neon.h:
13148 (vld1_s8_x4): New function.
13149 (vld1q_s8_x4): Likewise.
13150 (vld1_s16_x4): Likewise.
13151 (vld1q_s16_x4): Likewise.
13152 (vld1_s32_x4): Likewise.
13153 (vld1q_s32_x4): Likewise.
13154 (vld1_u8_x4): Likewise.
13155 (vld1q_u8_x4): Likewise.
13156 (vld1_u16_x4): Likewise.
13157 (vld1q_u16_x4): Likewise.
13158 (vld1_u32_x4): Likewise.
13159 (vld1q_u32_x4): Likewise.
13160 (vld1_f16_x4): Likewise.
13161 (vld1q_f16_x4): Likewise.
13162 (vld1_f32_x4): Likewise.
13163 (vld1q_f32_x4): Likewise.
13164 (vld1_p8_x4): Likewise.
13165 (vld1q_p8_x4): Likewise.
13166 (vld1_p16_x4): Likewise.
13167 (vld1q_p16_x4): Likewise.
13168 (vld1_s64_x4): Likewise.
13169 (vld1_u64_x4): Likewise.
13170 (vld1_p64_x4): Likewise.
13171 (vld1q_s64_x4): Likewise.
13172 (vld1q_u64_x4): Likewise.
13173 (vld1q_p64_x4): Likewise.
13174 (vld1_f64_x4): Likewise.
13175 (vld1q_f64_x4): Likewise.
13176 (vst1_s8_x4): Likewise.
13177 (vst1q_s8_x4): Likewise.
13178 (vst1_s16_x4): Likewise.
13179 (vst1q_s16_x4): Likewise.
13180 (vst1_s32_x4): Likewise.
13181 (vst1q_s32_x4): Likewise.
13182 (vst1_u8_x4): Likewise.
13183 (vst1q_u8_x4): Likewise.
13184 (vst1_u16_x4): Likewise.
13185 (vst1q_u16_x4): Likewise.
13186 (vst1_u32_x4): Likewise.
13187 (vst1q_u32_x4): Likewise.
13188 (vst1_f16_x4): Likewise.
13189 (vst1q_f16_x4): Likewise.
13190 (vst1_f32_x4): Likewise.
13191 (vst1q_f32_x4): Likewise.
13192 (vst1_p8_x4): Likewise.
13193 (vst1q_p8_x4): Likewise.
13194 (vst1_p16_x4): Likewise.
13195 (vst1q_p16_x4): Likewise.
13196 (vst1_s64_x4): Likewise.
13197 (vst1_u64_x4): Likewise.
13198 (vst1_p64_x4): Likewise.
13199 (vst1q_s64_x4): Likewise.
13200 (vst1q_u64_x4): Likewise.
13201 (vst1q_p64_x4): Likewise.
13202 (vst1_f64_x4): Likewise.
13203 (vst1q_f64_x4): Likewise.
13205 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13207 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
13209 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13210 Richard Sandiford <richard.sandiford@arm.com>
13213 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
13214 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
13216 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13219 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
13220 in reg if it fails aarch64_plus_operand predicate.
13222 2019-08-21 Richard Biener <rguenther@suse.de>
13224 PR tree-optimization/91482
13225 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
13226 BUILT_IN_ASSUME_ALIGNED calls.
13228 2019-08-21 Richard Biener <rguenther@suse.de>
13232 * config/i386/i386-features.c
13233 (general_scalar_chain::make_vector_copies): Copy stack temporary
13234 rtx when using it multiple times.
13235 (general_scalar_chain::convert_reg): Likewise.
13237 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13239 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
13241 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
13243 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
13244 catch more redundant zero initialization cases.
13245 (dse_dom_walker::dse_optimize_stmt): Likewise.
13247 2019-08-20 Richard Biener <rguenther@suse.de>
13250 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
13251 by collect2 when targetm.have_ctors_dtors which avoids dragging
13252 in temporary filenames from LTO input objects.
13254 2019-08-20 Richard Biener <rguenther@suse.de>
13256 PR tree-optimization/37242
13257 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
13258 to (T)a + (T)b if we know that a + b does not overflow.
13260 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
13262 PR rtl-optimization/91347
13263 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
13264 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
13266 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13268 * calls.h (function_arg_info): Add a pass_by_reference field,
13269 defaulting to false.
13270 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
13271 when applying pass-by-reference semantics.
13272 (initialize_argument_information): Likewise.
13273 (emit_library_call_value_1): Likewise.
13274 * function.c (assign_parm_data_one): Remove passed_pointer field.
13275 (assign_parm_find_data_types): Don't set it.
13276 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
13277 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
13278 arg.pass_by_reference instead of passed_pointer.
13280 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13282 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
13283 into a single function_arg_info, updating its fields when we
13284 apply pass-by-reference and promotion semantics. Use the
13285 function_arg_info to track the mode rather than keeping it in
13286 a separate local variable.
13287 (initialize_argument_information): Likewise. Base the final
13288 arg_to_skip on this new function_arg_info rather than creating
13289 a new one from scratch.
13291 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13293 * function.c (assign_parm_data_one): Replace passed_type,
13294 promoted_mode and named_arg with a function_arg_info field.
13295 (assign_parm_find_data_types): Remove local variables and
13296 assign directly to "data". Make data->passed_mode shadow
13297 data->arg.mode until promotion, then assign the promoted
13298 mode to data->arg.mode.
13299 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
13300 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
13301 (assign_parm_remove_parallels, assign_parm_setup_block_p)
13302 (assign_parm_setup_block, assign_parm_setup_reg)
13303 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
13304 arg.mode instead of promoted_mode, arg.type instead of passed_type
13305 and arg.named instead of named_arg. Use data->arg for
13306 function_arg_info structures that had the field values passed_type,
13307 promoted_mode and named_arg. Base other function_arg_infos on
13308 data->arg, changing the necessary properties.
13310 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13312 * calls.h (apply_pass_by_reference_rules): Declare.
13313 * calls.c (apply_pass_by_reference_rules): New function.
13314 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
13315 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
13316 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13317 * function.c (assign_parm_find_data_types): Likewise.
13318 * var-tracking.c (prepare_call_arguments): Likewise.
13320 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13322 * target.def (must_pass_in_stack): Take a function_arg_info instead
13323 of a mode and a type.
13324 * doc/tm.texi: Regenerate.
13325 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
13326 instead of a mode and a type.
13327 (must_pass_in_stack_var_size_or_pad): Likewise.
13328 * calls.c (must_pass_in_stack_var_size): Likewise.
13329 (must_pass_in_stack_var_size_or_pad): Likewise.
13330 (initialize_argument_information): Update call to
13331 targetm.calls.must_pass_in_stack.
13332 (must_pass_va_arg_on_stack): Likewise.
13333 * function.c (assign_parm_find_entry_rtl): Likewise.
13334 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
13335 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13336 (alpha_function_arg_advance): Likewise.
13337 * config/cr16/cr16.c (cr16_function_arg): Likewise.
13338 (cr16_function_arg_advance): Likewise.
13339 * config/cris/cris.c (cris_pass_by_reference): Likewise.
13340 (cris_arg_partial_bytes): Likewise.
13341 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13342 * config/lm32/lm32.c (lm32_function_arg): Likewise.
13343 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
13344 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
13345 * config/mips/mips.c (mips_pass_by_reference): Likewise.
13346 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
13347 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
13348 * config/sh/sh.c (sh_pass_by_reference): Likewise.
13349 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13350 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13351 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
13352 instead of a mode and a type.
13353 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
13354 (fr30_num_arg_regs): Likewise.
13355 (fr30_setup_incoming_varargs): Update calls accordingly.
13356 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13357 (fr30_function_arg_advance): Likewise.
13358 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
13359 instead of a mode and a type.
13360 * config/gcn/gcn.c (num_arg_regs): Likewise.
13361 (gcn_function_arg, gcn_function_arg_advance): Update calls to
13362 num_arg_regs and targetm.calls.must_pass_in_stack.
13363 (gcn_arg_partial_bytes): Likewise.
13364 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
13365 function_arg_info instead of a mode and a type.
13366 (classify_argument): Update call accordingly.
13367 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
13368 function_arg_info instead of a mode and a type.
13369 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
13371 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
13372 (rs6000_parm_needs_stack): Update call accordingly.
13373 (setup_incoming_varargs): Likewise.
13375 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13377 * target.def (callee_copies): Take a function_arg_info instead
13378 of a mode, type and named flag.
13379 * doc/tm.texi: Regenerate.
13380 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
13381 instead of a mode, type and named flag.
13382 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
13383 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13384 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
13385 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
13386 instead of a mode, type and named flag.
13387 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
13388 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13389 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
13390 * calls.h (reference_callee_copied): Take a function_arg_info
13391 instead of a mode, type and named flag.
13392 * calls.c (reference_callee_copied): Likewise.
13393 (initialize_argument_information): Update call accordingly.
13394 (emit_library_call_value_1): Likewise.
13395 * function.c (gimplify_parameters): Likewise.
13396 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
13397 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
13398 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
13399 * config/c6x/c6x.c (c6x_callee_copies): Delete.
13400 (TARGET_CALLEE_COPIES): Define to
13401 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
13402 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
13403 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13404 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13405 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
13406 instead of a mode, type and named flag.
13407 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
13408 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13409 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13410 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
13411 * config/msp430/msp430.c (msp430_callee_copies): Delete.
13412 (TARGET_CALLEE_COPIES): Define to
13413 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
13414 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
13415 instead of a mode, type and named flag.
13416 * config/sh/sh.c (sh_callee_copies): Likewise.
13417 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
13418 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13419 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13421 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13423 * target.def (function_arg_advance): Take a function_arg_info instead
13424 of a mode, type and named flag.
13425 * doc/tm.texi: Regenerate.
13426 * targhooks.h (default_function_arg_advance): Take a function_arg_info
13427 instead of a mode, type and named flag.
13428 * targhooks.c (default_function_arg_advance): Likewise.
13429 * calls.c (initialize_argument_information): Update call to
13430 targetm.calls.function_arg_advance.
13431 (emit_library_call_value_1): Likewise.
13432 * dse.c (get_call_args): Likewise.
13433 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13434 * function.c (assign_parms, gimplify_parameters): Likewise.
13435 * var-tracking.c (prepare_call_arguments): Likewise.
13436 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
13437 function_arg_info instead of a mode, type and named flag.
13438 (aarch64_setup_incoming_varargs): Update call accordingly.
13439 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
13440 function_arg_info instead of a mode, type and named flag.
13441 (alpha_setup_incoming_varargs): Update call accordingly.
13442 * config/arc/arc.c (arc_function_arg_advance): Take a
13443 function_arg_info instead of a mode, type and named flag.
13444 (arc_setup_incoming_varargs): Update call accordingly.
13445 * config/arm/arm.c (arm_function_arg_advance): Take a
13446 function_arg_info instead of a mode, type and named flag.
13447 (cmse_func_args_or_return_in_stack): Update call accordingly.
13448 (arm_function_ok_for_sibcall): Likewise.
13449 (cmse_nonsecure_call_clear_caller_saved): Likewise.
13450 * config/avr/avr.c (avr_function_arg_advance): Take a
13451 function_arg_info instead of a mode, type and named flag.
13452 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
13453 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
13454 (c6x_call_saved_register_used): Update call accordingly.
13455 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
13456 function_arg_info instead of a mode, type and named flag.
13457 * config/cris/cris.c (cris_function_arg_advance): Likewise.
13458 * config/csky/csky.c (csky_function_arg_advance): Likewise.
13459 (csky_setup_incoming_varargs): Update call accordingly.
13460 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
13461 function_arg_info instead of a mode, type and named flag.
13462 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
13463 * config/frv/frv.c (frv_function_arg_advance): Likewise.
13464 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
13465 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
13466 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
13467 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13468 (ix86_setup_incoming_varargs): Update call accordingly.
13469 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
13470 function_arg_info instead of a mode, type and named flag.
13471 (ia64_setup_incoming_varargs): Update call accordingly.
13472 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
13473 function_arg_info instead of a mode, type and named flag.
13474 (iq2000_expand_prologue): Update call accordingly.
13475 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
13476 function_arg_info instead of a mode, type and named flag.
13477 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
13478 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
13479 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13480 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
13481 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13483 (microblaze_expand_prologue): Update call accordingly.
13484 * config/mips/mips.c (mips_function_arg_advance): Take a
13485 function_arg_info instead of a mode, type and named flag.
13486 (mips_setup_incoming_varargs): Update call accordingly.
13487 (mips_output_args_xfer): Likewise.
13488 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
13489 function_arg_info instead of a mode, type and named flag.
13490 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
13491 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
13492 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
13493 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
13494 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
13495 (nios2_setup_incoming_varargs): Update call accordingly.
13496 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
13497 function_arg_info instead of a mode, type and named flag.
13498 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
13499 * config/pa/pa.c (pa_function_arg_advance): Likewise.
13500 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
13501 * config/pru/pru.c (pru_function_arg_advance): Likewise.
13502 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
13503 (riscv_setup_incoming_varargs): Update call accordingly.
13504 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
13505 function_arg_info instead of a mode, type and named flag.
13506 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
13508 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
13509 (rs6000_parm_needs_stack): Update call accordingly.
13510 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
13511 instead of a mode, type and named flag.
13512 * config/s390/s390.c (s390_function_arg_advance): Likewise.
13513 (s390_call_saved_register_used): Update call accordingly.
13514 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
13515 instead of a mode, type and named flag.
13516 (sh_output_mi_thunk): Update call accordingly.
13517 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
13518 function_arg_info instead of a mode, type and named flag.
13519 * config/spu/spu.c (spu_function_arg_advance): Likewise.
13520 (spu_setup_incoming_varargs): Update call accordingly.
13521 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
13522 function_arg_info instead of a mode, type and named flag.
13523 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
13524 (tilegx_setup_incoming_varargs): Update call accordingly.
13525 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
13526 function_arg_info instead of a mode, type and named flag.
13527 (tilegx_setup_incoming_varargs): Update call accordingly.
13528 * config/v850/v850.c (v850_function_arg_advance): Take a
13529 function_arg_info instead of a mode, type and named flag.
13530 * config/vax/vax.c (vax_function_arg_advance): Likewise.
13531 * config/visium/visium.c (visium_function_arg_advance): Likewise.
13532 (visium_setup_incoming_varargs): Update call accordingly.
13533 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
13534 function_arg_info instead of a mode, type and named flag.
13536 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13538 * target.def (function_arg, function_incoming_arg): Take a
13539 function_arg_info instead of a mode, tree and named flag.
13540 * doc/tm.texi: Regenerate.
13541 * targhooks.h (default_function_arg): Take a function_arg_info
13542 instead of a mode, tree and named flag.
13543 (default_function_incoming_arg): Likewise.
13544 * targhooks.c (default_function_arg): Likewise.
13545 (default_function_incoming_arg): Likewise.
13546 * calls.h (function_arg_info::end_marker_p): New function.
13547 (function_arg_info::end_marker): Likewise.
13548 * calls.c (prepare_call_address, initialize_argument_information)
13549 (expand_call, emit_library_call_value_1): Update calls to
13550 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
13551 * dse.c: Include calls.h.
13552 (get_call_args): Update call to targetm.calls.function_arg.
13553 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13554 * var-tracking.c (prepare_call_arguments): Likewise.
13555 * function.c (assign_parm_find_entry_rtl): Update call to
13556 targetm.calls.function_incoming_arg.
13557 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
13558 function_arg_info instead of a mode, tree and named flag.
13559 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13560 * config/arc/arc.c (arc_function_arg): Likewise.
13561 * config/arm/arm.c (arm_function_arg): Likewise.
13562 (cmse_func_args_or_return_in_stack): Update call accordingly.
13563 (arm_function_ok_for_sibcall): Likewise.
13564 (cmse_nonsecure_call_clear_caller_saved): Likewise.
13565 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
13566 instead of a mode, tree and named flag.
13567 * config/bfin/bfin.c (bfin_function_arg): Likewise.
13568 * config/c6x/c6x.c (c6x_function_arg): Likewise.
13569 (c6x_call_saved_register_used): Update call accordingly.
13570 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
13571 instead of a mode, tree and named flag.
13572 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
13573 (cris_function_arg_1): Likewise.
13574 * config/csky/csky.c (csky_function_arg): Likewise.
13575 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
13576 * config/fr30/fr30.c (fr30_function_arg): Likewise.
13577 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
13578 (frv_function_arg_1): Likewise.
13579 * config/ft32/ft32.c (ft32_function_arg): Likewise.
13580 * config/gcn/gcn.c (gcn_function_arg): Likewise.
13581 * config/h8300/h8300.c (h8300_function_arg): Likewise.
13582 * config/i386/i386.c (ix86_function_arg): Likewise.
13583 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
13584 (ia64_function_arg_1): Likewise.
13585 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
13586 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
13588 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
13589 instead of a mode, tree and named flag.
13590 * config/m32c/m32c.c (m32c_function_arg): Likewise.
13591 * config/m32r/m32r.c (m32r_function_arg): Likewise.
13592 * config/m68k/m68k.c (m68k_function_arg): Likewise.
13593 * config/mcore/mcore.c (mcore_function_arg): Likewise.
13594 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
13595 (microblaze_expand_prologue): Update call accordingly.
13596 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
13597 instead of a mode, tree and named flag.
13598 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
13599 (mmix_function_arg_1): Likewise.
13600 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
13601 * config/moxie/moxie.c (moxie_function_arg): Likewise.
13602 * config/msp430/msp430.c (msp430_function_arg): Likewise.
13603 * config/nds32/nds32.c (nds32_function_arg): Likewise.
13604 * config/nios2/nios2.c (nios2_function_arg): Likewise.
13605 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
13606 (nvptx_function_incoming_arg): Likewise.
13607 * config/or1k/or1k.c (or1k_function_arg): Likewise.
13608 * config/pa/pa.c (pa_function_arg): Likewise.
13609 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13610 * config/pru/pru.c (pru_function_arg): Likewise.
13611 * config/riscv/riscv.c (riscv_function_arg): Likewise.
13612 * config/rl78/rl78.c (rl78_function_arg): Likewise.
13613 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
13614 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
13615 (rs6000_parm_needs_stack): Update call accordingly.
13616 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
13617 instead of a mode, tree and named flag.
13618 * config/s390/s390.c (s390_function_arg): Likewise.
13619 (s390_call_saved_register_used): Update call accordingly.
13620 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
13621 instead of a mode, tree and named flag.
13622 (sh_output_mi_thunk): Update call accordingly.
13623 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
13624 (sparc_function_incoming_arg): Take a function_arg_info instead of
13625 a mode, tree and named flag.
13626 * config/spu/spu.c (spu_function_arg): Likewise.
13627 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13628 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
13629 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
13630 * config/v850/v850.c (v850_function_arg): Likewise.
13631 * config/vax/vax.c (vax_function_arg): Likewise.
13632 * config/visium/visium.c (visium_function_arg): Likewise.
13633 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
13634 (xtensa_function_incoming_arg): Likewise.
13636 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13638 * target.def (setup_incoming_varargs): Take a function_arg_info
13639 instead of a mode and tree.
13640 * doc/tm.texi: Regenerate.
13641 * targhooks.h (default_setup_incoming_varargs): Take a
13642 function_arg_info instead of a mode and tree.
13643 * targhooks.c (default_setup_incoming_varargs): Likewise.
13644 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
13645 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
13646 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
13647 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
13648 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
13649 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13650 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
13651 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
13653 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13654 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13655 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
13656 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
13657 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13658 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13659 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13660 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13661 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13662 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
13663 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13664 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13665 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
13666 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
13667 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
13668 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
13669 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
13670 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13671 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
13672 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
13673 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
13674 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
13675 * function.c (assign_parms_setup_varargs): Update call to
13676 targetm.calls.setup_incoming_varargs.
13678 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13680 * target.def (pass_by_reference): Take a function_arg_info instead
13681 of a mode, type and named flag.
13682 * doc/tm.texi: Regenerate.
13683 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
13685 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
13686 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
13687 function_arg_info instead of a mode, type and named flag.
13688 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
13689 * calls.h (pass_by_reference): Take a function_arg_info instead of a
13690 mode, type and named flag.
13691 * calls.c (pass_by_reference): Likewise.
13692 (pass_va_arg_by_reference): Update call accordingly.
13693 (initialize_argument_information): Likewise.
13694 (emit_library_call_value_1): Likewise.
13695 * function.c (assign_parm_find_data_types): Likewise.
13696 * var-tracking.c (prepare_call_arguments): Likewise.
13697 * stor-layout.c: Include calls.h.
13698 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
13699 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
13700 function_arg_info instead of a mode, type and named flag.
13701 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
13702 * config/arc/arc.c (arc_pass_by_reference): Likewise.
13703 * config/arm/arm.c (arm_pass_by_reference): Likewise.
13704 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
13705 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
13706 (c6x_call_saved_register_used): Update call to pass_by_reference.
13707 * config/cris/cris.c (cris_pass_by_reference): Take a
13708 function_arg_info instead of a mode, type and named flag.
13709 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
13710 function_arg_info instead of a mode, type and named flag.
13711 (epiphany_arg_partial_bytes): Update call accordingly.
13712 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
13713 function_arg_info instead of a mode, type and named flag.
13714 (ft32_arg_partial_bytes): Update call accordingly.
13715 * config/i386/i386.c (ix86_pass_by_reference): Take a
13716 function_arg_info instead of a mode, type and named flag.
13717 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13718 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
13719 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
13720 (m32r_return_in_memory): Update call accordingly.
13721 * config/mips/mips.c (mips_pass_by_reference): Take a
13722 function_arg_info instead of a mode, type and named flag.
13723 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
13724 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13725 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
13726 (moxie_arg_partial_bytes): Update call accordingly.
13727 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
13728 function_arg_info instead of a mode, type and named flag.
13729 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
13730 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
13731 * config/pa/pa.c (pa_pass_by_reference): Likewise.
13732 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
13733 (riscv_return_in_memory): Update call accordingly.
13734 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
13735 function_arg_info instead of a mode, type and named flag.
13736 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
13737 (rs6000_parm_needs_stack): Update call to pass_by_reference.
13738 * config/s390/s390.c (s390_pass_by_reference): Take a
13739 function_arg_info instead of a mode, type and named flag.
13740 (s390_call_saved_register_used): Update call accordingly.
13741 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
13742 instead of a mode, type and named flag.
13743 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
13744 * config/spu/spu.c (spu_pass_by_reference): Likewise.
13745 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
13746 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
13747 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13748 * config/visium/visium.c (visium_pass_by_reference): Likewise.
13750 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13752 * target.def (arg_partial_bytes): Take a function_arg_info instead
13753 of a mode, type and named flag.
13754 * doc/tm.texi: Regenerate.
13755 * target.h (function_arg_info): Declare.
13756 * calls.h (function_arg_info): New class.
13757 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13758 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
13759 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13760 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
13761 * calls.c (initialize_argument_information): Update call to
13762 targetm.calls.partial_bytes.
13763 (emit_library_call_value_1): Likewise.
13764 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13765 * function.c (assign_parm_find_entry_rtl): Likewise.
13766 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
13767 function_arg_info instead of a mode, type and named flag.
13768 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
13769 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
13770 (cmse_func_args_or_return_in_stack): Update accordingly.
13771 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
13772 function_arg_info instead of a mode, type and named flag.
13773 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
13774 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
13775 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
13776 * config/fr30/fr30.c: Include calls.h.
13777 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
13778 type and named flag.
13779 * config/frv/frv.c: Include calls.h.
13780 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
13781 type and named flag.
13782 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
13783 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
13784 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
13785 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
13786 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
13787 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
13788 * config/microblaze/microblaze.c (function_arg_partial_bytes):
13790 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
13791 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
13792 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
13793 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
13794 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
13795 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
13796 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
13797 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
13798 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
13799 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
13800 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
13801 (rs6000_parm_needs_stack): Update call accordingly.
13802 * config/sh/sh.c (sh_arg_partial_bytes): Take a
13803 function_arg_info instead of a mode, type and named flag.
13804 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
13805 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
13807 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13809 * calls.h (must_pass_va_arg_in_stack): Declare.
13810 * calls.c (must_pass_va_arg_in_stack): New function.
13811 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
13812 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
13813 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
13815 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13817 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13819 * calls.h (pass_va_arg_by_reference): Declare.
13820 * calls.c (pass_va_arg_by_reference): New function.
13821 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
13822 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
13823 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
13824 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
13825 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13826 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
13827 (mips_gimplify_va_arg_expr): Likewise.
13828 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
13829 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13830 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
13831 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13832 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13833 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13834 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
13835 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
13836 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
13837 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13838 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13840 2019-08-20 Richard Biener <rguenther@suse.de>
13843 * config/i386/i386-features.c (general_scalar_chain::convert_op):
13844 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
13845 (convert_scalars_to_vector): Add timode_p parameter and use it
13846 to guard TImode-only operation.
13847 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
13848 (pass_stv::execute): Pass down timode_p.
13850 2019-08-20 Lili Cui <lili.cui@intel.com>
13852 * common/config/i386/i386-common.c
13853 (processor_names): Add tigerlake and cooperlake.
13854 (processor_alias_table): Add tigerlake and cooperlake.
13855 * config.gcc: Add -march=tigerlake and cooperlake.
13856 * config/i386/driver-i386.c
13857 (host_detect_local_cpu): Detect tigerlake and cooperlake.
13858 Add "has_avx" to classify processor.
13859 * config/i386/i386-builtins.c (processor_model) :
13860 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
13861 (arch_names_table): Add tigerlake and cooperlake.
13862 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
13863 and PROCESSOR_COOPERLAKE.
13864 * config/i386/i386-c.c
13865 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
13866 * config/i386/i386-options.c
13867 (m_TIGERLAKE): Define.
13868 (m_COOPERLAKE): Ditto.
13869 (m_CORE_AVX512): Ditto.
13870 (processor_cost_table): Add cascadelake.
13871 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
13872 * config/i386/i386.h
13873 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
13874 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13875 (PTA_MOVDIRI): Ditto.
13876 (PTA_MOVDIR64B): Ditto.
13877 (PTA_COOPERLAKE): Ditto.
13878 (PTA_TIGERLAKE): Ditto.
13879 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13880 * doc/extend.texi: Add tigerlake and cooperlake.
13881 * doc/invoke.texi: Add tigerlake and cooperlake.
13883 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
13885 * doc/install.texi (Specific, alpha): Remove note to use
13886 binutils 2.11.2 or later.
13888 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13890 PR middle-end/89544
13891 * function.c (assign_parm_find_stack_rtl): Use larger alignment
13894 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
13896 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
13897 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
13898 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
13899 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
13900 * config/aarch64/constraints.md (Dt): New constraint
13901 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
13903 2019-08-19 Richard Biener <rguenther@suse.de>
13905 PR tree-optimization/91403
13906 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
13907 cases we can handle with tail-recursion...
13908 (follow_ssa_edge_expr): ... here. Do so.
13910 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
13913 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
13914 implemented for -fsanitize=kernel-address, and merge check logic
13915 with -fsanitize=address.
13917 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
13919 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
13920 for cpu and machine. Factor 64/32b builtins.
13922 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
13924 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
13925 gone, point to sourceforge.net.
13927 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13929 * doc/ux.texi (User Experience Guidelines): Update reference.
13931 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13933 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
13936 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
13938 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
13939 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
13941 2019-08-16 Martin Sebor <msebor@redhat.com>
13943 * tree.def (TYPE_SIZE): Clarify.
13944 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
13946 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13948 PR tree-optimization/91109
13949 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
13950 * lra.c (lra): Use lra_need_for_scratch_reg_p.
13951 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
13953 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
13955 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
13956 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
13957 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
13958 (uavg<mode>3_ceil): New expander.
13959 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
13960 mode iterator when creating CONST1_RTX.
13961 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
13962 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
13963 mode iterator for const1_operand predicate.
13965 2019-08-16 Richard Biener <rguenther@suse.de>
13967 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
13968 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
13970 (follow_ssa_edge_in_condition_phi_branch): Likewise.
13971 (analyze_evolution_in_loop): Likewise.
13972 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
13973 (follow_ssa_edge_expr): ... here. Refactor code.
13975 2019-08-16 Richard Biener <rguenther@suse.de>
13978 * config/i386/i386-features.c
13979 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
13981 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13984 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
13985 only if subst_name matches curr_attr string.
13987 2019-08-16 Richard Biener <rguenther@suse.de>
13989 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
13990 stmt at gsi_p, instead replace it with a NOP removed later.
13991 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
13992 that became dead because of that.
13994 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
13996 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
13997 for which we can't represent a range.
13998 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
14000 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14001 Set VR_UNDEFINED if type is not supported.
14002 * tree-ssanames.c (get_range_info): Pass type to set_varying.
14003 * tree-vrp.c (value_range_base::check): Assert that a varying has
14005 (value_range_base::equal_p): Early bail for undefines.
14006 (value_range_base::set_varying): Accept a type.
14007 (value_range::set_varying): Same.
14008 (value_range_base::type): VARYING can have a type, while UNDEFINE
14010 (value_range_base::dump): Print type for VARYING nodes.
14011 (value_range_base::set): Add type to VARYING.
14012 (extract_range_from_multiplicative_op): Pass type to set_varying.
14013 (extract_range_from_binary_expr): Same.
14014 (value_range_base::intersect_helper): Same.
14015 (value_range_base::union_helper): Same.
14016 (value_range_base::normalize_symbolics): Same.
14017 (determine_value_range_1): Same.
14018 * tree-vrp.h (class value_range_base): Add type to set_varying.
14019 Add prototype for dump(void).
14020 Add prototype for supports_type_p.
14021 (class value_range): Add type to set_varying.
14022 Add prototype for dump(void).
14023 * vr-values.c (set_value_range_to_truthvalue): Pass type to
14025 (vr_values::get_lattice_entry): Set varying even if propagation
14027 Pass type to set_varying.
14028 (vr_values::get_value_range): Remove vr_const_varying.
14029 Reallocate the lattice if needed.
14030 (vr_values::update_value_range): Pass type to set_varying.
14031 (vr_values::extract_range_for_var_from_comparison_expr): Same.
14032 (vr_values::extract_range_from_binary_expr): Same.
14033 (vr_values::extract_range_from_unary_expr): Same.
14034 (vr_values::extract_range_from_cond_expr): Same.
14035 (vr_values::check_for_binary_op_overflow): Same.
14036 (vr_values::extract_range_basic): Same.
14037 (vr_values::extract_range_from_assignment): Same.
14038 (vr_values::vr_values): Increase size of num_vr_values.
14039 (vr_values::extract_range_from_phi_node): Pass type to
14042 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
14045 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
14046 for costs of hard register moves.
14047 (ix86_register_move_cost): Likewise.
14048 * config/i386/i386.h (processor_costs): Move costs of hard
14049 register moves to hard_register. Add int_load, int_store,
14050 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14051 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
14052 for costs of RTL expressions.
14053 * config/i386/x86-tune-costs.h: Move costs of hard register
14054 moves to hard_register. Duplicate int_load, int_store,
14055 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14056 sse_load, sse_store for costs of RTL expressions.
14058 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14060 * target.def (setup_incoming_vararg_bounds): Remove.
14061 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
14062 * doc/tm.texi: Regenerate.
14063 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
14064 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
14065 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14066 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
14068 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14070 MSP430: Fix lines over 80 characters long in
14071 config/msp430/*.{c,h} files
14073 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
14074 specifier in string.
14075 (msp430_select_hwmult_lib): Split line more than 80 characters long.
14076 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
14077 redundant old comment.
14078 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
14079 Split line more than 80 characters long.
14080 * config/msp430/msp430.c (msp430_option_override): Likewise.
14081 (msp430_return_in_memory): Likewise.
14082 (msp430_gimplify_va_arg_expr): Likewise.
14083 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
14084 (msp430_legitimate_constant): Likewise.
14085 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
14086 (msp430_attr): Likewise.
14087 (msp430_data_attr): Likewise.
14088 (msp430_start_function): Likewise.
14089 (gen_prefix): Likewise.
14090 (msp430_init_sections): Likewise.
14091 (msp430_select_section): Likewise.
14092 (msp430_function_section): Likewise.
14093 (msp430_unique_section): Likewise.
14094 (msp430_output_aligned_decl_common): Likewise.
14095 (msp430_do_not_relax_short_jumps): Likewise.
14096 (msp430_init_builtins): Likewise.
14097 (msp430_expand_delay_cycles): Likewise.
14098 (msp430_expand_prologue): Likewise.
14099 (msp430_expand_epilogue): Likewise.
14100 (msp430_expand_helper): Likewise.
14101 (msp430_split_movsi): Likewise.
14102 (msp430_print_operand): Likewise.
14103 (msp430_return_addr_rtx): Likewise.
14104 (msp430x_extendhisi): Likewise.
14105 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
14106 (ASM_SPEC): Likewise.
14107 Remove very obvious comments.
14108 (LIB_SPEC): Split line more than 80 characters long.
14109 (EH_RETURN_HANDLER_RTX): Likewise.
14110 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14112 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14114 MSP430: Fix whitespace errors and incorrect indentation in
14115 config/msp430/*.{c,h} files
14117 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
14118 (msp430_select_hwmult_lib): Likewise.
14119 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
14120 (msp430_extract_mcu_data): Likewise.
14121 (struct t_msp430_mcu_data): Likewise.
14122 * config/msp430/msp430.c (struct machine_function): Remove whitespace
14123 before left square bracket.
14124 (msp430_option_override): Fix indentation.
14125 (msp430_hard_regno_nregs_with_padding): Likewise.
14126 (msp430_initial_elimination_offset): Likewise.
14127 (msp430_special_register_convention_p): Remove whitespace before left
14128 square bracket and after exclamation mark.
14129 (msp430_evaluate_arg): Likewise.
14130 (msp430_callee_copies): Fix indentation.
14131 (msp430_gimplify_va_arg_expr): Likewise.
14132 (msp430_function_arg_advance): Remove whitespace before left square
14134 (reg_ok_for_addr): Likewise.
14135 (msp430_preserve_reg_p): Likewise.
14136 (msp430_compute_frame_info): Likewise.
14137 (msp430_asm_output_addr_const_extra): Add space between function name
14138 and open parenthesis.
14139 (has_section_name): Fix indentation.
14140 (msp430_attr): Remove trailing whitespace.
14141 (msp430_section_attr): Likewise.
14142 (msp430_data_attr): Likewise.
14143 (struct msp430_attribute_table): Fix comment and whitespace.
14144 (msp430_start_function): Remove whitespace before left square bracket.
14145 Add space between function name and open parenthesis.
14146 (msp430_select_section): Remove trailing whitespace.
14147 (msp430_section_type_flags): Remove trailing whitespace.
14148 (msp430_unique_section): Remove space before closing parenthesis.
14149 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
14150 (msp430_builtins): Remove whitespace before left square bracket.
14151 (msp430_init_builtins): Fix indentation.
14152 (msp430_expand_prologue): Remove whitespace before left square bracket.
14153 Remove space before closing parenthesis.
14154 (msp430_expand_epilogue): Remove whitespace before left square bracket.
14155 (msp430_split_movsi): Remove space before closing parenthesis.
14156 (helper_function_name_mappings): Fix indentation.
14157 (msp430_use_f5_series_hwmult): Fix whitespace.
14158 (use_32bit_hwmult): Likewise.
14159 (msp430_no_hwmult): Likewise.
14160 (msp430_output_labelref): Remove whitespace before left square bracket.
14161 (msp430_print_operand_raw): Likewise.
14162 (msp430_print_operand_addr): Likewise.
14163 (msp430_print_operand): Add two spaces after '.' in comment.
14164 Fix trailing whitespace.
14165 (msp430x_extendhisi): Fix indentation.
14166 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
14168 (PC_REGNUM): Likewise.
14169 (STACK_POINTER_REGNUM): Likewise.
14170 (CC_REGNUM): Likewise.
14172 2019-08-15 Richard Biener <rguenther@suse.de>
14175 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
14177 (general_scalar_chain::make_vector_copies): Use it.
14179 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
14181 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
14183 2019-08-15 Martin Liska <mliska@suse.cz>
14185 * tree-ssa-dce.c (propagate_necessity): We can't reach now
14186 operators with no arguments.
14187 (eliminate_unnecessary_stmts): Likewise here.
14189 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
14191 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
14192 <case COMPARE>: Revert 2019-08-14 change.
14193 (convertible_comparison_p): Revert 2019-08-14 change. Return false
14194 for (TARGET_64BIT || mode != DImode).
14196 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
14198 * tree-vrp.c (value_range_base::set): Merge in code from
14199 value_range_base::set_and_canonicalize.
14200 Enforce canonicalization at set time.
14201 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
14202 (value_range_base::set_undefined): Inline call to set().
14203 (value_range_base::set_varying): Same.
14204 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
14205 (vrp_val_max): New argument handle_pointers.
14206 (vrp_val_min): Same.
14207 (ranges_from_anti_range): Same.
14208 (extract_range_into_wide_ints): Use tree argument instead of sign
14210 (extract_range_from_multiplicative_op): Take in tree type instead
14211 of precision and sign. Adapt function for canonicalized ranges.
14212 (extract_range_from_binary_expr): Pass type to
14213 extract_range_from_multiplicative_op.
14214 Adapt for canonicalized ranges.
14215 (extract_range_from_unary_expr): Same.
14216 (value_range_base::intersect_helper): Adjust for canonicalized
14218 (value_range_base::union_helper): Same.
14219 (value_range_base::normalize_symbolics): New.
14220 * tree-vrp.h (class value_range_base): Remove
14221 set_and_canonicalize.
14222 New prototype for normalize_symbolics.
14223 (class value_range): Remove set_and_canonicalize.
14224 (vrp_val_min): Adjust prototype.
14225 (vrp_val_max): Same.
14227 (vr_values::extract_range_for_var_from_comparison_expr): Call set
14228 instead of set_and_canonicalize.
14230 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14232 PR middle-end/91444
14233 * tree-vect-stmts.c (vectorizable_call): Check that the function
14234 is a BUILT_IN_MD function before passing it to
14235 targetm.vectorize.builtin_md_vectorized_function.
14237 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14239 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
14240 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
14241 (aarch64_select_early_remat_modes): Use it.
14243 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14245 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
14246 16 for SVE predicates even if they are fixed-length.
14248 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14250 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
14251 operand order match the MOV /Z alias.
14253 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14255 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
14256 the vector pattern as an aarch64_svpattern argument. Update the
14257 overloaded caller accordingly.
14258 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
14259 (aarch64_output_sve_vector_inc_dec): Likewise.
14261 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14263 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
14264 multiplication case, try to compute VG * (lowest set bit) directly
14265 rather than always basing the multiplication on VG. Use
14266 expand_mult for the multiplication if we can.
14268 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14270 * config/aarch64/aarch64-protos.h
14271 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
14272 (aarch64_sve_inc_dec_immediate_p): Rename to...
14273 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14274 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
14275 (aarch64_output_sve_scalar_inc_dec): Declare.
14276 (aarch64_output_sve_inc_dec_immediate): Rename to...
14277 (aarch64_output_sve_vector_inc_dec): ...this.
14278 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
14279 (aarch64_output_sve_scalar_inc_dec): New functions.
14280 (aarch64_output_sve_addvl_addpl): Remove the base and offset
14281 arguments. Only handle true ADDVL and ADDPL instructions;
14282 don't emit an INC or DEC.
14283 (aarch64_sve_inc_dec_immediate_p): Rename to...
14284 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14285 (aarch64_output_sve_inc_dec_immediate): Rename to...
14286 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
14287 aarch64_sve_vector_inc_dec_immediate_p.
14288 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
14289 (aarch64_sve_plus_immediate): New predicates.
14290 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
14291 rather than aarch64_sve_addvl_addpl_immediate.
14292 (aarch64_sve_inc_dec_immediate): Rename to...
14293 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
14294 aarch64_sve_vector_inc_dec_immediate_p.
14295 (aarch64_sve_add_operand): Update accordingly.
14296 * config/aarch64/constraints.md (Uai): New constraint.
14297 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
14298 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
14299 operand into a register if it satisfies aarch64_sve_plus_immediate.
14300 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
14301 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
14302 * config/aarch64/aarch64-sve.md (add<mode>3): Call
14303 aarch64_output_sve_vector_inc_dec instead of
14304 aarch64_output_sve_inc_dec_immediate.
14306 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14308 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
14309 (UNSPEC_REVW): New constants.
14310 (elem_bits): New mode attribute.
14311 (SVE_INT_UNARY): New int iterator.
14312 (optab): Handle UNSPEC_REV[BHW].
14313 (sve_int_op): New int attribute.
14314 (min_elem_bits): Handle VNx16QI and the predicate modes.
14315 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
14316 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
14317 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
14318 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
14319 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
14320 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
14321 unspecs based on the total width of the reversed data.
14322 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
14323 reinterpret followed by a subreg on big-endian targets.
14325 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14326 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14328 * config/aarch64/aarch64-sve.md
14329 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
14330 alternatives in which one of the inputs is in the same register
14333 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14335 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
14336 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
14338 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14340 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
14341 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
14343 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14344 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14346 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
14347 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
14348 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
14350 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14351 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14353 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
14354 Add an alternative that uses reversed shifts.
14356 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14358 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
14361 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14363 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
14364 a commutativity marker.
14366 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14367 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14369 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
14370 (aarch64_prepare_sve_cond_int_fma): Declare.
14371 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
14372 (aarch64_prepare_sve_int_fma): New functions.
14373 (aarch64_prepare_sve_cond_int_fma): Likewise.
14374 * config/aarch64/aarch64-sve.md
14375 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
14376 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
14377 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
14378 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
14379 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
14380 (*madd<mode>): Rename to...
14381 (*fma<mode>4): ...this.
14382 (*msub<mode>): Rename to...
14383 (*fnma<mode>4): ...this.
14385 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14386 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14388 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
14389 Print 2.0 naturally.
14390 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
14391 * config/aarch64/predicates.md
14392 (aarch64_sve_float_negated_arith_immediate): New predicate,
14393 renamed from aarch64_sve_float_arith_with_sub_immediate.
14394 (aarch64_sve_float_arith_with_sub_immediate): Test for both
14395 positive and negative constants.
14396 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
14397 or an aarch64_sve_float_arith_with_sub_immediate.
14398 * config/aarch64/constraints.md (vsN): Use
14399 aarch64_sve_float_negated_arith_immediate.
14400 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
14402 (sve_pred_fp_rhs2_immediate): New int attribute.
14403 * config/aarch64/aarch64-sve.md
14404 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
14405 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
14406 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
14407 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
14408 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
14409 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
14411 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14412 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14414 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
14415 (*aarch64_cond_abd<SVE_F:mode>_3)
14416 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
14418 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14419 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14421 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
14422 (*aarch64_cond_<su>abd<mode>_any): New patterns.
14424 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14425 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14427 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
14428 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
14429 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
14430 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
14432 * optabs.h (create_convert_operand_from): Expand comment.
14433 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
14434 when mapping scalar rtxes to vector operands.
14435 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
14436 ashiftrt and lshiftrt.
14437 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
14438 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
14439 (*cond_<optab><mode>_any_const): New patterns.
14441 2019-08-15 Martin Liska <mliska@suse.cz>
14444 * cgraph.c (cgraph_node::remove): When setting
14445 n->origin = NULL for all nested functions, reset
14448 2019-08-15 Martin Liska <mliska@suse.cz>
14450 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
14453 2019-08-15 Martin Liska <mliska@suse.cz>
14456 * passes.c (order): Remove.
14457 (uid_hash_t): Likewise).
14458 (remove_cgraph_node_from_order): Remove from set
14459 of pointers (cgraph_node *).
14460 (insert_cgraph_node_to_order): New.
14461 (duplicate_cgraph_node_to_order): New.
14462 (do_per_function_toporder): Register all 3 cgraph hooks.
14463 Skip removed_nodes now as we know about all of them.
14465 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
14467 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
14468 <case E_V8QImode>: Use vector_set path for
14469 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14470 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
14471 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14473 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14475 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
14477 2019-08-14 Martin Sebor <msebor@redhat.com>
14479 PR tree-optimization/91294
14480 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
14481 source length as exact.
14483 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
14485 * doc/extend.texi: Add "noinit" attribute documentation.
14486 * doc/sourcebuild.texi: Add noinit effective target documentation.
14487 * varasm.c (default_section_type_flags): Add support for "noinit"
14489 (default_elf_select_section): Add support for "noinit" attribute.
14490 * config/msp430/msp430.c (msp430_attribute_table): Remove
14493 2019-08-14 Richard Biener <rguenther@suse.de>
14494 Uroš Bizjak <ubizjak@gmail.com>
14497 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
14499 (scalar_chain::smode): New member.
14500 (scalar_chain::vmode): Likewise.
14501 (dimode_scalar_chain): Rename to...
14502 (general_scalar_chain): ... this.
14503 (general_scalar_chain::general_scalar_chain): Take mode arguments.
14504 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
14505 base with TImode and V1TImode.
14506 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
14507 (general_scalar_chain::vector_const_cost): Adjust for SImode
14509 (general_scalar_chain::compute_convert_gain): Likewise. Add
14510 {S,U}{MIN,MAX} support.
14511 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
14512 (general_scalar_chain::make_vector_copies): Likewise. Handle
14513 non-DImode chains appropriately.
14514 (general_scalar_chain::convert_reg): Likewise.
14515 (general_scalar_chain::convert_op): Likewise.
14516 (general_scalar_chain::convert_insn): Likewise. Add
14517 fatal_insn_not_found if the result is not recognized.
14518 (convertible_comparison_p): Pass in the scalar mode and use that.
14519 (general_scalar_to_vector_candidate_p): Likewise. Rename from
14520 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
14521 (scalar_to_vector_candidate_p): Remove by inlining into single
14523 (general_remove_non_convertible_regs): Rename from
14524 dimode_remove_non_convertible_regs.
14525 (remove_non_convertible_regs): Remove by inlining into single caller.
14526 (convert_scalars_to_vector): Handle SImode and DImode chains
14527 in addition to TImode chains.
14528 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
14529 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
14530 (*<maxmin>di3_doubleword): Likewise.
14532 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14533 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14535 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
14536 (*cond_bic<mode>_any): New patterns.
14538 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14540 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
14541 take the equivalent mask, as well as a bit count.
14542 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
14543 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
14544 (aarch64_sve_pred_and_operand): New predicates.
14545 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
14547 * config/aarch64/aarch64-sve.md
14548 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
14549 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
14551 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14553 * config/aarch64/aarch64-sve.md
14554 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
14555 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
14558 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14559 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14561 * config/aarch64/aarch64-sve.md
14562 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
14563 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
14565 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14566 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14568 * config/aarch64/aarch64-sve.md
14569 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
14570 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
14572 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14574 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
14575 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
14578 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14579 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14581 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
14583 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14584 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14586 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
14587 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
14588 (aarch64_print_operand): Add support for %I.
14589 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
14590 Bitcast floating-point constants to the corresponding integer constant.
14591 (aarch64_float_const_representable_p): Handle vectors as well
14593 (aarch64_expand_sve_vcond): Make sure that the operands are valid
14594 for the new vcond_mask_<mode><vpred> expander.
14595 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
14596 test aarch64_float_const_representable_p.
14597 (aarch64_sve_reg_or_dup_imm): New predicate.
14598 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
14599 gen_vcond_mask_<mode><vpred> instead of
14600 gen_aarch64_sve_dup<mode>_const.
14601 (vcond_mask_<mode><vpred>): Turn into a define_expand that
14602 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
14603 for operands 1 and 2 respectively. Force operand 2 into a
14604 register if operand 1 is a register. Fold old define_insn...
14605 (aarch64_sve_dup<mode>_const): ...and this define_insn...
14606 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
14607 floating-point constants that can be moved as integers. Add
14608 alternatives for MOV /M and FMOV /M.
14609 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
14610 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
14611 1 and 2 respectively.
14612 * config/aarch64/constraints.md (Ufc): Handle vectors as well
14614 (vss): New constraint.
14616 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14618 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
14619 (aarch64_sve_float_maxmin_operand): New predicates.
14620 * config/aarch64/constraints.md (vsB): New constraint.
14622 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
14623 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
14624 UNSPEC_COND_FMINNM.
14625 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
14626 Use aarch64_sve_float_maxmin_operand for operand 2.
14627 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
14628 Add alternatives for the constant forms.
14630 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14632 * config/aarch64/constraints.md (vsb): New constraint.
14633 (vsm): Generalize description.
14634 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
14636 (sve_imm_con): Handle smax, smin, umax and umin.
14637 (sve_imm_prefix): New code attribute.
14638 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
14639 (aarch64_sve_vsb_operand): New predicates.
14640 (aarch64_sve_mul_immediate): Rename to...
14641 (aarch64_sve_vsm_immediate): ...this.
14642 (aarch64_sve_mul_operand): Rename to...
14643 (aarch64_sve_vsm_operand): ...this.
14644 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
14645 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
14646 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
14647 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
14648 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
14649 add movprfx support for the immediate alternatives.
14650 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
14652 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
14655 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14657 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
14658 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
14659 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
14661 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14663 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
14664 (optab, sve_int_op): Handle them.
14665 * config/aarch64/aarch64-sve.md: Expand comment.
14667 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14669 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
14670 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
14671 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
14673 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14675 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
14676 (aarch64_expand_sve_const_pred_trn): New functions.
14677 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
14678 use the above functions when the parameter is true.
14679 (aarch64_expand_sve_const_pred): Update call accordingly.
14680 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
14682 (@aarch64_sve_<perm_insn><mode>): ...this.
14684 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14686 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
14688 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
14689 (aarch64_sve_emit_int_cmp): New functions.
14690 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
14691 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
14692 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
14693 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
14694 (UNSPEC_PRED_Z): New unspec.
14695 (set_clobber_cc_nzc): Delete.
14696 * config/aarch64/aarch64-sve.md: Add a block comment about
14698 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
14699 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
14700 the old pattern with that name. Use UNSPEC_PRED_Z instead of
14701 UNSPEC_MERGE_PTRUE.
14702 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
14703 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
14704 check for compatible predicates.
14705 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
14706 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
14707 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
14710 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14712 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
14713 * config/aarch64/aarch64-sve.md: Add a section describing it.
14714 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
14715 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
14716 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
14717 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
14718 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
14719 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
14720 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
14721 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
14722 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
14723 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
14724 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
14725 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
14726 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
14727 (aarch64_evpc_rev_local): Update accordingly.
14729 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14731 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
14733 (SVE_BHSI, SVE_SDI): Tweak comment.
14734 (SVE_HSDI): Likewise. Fix definition.
14735 (SVE_SDF): New mode iterator.
14736 (elem_bits): New mode attribute.
14737 (SVE_COND_FCVT): New int iterator.
14738 * config/aarch64/aarch64-sve.md
14739 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
14740 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
14741 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
14742 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
14743 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
14744 ...these new patterns.
14745 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
14746 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
14747 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
14749 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
14750 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
14751 ...these new patterns.
14752 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
14753 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
14754 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
14755 ...this new pattern.
14756 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
14757 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
14758 ...this new pattern.
14759 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
14761 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14763 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
14764 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
14765 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
14767 (optab, su): Handle them.
14768 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
14769 * config/aarch64/aarch64-sve.md
14770 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
14771 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
14772 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
14773 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
14774 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
14775 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
14776 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
14777 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
14778 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
14780 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
14781 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
14782 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
14783 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
14784 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
14785 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
14786 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
14787 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
14788 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
14789 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
14790 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
14791 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
14792 of UNSPEC_FLOAT_CONVERT.
14793 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
14794 aarch64_sve_extend<mode><Vwide>2.
14796 2019-08-14 Richard Biener <rguenther@suse.de>
14799 * config/i386/i386-features.c
14800 (dimode_scalar_chain::compute_convert_gain): Compute and dump
14801 individual instruction gain. Fix reg-reg copy GRP cost. Use
14802 ix86_cost->sse_op for vector instruction costs.
14804 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14806 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
14807 (cmp_op): Handle it.
14808 (SVE_COND_FP_CMP): Rename to...
14809 (SVE_COND_FP_CMP_I0): ...this.
14810 (SVE_FP_CMP): Remove.
14811 * config/aarch64/aarch64-sve.md
14812 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
14813 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
14814 using unspecs to represent the comparison.
14815 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
14816 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
14818 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
14819 (aarch64_unspec_cond_code): Move after integer code. Handle
14821 (aarch64_emit_sve_predicated_cond): Replace with...
14822 (aarch64_emit_sve_fp_cond): ...this new function.
14823 (aarch64_emit_sve_or_conds): Replace with...
14824 (aarch64_emit_sve_or_fp_conds): ...this new function.
14825 (aarch64_emit_sve_inverted_cond): Replace with...
14826 (aarch64_emit_sve_invert_fp_cond): ...this new function.
14827 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
14829 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14831 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
14832 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
14833 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
14834 SVE_HSD instead of SVE_SD.
14836 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14837 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14839 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
14841 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
14843 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
14844 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
14845 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
14846 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
14847 (*div<SVE_F:mode>3): Generalize to...
14848 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
14850 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14851 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14853 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
14855 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
14857 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
14859 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
14861 * config/aarch64/aarch64-sve.md: Add a block comment about the
14862 handling of predicated FP operations.
14863 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
14864 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
14865 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14866 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
14867 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
14869 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
14870 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
14872 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
14873 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
14874 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
14875 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
14876 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
14877 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14878 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14879 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
14880 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
14881 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
14882 strictness operands. Use aarch64_sve_pred_dominates_p to check
14883 whether the predicate on the conditional operation is suitable
14884 for merging. Split patterns into the canonical equal-predicate form.
14885 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
14886 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
14888 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14889 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14891 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
14892 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
14893 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
14895 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
14896 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
14899 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14900 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14902 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
14903 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
14904 actually has, rather than relying on REG_EQUAL notes.
14905 Make the insn operand order match the SVE operand order.
14906 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
14907 the SVE operand order.
14909 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14911 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
14912 (aarch64_emit_set_immediate): Likewise.
14913 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
14914 (aarch64_pfalse_reg): Likewise.
14915 (aarch64_convert_sve_data_to_pred): New function.
14916 (aarch64_sve_move_pred_via_while): Take an optional target register
14917 and the required register mode.
14918 (aarch64_expand_sve_const_pred_1): New function.
14919 (aarch64_expand_sve_const_pred): Likewise.
14920 (aarch64_expand_mov_immediate): Build an all-true predicate
14921 if the significant bits of the immediate are all true. Use
14922 aarch64_expand_sve_const_pred for all compile-time predicate constants.
14923 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
14924 before register allocation.
14925 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
14926 a VNx16BI PTRUE when splitting the memory alternative.
14927 (vec_duplicate<mode>): Update accordingly.
14928 (*pred_cmp<cmp_op><mode>): Rename to...
14929 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
14931 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14933 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
14934 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
14935 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
14936 (UNSPEC_PTEST): New unspec.
14937 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
14938 * config/aarch64/iterators.md (data_bytes): New mode attribute.
14939 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
14940 * config/aarch64/aarch64-sve.md: Add a new section describing the
14941 handling of UNSPEC_PTEST.
14942 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
14943 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
14944 (ptest_ptrue<mode>): Replace with...
14945 (aarch64_ptest<mode>): ...this new pattern.
14946 (cbranch<mode>4): Update after above changes.
14947 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
14948 UNSPEC_PTEST_PTRUE.
14949 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
14950 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
14951 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
14953 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
14956 * builtins.c (builtin_with_linkage_p): New function.
14957 * builtins.h (builtin_with_linkage_p): New function.
14958 * symtab.c (write_symbol): Remove redundant assert.
14959 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
14960 Remove FIXME and use builtin_with_linkage_p.
14962 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14964 PR middle-end/91421
14965 * tree-core.h (function_decl::function_code): Change type to
14967 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
14968 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
14969 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
14970 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
14971 is BUILT_IN_NORMAL.
14972 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
14973 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
14974 (fndecl_built_in_p): Change the type of the "name" argument to
14976 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
14977 after check for DECL_BUILT_IN_CLASS.
14978 * cgraphclones.c (build_function_decl_skip_args): Use
14979 set_decl_built_in_function.
14980 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
14981 * ipa-split.c (split_function): Likewise.
14982 * langhooks.c (add_builtin_function_common): Likewise.
14983 * omp-simd-clone.c (simd_clone_create): Likewise.
14984 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14985 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
14986 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
14987 DECL_FUNCTION_CODE.
14988 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
14989 instead of DECL_FUNCTION_CODE.
14990 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
14991 instead of DECL_FUNCTION_CODE.
14992 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14993 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
14994 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
14995 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
14996 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
14997 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
14998 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
14999 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
15000 (alpha_gimple_fold_builtin): Likewise.
15001 * config/arc/arc.c (arc_expand_builtin): Likewise.
15002 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
15003 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
15004 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
15005 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
15006 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
15007 * config/frv/frv.c (frv_expand_builtin): Likewise.
15008 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
15009 (gcn_expand_builtin): Likewise.
15010 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
15011 (fold_builtin_cpu): Likewise.
15012 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
15013 * config/i386/i386.c (ix86_fold_builtin): Likewise.
15014 (ix86_gimple_fold_builtin): Likewise.
15015 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
15016 (ia64_expand_builtin): Likewise.
15017 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
15018 * config/mips/mips.c (mips_expand_builtin): Likewise.
15019 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
15020 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15021 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
15022 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
15023 * config/pa/pa.c (pa_expand_builtin): Likewise.
15024 * config/pru/pru.c (pru_expand_builtin): Likewise.
15025 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
15026 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15028 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
15029 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
15030 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
15031 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
15032 (rs6000_builtin_reciprocal): Likewise.
15033 * config/rx/rx.c (rx_expand_builtin): Likewise.
15034 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15035 * config/s390/s390.c (s390_expand_builtin): Likewise.
15036 * config/sh/sh.c (sh_expand_builtin): Likewise.
15037 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
15038 (sparc_fold_builtin): Likewise.
15039 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15040 * config/spu/spu.c (spu_expand_builtin): Likewise.
15041 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
15042 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
15043 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
15044 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15045 (xtensa_expand_builtin): Likewise.
15047 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15049 PR middle-end/91421
15050 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
15051 before the DECL_FUNCTION_CODE.
15052 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
15053 to check for a BUILT_IN_ALLOCA call.
15054 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
15055 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
15056 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
15057 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15058 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
15059 for BUILT_IN_NORMAL functions.
15060 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
15061 test for BUILT_IN_TM_ABORT.
15062 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
15063 to check for a BUILT_IN_STACK_RESTORE call.
15064 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
15065 * tree-ssa-threadedge.c
15066 (record_temporary_equivalences_from_stmts_at_dest): Check for a
15067 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
15068 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
15069 test for a BUILT_IN_NORMAL call instead of a negative test for
15070 an internal function call.
15072 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15074 * tree.h (build_vector_a_then_b): Declare.
15075 * tree.c (build_vector_a_then_b): New function.
15076 * fold-const-call.c (fold_while_ult): Likewise.
15077 (fold_const_call): Use it to handle IFN_WHILE_ULT.
15078 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
15079 (aarch64_svpattern): New enum.
15080 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
15081 constants through aarch64_expand_mov_immediate.
15082 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
15083 than general_operand as the predicate for operand 1.
15084 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
15085 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
15087 (simd_immediate_info::simd_immediate_info): New overload that
15088 takes a scalar_int_mode and an svpattern.
15089 (simd_immediate_info::u): Add a "pattern" field.
15090 (svpattern_token): New function.
15091 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
15092 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
15093 (aarch64_sve_move_pred_via_while): New functions.
15094 (aarch64_expand_mov_immediate): Try using
15095 aarch64_sve_move_pred_via_while for predicates that contain N ones
15096 followed by M zeros but that do not correspond to a VLnnn pattern.
15097 (aarch64_sve_pred_valid_immediate): New function.
15098 (aarch64_simd_valid_immediate): Use it instead of dealing directly
15099 with PTRUE and PFALSE.
15100 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
15103 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
15105 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
15107 (darwin_override_options): Likewise.
15108 * config/darwin.h: Likewise.
15109 * config/darwin.opt: Likewise.
15110 * config/i386/i386.c (output_pic_addr_const): Likewise.
15111 * config/rs6000/darwin.h: Likewise.
15112 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
15113 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
15114 ... this TARGET_MACHO_SYMBOL_STUBS.
15115 (FUNCTION_PROFILER):Likewise.
15116 * config/i386/i386.h: Likewise.
15118 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15120 * config/i386/i386-expand.c (ix86_expand_vector_extract)
15121 <case E_V2SImode>: Use vec_extr path for
15122 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15123 <case E_V8QImode>: Ditto.
15124 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
15125 Use SWI48 mode iterator. Use %k to output operand 0.
15126 (*mmx_pextrw): New insn pattern.
15127 (*mmx_pextrb): Ditto.
15128 (*mmx_pextrb_zext): Ditto.
15130 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
15132 * target.def (libc_has_function, libc_has_fast_function): Improve
15133 documentation strings.
15134 * doc/tm.texi: Regenerate.
15136 2019-08-13 Caroline Tice <cmtice@google.com>
15139 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
15140 vtv_end.o or vtv_end_preinit.o files if !static.
15142 2019-08-13 Olivier Hainque <hainque@adacore.com>
15144 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
15146 2019-08-13 Olivier Hainque <hainque@adacore.com>
15148 * rtlanal.c (tablejump_casesi_pattern): New function, to
15149 determine if a tablejump insn is a casesi dispatcher. Extracted
15150 from patch_jump_insn.
15151 * rtl.h (tablejump_casesi_pattern): Declare.
15152 * cfgrtl.c (patch_jump_insn): Use it.
15153 * dwarf2cfi.c (create_trace_edges): Use it.
15155 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15158 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
15159 operand is larger than a long int.
15161 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15163 * machmode.h (opt_mode::else_mode): New function.
15164 (opt_mode::else_blk): Use it.
15165 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
15166 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
15167 (aarch64_gen_stepped_int_parallel): Likewise.
15168 (aarch64_stepped_int_parallel_p): Likewise.
15169 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15171 * config/aarch64/aarch64.c
15172 (aarch64_expand_sve_widened_duplicate): Delete.
15173 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
15174 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
15175 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15176 argument. Use early returns in the !CONST_INT_P handling.
15177 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
15178 than handling some inline.
15179 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
15181 (aarch64_simd_container_mode): ...here.
15182 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
15183 (aarch64_sve_ld1rq_operand_p): New functions.
15184 * config/aarch64/predicates.md (descending_int_parallel)
15185 (aarch64_sve_ld1rq_operand): New predicates.
15186 * config/aarch64/constraints.md (UtQ): New constraint.
15187 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
15188 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
15189 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
15190 (@aarch64_sve_reinterpret<mode>): New expander.
15191 (*aarch64_sve_reinterpret<mode>): New pattern.
15192 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
15193 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
15194 (*sve_ld1rq<Vesize>): Replace with...
15195 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
15197 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15199 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
15202 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15204 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
15205 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
15206 (msp430_check_path_for_devices): New.
15207 (parse_devices_csv_1): New.
15208 (parse_devices_csv): New.
15209 (msp430_extract_mcu_data): Try to find devices.csv and search for the
15210 MCU data in devices.csv before using the hard-coded data.
15211 Warn if devices.csv isn't found and the MCU wasn't found in the
15212 hard-coded data either.
15213 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
15214 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
15215 Search for devices.csv on -I and -L paths.
15216 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
15217 msp430_set_driver_var.
15218 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
15219 -mdevices-csv-loc=.
15220 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
15221 searched for devices.csv.
15222 (mwarn-devices-csv): Document option.
15224 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15226 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
15227 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
15228 Use a single Dn alternative instead of separate Dz and Dm
15229 alternatives. Use aarch64_output_sve_move_immediate.
15230 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
15232 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
15233 for predicates too.
15234 (aarch64_output_sve_mov_immediate): Handle predicate modes.
15235 (aarch64_output_ptrue): Delete.
15237 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15239 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
15241 (simd_immediate_info::value, simd_immediate_info::step)
15242 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
15244 (simd_immediate_info::u): ...this new union.
15245 (simd_immediate_info::simd_immediate_info): Update accordingly.
15246 (aarch64_output_simd_mov_immediate): Likewise.
15247 (aarch64_output_sve_mov_immediate): Likewise.
15249 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15251 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
15253 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
15254 (msp430_select_cpu): New spec function.
15255 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
15257 * config/msp430/msp430-devices.c: New file.
15258 * config/msp430/msp430-devices.h: New file.
15259 * config/msp430/msp430.c: Remove msp430_mcu_data.
15260 (msp430_option_override): Use msp430_extract_mcu_data to extract
15262 (msp430_use_f5_series_hwmult): Likewise.
15263 (use_32bit_hwmult): Likewise.
15264 (msp430_no_hwmult): Likewise.
15265 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
15267 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
15269 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
15270 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
15271 Remove hard-coded MCU multilib data.
15273 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15275 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
15276 based on the mode instead of testing properties of it.
15278 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15280 * doc/md.texi: Document the x and y constraints for AArch64.
15281 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
15282 (FP_LO8_REGS): New reg_class.
15283 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
15284 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
15285 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
15286 * config/aarch64/predicates.md (aarch64_simd_register): Use
15287 FP_REGNUM_P instead of checking the classes manually.
15288 * config/aarch64/constraints.md (y): New constraint.
15290 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15292 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
15293 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
15294 * config/aarch64/aarch64-simd.md
15295 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
15296 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
15297 from the asm template.
15298 * config/aarch64/aarch64-sve.md
15299 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
15300 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
15301 from the asm template.
15302 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
15303 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
15304 from the asm template.
15305 * config/aarch64/aarch64-simd-builtins.def: Update comment.
15307 2019-08-13 Martin Liska <mliska@suse.cz>
15309 * value-prof.c (gimple_ic_transform): Add new line.
15310 Print details with MSG_NOTE.
15312 2019-08-13 Martin Liska <mliska@suse.cz>
15314 * doc/invoke.texi: Document automatic detection of jobserver.
15315 * lto-wrapper.c (run_gcc): Detect jobserver always.
15317 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15319 * config/i386/i386-expand.c (ix86_expand_vector_set)
15320 <case E_V2SImode>: Use vec_merge path for
15321 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15322 <case E_V8QImode>: Ditto.
15323 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
15324 (*mmx_pinsrb): Ditto.
15326 2019-08-12 Jakub Jelinek <jakub@redhat.com>
15330 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
15331 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
15332 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
15333 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
15334 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
15336 2019-08-12 Richard Biener <rguenther@suse.de>
15339 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
15342 2019-08-12 Richard Biener <rguenther@suse.de>
15345 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
15346 lang_mask option, always use CL_DRIVER.
15347 (get_options_from_collect_gcc_options): Adjust.
15348 (find_and_merge_options): Likewise.
15349 (run_gcc): Likewise.
15351 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15353 * ipa-predicate.c (add_condition): Restore inverted test.
15355 2019-08-10 Jakub Jelinek <jakub@redhat.com>
15357 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
15358 (enum omp_clause_device_type_kind): New enum.
15359 (struct tree_omp_clause): Add subcode.device_type_kind.
15360 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
15361 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
15362 for device_type clause.
15363 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
15364 * tree-pretty-print.c (dump_omp_clause): Likewise.
15367 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
15370 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
15372 * reload1.c (finish_spills): Do not check ira_conflicts_p when
15373 handling spilled pseudos.
15375 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15378 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
15379 to preserve the contents of the original insns.
15381 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15383 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
15384 (addsi3_compare_op2): Likewise.
15386 2019-08-09 Martin Liska <mliska@suse.cz>
15388 * alias.c (alias_ptr_types_compatible_p): Strengten
15389 type comparison in LTO mode.
15391 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
15393 PR middle-end/90313
15394 * tree-tailcall.c (find_tail_calls): Reject calls that might
15395 read from an escaped RESULT_DECL.
15397 2019-08-09 Martin Liska <mliska@suse.cz>
15399 * doc/invoke.texi: Document the option value.
15400 * lto-wrapper.c (run_gcc): Set auto_parallel
15401 only with -flto=auto.
15403 2019-08-09 Martin Liska <mliska@suse.cz>
15405 * opts.c (common_handle_option): Error for an invalid argument
15408 2019-08-09 Martin Liska <mliska@suse.cz>
15410 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
15411 use dump_printf to report optimization.
15412 (sem_variable::merge): Likwise.
15413 (sem_item_optimizer::merge_classes): Use dump_printf to report
15416 2019-08-09 Martin Liska <mliska@suse.cz>
15418 * value-prof.c (gimple_divmod_fixed_value_transform):
15419 Use dump_printf_loc.
15420 (gimple_mod_pow2_value_transform): Likewise.
15421 (gimple_mod_subtract_transform): Likewise.
15422 (init_node_map): Likewise.
15423 (gimple_ic_transform): Likewise.
15424 (gimple_stringops_transform): Likewise.
15426 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15428 * doc/extend.texi: Add const qualifier to ld intrinsics.
15430 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15432 * config/rs6000/dfp.md (D64_D128): Rename to ...
15433 (DDTD): ... this, throughout.
15434 (dfp_suffix): Rename to ...
15435 (q): ... this, throughout.
15437 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15439 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
15440 (dfp_suffix): Ditto.
15441 (adddd3, addtd3): Merge to ...
15442 (add<mode>3 for D64_D128): ... this.
15443 (subdd3, subtd3): Merge to ...
15444 (sub<mode>3 for D64_D128): ... this.
15445 (muldd3, multd3): Merge to ...
15446 (mul<mode>3 for D64_D128): ... this.
15447 (divdd3, divtd3): Merge to ...
15448 (div<mode>3 for D64_D128): ... this.
15449 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
15450 (*cmp<mode>_internal1 for D64_D128): ... this.
15451 (ftruncdd2, ftrunctd2): Merge to ...
15452 (ftrunc<mode>2 for D64_D128): ... this.
15453 (fixdddi2, fixtddi2): Merge to ...
15454 (fix<mode>di2 for D64_D128): ... this.
15456 2019-08-08 Jim Wilson <jimw@sifive.com>
15459 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
15460 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
15461 Pass into recursive call.
15462 (riscv_flatten_aggregate_argument): New arg. Pass to
15463 riscv_flatten_aggregate_field.
15464 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
15465 riscv_flatten_aggregate_argument twice, with false and true as last
15466 arg. Process result twice. Compare results and warn if different.
15467 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
15469 2019-08-08 Martin Liska <mliska@suse.cz>
15472 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
15473 * lto-wrapper.c (jobserver_active_p): Likewise.
15475 2019-08-08 Martin Liska <mliska@suse.cz>
15477 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
15478 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
15479 (create_version_clone_with_body): Likewise.
15481 2019-08-08 Jakub Jelinek <jakub@redhat.com>
15483 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
15484 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
15485 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
15486 GOVD_EXPLICIT flags.
15487 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
15488 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
15489 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
15490 call install_var_field with mask 11 instead of 3.
15491 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
15492 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
15494 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15496 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
15497 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
15499 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15501 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
15502 MOVPRFX alternatives. Make the GPR alternatives more expensive
15505 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15507 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
15508 Disparage the GPR alternative relative to the FPR one.
15509 Fix handling of 8-bit and 16-bit FPR values.
15511 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15513 * config/aarch64/iterators.md (BITWISEV): Delete.
15514 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
15515 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
15516 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
15517 UNSPEC_FMINNMV, UNSPEC_FMINV.
15518 (bit_reduc_op): Delete.
15519 (sve_int_op): New int attribute.
15520 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
15521 UNSPEC_FMINNMV, UNSPEC_FMINV.
15522 * config/aarch64/aarch64-sve.md
15523 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
15524 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
15525 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
15526 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
15527 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
15528 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
15530 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
15531 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
15532 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
15533 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
15534 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
15537 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15539 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
15540 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
15541 (fms<mode>4, *fms<mode>4): Replace with...
15542 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15543 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
15544 Use unspecs instead of rtx codes.
15545 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
15546 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
15548 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15550 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
15552 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
15553 * config/aarch64/aarch64-sve.md
15554 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
15555 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
15556 use a single unspec for the rhs.
15557 (*<su><maxmin><mode>3): Delete.
15558 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
15560 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15562 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
15563 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
15564 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
15565 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
15566 (optab, sve_fp_op): Handle them.
15567 (SVE_FP_UNARY): Delete.
15568 (optab): Remove sqrt entry.
15569 (sve_fp_op): Remove neg, abs and sqrt entries.
15570 (SVE_COND_FP_UNARY): New int iterator.
15571 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
15572 (*<frint_pattern><mode>2): Delete.
15573 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
15574 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
15575 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
15576 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
15578 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15580 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
15582 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15584 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
15585 (UNSPEC_COND_FADD): ...this.
15586 (UNSPEC_COND_SUB): Rename to...
15587 (UNSPEC_COND_FSUB): ...this.
15588 (UNSPEC_COND_MUL): Rename to...
15589 (UNSPEC_COND_FMUL): ...this.
15590 (UNSPEC_COND_DIV): Rename to...
15591 (UNSPEC_COND_FDIV): ...this.
15592 (UNSPEC_COND_MAX): Rename to...
15593 (UNSPEC_COND_FMAXNM): ...this.
15594 (UNSPEC_COND_MIN): Rename to...
15595 (UNSPEC_COND_FMINNM): ...this.
15596 (UNSPEC_COND_LT): Rename to...
15597 (UNSPEC_COND_FCMLT): ...this.
15598 (UNSPEC_COND_LE): Rename to...
15599 (UNSPEC_COND_FCMLE): ...this.
15600 (UNSPEC_COND_EQ): Rename to...
15601 (UNSPEC_COND_FCMEQ): ...this.
15602 (UNSPEC_COND_NE): Rename to...
15603 (UNSPEC_COND_FCMNE): ...this.
15604 (UNSPEC_COND_GE): Rename to...
15605 (UNSPEC_COND_FCMGE): ...this.
15606 (UNSPEC_COND_GT): Rename to...
15607 (UNSPEC_COND_FCMGT): ...this.
15608 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
15609 (sve_fp_op_rev): Update accordingly.
15610 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
15612 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15614 * config/aarch64/aarch64-sve.md: Reorganize contents and add
15616 * config/aarch64/check-sve-md.awk: New file.
15617 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
15618 (insn-conditions.md): Depend on it.
15620 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
15623 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
15624 (*negsi2_cmpz_zext): Ditto.
15626 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15628 * config/aarch64/iterators.md (commutative): Remove.
15630 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
15633 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
15634 processing COLLECT_GCC_OPTIONS.
15635 (run_gcc): Likewise.
15637 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
15639 PR tree-optimization/91109
15640 * lra-remat.c (update_scratch_ops): Remove assignment of the
15643 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15645 * data-streamer.h (streamer_write_poly_uint64): Declare.
15646 (streamer_read_poly_uint64): Likewise.
15647 * data-streamer-in.c (streamer_read_poly_uint64): New function.
15648 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
15649 * ipa-predicate.h (condition::size): Turn into a poly_int64.
15650 (add_condition): Take a poly_int64 size.
15651 * ipa-predicate.c (add_condition): Likewise.
15652 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
15653 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
15654 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
15655 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
15656 condition::size as a poly_int64.
15657 (unmodified_parm_1): Take a poly_int64 size pointer.
15658 (unmodified_parm): Likewise.
15659 (unmodified_parm_or_parm_agg_item): Likewise.
15660 (set_cond_stmt_execution_predicate): Update accordingly.
15661 (set_switch_stmt_execution_predicate): Likewise.
15662 (will_be_nonconstant_expr_predicate): Likewise.
15663 (will_be_nonconstant_predicate): Likewise.
15664 (inline_read_section): Stream condition::size as a poly_int.
15665 (ipa_fn_summary_write): Likewise.
15667 2019-08-07 Martin Liska <mliska@suse.cz>
15669 * fold-const.c (twoval_comparison_p): Replace int
15670 with bool as a return type.
15671 (simple_operand_p): Likewise.
15672 (operand_equal_p): Replace int with bool as a return type.
15673 * fold-const.h (operand_equal_p): Likewise.
15675 2019-08-07 Jakub Jelinek <jakub@redhat.com>
15677 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
15678 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
15679 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
15680 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
15681 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
15682 * tree-pretty-print.c (dump_omp_clause): Likewise.
15683 * tree-nested.c (convert_nonlocal_omp_clauses,
15684 convert_local_omp_clauses): Likewise.
15685 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
15687 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
15688 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
15689 clause with array or reference to array types, no matter what type
15690 except for reference it has.
15692 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
15694 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
15696 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
15698 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
15699 (arch_canonicalize): Support rv32g and rv64g and fix error
15702 2019-08-06 Martin Liska <mliska@suse.cz>
15704 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
15705 and DECL_IS_OPERATOR_DELETE_P.
15707 2019-08-06 Jakub Jelinek <jakub@redhat.com>
15709 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
15710 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
15711 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
15712 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
15713 (gimplify_omp_for): Don't do C++ random access iterator clause
15714 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
15715 don't predetermine the artificial iterator in case of C++ random
15716 access iterators as lastprivate, but private. For OMP_LOOP, force
15717 bind expr around simd body and force for_pre_body before the
15718 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
15719 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
15720 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
15721 diff var of C++ random access iterators. Handle
15722 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
15723 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
15724 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
15725 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
15726 * omp-low.c (lower_rec_input_clauses): For
15727 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
15728 variables instead of default constructing them.
15729 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
15730 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
15731 is_taskloop_ctx check from the assert to the guarding condition.
15733 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
15735 * config/riscv/multilib-generator: (canonical_order): New.
15736 (arch_canonicalize): Dito.
15737 Apply arch_canonicalize for alts.
15739 2019-08-05 Martin Sebor <msebor@redhat.com>
15741 * doc/extend.texi (Common Variable Attributes): Document alias
15744 2019-08-05 Marek Polacek <polacek@redhat.com>
15746 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
15747 * doc/invoke.texi: Document -Wcomma-subscript.
15749 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15751 * tree-core.h (tree_function_decl): Make function_code an
15752 independent field. Group the remaining bitfields into bytes
15753 and move decl_type so that it contines to be at a byte boundary.
15754 Leave 12 bits for future expansion.
15756 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15758 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
15759 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
15760 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
15763 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15765 * gimple.h (gimple_move_vops): Declare.
15766 * gimple.c (gimple_move_vops): New function
15767 * gimple-fold.c (replace_call_with_call_and_fold)
15768 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
15769 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
15770 (gimple_fold_call): Use it.
15771 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
15772 * tree-call-cdce.c (use_internal_fn): Likewise.
15773 * tree-if-conv.c (predicate_load_or_store): Likewise.
15774 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
15775 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15776 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
15777 (update_call_from_tree): Likewise.
15778 * tree-vect-stmts.c (vectorizable_load): Likewise.
15779 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
15781 2019-08-05 Martin Liska <mliska@suse.cz>
15784 * tree-ssa-dce.c (propagate_necessity): Handle new operators
15785 with not arguments.
15786 (eliminate_unnecessary_stmts): Likewise.
15788 2019-08-05 Richard Biener <rguenther@suse.de>
15790 PR middle-end/91169
15791 * fold-const.c (get_array_ctor_element_at_index): Create
15792 offset_ints according to the sign of the index type and treat
15793 that as signed if it is obviously so.
15795 2019-08-05 Jakub Jelinek <jakub@redhat.com>
15798 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
15799 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
15800 _mm256_storeu2_m128i): New function.
15802 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
15804 * config/riscv/riscv.c (riscv_promote_function_mode): New.
15805 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
15807 2019-08-05 Alan Modra <amodra@gmail.com>
15810 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
15811 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
15813 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
15815 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
15816 bug that was fixed in Tcl 8.6.1.
15818 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
15820 * config/rs6000/future.md: New file.
15821 * config/rs6000/rs6000.md: Include future.md.
15822 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
15824 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15826 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
15827 check to use targetm.slow_unaligned_access instead.
15829 * function.c (assign_param_data_one): Remove unused data members.
15831 2019-08-02 Steve Ellcey <sellcey@marvell.com>
15833 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
15834 build_distinct_type_copy.
15835 (simd_clone_adjust_argument_types): Ditto.
15836 (simd_clone_adjust): Call build_distinct_type_copy here.
15837 (expand_simd_clones): Ditto.
15839 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15842 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
15844 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
15846 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
15847 from 'const void *'.
15848 (sort_locs_in_loop_postorder_cmp): Likewise.
15850 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
15852 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
15853 (hot-bb-count-ws-permille): Likewise.
15854 (hot-bb-frequency-fraction): Likewise.
15855 (unlikely-bb-count-fraction): Likewise.
15856 * params.def (hot-bb-count-fraction): Rework description.
15857 (hot-bb-count-ws-permille): Likewise.
15858 (hot-bb-frequency-fraction): Likewise.
15859 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
15860 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
15862 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15865 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
15868 2019-08-02 Richard Biener <rguenther@suse.de>
15870 * vec.h (vec::sort): Add gcc_qsort_r support.
15871 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
15872 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
15873 to gcc_qsort_r style callback.
15874 (sort_locs_in_loop_postorder_cmp): Likewise.
15875 (analyze_memory_references): Use gcc_sort_r interfaces.
15876 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
15878 2019-08-02 Martin Liska <mliska@suse.cz>
15881 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
15882 to detect working job server.
15883 (driver::detect_jobserver): Test whether jobserver
15884 is active from GCC driver. That will prevent situation where
15885 GCC is invoked from a LD plugin and the linker already uses
15886 file descriptors suggested by make. That leads to a wrong
15888 * gcc.h (driver): Add detect_jobserver.
15889 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
15890 not scanning for --jobserver-auth prefix.
15892 2019-08-02 Jakub Jelinek <jakub@redhat.com>
15894 PR tree-optimization/91201
15895 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
15896 V16QImode extraction without sse4.1 try to use V4SImode lowpart
15899 2019-08-01 Martin Sebor <msebor@redhat.com>
15902 * tree.c (type_initializer_zero_p): Define.
15903 * tree.h (type_initializer_zero_p): New function.
15905 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15907 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
15909 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15911 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
15912 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
15913 * predict.c (maybe_hot_count_p): Likewise.
15914 (maybe_hot_bb_p): Tweak comment.
15915 (maybe_hot_edge_p): Likewise.
15916 (probably_never_executed): Likewise. Minor tweak.
15917 (probably_never_executed_bb_p): Likewise.
15918 (unlikely_executed_edge_p): Likewise.
15919 (probably_never_executed_edge_p): Likewise.
15920 (optimize_function_for_size_p): Likewise.
15921 (optimize_function_for_speed_p): Likewise.
15922 (function_optimization_type): Likewise.
15923 (optimize_bb_for_size_p): Likewise.
15924 (optimize_bb_for_speed_p): Likewise.
15925 (bb_optimization_type): Likewise.
15926 (optimize_edge_for_size_p): Likewise.
15927 (optimize_edge_for_speed_p): Likewise.
15928 (optimize_insn_for_size_p): Likewise.
15929 (optimize_insn_for_speed_p): Likewise.
15930 (optimize_loop_for_size_p): Likewise.
15931 (optimize_loop_for_speed_p): Likewise.
15932 (optimize_loop_nest_for_speed_p): Likewise.
15933 (optimize_loop_nest_for_size_p): Likewise.
15934 (predictable_edge_p): Likewise.
15935 (handle_missing_profiles): Minor tweak.
15937 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
15939 * config/rs6000/predicates.md (pcrel_external_address): Update
15942 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15945 * config/i386/mmx.md (usadv8qi): New expander.
15947 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
15950 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
15951 with reserved names that are in a system header.
15953 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15955 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
15956 (*vec_extractv2si_0_zext_sse4): New insn pattern.
15957 (*vec_extractv2si_0_zext): Ditto.
15958 (*vec_extractv2si_1): Add (rm,x) alternative.
15959 (*vec_extractv2si_1_zext): New insn pattern.
15960 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
15963 2019-08-01 Richard Biener <rguenther@suse.de>
15965 * domwalk.c (bb_postorder): Remove static variable.
15966 (cmp_bb_postorder): Adjust.
15967 (sort_bbs_postorder): Adjust and use gcc_sort_r.
15968 (dom_walker::walk): Adjust.
15970 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
15972 * sort.cc (sort_r_ctx): New struct.
15973 (reorder23): Make templated on context type.
15974 (reorder45): Ditto.
15975 (cmp1): Ditto. Adjust signature.
15977 (mergesort): Ditto.
15978 [CHECKING_P] (cmp2to3): New static function. Use it...
15979 (gcc_qsort) [CHECKING_P]: ...here.
15980 (gcc_sort_r): New function.
15981 * system.h (sort_r_cmp_fn): New function typedef.
15982 (qsort_chk): Adjust signature.
15983 (gcc_sort_r): Declare.
15984 * vec.c (qsort_chk_error): Adjust.
15985 (qsort_chk): Adjust.
15987 2019-08-01 Richard Biener <rguenther@suse.de>
15989 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
15990 (compute_antic): Localize it here.
15992 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
15994 * common/config/riscv/riscv-common.c: Check -march string ends
15997 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
15999 * ipa-devirt.c (type_warning_cmp): Make static.
16000 (decl_warning_cmp): Ditto.
16002 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
16005 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
16006 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
16007 use of deleted rs6000_dejagnu_cpu_index variable.
16008 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
16009 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16010 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
16011 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
16012 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
16013 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16015 2019-07-31 Richard Biener <rguenther@suse.de>
16017 PR tree-optimization/91280
16018 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16019 Decompose MEM_REF manually for offset handling.
16021 2019-07-31 Richard Biener <rguenther@suse.de>
16023 PR tree-optimization/91293
16024 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
16025 of reduction stmts.
16027 2019-07-31 Matt Thomas <matt@3am-software.com>
16028 Nick Hudson <nick@nthcliff.demon.co.uk>
16029 Matthew Green <mrg@eterna.com.au>
16030 Maya Rashish <coypu@sdf.org>
16032 * config.gcc (hppa*-*-netbsd*): New target.
16033 * config/pa/pa-netbsd.h: New file.
16034 * config/pa/pa32-netbsd.h: New file.
16036 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16038 PR tree-optimization/91201
16039 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
16041 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
16043 * config/gcn/gcn-valu.md
16044 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
16045 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
16046 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
16047 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
16048 struct ilist. Add nops for delayeduse insns.
16049 * config/gcn/gcn.md (delayeduse): New attribute.
16050 (*movbi): Remove s_waitcnt from stores.
16051 (*mov<mode>_insn): Likewise.
16052 (*movti_insn): Likewise. Add delayeduse attribute.
16053 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
16054 (atomic_store<mode>): Remove or adjust s_waitcnt.
16056 2019-07-31 Richard Biener <rguenther@suse.de>
16058 * vr-values.h (vr_values::swap_vr_value): New.
16059 (vr_values::free_value_range): likewise.
16060 * vr-values.c (vr_values::swap_vr_value): Implement.
16061 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
16062 Do not return a range or take a var.
16063 (evrp_range_analyzer::stack): Change back to recording a non-const
16065 * gimple-ssa-evrp-analyze.c
16066 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
16068 (evrp_range_analyzer::pop_to_marker): Adjust.
16069 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
16070 (evrp_range_analyzer::pop_value_range): Likewise. Free the
16071 no longer needed value-range.
16073 2019-07-31 Martin Liska <mliska@suse.cz>
16075 * tree-ssa-dce.c (propagate_necessity): Delete operator can
16076 have size and (or) alignment as 2nd and later arguments.
16077 Mark all of them as necessary.
16079 2019-07-31 Richard Biener <rguenther@suse.de>
16081 PR tree-optimization/91178
16082 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16083 Use tail-recursion.
16085 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16087 PR tree-optimization/91201
16088 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
16089 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
16091 (reduc_plus_scal_<mode>): Improve formatting by introducing
16094 2019-07-31 Sudakshina Das <sudi.das@arm.com>
16096 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
16097 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
16098 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
16099 (aarch64_init_tme_builtins): New.
16100 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
16101 (aarch64_expand_builtin_tme): New.
16102 (aarch64_expand_builtin): Handle TME builtins.
16103 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
16104 __ARM_FEATURE_TME when enabled.
16105 * config/aarch64/aarch64-option-extensions.def: Add "tme".
16106 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
16108 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
16109 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
16111 (tstart, ttest, tcommit, tcancel): New instructions.
16112 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
16113 (__tcancel, __ttest): New.
16114 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
16115 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
16116 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
16117 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
16118 * config/arm/types.md: Add new tme type attr.
16119 * doc/invoke.texi: Document "tme".
16121 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
16123 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
16124 warn_unused_result attribute.
16125 (cmse_check_address_range): Add warn_unused_result attribute.
16127 2019-07-31 Richard Biener <rguenther@suse.de>
16129 PR tree-optimization/91257
16130 * tree-vrp.c (union_ranges): Unify equality and less tests
16131 by using compare_values. Re-order cheap tests first.
16133 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16135 PR middle-end/91301
16136 * gimplify.c (gimplify_omp_for): If for class iterator on
16137 distribute parallel for there is no data sharing clause
16138 on inner_for_stmt, look for private clause on combined
16139 parallel too and if found, move it to inner_for_stmt.
16141 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
16143 * lra-int.h (lra_operand_data): Remove early_clobber field.
16144 (lra_insn_reg): Likewise.
16145 * lra.c (debug_operand_data): Update accordingly.
16146 (setup_operand_alternative): Likewise.
16147 (new_insn_reg): Likewise. Remove early_clobber parameter.
16148 (collect_non_operand_hard_regs): Update call accordingly.
16149 Don't assign to lra_insn_reg::early_clobber.
16150 (add_regs_to_insn_regno_info): Remove early_clobber parameter
16151 and update calls to new_insn_reg.
16152 (lra_update_insn_regno_info): Update calls accordingly.
16153 * lra-constraints.c (update_and_check_small_class_inputs): Take the
16154 alternative number as a parameter and test whether the operand
16155 is earlyclobbered in that particular alternative.
16156 (process_alt_operands): Update call accordingly. Use per-alternative
16157 checks for earyclobber here too.
16158 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
16159 against zero for IRA_UNKNOWN_ALT.
16161 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16163 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
16165 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
16167 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
16168 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16170 2019-07-30 Martin Liska <mliska@suse.cz>
16173 * cgraph.c (cgraph_edge::make_direct): Use
16174 edge->indirect_unknown_callee as edge->resolve_speculation can
16175 deallocate edge which is this pointer.
16177 2019-07-30 Richard Biener <rguenther@suse.de>
16179 PR tree-optimization/91257
16180 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
16182 2019-07-30 Martin Liska <mliska@suse.cz>
16184 * doc/invoke.texi: Document new behavior.
16185 * lto-wrapper.c (cpuset_popcount): New function
16186 is a copy of libgomp/config/linux/proc.c.
16187 (init_num_threads): Likewise.
16188 (run_gcc): Automatically detect core count for -flto.
16189 (jobserver_active_p): New function.
16191 2019-07-30 Richard Biener <rguenther@suse.de>
16193 PR tree-optimization/91257
16194 * bitmap.h (bitmap_ior_into_and_free): Declare.
16195 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
16196 whether to add the unliked element to the freelist.
16197 (bitmap_list_insert_element_after): Add defaulted param for
16198 an already allocated element.
16199 (bitmap_ior_into_and_free): New function.
16200 * tree-ssa-structalias.c (condense_visit): Reduce the
16201 ponts-to and edge bitmaps of the SCC members in a
16202 logarithmic fashion rather than all to one.
16204 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
16206 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
16207 parameter. When nonnull, make sure that the addition or subtraction
16208 has the same condition.
16209 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
16210 for CFN_COND_MUL too.
16212 2019-07-30 Richard Biener <rguenther@suse.de>
16214 PR tree-optimization/91291
16215 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
16218 2019-07-30 Jakub Jelinek <jakub@redhat.com>
16220 PR middle-end/91216
16221 * omp-low.c (global_nonaddressable_vars): New variable.
16222 (use_pointer_for_field): For global decls, if they are non-addressable,
16223 remember it in the global_nonaddressable_vars bitmap, if they are
16224 addressable and in the global_nonaddressable_vars bitmap, ignore their
16225 TREE_ADDRESSABLE bit.
16226 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
16227 vars in global_nonaddressable_vars bitmap.
16228 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
16231 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
16232 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
16233 comparison to unsigned HOST_WIDE_INT before shifting it left.
16235 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16237 * config/i386/i386.md (movstrict<mode>): Use register_operand
16238 predicate for operand 0. Add expander condition. Assert that
16239 operand 0 is a SUBREG RTX.
16240 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
16241 Update operand constraints and insn condition.
16242 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
16243 (zero_extendqihi2_and): Do not call gen_movstrictqi.
16244 (*setcc_qi_slp): Use register_operand predicate for operand 0.
16245 Update operand 0 constraints.
16246 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
16248 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16250 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
16251 when -m{code,data}-region are used without -mlarge.
16252 * config/msp430/msp430.c (msp430_option_override): Error when a
16253 non-default code or data region is used without -mlarge.
16254 (msp430_section_attr): Emit a warning and do not add upper/lower/either
16255 attributes when they are used without -mlarge.
16257 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16260 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
16262 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16264 PR middle-end/91242
16265 * wide-int.h (generic_wide_int::sext_elt): New function.
16266 * inchash.h (hash::add_wide_int): Use it instead of elt.
16268 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16270 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
16272 * config/arm/arm.md (<crc_variant>): Rename to...
16273 (arm_<crc_variant>): ... This.
16274 (<cdp>): Rename to...
16275 (arm_<cdp>): ... This.
16276 (<ldc>): Rename to...
16277 (arm_<ldc>): ... This.
16278 (<stc>): Rename to...
16279 (arm_<stc>): ... This.
16280 (<mcr>): Rename to...
16281 (arm_<mcr>): ... This.
16282 (<mrc>): Rename to...
16283 (arm_<mrc>): ... This.
16284 (<mcrr>): Rename to...
16285 (arm_<mcrr>): ... This.
16286 (<mrrc>): Rename to...
16287 (arm_<mrrc>): ... This.
16289 2019-07-29 Richard Biener <rguenther@suse.de>
16291 PR tree-optimization/91257
16292 * tree-ssa-sccvn.h (struct vn_avail): New.
16293 (struct vn_ssa_aux): Add avail member.
16294 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
16295 member, add m_avail_freelist one.
16296 (rpo_elim::~rpo_elim): Remove.
16297 (rpo_elim::eliminate_avail): Adjust to new avail tracking
16299 (rpo_elim::eliminate_push_avail): Likewise.
16300 (do_unwind): Likewise.
16301 (do_rpo_vn): Likewise.
16303 2019-07-29 Richard Biener <rguenther@suse.de>
16305 PR tree-optimization/91257
16306 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
16307 most cases, instead call compare_values which handles the
16308 symbolic ranges we handle specially.
16309 (compare_values_warnv): Do not call operand_less_p but open-code
16310 the effective fold calls. Avoid converting so much.
16312 2019-07-29 Martin Liska <mliska@suse.cz>
16314 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
16315 remove LHS of operator new call. It's handled latter.
16317 2019-07-29 Richard Biener <rguenther@suse.de>
16319 PR tree-optimization/91267
16320 * vr-values.c (vr_values::update_value_range): Add early return
16321 for effectively VARYING lattice entry.
16323 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16326 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
16327 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
16328 necessary if keep_all_vdefs_p is true.
16329 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
16330 that keep_all_vdefs_p is false.
16331 (mark_all_reaching_defs_necessary): Likewise.
16332 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
16334 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16336 * common.opt (Og): Change the initial value of flag_dse to 0.
16337 * opts.c (default_options_table): Move OPT_ftree_dse from
16338 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
16339 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
16340 entry before the OPT_ftree_sra entry.
16341 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
16342 of flags disabled by Og.
16344 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16346 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
16349 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16351 * doc/sourcebuild.texi (check-function-bodies): Document.
16353 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16355 * simplify-rtx.c (simplify_const_unary_operation): Fold a
16356 VEC_DUPLICATE of a fixed-length vector even if the result
16357 is variable-length. Likewise fold a duplicate of a
16358 variable-length vector if the variable-length vector is
16359 itself a duplicate of a fixed-length sequence.
16360 (test_vector_ops_duplicate): Test more cases.
16362 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16364 * vector-builder.h (vector_builder): Add a shape template parameter.
16365 (vector_builder::new_unary_operation): New function, generalizing
16366 the old tree_vector_builder function.
16367 (vector_builder::new_binary_operation): Likewise.
16368 (vector_builder::binary_encoded_nelts): Likewise.
16369 * int-vector-builder.h (int_vector_builder): Update template
16370 parameters to vector_builder.
16371 (int_vector_builder::shape_nelts): New function.
16372 * rtx-vector-builder.h (rtx_vector_builder): Update template
16373 parameters to vector_builder.
16374 (rtx_vector_builder::shape_nelts): New function.
16375 (rtx_vector_builder::nelts_of): Likewise.
16376 (rtx_vector_builder::npatterns_of): Likewise.
16377 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
16378 * tree-vector-builder.h (tree_vector_builder): Update template
16379 parameters to vector_builder.
16380 (tree_vector_builder::shape_nelts): New function.
16381 (tree_vector_builder::nelts_of): Likewise.
16382 (tree_vector_builder::npatterns_of): Likewise.
16383 (tree_vector_builder::nelts_per_pattern_of): Likewise.
16384 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
16385 (tree_vector_builder::new_binary_operation): Delete.
16386 (tree_vector_builder::binary_encoded_nelts): Likewise.
16387 * simplify-rtx.c: Include rtx-vector-builder.h.
16388 (distributes_over_addition_p): New function.
16389 (simplify_const_unary_operation)
16390 (simplify_const_binary_operation): Generalize handling of vector
16391 constants to include variable-length vectors.
16392 (test_vector_ops_series): Add more tests.
16394 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
16397 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
16398 than INDENTIFIER_POINTER.
16400 2019-07-28 Martin Liska <mliska@suse.cz>
16403 * cgraph.c (symbol_table::create_edge): Always allocate
16405 (symbol_table::free_edge): Store summary_id to
16406 edge_released_summary_ids if != -1;
16407 * cgraph.h (NEXT_FREE_NODE): Remove.
16408 (SET_NEXT_FREE_NODE): Likewise.
16409 (NEXT_FREE_EDGE): Likewise.
16410 (symbol_table::release_symbol): Store summary_id to
16411 cgraph_released_summary_ids if != -1;
16412 (symbol_table::allocate_cgraph_symbol): Always allocate
16415 2019-07-28 Alan Modra <amodra@gmail.com>
16417 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
16420 2019-07-28 Alan Modra <amodra@gmail.com>
16423 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
16425 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
16426 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
16427 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
16429 2019-07-28 Alan Modra <amodra@gmail.com>
16432 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
16433 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
16434 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
16435 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
16436 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
16437 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
16438 in asm_default spec.
16439 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
16440 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
16442 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
16444 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
16446 2019-07-26 Tamar Christina <tamar.christina@arm.com>
16449 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
16450 * config/aarch64/aarch64-option-extensions.def: Add new comments
16451 and restore easier to read options.
16453 2019-07-26 Tamar Christina <tamar.christina@arm.com>
16455 * convert.c (convert_to_real_1): Move part of conversion code...
16456 * match.pd: ...To here.
16458 2019-07-26 Martin Jambor <mjambor@suse.cz>
16461 * ipa-inline-transform.c (check_speculations_1): New function.
16462 (push_all_edges_in_set_to_vec): Likewise.
16463 (check_speculations): Use check_speculations_1, new parameter
16465 (inline_call): Pass new_edges to check_speculations.
16466 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
16468 (speculation_useful_p): Early return true if edge is inlined, remove
16469 later checks for inline_failed.
16471 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
16473 PR rtl-optimization/91223
16474 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
16475 matching with INOUT operand.
16477 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
16479 * stmt.c (expand_case): Try to narrow the index type if it's larger
16480 than a word. Tidy up.
16482 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
16484 * cif-code.def (NEVER_CALL): New code.
16485 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
16486 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
16488 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
16490 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
16491 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16493 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16495 * ipa-devirt.c (add_type_duplicate): Fix return value.
16497 2019-07-25 Richard Biener <rguenther@suse.de>
16499 * tree-vrp.c (extract_range_from_multiplicative_op): Add
16500 type parameter and use it instead of guessing expression
16501 type from the first operand.
16502 (extract_range_from_binary_expr): Pass expr_type down.
16504 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16506 * config/arm/arm.md (SATrev): Change to code attribute.
16507 (*satsi_<SAT:code>): Adjust for the above.
16508 (*satsi_<SAT:code>_shift): Likewise.
16510 2019-07-25 Richard Biener <rguenther@suse.de>
16512 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
16513 Make value_range * temporary const.
16514 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
16516 (evrp_range_analyzer::record_ranges_from_): Likewise.
16517 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
16518 deal with having recorded a const one.
16519 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
16520 Return a const value_range *.
16521 (evrp_range_analyzer::pop_value_range): Likewise.
16522 (evrp_range_analyzer::stack): Record const value_range *s.
16523 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16525 * gimple-ssa-sprintf.c (get_int_range): Likewise.
16526 (format_integer): Likewise.
16527 (sprintf_dom_walker::handle_gimple_call): Likewise.
16528 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
16529 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
16530 (vrp_prop::get_value_range): Adjust.
16531 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
16532 modifying the lattice in-place.
16533 (vrp_prop::visit_stmt): Likewise.
16534 * vr-values.c (vr_values::get_lattice_entry): New private method.
16535 (vr_values::get_value_range): Wrap it and return a const
16537 (vr_values::set_def_to_varying): New.
16538 (vr_values::set_defs_to_varying): Use it.
16539 (vr_values::update_value_range): Likewise.
16540 (vr_values::vrp_stmt_computes_nonzero): Adjust.
16541 (values::op_with_constant_singleton_va): Likewise.
16542 (vr_values::extract_range_for_var_from_co): Likewise.
16543 (vr_values::extract_range_from_ssa_name): Likewise.
16544 (vr_values::extract_range_from_cond_expr): Likewise.
16545 (vr_values::extract_range_basic): Likewise.
16546 (compare_ranges): Take const value_range *, adjust.
16547 (compare_range_with_value): Likewise.
16548 (vrp_valueize): Adjust.
16549 (vrp_valueize_1): Likewise.
16550 (vr_values::get_vr_for_comparison): Return a const value_range *.
16551 (vr_values::compare_name_with_value): Adjust.
16552 (vr_values::compare_names): Likewise.
16553 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16555 (vr_values::vrp_evaluate_conditional): Likewise.
16556 (find_case_label_ranges): Take a const value_range *.
16557 (vr_values::vrp_visit_switch_stmt): Adjust.
16558 (vr_values::extract_range_from_phi_node): Likewise.
16559 (vr_values::simplify_div_or_mod_using_ran): Likewise.
16560 (vr_values::simplify_abs_using_ranges): Likewise.
16561 (test_for_singularity): Take a const value_range *.
16562 (range_fits_type_p): Likewise.
16563 (vr_values::simplify_cond_using_ranges_1): Adjust.
16564 (vr_values::simplify_cond_using_ranges_2): Likewise.
16565 (vr_values::simplify_switch_using_ranges): Likewise.
16566 (vr_values::simplify_float_conversion_usi): Likewise.
16567 (vr_values::two_valued_val_range_p): Likewise.
16568 * vr-values.h (vr_values::get_value_range): Return a const
16570 (vr_values::set_def_to_varying): New.
16571 (vr_values::get_lattice_entry): New private method.
16572 (vr_values::get_vr_for_comparison): Return a const value_range *.
16574 2019-07-25 Martin Liska <mliska@suse.cz>
16575 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
16578 * common.opt: Add -fallocation-dce
16579 * gimple.c (gimple_call_operator_delete_p): New.
16580 * gimple.h (gimple_call_operator_delete_p): Likewise.
16581 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
16582 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
16583 DECL_IS_OPERATOR_DELETE_P.
16584 (mark_all_reaching_defs_necessary_1): Likewise.
16585 (propagate_necessity): Likewise.
16586 (eliminate_unnecessary_stmts): Handle
16587 gimple_call_operator_delete_p.
16588 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
16589 Add packing of OPERATOR_DELETE.
16590 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
16592 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
16593 (DECL_SET_IS_OPERATOR_DELETE): New.
16594 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
16596 2019-07-25 Martin Liska <mliska@suse.cz>
16598 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
16599 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
16600 * coverage.c (coverage_begin_function): Likewise.
16601 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
16602 * gimple.c (gimple_call_nonnull_result_p): Likewise.
16603 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
16604 (sem_item::hash_referenced_symbol_properties): Likewise.
16605 * lto-streamer-out.c (hash_tree): Likewise.
16606 * predict.c (expr_expected_value_1): Likewise.
16607 * tree-inline.c (expand_call_inline): Likewise.
16608 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16609 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16610 * tree-core.h (enum function_decl_type): New enum.
16611 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
16612 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
16613 (set_function_decl_type): Likewise.
16614 (DECL_IS_OPERATOR_NEW_P): New.
16615 (DECL_SET_IS_OPERATOR_NEW): Likewise.
16616 (DECL_LAMBDA_FUNCTION): Likewise.
16617 (DECL_LAMBDA_FUNCTION_P): Likewise.
16618 (DECL_IS_OPERATOR_NEW): Remove.
16619 (DECL_SET_LAMBDA_FUNCTION): Likewise.
16621 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
16623 * ipa-profile.c (get_most_common_single_value): Use
16624 get_nth_most_common_value.
16625 * profile.c (sort_hist_value): New function.
16626 (compute_value_histograms): Call sort_hist_value to sort the
16627 values after loading from disk.
16628 * value-prof.c (get_most_common_single_value): Rename to ...
16629 get_nth_most_common_value. Add input params n, return
16630 the n_th value and count.
16631 (gimple_divmod_fixed_value_transform): Use
16632 get_nth_most_common_value.
16633 (gimple_ic_transform): Likewise.
16634 (gimple_stringops_transform): Likewise.
16635 * value-prof.h (get_most_common_single_value): Add input params
16638 2019-07-25 Richard Biener <rguenther@suse.de>
16640 PR tree-optimization/91236
16641 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16642 size of CONSTRUCTOR write. Fix buffer size we pass to
16643 native_encode_expr.
16645 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16647 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
16648 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
16651 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16653 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
16654 explicitly disabled with --disable-initfini-array.
16656 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16658 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
16661 2019-07-24 Martin Sebor <msebor@redhat.com>
16663 PR tree-optimization/91183
16664 PR tree-optimization/86688
16665 * builtins.c (compute_objsize): Handle MEM_REF.
16666 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
16667 (get_min_string_length): Remove.
16668 (count_nonzero_bytes): New function.
16669 (handle_char_store): Rename...
16670 (handle_store): to this. Handle multibyte stores via integer types.
16671 (strlen_check_and_optimize_stmt): Adjust conditional and the called
16674 2019-07-24 Martin Sebor <msebor@redhat.com>
16677 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
16678 (diagnostic_report_diagnostic): Same.
16679 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
16680 (diagnostic_context::lang_mask): New data member.
16681 * ipa-pure-const.c (suggest_attribute): Use
16682 lang_hooks.option_lang_mask ().
16683 * opts-common.c (option_enabled): Handle new argument.
16684 (get_option_state): Pass an additional argument.
16685 * opts.c (print_filtered_help): Print supported languages for
16686 unsupported options. Adjust printing of current state.
16687 * opts.h (option_enabled): Add argument.
16688 * toplev.c (print_switch_values): Use lang_mask.
16689 (general_init): Set global_dc->lang_mask.
16691 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16694 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
16696 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
16698 * cgraphunit.c (symbol_table::compile): Start and stop
16699 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
16700 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
16702 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
16704 * gimplify.c (flag_instrument_functions_exclude_p): Include
16705 namespace/class information in the printable name.
16706 * opts.c (add_comma_separated_to_vector): Add NUL terminator
16707 to tokens entered into the vector.
16709 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
16711 * tree-nested.c (build_simple_mem_ref_notrap): New function.
16712 (get_static_chain): Call it instead of build_simple_mem_ref.
16713 (get_frame_field): Likewise.
16714 (get_nonlocal_debug_decl): Likewise.
16715 (convert_nonlocal_reference_op): Likewise.
16717 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
16719 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
16721 (arc_compute_frame_size): Millicode is disabled when compiling
16723 (arc_return_address_register): Likewise.
16724 (arc_compute_function_type): Likewise.
16725 (arc_compute_frame_size): Likewise.
16726 (secondary_reload_info): Likewise.
16727 (arc_get_unalign): Likewise.
16728 (arc_can_use_return_insn): Declare.
16729 * config/arc/arc.c (AUX_LP_START): Define
16730 (AUX_LP_END): Likewise.
16731 (arc_frame_info): Update gmask member to 64-bit datum.
16732 (GMASK_LEN): Update.
16733 (arc_compute_function_type): Make it static, move it forward.
16734 (arc_must_save_register): Update, consider the extra regs.
16735 (arc_compute_millicode_save_restore_regs): Update to use the 64
16737 (arc_compute_frame_size): Likewise.
16738 (arc_enter_leave_p): Likewise.
16739 (arc_save_callee_saves): Likewise.
16740 (arc_restore_callee_saves): Likewise.
16741 (arc_save_callee_enter): Likewise.
16742 (arc_restore_callee_leave): Likewise.
16743 (arc_save_callee_milli): Likewise.
16744 (arc_restore_callee_milli): Likewise.
16745 (arc_expand_prologue): Add new interrupt handling.
16746 (arc_return_address_register): Make it static, move it forward.
16747 (arc_expand_epilogue): Add new interrupt handling.
16748 (arc_get_unalign): Delete.
16749 (arc_epilogue_uses): Make sure we do not remove the extra
16750 saved/restored registers when interrupt.
16751 (arc_can_use_return_insn): New function.
16752 (push_reg): Likewise.
16753 (pop_reg): Likewise.
16754 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
16756 (arc_restore_callee_saves): Likewise, but restoring.
16757 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
16758 (R33_REG): Likewise.
16759 (R34_REG): Likewise.
16760 (R35_REG): Likewise.
16761 (R36_REG): Likewise.
16762 (R37_REG): Likewise.
16763 (R38_REG): Likewise.
16764 (R39_REG): Likewise.
16765 (R45_REG): Likewise.
16766 (R46_REG): Likewise.
16767 (R47_REG): Likewise.
16768 (R48_REG): Likewise.
16769 (R49_REG): Likewise.
16770 (R50_REG): Likewise.
16771 (R51_REG): Likewise.
16772 (R52_REG): Likewise.
16773 (R53_REG): Likewise.
16774 (R54_REG): Likewise.
16775 (R55_REG): Likewise.
16776 (R56_REG): Likewise.
16777 (R58_REG): Likewise.
16778 (type): Add rtie attribute.
16779 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
16780 (movsi_insn): Accept moves to lp_count.
16781 (rtie): Update pattern.
16782 (simple_return): Simplify it, don't use this pattern as a return
16784 (arc600_rtie): New pattern.
16785 (p_return_i): Clean up.
16786 (return): Likewise.
16787 * config/arc/builtins.def (rtie): Only available for non ARC6xx
16789 * config/arc/predicates.md (move_src_operand): Consider lp_count
16792 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
16794 * config/s390/predicates.md (addv_const_operand): New predicate.
16795 * config/s390/s390-modes.def (CCO): New condition code mode.
16796 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
16797 (s390_branch_condition_mask): Likewise.
16798 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
16799 ("mulv<mode>4"): New expanders.
16800 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
16801 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
16802 pattern definitions.
16804 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16806 PR middle-end/91166
16807 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
16808 (define_predicates): Add entry for uniform_vector_p.
16809 (vec_same_elem_p): New match pattern.
16811 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16814 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
16815 * config/i386/darwin32-biarch.h .. to here.
16816 * config/i386/darwin64-biarch.h: Adjust comments.
16817 * config/rs6000/darwin32-biarch.h: Likewise.
16818 * config/rs6000/darwin64-biarch.h: Likewise.
16819 * config.gcc: Missed commit from r273746
16820 (*-*-darwin*): Don't include CPU t-darwin here.
16821 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16822 an error message if i686-darwin configuration is attempted for
16825 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
16828 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
16829 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16830 an error message if i686-darwin configuration is attempted for
16832 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
16833 (powerpc-*-darwin*): Use biarch files where needed.
16834 (powerpc64-*-darwin*): Likewise.
16835 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
16836 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16838 * config/i386/darwin32-biarch.h: New.
16839 * config/i386/darwin64.h: Rename.
16840 * config/i386/darwin64-biarch.h: To this.
16841 * config/i386/t-darwin: Rename.
16842 * config/i386/t-darwin32-biarch: To this.
16843 * config/i386/t-darwin64: Rename.
16844 * config/i386/t-darwin64-biarch: To this.
16845 * config/rs6000/darwin32-biarch.h: New.
16846 * config/rs6000/darwin64.h: Rename.
16847 * config/rs6000/darwin64-biarch.h: To this.
16848 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16850 * config/rs6000/t-darwin8: Rename.
16851 * config/rs6000/t-darwin32-biarch: To this.
16852 * config/rs6000/t-darwin64 Rename.
16853 * config/rs6000/t-darwin64-biarch: To this.
16855 2019-07-23 Martin Sebor <msebor@redhat.com>
16857 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
16859 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16861 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
16862 (rh): New alias for it.
16864 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16866 * gdbhooks.py: Pass replace=True to
16867 gdb.printing.register_pretty_printer.
16869 2019-07-23 Richard Biener <rguenther@suse.de>
16872 * lto-streamer-in.c (input_function): Drop inline-entry markers
16873 that ended up with an unknown location block.
16875 2019-07-23 Richard Biener <rguenther@suse.de>
16877 PR tree-optimization/83518
16878 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
16879 init from a constant even when partial defs are already recorded.
16881 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16883 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
16884 * config/i386/znver1.md: Enable patterns for znver2 and add store
16885 variants which use extra AGU unit.
16887 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16889 * config/i386/i386-options.c (ix86_option_override_internal): Default
16890 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
16891 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
16894 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16896 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
16897 (znver2_costs): Update 256 bit SSE costs and multiplication.
16899 2019-07-23 Jan Beulich <jbeulich@suse.com>
16901 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
16902 Require only AVX512F.
16903 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
16904 alternative expanding to vpternlog.
16906 2019-07-23 Martin Liska <mliska@suse.cz>
16908 * dwarf2out.c (gen_producer_string): Canonize -flto=N
16909 to -flto in dwarf producer string.
16911 2019-07-23 Richard Biener <rguenther@suse.de>
16913 * tree-cfg.c (label_for_bb): Remove global var.
16914 (main_block_label): Take label_for_bb as argument.
16915 (cleanup_dead_labels_eh): Likewise, adjust.
16916 (cleanup_dead_labels): Adjust.
16918 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16920 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
16921 Configurations): Add documentation for __builtin_mtfsf.
16923 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
16925 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
16926 * config/riscv/riscv.c (riscv_constant_alignment): Use
16927 riscv_align_data_type.
16928 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
16929 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16930 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16931 * config/riscv/riscv.opt (malign-data): New.
16932 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
16934 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
16936 * cgraph.c (dump_graphviz): New function.
16937 * cgraph.h (dump_graphviz): New function.
16938 * symtab.c (dump_graphviz): New function.
16940 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
16942 * config/aarch64/aarch64-simd.md
16943 (*aarch64_simd_sra<mode>): New.
16944 * config/aarch64/iterators.md
16945 (SHIFTRT): New iterator.
16946 (sra_op): New attribute.
16948 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16950 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
16951 callee-saved regs R4->R10 in an interrupt function that calls another
16954 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16956 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
16957 (_mm_blendv_epi8): New.
16959 2019-07-22 Richard Biener <rguenther@suse.de>
16961 PR tree-optimization/91221
16962 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
16963 restrict partial-def handling of empty constructors and
16964 memset to refs with known offset.
16966 2019-07-22 Jan Beulich <jbeulich@suse.com>
16968 * config/i386/sse.md (ternlogsuffix): New.
16969 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
16971 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
16973 2019-07-22 Martin Liska <mliska@suse.cz>
16975 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
16977 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
16979 2019-07-22 Martin Liska <mliska@suse.cz>
16981 * lto-section-in.c (lto_get_section_data):
16982 Use new function get_compression.
16983 * lto-streamer-out.c (produce_lto_section): Use
16984 set_compression to encode compression algorithm.
16985 * lto-streamer.h (struct lto_section): Do not
16986 use bitfields in the format.
16988 2019-07-22 Martin Liska <mliska@suse.cz>
16991 * opts-common.c (decode_cmdline_option): Decode
16992 argument of -Werror and check it for a wrong language.
16993 * opts-global.c (complain_wrong_lang): Remove such case.
16995 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
16997 * config/arc/arc.c (prepare_move_operands): Always use an
16998 intermediate register when storing a TLS symbols.
17000 2019-07-22 Stafford Horne <shorne@gmail.com>
17002 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
17005 2019-07-22 Stafford Horne <shorne@gmail.com>
17007 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
17008 and munordered-float validations.
17009 * config/or1k/constraints.md (d): New register constraint.
17010 * config/or1k/predicates.md (fp_comparison_operator): New.
17011 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
17013 (or1k_expand_compare): Normalize unordered comparisons.
17014 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
17015 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
17016 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
17017 * config/or1k/or1k.md (type): Add fpu.
17018 (fpu): New instruction reservation.
17019 (F, f, fr, fi, FI, FOP, fop): New.
17020 (<fop><F:mode>3): New ALU instruction definition.
17021 (float<fi><F:mode>2): New conversion instruction definition.
17022 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
17023 (fpcmpcc): New code iterator.
17024 (*sf_fp_insn): New instruction definition.
17025 (cstore<F:mode>4): New expand definition.
17026 (cbranch<F:mode>4): New expand definition.
17027 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
17028 munordered-float): New options.
17029 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
17032 2019-07-22 Stafford Horne <shorne@gmail.com>
17034 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
17035 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
17036 documenation to be more clear.
17037 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
17039 * config/or1k/or1k.opt (mrori): New option.
17040 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
17041 msfimm, mshftimm): Rewrite documentation to be more clear.
17042 * config/or1k/or1k.md (insn_support): Add ror and rori.
17043 (enabled): Add conditions for ror and rori.
17044 (rotrsi3): Replace condition for shftimm with ror and rori.
17046 2019-07-22 Stafford Horne <shorne@gmail.com>
17049 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
17050 (extend<mode>si2): Update predicate.
17051 * config/or1k/predicates.md (volatile_mem_operand): New.
17052 (reg_or_mem_operand): New.
17054 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
17056 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
17057 * config/rs6000/rs6000-call.c: ... to here.
17059 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17061 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
17064 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17066 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
17068 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17070 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
17072 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17074 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
17075 (any_memory_operand): New predicate.
17076 (reg_or_mem_operand): Use it.
17078 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17081 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
17083 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
17085 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
17086 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
17088 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17090 * tree.def (OMP_LOOP): New tree code.
17091 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
17092 (enum omp_clause_bind_kind): New enum.
17093 (struct tree_omp_clause): Add subcode.bind_kind.
17094 * tree.h (OMP_LOOP_CHECK): Rename to ...
17095 (OMP_LOOPING_CHECK): ... this.
17096 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
17097 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
17098 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
17099 (OMP_CLAUSE_BIND_KIND): Define.
17100 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17101 bind clause entries.
17102 (walk_tree_1): Handle OMP_CLAUSE_BIND.
17103 * tree-pretty-print.c (dump_omp_clause): Likewise.
17104 (dump_generic_node): Handle OMP_LOOP.
17105 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
17106 (in_omp_construct): New variable.
17107 (is_gimple_stmt): Handle OMP_LOOP.
17108 (gimplify_scan_omp_clauses): For lastprivate don't set
17109 check_non_private if code == OMP_LOOP. For reduction clause
17110 on OMP_LOOP combined with parallel or teams propagate as shared
17111 on the combined construct. Handle OMP_CLAUSE_BIND.
17112 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
17113 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
17114 for constructs from a loop construct to gimplify_scan_omp_clauses.
17115 Don't predetermine iterator linear on OMP_SIMD from loop construct.
17116 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
17117 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
17118 to match the implicit ORT_TARGET construct around whole body.
17119 Temporarily clear in_omp_construct when processing body.
17120 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
17121 etc. temporarily set in_omp_construct when processing body.
17122 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
17123 * omp-low.c (struct omp_context): Add loop_p.
17124 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
17125 in that the original var might be private.
17126 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
17127 (check_omp_nesting_restrictions): Adjust nesting restrictions for
17128 addition of loop construct.
17129 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
17131 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
17132 lastprivate non-addressable iterator of a collapse(1) simd.
17134 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
17136 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
17139 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
17141 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
17142 refer to default conditions. Warn for the 'y' spec which is ignored
17143 by current linkers.
17145 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
17147 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
17148 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17149 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17150 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17151 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17152 init_cumulative_args, rs6000_promote_function_mode,
17153 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17154 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17155 rs6000_function_arg_boundary, rs6000_parm_offset,
17156 rs6000_parm_start, rs6000_arg_size,
17157 rs6000_darwin64_record_arg_advance_flush,
17158 rs6000_darwin64_record_arg_advance_recurse,
17159 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17160 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17161 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17162 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17163 rs6000_finish_function_arg, rs6000_function_arg,
17164 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17165 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17166 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17167 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17168 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17169 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17170 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17171 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17172 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17173 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17174 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17175 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17176 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17177 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17178 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17179 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17180 get_element_number, altivec_expand_vec_set_builtin,
17181 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17182 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17183 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17184 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17185 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17186 rs6000_expand_builtin, rs6000_vector_type,
17187 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17188 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17189 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
17191 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
17192 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17193 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17194 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17195 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17196 init_cumulative_args, rs6000_promote_function_mode,
17197 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17198 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17199 rs6000_function_arg_boundary, rs6000_parm_offset,
17200 rs6000_parm_start, rs6000_arg_size,
17201 rs6000_darwin64_record_arg_advance_flush,
17202 rs6000_darwin64_record_arg_advance_recurse,
17203 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17204 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17205 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17206 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17207 rs6000_finish_function_arg, rs6000_function_arg,
17208 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17209 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17210 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17211 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17212 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17213 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17214 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17215 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17216 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17217 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17218 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17219 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17220 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17221 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17222 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17223 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17224 get_element_number, altivec_expand_vec_set_builtin,
17225 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17226 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17227 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17228 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17229 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17230 rs6000_expand_builtin, rs6000_vector_type,
17231 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17232 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17233 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
17234 to here from rs6000.c.
17235 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
17236 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
17237 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
17238 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
17239 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
17240 rs6000_return_in_memory, rs6000_return_in_msb,
17241 rs6000_pass_by_reference, setup_incoming_varargs,
17242 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
17243 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
17244 rs6000_function_arg_padding, rs6000_function_arg,
17245 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
17246 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
17247 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
17248 rs6000_passes_long_double, rs6000_passes_vector,
17249 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
17250 altivec_builtin_mask_for_load) Add declarations.
17251 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
17252 * config/config.gcc: Add new source file rs6000-call.c to garbage
17253 collector and extra_objs.
17255 2019-07-19 Jeff Law <law@redhat.com>
17257 PR tree-optimization/86061
17258 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
17259 strncpy. Drop some trivial dead code.
17260 (maybe_trim_memstar_call): Handle strncpy.
17262 2019-07-19 Richard Biener <rguenther@suse.de>
17264 PR tree-optimization/91211
17265 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17266 memset encoding size.
17268 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
17271 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
17273 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
17276 * ipa-inline.c (recursive_inlining): Fix limits check.
17278 2019-07-19 Richard Biener <rguenther@suse.de>
17280 PR tree-optimization/91200
17281 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
17282 no PHI nodes in middle-bb.
17284 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
17286 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
17288 * config/aarch64/aarch64-option-extensions.def: Likewise.
17290 2019-07-19 Jakub Jelinek <jakub@redhat.com>
17292 PR middle-end/91190
17293 * function.c (insert_temp_slot_address): Store into the hash table
17294 a copy of address to avoid RTL sharing issues.
17296 2019-07-19 Richard Biener <rguenther@suse.de>
17298 PR tree-optimization/91207
17300 2019-07-17 Richard Biener <rguenther@suse.de>
17302 PR tree-optimization/91178
17303 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17304 loads with a gap larger than the vector size always use
17306 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17307 avoid loading vectors that are only contained in the gap
17308 and thus are not needed.
17310 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17312 * config/i386/i386.md (*addqi_2_slp): Remove.
17313 (*<code>qi_2_slp): Ditto.
17315 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
17317 * config/rs6000/predicates.md (prefixed_mem_operand): Call
17318 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
17319 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
17320 Rename function from rs6000_prefixed_address.
17321 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17323 (TARGET_TOC): Likewise.
17324 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17326 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17328 (TARGET_TOC): Likewise.
17329 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17331 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17333 (TARGET_TOC): Likewise.
17334 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17335 check to require -mcmodel=medium for pc-relative addressing.
17336 (create_TOC_reference): Add assertion for TARGET_TOC.
17337 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
17339 (rs6000_emit_move): Likewise.
17340 (TOC_alias_set): Rename TOC alias set static variable from 'set'
17341 to 'TOC_alias_set'.
17342 (get_TOC_alias_set): Likewise.
17343 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
17345 (rs6000_can_eliminate): Likewise.
17346 (rs6000_prefixed_address_mode_p): Rename function from
17347 rs6000_prefixed_address.
17348 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
17349 TARGET_HAS_TOC and not pc-relative.
17350 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
17351 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17353 (TARGET_TOC): Likewise.
17354 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17357 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17360 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
17361 for operand 0. Do not use (match_dup) to match operand 1 with
17362 operand 0. Add check in insn constraint that either input operand
17363 matches operand 0. Use SWI12 mode iterator to also handle
17365 (*and<mode>_1_slp): Ditto.
17366 (*<code>qi_1_slp): Ditto.
17367 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
17368 Do not use (match_dup) to match operand 1 with operand 0. Add
17369 check in insn constraint that operand 1 matches operand 0.
17370 Use SWI12 mode iterator to also handle HImode operands.
17371 (*ashl<mode>3_1_slp): Ditto.
17372 (*<shift_insn><mode>3_1_slp): Ditto.
17373 (*<rotate_insn><mode>3_1_slp): Ditto.
17375 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
17377 * config/arm/arm-builtins.c
17378 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
17379 (arm_expand_unop_builtin): Likewise.
17380 * config/arm/crypto.md
17381 (crypto_sha1h): Convert from define_insn to define_expand.
17382 (crypto_<crypto_pattern>): Likewise.
17383 (crypto_sha1h_lb): New define_insn.
17384 (crypto_<crypto_pattern>_lb): Likewise.
17386 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
17389 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
17390 (vsha1cq_u32): Likewise.
17391 (vsha1pq_u32): Likewise.
17392 (vsha1mq_u32): Likewise.
17393 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
17395 (crypto_sha1c): Correct vec select.
17396 (crypto_sha1m): Likewise.
17397 (crypto_sha1p): Likewise.
17399 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
17401 * config/arm/predicates.md (arm_borrow_operation): New predicate.
17402 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
17403 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
17404 (subdi_zesidi_zesidi): Likewise.
17405 (negdi2_compare, negdi2_insn): Likewise.
17406 (negdi_extensidi): Likewise.
17407 (negdi_zero_extendsidi): Likewise.
17408 (arm_cmpdi_insn): Likewise.
17409 (subsi3_carryin): Use arm_borrow_operation.
17410 (subsi3_carryin_const): Likewise.
17411 (subsi3_carryin_const0): Likewise.
17412 (subsi3_carryin_compare): Likewise.
17413 (subsi3_carryin_compare_const): Likewise.
17414 (subsi3_carryin_compare_const0): Likewise.
17415 (subsi3_carryin_shift): Likewise.
17416 (rsbsi3_carryin_shift): Likewise.
17417 (negsi2_carryin_compare): Likewise.
17419 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
17421 PR tree-optimization/91137
17422 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
17423 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
17424 Init, use and fini the above new field.
17425 (determine_base_object_1): New function.
17426 (determine_base_object): Reimplement using walk_tree.
17428 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
17430 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
17431 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
17432 CLEANUP_FORCE_FAST_DCE is set.
17433 * ifcvt.c (rest_of_handle_if_conversion): Pass
17434 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
17435 if-conversion succeeded.
17437 2019-07-18 Richard Biener <rguenther@suse.de>
17439 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
17440 branches to make code less indented.
17442 2019-07-17 Alexandre Oliva <oliva@adacore.com>
17444 PR middle-end/81824
17445 * attribs.c (decls_mismatched_attributes): Simplify the logic
17446 that avoids duplicates and false positives.
17448 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
17450 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
17451 data into data section when generating PIC code.
17452 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
17453 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
17454 generating code for SOM targets earlier than HP-UX 11. Otherwise,
17455 return 2 for SOM and 0 for other targets.
17457 2019-07-17 Jeff Law <law@redhat.com>
17459 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
17460 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
17461 avoid unexpected switch statement fallthru.
17463 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
17465 * config/i386/i386.md (*add<dwi>3_doubleword):
17466 Remove redundant constraints.
17467 (*add<mode>_1): Ditto.
17470 (*addqi_1_slp): Ditto.
17471 (*add<mode>_2): Ditto.
17472 (*addv<mode>4): Ditto.
17473 (*sub<dwi>3_doubleword): Ditto.
17474 (*sub<mode>_1): Ditto.
17475 (*subqi_1_slp): Ditto.
17476 (*sub<mode>_2): Ditto.
17477 (*subv<mode>4): Ditto.
17478 (*sub<mode>_3): Ditto.
17479 (@add<mode>3_carry): Ditto.
17480 (@sub<mode>3_carry): Ditto.
17481 (*add<mode>3_cc_overflow_1): Ditto.
17482 (*add<mode>3_zext_cc_overflow_2): Ditto.
17484 (*and<mode>_1): Ditto.
17486 (*andqi_1_slp): Ditto.
17488 (*andqi_2_maybe_si): Ditto.
17489 (*and<mode>_2): Ditto.
17490 (*andqi_2_slp): Ditto.
17491 (*<code><mode>_1): Ditto.
17492 (*<code>qi_1): Ditto.
17493 (*<code>qi_1_slp): Ditto.
17494 (*<code><mode>_2): Ditto.
17495 (*<code>qi_2_slp): Ditto.
17497 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
17499 * alias.c (record_component_aliases): Do not simplify pointed-to
17500 types of ODR types.
17502 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
17504 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
17505 partial reg stall on alternative 2.
17507 2019-07-17 Richard Biener <rguenther@suse.de>
17509 PR tree-optimization/91178
17510 * tree-ssa.c (release_defs_bitset): Iterate from higher to
17511 lower SSA names to avoid quadratic behavior in the common case.
17512 * tree-data-ref.c (split_constant_offset): Add limit argument
17513 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
17514 (split_constant_offset_1): Add limit argument and use it to
17515 limit SSA def walking. Optimize the common plus/minus case.
17517 2019-07-17 Richard Biener <rguenther@suse.de>
17519 PR tree-optimization/91178
17520 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17521 loads with a gap larger than the vector size always use
17523 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17524 avoid loading vectors that are only contained in the gap
17525 and thus are not needed.
17527 2019-07-17 Richard Biener <rguenther@suse.de>
17529 PR tree-optimization/91180
17530 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
17531 computation for memset partial defs.
17533 2019-07-17 Jakub Jelinek <jakub@redhat.com>
17535 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
17536 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
17537 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
17538 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
17539 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
17540 * omp-grid.c (grid_process_grid_body,
17541 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
17542 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
17543 == GF_OMP_FOR_KIND_SIMD.
17544 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
17545 check_omp_nesting_restrictions, scan_omp_1_stmt,
17546 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
17547 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
17548 omp_find_scan): Likewise.
17549 * omp-expand.c (expand_omp_for): Likewise.
17550 * omp-general.c (omp_extract_for_data): Likewise.
17552 PR tree-optimization/91157
17553 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
17554 a vector boolean with scalar mode.
17555 (expand_vector_condition): Handle first operand being a vector boolean
17557 (expand_vector_operations_1): For comparisons, don't bail out early
17558 if the return type is vector boolean with scalar mode, but comparison
17559 operand type is not.
17561 2019-07-17 Richard Biener <rguenther@suse.de>
17563 PR tree-optimization/91181
17564 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
17565 IFN_LOADs as calls.
17567 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
17569 * config/i386/i386.md (*testdi_1): Match CCZmode for
17570 constants that might have the SImode sign bit set.
17571 (*testqi_1_maybe_si): Remove "!" constraint modifier.
17572 Use correct constraints for pentium pairing.
17573 (*test<mode>_1): Ditto.
17575 2019-07-16 Jeff Law <law@redhat.com>
17577 PR rtl-optimization/91173
17578 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
17579 SSA_NAME with a constant value, fold its value into the offset
17580 and clear the base before calling gen_addr_rtx.
17582 2019-07-16 Jakub Jelinek <jakub@redhat.com>
17584 PR rtl-optimization/91164
17585 * dse.c (rest_of_handle_dse): If dead edges have been purged,
17586 invalidate dominance info.
17588 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17590 * read-md.h (md_reader::record_potential_iterator_use): Add a
17591 file_location parameter.
17592 * read-rtl.c (attribute_use::loc): New field.
17593 (map_attr_string): Take a file_location parameter. Report cases
17594 in which attributes map to multiple distinct values.
17595 (apply_attribute_uses): Update call accordingly.
17596 (md_reader::handle_overloaded_name): Likewise.
17597 (md_reader::apply_iterator_to_string): Likewise. Skip empty
17599 (record_attribute_use): Take a file_location parameter.
17600 Initialize attribute_use::loc.
17601 (md_reader::record_potential_iterator_use): Take a file_location
17602 parameter. Update call to record_attribute_use.
17603 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
17604 (rtx_reader::read_rtx_code): Likewise.
17605 (rtx_reader::read_rtx_operand): Likewise. Record a location
17606 for implicitly-expanded empty strings.
17608 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17610 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
17611 Use file_location instead of separate fields.
17612 (md_reader::set_md_ptr_loc): Take a file_location instead of a
17613 separate filename and line number.
17614 * read-md.c (ptr_loc): As above.
17615 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
17616 (md_reader::fprint_md_ptr_loc): Likewise.
17617 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
17618 instead of a separate filename and line number.
17619 (md_reader::read_string): Update call accordingly.
17621 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17623 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
17624 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
17625 leaving the choice between SFDF and P implicit.
17626 (*mov<mode>_update2): Likewise.
17627 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
17628 rather than leaving the choice betweem IBM128 and GPR implicit.
17629 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
17630 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
17632 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
17633 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
17634 * config/rs6000/vsx.md
17635 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
17636 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
17637 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
17638 and VSX_EXTRACT_I implicit.
17640 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17642 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
17643 Explicitly use <MOVEP1:MODE> for the mode attribute.
17645 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
17648 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
17650 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
17653 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
17654 .machine directive.
17656 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
17658 * config/i386/i386.md (@test<mode>_ccno_1):
17659 Rename from test<mode>_ccno_1.
17660 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
17661 (*testqi_1_maybe_si): Remove modrm attribute.
17662 (*test<mode>_1): Ditto.
17663 * config/i386/i386-expand.c (ix86_split_idivmod): Use
17664 gen_test_ccno_1 and gen_extend_insn.
17666 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
17668 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
17671 2019-07-15 Richard Biener <rguenther@suse.de>
17673 PR middle-end/91162
17674 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
17675 node make sure to replace all uses with something valid.
17677 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
17679 PR tree-optimization/88497
17680 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
17681 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
17682 function undistribute_bitref_for_vector.
17683 (undistribute_bitref_for_vector): New function.
17684 (cleanup_vinfo_map): Likewise.
17685 (sort_by_mach_mode): Likewise.
17687 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
17689 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
17690 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
17691 and testdi_ccno_1 using SWI48 mode attribute.
17692 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
17693 x86_64_szext_general_operand.
17694 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
17695 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
17696 instead of genera_operand mode attribute.
17698 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
17700 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
17701 fopen and fclose to their respective types.
17702 (DotFn.invoke): Ditto.
17704 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
17706 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
17707 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
17708 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
17709 (array_index_predicate): Remove.
17710 (analyze_function_body): Account cost for variable ofsetted array
17712 (estimate_node_size_and_time): Do not compute array index hint.
17713 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
17714 (inline_read_section): Do not read array index hint.
17715 (ipa_fn_summary_write): Do not write array index hint.
17716 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
17717 * ipa-cp.c (hint_time_bonus): Remove.
17718 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
17719 (ipa_fnsummary): Remove array_index.
17720 * ipa-inline.c (want_inline_small_function_p): Do not use
17722 (edge_badness): Likewise.
17723 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
17725 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
17728 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
17729 superfluous "builtin function" phrasing.
17731 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
17733 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
17735 (aliasing_component_refs_walk): Break out from ...
17736 (aliasing_component_refs_p): ... here.
17738 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
17741 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
17742 "builtin function" phrasing.
17744 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17747 * recog.h (temporary_volatile_ok): New class.
17748 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
17749 volatile_ok temporarily to true using temporary_volatile_ok.
17750 * expr.c (emit_block_move_via_cpymem): Likewise.
17751 * optabs.c (maybe_legitimize_operand): Likewise.
17753 2019-07-13 Jakub Jelinek <jakub@redhat.com>
17755 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
17756 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
17757 uses inside of order(concurrent) constructs.
17758 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
17759 OMP_CLAUSE_ORDER is seen.
17760 * omp-low.c (struct omp_context): Add order_concurrent member.
17761 (scan_sharing_clauses): Set ctx->order_concurrent if
17762 OMP_CLAUSE_ORDER is seen.
17763 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
17764 of simd order(concurrent). Diagnose constructs not allowed inside of
17765 for order(concurrent).
17766 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
17767 complaining about static double setjmp (double); or class static
17768 methods or non-global namespace setjmps.
17769 (omp_runtime_api_call): New function.
17770 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
17771 order(concurrent) loops.
17773 2019-07-12 Martin Sebor <msebor@redhat.com>
17775 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
17776 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
17777 * tree-vrp.c (vrp_prop::check_mem_ref): Use
17778 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
17780 2019-07-12 Jan Hubicka <jh@suse.cz>
17782 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
17783 (indirect_refs_may_alias_p): ... here.
17784 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
17785 mem refs in the access paths.
17787 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
17789 PR tree-optimization/89430
17790 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
17791 store elimination for local variable without address escape.
17793 2019-07-12 Jeff Law <law@redhat.com>
17795 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
17796 for the ".far" section.
17798 2019-07-12 Richard Biener <rguenther@suse.de>
17800 PR tree-optimization/91145
17801 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
17804 2019-07-12 Alexandre Oliva <oliva@adacore.com>
17806 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
17807 rather than this_state as the lowering context for the ELSE
17808 seq in a GIMPLE_EH_ELSE.
17810 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17812 * vector-builder.h (vector_builder::elt): Allow already-supplied
17813 elements to be read back before building is complete.
17815 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17817 PR rtl-optimization/91136
17818 * df-core.c (ACCESSING REFS): Fix typos in comment.
17819 * resource.c (mark_target_live_reg): Add artificial defs that occur at
17820 the beginning of the block to the initial set of live registers.
17822 2019-07-12 Richard Biener <rguenther@suse.de>
17824 * fold-const.h (get_array_ctor_element_at_index): Adjust.
17825 * fold-const.c (get_array_ctor_element_at_index): Add
17826 ctor_idx output parameter informing the caller where in
17827 the constructor the element was (not) found. Add early exit
17828 for when the ctor is sorted.
17829 * gimple-fold.c (fold_array_ctor_reference): Support constant
17830 folding across multiple array elements.
17832 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17834 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
17835 doesn't have location, set the current location to the function's end.
17837 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17839 * config/aarch64/aarch64.md (*compare_condjump<mode>)
17840 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
17841 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
17842 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
17843 * config/aarch64/aarch64-simd.md
17844 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
17845 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
17846 * config/aarch64/aarch64-sve.md
17847 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
17848 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
17850 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17852 * doc/md.texi: Document that @ patterns can have different
17853 numbers of operands.
17854 * genemit.c (handle_overloaded_gen): Handle this case.
17855 * genopinit.c (handle_overloaded_gen): Likewise.
17856 * gensupport.c (replace_operands_with_dups): Iterate over
17857 the new rtx's format rather than the old one's.
17859 2019-07-12 Jakub Jelinek <jakub@redhat.com>
17861 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
17862 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17863 order clause entries.
17864 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
17865 * tree-pretty-print.c (dump_omp_clause): Likewise.
17866 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17868 * omp-low.c (scan_sharing_clauses): Likewise.
17869 * tree-nested.c (convert_nonlocal_omp_clauses,
17870 convert_local_omp_clauses): Likewise.
17872 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
17874 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
17875 fallthrough target of current basic block isn't the placed
17878 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
17881 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
17882 (_mm512_storeu_epi64): Likewise.
17883 (_mm512_loadu_epi32): Likewise.
17884 (_mm512_storeu_epi32): Likewise.
17885 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
17886 (_mm_storeu_epi64): Likewise.
17887 (_mm256_storeu_epi32): Likewise.
17888 (_mm_storeu_epi32): Likewise.
17890 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17892 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
17894 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17896 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
17899 2019-07-11 Jakub Jelinek <jakub@redhat.com>
17902 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
17903 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17904 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
17905 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
17906 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
17907 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
17909 (ufix_truncv2dfv2si2<mask_name>): Change into ...
17910 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
17911 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
17913 (sse2_cvttpd2dq<mask_name>): Change into ...
17914 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
17915 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
17916 (*sse2_cvtpd2dq<mask_name>): Change into ...
17917 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17918 Add "C" constraint to const0_operand.
17919 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
17920 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
17924 * config/i386/i386-builtin-types.def
17925 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
17926 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
17927 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
17928 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
17929 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
17930 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
17931 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
17932 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
17933 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
17934 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
17935 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
17936 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
17937 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
17938 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
17939 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
17940 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
17941 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
17942 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
17943 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
17944 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
17945 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
17946 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
17947 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
17948 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
17949 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
17950 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
17951 __builtin_ia32_vpdpbusd_v4si_maskz,
17952 __builtin_ia32_vpdpbusds_v16si_mask,
17953 __builtin_ia32_vpdpbusds_v16si_maskz,
17954 __builtin_ia32_vpdpbusds_v8si_mask,
17955 __builtin_ia32_vpdpbusds_v8si_maskz,
17956 __builtin_ia32_vpdpbusds_v4si_mask,
17957 __builtin_ia32_vpdpbusds_v4si_maskz,
17958 __builtin_ia32_vpdpwssd_v16si_mask,
17959 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
17960 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
17961 __builtin_ia32_vpdpwssd_v4si_maskz,
17962 __builtin_ia32_vpdpwssds_v16si_mask,
17963 __builtin_ia32_vpdpwssds_v16si_maskz,
17964 __builtin_ia32_vpdpwssds_v8si_mask,
17965 __builtin_ia32_vpdpwssds_v8si_maskz,
17966 __builtin_ia32_vpdpwssds_v4si_mask,
17967 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
17968 suffixed types rather than *_INT.
17969 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
17970 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
17971 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
17972 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
17973 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
17974 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
17976 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
17978 * tree-vrp.c (intersect_ranges): If we know the intersection is
17979 empty, there is no need to conservatively add anything else to
17982 2019-07-11 Richard Biener <rguenther@suse.de>
17984 PR middle-end/91131
17985 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
17986 when the object is volatile and we have not cleared it even though
17987 there are no nonzero elements.
17989 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
17991 * config/rs6000/predicates.md (cint34_operand): Update
17992 SIGNED_34BIT_OFFSET_P call.
17993 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
17994 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
17995 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
17996 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
17997 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
17999 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
18000 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
18001 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
18002 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
18003 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
18005 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
18007 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
18008 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
18009 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
18010 (DEF_MIN_OSX_VERSION): New.
18012 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18014 * fold-const.c (fold_relational_const): Fix folding of
18015 vector-to-scalar NE_EXPRs.
18016 (test_vector_folding): Add more tests.
18018 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18021 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
18022 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
18023 (vec_setv2di_internal): Reexpress as...
18024 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
18025 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
18026 rather than gen_neon_vset_lane<mode>.
18028 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
18031 * lra-constraints.c (process_alt_operands): Don't match user
18032 defined regs only if they are early clobbers.
18034 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
18036 * wide-int.h (wi::lshift): Reject negative values for the fast path.
18038 2019-07-10 Richard Biener <rguenther@suse.de>
18040 PR tree-optimization/91126
18041 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
18042 native encoding offset for BYTES_BIG_ENDIAN.
18043 (vn_reference_lookup_3): Likewise.
18045 2019-07-10 Richard Biener <rguenther@suse.de>
18047 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
18048 LHS whenever possible.
18050 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
18052 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
18053 from ...; work also on duplicated types.
18054 (nonoverlapping_component_refs_since_match): ... here
18055 (ncr_type_uid): Break out from ...
18056 (ncr_compar): ... here; look for TYPE_UID of canonical type if
18058 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
18059 the types and nonoverlapping_component_refs_p_1 to disambiguate.
18061 2019-07-09 Martin Sebor <msebor@redhat.com>
18063 PR tree-optimization/90989
18064 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
18065 optimization to just single character stores.
18067 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
18069 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
18070 Swap operands only once.
18072 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18074 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
18075 for both call instructions.
18077 2019-07-09 John Darrington <john@darrington.wattle.id.au>
18079 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
18080 rather than GET_MODE_BITSIZE to better handle partial integer modes.
18082 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
18084 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
18085 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
18086 function from rs6000-logue.c back to rs6000.c.
18087 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
18089 2019-07-09 Martin Sebor <msebor@redhat.com>
18092 * auto-profile.c: Change class-key of PODs to struct and others
18094 * basic-block.h: Same.
18095 * bitmap.c (bitmap_alloc): Same.
18097 * builtins.c (expand_builtin_prefetch): Same.
18098 (expand_builtin_interclass_mathfn): Same.
18099 (expand_builtin_strlen): Same.
18100 (expand_builtin_mempcpy_args): Same.
18101 (expand_cmpstr): Same.
18102 (expand_builtin___clear_cache): Same.
18103 (expand_ifn_atomic_bit_test_and): Same.
18104 (expand_builtin_thread_pointer): Same.
18105 (expand_builtin_set_thread_pointer): Same.
18106 * caller-save.c (setup_save_areas): Same.
18107 (replace_reg_with_saved_mem): Same.
18108 (insert_restore): Same.
18109 (insert_save): Same.
18110 (add_used_regs): Same.
18111 * cfg.c (get_bb_copy): Same.
18112 (set_loop_copy): Same.
18115 * cfgexpand.c (alloc_stack_frame_space): Same.
18116 (add_stack_var): Same.
18117 (add_stack_var_conflict): Same.
18118 (add_scope_conflicts_1): Same.
18119 (update_alias_info_with_stack_vars): Same.
18120 (expand_used_vars): Same.
18121 * cfghooks.c (redirect_edge_and_branch_force): Same.
18122 (delete_basic_block): Same.
18123 (split_edge): Same.
18124 (make_forwarder_block): Same.
18125 (force_nonfallthru): Same.
18126 (duplicate_block): Same.
18127 (lv_flush_pending_stmts): Same.
18128 * cfghooks.h: Same.
18129 * cfgloop.c (flow_loops_cfg_dump): Same.
18130 (flow_loop_nested_p): Same.
18131 (superloop_at_depth): Same.
18132 (get_loop_latch_edges): Same.
18133 (flow_loop_dump): Same.
18134 (flow_loops_dump): Same.
18135 (flow_loops_free): Same.
18136 (flow_loop_nodes_find): Same.
18137 (establish_preds): Same.
18138 (flow_loop_tree_node_add): Same.
18139 (flow_loop_tree_node_remove): Same.
18140 (flow_loops_find): Same.
18141 (find_subloop_latch_edge_by_profile): Same.
18142 (find_subloop_latch_edge_by_ivs): Same.
18143 (mfb_redirect_edges_in_set): Same.
18144 (form_subloop): Same.
18145 (merge_latch_edges): Same.
18146 (disambiguate_multiple_latches): Same.
18147 (disambiguate_loops_with_multiple_latches): Same.
18148 (flow_bb_inside_loop_p): Same.
18149 (glb_enum_p): Same.
18150 (get_loop_body_with_size): Same.
18151 (get_loop_body): Same.
18152 (fill_sons_in_loop): Same.
18153 (get_loop_body_in_dom_order): Same.
18154 (get_loop_body_in_custom_order): Same.
18155 (release_recorded_exits): Same.
18156 (get_loop_exit_edges): Same.
18157 (num_loop_branches): Same.
18158 (remove_bb_from_loops): Same.
18159 (find_common_loop): Same.
18160 (delete_loop): Same.
18161 (cancel_loop): Same.
18162 (verify_loop_structure): Same.
18163 (loop_preheader_edge): Same.
18164 (loop_exit_edge_p): Same.
18165 (single_exit): Same.
18166 (loop_exits_to_bb_p): Same.
18167 (loop_exits_from_bb_p): Same.
18168 (get_loop_location): Same.
18169 (record_niter_bound): Same.
18170 (get_estimated_loop_iterations_int): Same.
18171 (max_stmt_executions_int): Same.
18172 (likely_max_stmt_executions_int): Same.
18173 (get_estimated_loop_iterations): Same.
18174 (get_max_loop_iterations): Same.
18175 (get_max_loop_iterations_int): Same.
18176 (get_likely_max_loop_iterations): Same.
18177 * cfgloop.h (simple_loop_desc): Same.
18179 (loop_depth): Same.
18180 (loop_outer): Same.
18181 (loop_iterator::next): Same.
18182 (loop_outermost): Same.
18183 * cfgloopanal.c (mark_irreducible_loops): Same.
18184 (num_loop_insns): Same.
18185 (average_num_loop_insns): Same.
18186 (expected_loop_iterations_unbounded): Same.
18187 (expected_loop_iterations): Same.
18188 (mark_loop_exit_edges): Same.
18189 (single_likely_exit): Same.
18190 * cfgloopmanip.c (fix_bb_placement): Same.
18191 (fix_bb_placements): Same.
18192 (remove_path): Same.
18193 (place_new_loop): Same.
18195 (scale_loop_frequencies): Same.
18196 (scale_loop_profile): Same.
18197 (create_empty_if_region_on_edge): Same.
18198 (create_empty_loop_on_edge): Same.
18201 (fix_loop_placements): Same.
18202 (copy_loop_info): Same.
18203 (duplicate_loop): Same.
18204 (duplicate_subloops): Same.
18205 (loop_redirect_edge): Same.
18206 (can_duplicate_loop_p): Same.
18207 (duplicate_loop_to_header_edge): Same.
18208 (mfb_keep_just): Same.
18209 (has_preds_from_loop): Same.
18210 (create_preheader): Same.
18211 (create_preheaders): Same.
18212 (lv_adjust_loop_entry_edge): Same.
18213 (loop_version): Same.
18214 * cfgloopmanip.h: Same.
18216 * cgraphbuild.c: Same.
18217 * combine.c (make_extraction): Same.
18218 * config/i386/i386-features.c: Same.
18219 * config/i386/i386-features.h: Same.
18220 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
18221 (ix86_emit_outlined_ms2sysv_restore): Same.
18222 (ix86_noce_conversion_profitable_p): Same.
18223 (ix86_init_cost): Same.
18224 (ix86_simd_clone_usable): Same.
18225 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
18227 * coretypes.h: Same.
18228 * data-streamer-in.c (string_for_index): Change class-key of PODs
18229 to struct and others to class.
18230 (streamer_read_indexed_string): Same.
18231 (streamer_read_string): Same.
18232 (bp_unpack_indexed_string): Same.
18233 (bp_unpack_string): Same.
18234 (streamer_read_uhwi): Same.
18235 (streamer_read_hwi): Same.
18236 (streamer_read_gcov_count): Same.
18237 (streamer_read_wide_int): Same.
18238 * data-streamer.h (streamer_write_bitpack): Same.
18239 (bp_unpack_value): Same.
18240 (streamer_write_char_stream): Same.
18241 (streamer_write_hwi_in_range): Same.
18242 (streamer_write_record_start): Same.
18243 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
18244 (add_cross_iteration_register_deps): Same.
18245 (build_intra_loop_deps): Same.
18246 * df-core.c (df_analyze): Same.
18247 (loop_post_order_compute): Same.
18248 (loop_inverted_post_order_compute): Same.
18249 * df-problems.c (df_rd_alloc): Same.
18250 (df_rd_simulate_one_insn): Same.
18251 (df_rd_local_compute): Same.
18252 (df_rd_init_solution): Same.
18253 (df_rd_confluence_n): Same.
18254 (df_rd_transfer_function): Same.
18255 (df_rd_free): Same.
18256 (df_rd_dump_defs_set): Same.
18257 (df_rd_top_dump): Same.
18258 (df_lr_alloc): Same.
18259 (df_lr_reset): Same.
18260 (df_lr_local_compute): Same.
18261 (df_lr_init): Same.
18262 (df_lr_confluence_n): Same.
18263 (df_lr_free): Same.
18264 (df_lr_top_dump): Same.
18265 (df_lr_verify_transfer_functions): Same.
18266 (df_live_alloc): Same.
18267 (df_live_reset): Same.
18268 (df_live_init): Same.
18269 (df_live_confluence_n): Same.
18270 (df_live_finalize): Same.
18271 (df_live_free): Same.
18272 (df_live_top_dump): Same.
18273 (df_live_verify_transfer_functions): Same.
18274 (df_mir_alloc): Same.
18275 (df_mir_reset): Same.
18276 (df_mir_init): Same.
18277 (df_mir_confluence_n): Same.
18278 (df_mir_free): Same.
18279 (df_mir_top_dump): Same.
18280 (df_word_lr_alloc): Same.
18281 (df_word_lr_reset): Same.
18282 (df_word_lr_init): Same.
18283 (df_word_lr_confluence_n): Same.
18284 (df_word_lr_free): Same.
18285 (df_word_lr_top_dump): Same.
18286 (df_md_alloc): Same.
18287 (df_md_simulate_one_insn): Same.
18288 (df_md_reset): Same.
18289 (df_md_init): Same.
18290 (df_md_free): Same.
18291 (df_md_top_dump): Same.
18292 * df-scan.c (df_insn_delete): Same.
18293 (df_insn_rescan): Same.
18294 (df_notes_rescan): Same.
18295 (df_sort_and_compress_mws): Same.
18296 (df_install_mws): Same.
18297 (df_refs_add_to_chains): Same.
18298 (df_ref_create_structure): Same.
18299 (df_ref_record): Same.
18300 (df_def_record_1): Same.
18301 (df_find_hard_reg_defs): Same.
18302 (df_uses_record): Same.
18303 (df_get_conditional_uses): Same.
18304 (df_get_call_refs): Same.
18305 (df_recompute_luids): Same.
18306 (df_get_entry_block_def_set): Same.
18307 (df_entry_block_defs_collect): Same.
18308 (df_get_exit_block_use_set): Same.
18309 (df_exit_block_uses_collect): Same.
18310 (df_mws_verify): Same.
18311 (df_bb_verify): Same.
18312 * df.h (df_scan_get_bb_info): Same.
18313 * doc/tm.texi: Same.
18314 * dse.c (record_store): Same.
18315 * dumpfile.h: Same.
18316 * emit-rtl.c (const_fixed_hasher::equal): Same.
18317 (set_mem_attributes_minus_bitpos): Same.
18318 (change_address): Same.
18319 (adjust_address_1): Same.
18320 (offset_address): Same.
18321 * emit-rtl.h: Same.
18322 * except.c (dw2_build_landing_pads): Same.
18323 (sjlj_emit_dispatch_table): Same.
18324 * explow.c (allocate_dynamic_stack_space): Same.
18325 (emit_stack_probe): Same.
18326 (probe_stack_range): Same.
18327 * expmed.c (store_bit_field_using_insv): Same.
18328 (store_bit_field_1): Same.
18329 (store_integral_bit_field): Same.
18330 (extract_bit_field_using_extv): Same.
18331 (extract_bit_field_1): Same.
18332 (emit_cstore): Same.
18333 * expr.c (emit_block_move_via_cpymem): Same.
18334 (expand_cmpstrn_or_cmpmem): Same.
18335 (set_storage_via_setmem): Same.
18336 (emit_single_push_insn_1): Same.
18337 (expand_assignment): Same.
18338 (store_constructor): Same.
18339 (expand_expr_real_2): Same.
18340 (expand_expr_real_1): Same.
18341 (try_casesi): Same.
18343 * function.c (try_fit_stack_local): Same.
18344 (assign_stack_local_1): Same.
18345 (assign_stack_local): Same.
18346 (cut_slot_from_list): Same.
18347 (insert_slot_to_list): Same.
18348 (max_slot_level): Same.
18349 (move_slot_to_level): Same.
18350 (temp_address_hasher::equal): Same.
18351 (remove_unused_temp_slot_addresses): Same.
18352 (assign_temp): Same.
18353 (combine_temp_slots): Same.
18354 (update_temp_slot_address): Same.
18355 (preserve_temp_slots): Same.
18356 * function.h: Same.
18358 * gcc-rich-location.h: Same.
18360 * genattrtab.c (check_attr_test): Same.
18361 (check_attr_value): Same.
18362 (convert_set_attr_alternative): Same.
18363 (convert_set_attr): Same.
18364 (check_defs): Same.
18365 (copy_boolean): Same.
18366 (get_attr_value): Same.
18367 (expand_delays): Same.
18368 (make_length_attrs): Same.
18370 (make_alternative_compare): Same.
18371 (simplify_test_exp): Same.
18372 (tests_attr_p): Same.
18373 (get_attr_order): Same.
18374 (clear_struct_flag): Same.
18376 (compares_alternatives_p): Same.
18379 (find_attrs_to_cache): Same.
18380 (write_test_expr): Same.
18381 (walk_attr_value): Same.
18382 (write_attr_get): Same.
18383 (eliminate_known_true): Same.
18384 (write_insn_cases): Same.
18385 (write_attr_case): Same.
18386 (write_attr_valueq): Same.
18387 (write_attr_value): Same.
18388 (write_dummy_eligible_delay): Same.
18389 (next_comma_elt): Same.
18391 (make_internal_attr): Same.
18392 (copy_rtx_unchanging): Same.
18393 (gen_insn_reserv): Same.
18394 (check_tune_attr): Same.
18395 (make_automaton_attrs): Same.
18396 (handle_arg): Same.
18397 * genextract.c (gen_insn): Same.
18398 (VEC_char_to_string): Same.
18399 * genmatch.c (print_operand): Same.
18401 (parser::parse_operation): Same.
18402 (parser::parse_capture): Same.
18403 (parser::parse_c_expr): Same.
18404 (parser::parse_simplify): Same.
18406 * genoutput.c (output_operand_data): Same.
18407 (output_get_insn_name): Same.
18408 (compare_operands): Same.
18409 (place_operands): Same.
18410 (process_template): Same.
18411 (validate_insn_alternatives): Same.
18412 (validate_insn_operands): Same.
18413 (gen_expand): Same.
18414 (note_constraint): Same.
18415 * genpreds.c (write_one_predicate_function): Same.
18416 (add_constraint): Same.
18417 (process_define_register_constraint): Same.
18418 (write_lookup_constraint_1): Same.
18419 (write_lookup_constraint_array): Same.
18420 (write_insn_constraint_len): Same.
18421 (write_reg_class_for_constraint_1): Same.
18422 (write_constraint_satisfied_p_array): Same.
18423 * genrecog.c (optimize_subroutine_group): Same.
18424 * gensupport.c (process_define_predicate): Same.
18425 (queue_pattern): Same.
18426 (remove_from_queue): Same.
18427 (process_rtx): Same.
18428 (is_predicable): Same.
18429 (change_subst_attribute): Same.
18430 (subst_pattern_match): Same.
18431 (alter_constraints): Same.
18432 (alter_attrs_for_insn): Same.
18433 (shift_output_template): Same.
18434 (alter_output_for_subst_insn): Same.
18435 (process_one_cond_exec): Same.
18437 (process_define_cond_exec): Same.
18438 (mnemonic_htab_callback): Same.
18439 (gen_mnemonic_attr): Same.
18440 (read_md_rtx): Same.
18441 * ggc-page.c: Same.
18442 * gimple-loop-interchange.cc (dump_reduction): Same.
18443 (dump_induction): Same.
18444 (loop_cand::~loop_cand): Same.
18445 (free_data_refs_with_aux): Same.
18446 (tree_loop_interchange::interchange_loops): Same.
18447 (tree_loop_interchange::map_inductions_to_loop): Same.
18448 (tree_loop_interchange::move_code_to_inner_loop): Same.
18449 (compute_access_stride): Same.
18450 (compute_access_strides): Same.
18451 (proper_loop_form_for_interchange): Same.
18452 (tree_loop_interchange_compute_ddrs): Same.
18453 (prune_datarefs_not_in_loop): Same.
18454 (prepare_data_references): Same.
18455 (pass_linterchange::execute): Same.
18456 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
18457 (unroll_jam_possible_p): Same.
18458 (fuse_loops): Same.
18459 (adjust_unroll_factor): Same.
18460 (tree_loop_unroll_and_jam): Same.
18461 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
18462 (loop_versioning::expensive_stmt_p): Same.
18463 (loop_versioning::version_for_unity): Same.
18464 (loop_versioning::dump_inner_likelihood): Same.
18465 (loop_versioning::find_per_loop_multiplication): Same.
18466 (loop_versioning::analyze_term_using_scevs): Same.
18467 (loop_versioning::record_address_fragment): Same.
18468 (loop_versioning::analyze_expr): Same.
18469 (loop_versioning::analyze_blocks): Same.
18470 (loop_versioning::prune_conditions): Same.
18471 (loop_versioning::merge_loop_info): Same.
18472 (loop_versioning::add_loop_to_queue): Same.
18473 (loop_versioning::decide_whether_loop_is_versionable): Same.
18474 (loop_versioning::make_versioning_decisions): Same.
18475 (loop_versioning::implement_versioning_decisions): Same.
18476 * gimple-ssa-evrp-analyze.c
18477 (evrp_range_analyzer::record_ranges_from_phis): Same.
18478 * gimple-ssa-store-merging.c (split_store::split_store): Same.
18479 (count_multiple_uses): Same.
18480 (split_group): Same.
18481 (imm_store_chain_info::output_merged_store): Same.
18482 (pass_store_merging::process_store): Same.
18483 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
18484 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
18486 (alloca_call_type): Same.
18487 (pass_walloca::execute): Same.
18488 * gimple-streamer-in.c (input_phi): Same.
18489 (input_gimple_stmt): Same.
18490 * gimple-streamer.h: Same.
18491 * godump.c (go_force_record_alignment): Same.
18492 (go_format_type): Same.
18493 (go_output_type): Same.
18494 (go_output_fndecl): Same.
18495 (go_output_typedef): Same.
18496 (keyword_hash_init): Same.
18497 (find_dummy_types): Same.
18498 * graph.c (draw_cfg_nodes_no_loops): Same.
18499 (draw_cfg_nodes_for_loop): Same.
18500 * hard-reg-set.h (hard_reg_set_iter_next): Same.
18501 * hsa-brig.c: Same.
18502 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
18503 * hsa-dump.c (dump_hsa_cfun): Same.
18504 * hsa-gen.c (gen_function_def_parameters): Same.
18505 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
18506 * input.c (dump_line_table_statistics): Same.
18507 (test_lexer): Same.
18509 * internal-fn.c (get_multi_vector_move): Same.
18510 (expand_load_lanes_optab_fn): Same.
18511 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
18512 (expand_GOMP_SIMT_EXIT): Same.
18513 (expand_GOMP_SIMT_LAST_LANE): Same.
18514 (expand_GOMP_SIMT_ORDERED_PRED): Same.
18515 (expand_GOMP_SIMT_VOTE_ANY): Same.
18516 (expand_GOMP_SIMT_XCHG_BFLY): Same.
18517 (expand_GOMP_SIMT_XCHG_IDX): Same.
18518 (expand_addsub_overflow): Same.
18519 (expand_neg_overflow): Same.
18520 (expand_mul_overflow): Same.
18521 (expand_call_mem_ref): Same.
18522 (expand_mask_load_optab_fn): Same.
18523 (expand_scatter_store_optab_fn): Same.
18524 (expand_gather_load_optab_fn): Same.
18525 * ipa-cp.c (ipa_get_parm_lattices): Same.
18526 (print_all_lattices): Same.
18527 (ignore_edge_p): Same.
18528 (build_toporder_info): Same.
18529 (free_toporder_info): Same.
18530 (push_node_to_stack): Same.
18531 (ipcp_lattice<valtype>::set_contains_variable): Same.
18532 (set_agg_lats_to_bottom): Same.
18533 (ipcp_bits_lattice::meet_with): Same.
18534 (set_single_call_flag): Same.
18535 (initialize_node_lattices): Same.
18536 (ipa_get_jf_ancestor_result): Same.
18537 (ipcp_verify_propagated_values): Same.
18538 (propagate_scalar_across_jump_function): Same.
18539 (propagate_context_across_jump_function): Same.
18540 (propagate_bits_across_jump_function): Same.
18541 (ipa_vr_operation_and_type_effects): Same.
18542 (propagate_vr_across_jump_function): Same.
18543 (set_check_aggs_by_ref): Same.
18544 (set_chain_of_aglats_contains_variable): Same.
18545 (merge_aggregate_lattices): Same.
18546 (agg_pass_through_permissible_p): Same.
18547 (propagate_aggs_across_jump_function): Same.
18548 (call_passes_through_thunk_p): Same.
18549 (propagate_constants_across_call): Same.
18550 (devirtualization_time_bonus): Same.
18551 (good_cloning_opportunity_p): Same.
18552 (context_independent_aggregate_values): Same.
18553 (gather_context_independent_values): Same.
18554 (perform_estimation_of_a_value): Same.
18555 (estimate_local_effects): Same.
18556 (value_topo_info<valtype>::add_val): Same.
18557 (add_all_node_vals_to_toposort): Same.
18558 (value_topo_info<valtype>::propagate_effects): Same.
18559 (ipcp_propagate_stage): Same.
18560 (ipcp_discover_new_direct_edges): Same.
18561 (same_node_or_its_all_contexts_clone_p): Same.
18562 (cgraph_edge_brings_value_p): Same.
18563 (gather_edges_for_value): Same.
18564 (create_specialized_node): Same.
18565 (find_more_scalar_values_for_callers_subset): Same.
18566 (find_more_contexts_for_caller_subset): Same.
18567 (copy_plats_to_inter): Same.
18568 (intersect_aggregates_with_edge): Same.
18569 (find_aggregate_values_for_callers_subset): Same.
18570 (cgraph_edge_brings_all_agg_vals_for_node): Same.
18571 (decide_about_value): Same.
18572 (decide_whether_version_node): Same.
18573 (spread_undeadness): Same.
18574 (identify_dead_nodes): Same.
18575 (ipcp_store_vr_results): Same.
18576 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
18577 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
18578 (redirect_to_unreachable): Same.
18579 (edge_set_predicate): Same.
18580 (evaluate_conditions_for_known_args): Same.
18581 (evaluate_properties_for_edge): Same.
18582 (ipa_fn_summary_t::duplicate): Same.
18583 (ipa_call_summary_t::duplicate): Same.
18584 (dump_ipa_call_summary): Same.
18585 (ipa_dump_fn_summary): Same.
18586 (eliminated_by_inlining_prob): Same.
18587 (set_cond_stmt_execution_predicate): Same.
18588 (set_switch_stmt_execution_predicate): Same.
18589 (compute_bb_predicates): Same.
18590 (will_be_nonconstant_expr_predicate): Same.
18591 (phi_result_unknown_predicate): Same.
18592 (analyze_function_body): Same.
18593 (compute_fn_summary): Same.
18594 (estimate_edge_devirt_benefit): Same.
18595 (estimate_edge_size_and_time): Same.
18596 (estimate_calls_size_and_time): Same.
18597 (estimate_node_size_and_time): Same.
18598 (remap_edge_change_prob): Same.
18599 (remap_edge_summaries): Same.
18600 (ipa_merge_fn_summary_after_inlining): Same.
18601 (ipa_fn_summary_generate): Same.
18602 (inline_read_section): Same.
18603 (ipa_fn_summary_read): Same.
18604 (ipa_fn_summary_write): Same.
18605 * ipa-fnsummary.h: Same.
18606 * ipa-hsa.c (ipa_hsa_read_section): Same.
18607 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
18608 * ipa-icf.c (sem_function::param_used_p): Same.
18609 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
18610 * ipa-inline.c (edge_badness): Same.
18611 (inline_small_functions): Same.
18612 * ipa-polymorphic-call.c
18613 (ipa_polymorphic_call_context::stream_out): Same.
18614 * ipa-predicate.c (predicate::remap_after_duplication): Same.
18615 (predicate::remap_after_inlining): Same.
18616 (predicate::stream_out): Same.
18617 * ipa-predicate.h: Same.
18618 * ipa-profile.c (ipa_profile_read_summary): Same.
18619 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
18620 (count_formal_params): Same.
18621 (ipa_dump_param): Same.
18622 (ipa_alloc_node_params): Same.
18623 (ipa_print_node_jump_functions_for_edge): Same.
18624 (ipa_print_node_jump_functions): Same.
18625 (ipa_load_from_parm_agg): Same.
18626 (get_ancestor_addr_info): Same.
18627 (ipa_compute_jump_functions_for_edge): Same.
18628 (ipa_analyze_virtual_call_uses): Same.
18629 (ipa_analyze_stmt_uses): Same.
18630 (ipa_analyze_params_uses_in_bb): Same.
18631 (update_jump_functions_after_inlining): Same.
18632 (try_decrement_rdesc_refcount): Same.
18633 (ipa_impossible_devirt_target): Same.
18634 (update_indirect_edges_after_inlining): Same.
18635 (combine_controlled_uses_counters): Same.
18636 (ipa_edge_args_sum_t::duplicate): Same.
18637 (ipa_write_jump_function): Same.
18638 (ipa_write_indirect_edge_info): Same.
18639 (ipa_write_node_info): Same.
18640 (ipa_read_edge_info): Same.
18641 (ipa_prop_read_section): Same.
18642 (read_replacements_section): Same.
18643 * ipa-prop.h (ipa_get_param_count): Same.
18644 (ipa_get_param): Same.
18645 (ipa_get_type): Same.
18646 (ipa_get_param_move_cost): Same.
18647 (ipa_set_param_used): Same.
18648 (ipa_get_controlled_uses): Same.
18649 (ipa_set_controlled_uses): Same.
18650 (ipa_get_cs_argument_count): Same.
18651 * ipa-pure-const.c (analyze_function): Same.
18652 (pure_const_read_summary): Same.
18654 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
18655 * ipa-split.c (test_nonssa_use): Same.
18656 (dump_split_point): Same.
18657 (dominated_by_forbidden): Same.
18658 (split_part_set_ssa_name_p): Same.
18659 (find_split_points): Same.
18660 * ira-build.c (finish_loop_tree_nodes): Same.
18661 (low_pressure_loop_node_p): Same.
18662 * ira-color.c (ira_reuse_stack_slot): Same.
18664 * ira.c (setup_reg_equiv): Same.
18665 (print_insn_chain): Same.
18667 * loop-doloop.c (doloop_condition_get): Same.
18669 (record_reg_sets): Same.
18670 (doloop_optimize): Same.
18671 * loop-init.c (loop_optimizer_init): Same.
18672 (fix_loop_structure): Same.
18673 * loop-invariant.c (merge_identical_invariants): Same.
18674 (compute_always_reached): Same.
18675 (find_exits): Same.
18676 (may_assign_reg_p): Same.
18677 (find_invariants_bb): Same.
18678 (find_invariants_body): Same.
18679 (replace_uses): Same.
18680 (can_move_invariant_reg): Same.
18681 (free_inv_motion_data): Same.
18682 (move_single_loop_invariants): Same.
18683 (change_pressure): Same.
18684 (mark_ref_regs): Same.
18685 (calculate_loop_reg_pressure): Same.
18686 * loop-iv.c (biv_entry_hasher::equal): Same.
18687 (iv_extend_to_rtx_code): Same.
18688 (check_iv_ref_table_size): Same.
18689 (clear_iv_info): Same.
18690 (latch_dominating_def): Same.
18691 (iv_get_reaching_def): Same.
18692 (iv_constant): Same.
18698 (get_biv_step): Same.
18700 (analyzed_for_bivness_p): Same.
18701 (record_biv): Same.
18702 (iv_analyze_biv): Same.
18703 (iv_analyze_expr): Same.
18704 (iv_analyze_def): Same.
18705 (iv_analyze_op): Same.
18706 (iv_analyze): Same.
18707 (iv_analyze_result): Same.
18709 (eliminate_implied_conditions): Same.
18710 (simplify_using_initial_values): Same.
18711 (shorten_into_mode): Same.
18712 (canonicalize_iv_subregs): Same.
18713 (determine_max_iter): Same.
18714 (check_simple_exit): Same.
18715 (find_simple_exit): Same.
18716 (get_simple_loop_desc): Same.
18717 * loop-unroll.c (report_unroll): Same.
18718 (decide_unrolling): Same.
18719 (unroll_loops): Same.
18720 (loop_exit_at_end_p): Same.
18721 (decide_unroll_constant_iterations): Same.
18722 (unroll_loop_constant_iterations): Same.
18723 (compare_and_jump_seq): Same.
18724 (unroll_loop_runtime_iterations): Same.
18725 (decide_unroll_stupid): Same.
18726 (unroll_loop_stupid): Same.
18727 (referenced_in_one_insn_in_loop_p): Same.
18728 (reset_debug_uses_in_loop): Same.
18729 (analyze_iv_to_split_insn): Same.
18730 * lra-eliminations.c (lra_debug_elim_table): Same.
18731 (setup_can_eliminate): Same.
18733 (lra_get_elimination_hard_regno): Same.
18734 (lra_eliminate_regs_1): Same.
18735 (eliminate_regs_in_insn): Same.
18736 (update_reg_eliminate): Same.
18737 (init_elimination): Same.
18738 (lra_eliminate): Same.
18740 * lra-lives.c (initiate_live_solver): Same.
18741 * lra-remat.c (create_remat_bb_data): Same.
18742 * lra-spills.c (lra_spill): Same.
18743 * lra.c (lra_set_insn_recog_data): Same.
18744 (lra_set_used_insn_alternative_by_uid): Same.
18745 (init_reg_info): Same.
18746 (expand_reg_info): Same.
18747 * lto-cgraph.c (output_symtab): Same.
18748 (read_identifier): Same.
18749 (get_alias_symbol): Same.
18750 (input_node): Same.
18751 (input_varpool_node): Same.
18753 (input_edge): Same.
18754 (input_cgraph_1): Same.
18755 (input_refs): Same.
18756 (input_symtab): Same.
18757 (input_offload_tables): Same.
18758 (output_cgraph_opt_summary): Same.
18759 (input_edge_opt_summary): Same.
18760 (input_cgraph_opt_section): Same.
18761 * lto-section-in.c (lto_free_raw_section_data): Same.
18762 (lto_create_simple_input_block): Same.
18763 (lto_free_function_in_decl_state_for_node): Same.
18764 * lto-streamer-in.c (lto_tag_check_set): Same.
18765 (lto_location_cache::revert_location_cache): Same.
18766 (lto_location_cache::input_location): Same.
18767 (lto_input_location): Same.
18768 (stream_input_location_now): Same.
18769 (lto_input_tree_ref): Same.
18770 (lto_input_eh_catch_list): Same.
18771 (input_eh_region): Same.
18772 (lto_init_eh): Same.
18773 (make_new_block): Same.
18775 (fixup_call_stmt_edges): Same.
18776 (input_struct_function_base): Same.
18777 (input_function): Same.
18778 (lto_read_body_or_constructor): Same.
18779 (lto_read_tree_1): Same.
18780 (lto_read_tree): Same.
18781 (lto_input_scc): Same.
18782 (lto_input_tree_1): Same.
18783 (lto_input_toplevel_asms): Same.
18784 (lto_input_mode_table): Same.
18785 (lto_reader_init): Same.
18786 (lto_data_in_create): Same.
18787 * lto-streamer-out.c (output_cfg): Same.
18788 * lto-streamer.h: Same.
18789 * modulo-sched.c (duplicate_insns_of_cycles): Same.
18790 (generate_prolog_epilog): Same.
18791 (mark_loop_unsched): Same.
18792 (dump_insn_location): Same.
18793 (loop_canon_p): Same.
18794 (sms_schedule): Same.
18795 * omp-expand.c (expand_omp_for_ordered_loops): Same.
18796 (expand_omp_for_generic): Same.
18797 (expand_omp_for_static_nochunk): Same.
18798 (expand_omp_for_static_chunk): Same.
18799 (expand_omp_simd): Same.
18800 (expand_omp_taskloop_for_inner): Same.
18801 (expand_oacc_for): Same.
18802 (expand_omp_atomic_pipeline): Same.
18803 (mark_loops_in_oacc_kernels_region): Same.
18804 * omp-offload.c (oacc_xform_loop): Same.
18805 * omp-simd-clone.c (simd_clone_adjust): Same.
18806 * optabs-query.c (get_traditional_extraction_insn): Same.
18807 * optabs.c (expand_vector_broadcast): Same.
18808 (expand_binop_directly): Same.
18809 (expand_twoval_unop): Same.
18810 (expand_twoval_binop): Same.
18811 (expand_unop_direct): Same.
18812 (emit_indirect_jump): Same.
18813 (emit_conditional_move): Same.
18814 (emit_conditional_neg_or_complement): Same.
18815 (emit_conditional_add): Same.
18816 (vector_compare_rtx): Same.
18817 (expand_vec_perm_1): Same.
18818 (expand_vec_perm_const): Same.
18819 (expand_vec_cond_expr): Same.
18820 (expand_vec_series_expr): Same.
18821 (maybe_emit_atomic_exchange): Same.
18822 (maybe_emit_sync_lock_test_and_set): Same.
18823 (expand_atomic_compare_and_swap): Same.
18824 (expand_atomic_load): Same.
18825 (expand_atomic_store): Same.
18826 (maybe_emit_op): Same.
18827 (valid_multiword_target_p): Same.
18828 (create_integer_operand): Same.
18829 (maybe_legitimize_operand_same_code): Same.
18830 (maybe_legitimize_operand): Same.
18831 (create_convert_operand_from_type): Same.
18832 (can_reuse_operands_p): Same.
18833 (maybe_legitimize_operands): Same.
18834 (maybe_gen_insn): Same.
18835 (maybe_expand_insn): Same.
18836 (maybe_expand_jump_insn): Same.
18837 (expand_insn): Same.
18838 * optabs.h (create_expand_operand): Same.
18839 (create_fixed_operand): Same.
18840 (create_output_operand): Same.
18841 (create_input_operand): Same.
18842 (create_convert_operand_to): Same.
18843 (create_convert_operand_from): Same.
18845 * poly-int.h: Same.
18846 * predict.c (optimize_insn_for_speed_p): Same.
18847 (optimize_loop_for_size_p): Same.
18848 (optimize_loop_for_speed_p): Same.
18849 (optimize_loop_nest_for_speed_p): Same.
18850 (get_base_value): Same.
18851 (predicted_by_loop_heuristics_p): Same.
18852 (predict_extra_loop_exits): Same.
18853 (predict_loops): Same.
18854 (predict_paths_for_bb): Same.
18855 (predict_paths_leading_to): Same.
18856 (propagate_freq): Same.
18857 (pass_profile::execute): Same.
18859 * profile-count.c (profile_count::differs_from_p): Same.
18860 (profile_probability::differs_lot_from_p): Same.
18861 * profile-count.h: Same.
18862 * profile.c (branch_prob): Same.
18863 * regrename.c (free_chain_data): Same.
18864 (mark_conflict): Same.
18865 (create_new_chain): Same.
18866 (merge_overlapping_regs): Same.
18867 (init_rename_info): Same.
18868 (merge_chains): Same.
18869 (regrename_analyze): Same.
18870 (regrename_do_replace): Same.
18871 (scan_rtx_reg): Same.
18872 (record_out_operands): Same.
18873 (build_def_use): Same.
18874 * regrename.h: Same.
18876 * reload1.c (init_reload): Same.
18877 (maybe_fix_stack_asms): Same.
18878 (copy_reloads): Same.
18879 (count_pseudo): Same.
18880 (count_spilled_pseudo): Same.
18882 (find_reload_regs): Same.
18883 (select_reload_regs): Same.
18884 (spill_hard_reg): Same.
18885 (fixup_eh_region_note): Same.
18886 (set_reload_reg): Same.
18887 (allocate_reload_reg): Same.
18888 (compute_reload_subreg_offset): Same.
18889 (reload_adjust_reg_for_icode): Same.
18890 (emit_input_reload_insns): Same.
18891 (emit_output_reload_insns): Same.
18892 (do_input_reload): Same.
18893 (inherit_piecemeal_p): Same.
18895 * sanopt.c (maybe_get_dominating_check): Same.
18896 (maybe_optimize_ubsan_ptr_ifn): Same.
18897 (can_remove_asan_check): Same.
18898 (maybe_optimize_asan_check_ifn): Same.
18899 (sanopt_optimize_walker): Same.
18900 * sched-deps.c (add_dependence_list): Same.
18901 (chain_to_prev_insn): Same.
18902 (add_insn_mem_dependence): Same.
18903 (create_insn_reg_set): Same.
18904 (maybe_extend_reg_info_p): Same.
18905 (sched_analyze_reg): Same.
18906 (sched_analyze_1): Same.
18907 (get_implicit_reg_pending_clobbers): Same.
18908 (chain_to_prev_insn_p): Same.
18909 (deps_analyze_insn): Same.
18910 (deps_start_bb): Same.
18911 (sched_free_deps): Same.
18913 (init_deps_reg_last): Same.
18915 * sched-ebb.c: Same.
18916 * sched-int.h: Same.
18917 * sched-rgn.c (add_branch_dependences): Same.
18918 (concat_insn_mem_list): Same.
18920 (sched_rgn_compute_dependencies): Same.
18921 * sel-sched-ir.c (reset_target_context): Same.
18922 (copy_deps_context): Same.
18923 (init_id_from_df): Same.
18924 (has_dependence_p): Same.
18925 (change_loops_latches): Same.
18926 (bb_top_order_comparator): Same.
18927 (make_region_from_loop_preheader): Same.
18928 (sel_init_pipelining): Same.
18929 (get_loop_nest_for_rgn): Same.
18930 (make_regions_from_the_rest): Same.
18931 (sel_is_loop_preheader_p): Same.
18932 * sel-sched-ir.h (inner_loop_header_p): Same.
18933 (get_all_loop_exits): Same.
18934 * selftest.h: Same.
18935 * sese.c (sese_build_liveouts): Same.
18936 (sese_insert_phis_for_liveouts): Same.
18937 * sese.h (defined_in_sese_p): Same.
18938 * sreal.c (sreal::stream_out): Same.
18940 * streamer-hooks.h: Same.
18941 * target-globals.c (save_target_globals): Same.
18942 * target-globals.h: Same.
18943 * target.def: Same.
18945 * targhooks.c (default_has_ifunc_p): Same.
18946 (default_empty_mask_is_expensive): Same.
18947 (default_init_cost): Same.
18948 * targhooks.h: Same.
18950 * tree-affine.c (aff_combination_mult): Same.
18951 (aff_combination_expand): Same.
18952 (aff_combination_constant_multiple_p): Same.
18953 * tree-affine.h: Same.
18954 * tree-cfg.c (build_gimple_cfg): Same.
18955 (replace_loop_annotate_in_block): Same.
18956 (replace_uses_by): Same.
18958 (dump_cfg_stats): Same.
18959 (gimple_duplicate_sese_region): Same.
18960 (gimple_duplicate_sese_tail): Same.
18961 (move_block_to_fn): Same.
18962 (replace_block_vars_by_duplicates): Same.
18963 (move_sese_region_to_fn): Same.
18964 (print_loops_bb): Same.
18965 (print_loop): Same.
18966 (print_loops): Same.
18968 (debug_loops): Same.
18969 * tree-cfg.h: Same.
18970 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
18971 (chrec_fold_multiply_poly_poly): Same.
18972 (chrec_evaluate): Same.
18973 (chrec_component_in_loop_num): Same.
18974 (reset_evolution_in_loop): Same.
18975 (is_multivariate_chrec): Same.
18976 (chrec_contains_symbols): Same.
18977 (nb_vars_in_chrec): Same.
18978 (chrec_convert_1): Same.
18979 (chrec_convert_aggressive): Same.
18980 * tree-chrec.h: Same.
18981 * tree-core.h: Same.
18982 * tree-data-ref.c (dump_data_dependence_relation): Same.
18983 (canonicalize_base_object_address): Same.
18984 (data_ref_compare_tree): Same.
18985 (prune_runtime_alias_test_list): Same.
18986 (get_segment_min_max): Same.
18987 (create_intersect_range_checks): Same.
18988 (conflict_fn_no_dependence): Same.
18989 (object_address_invariant_in_loop_p): Same.
18990 (analyze_ziv_subscript): Same.
18991 (analyze_siv_subscript_cst_affine): Same.
18992 (analyze_miv_subscript): Same.
18993 (analyze_overlapping_iterations): Same.
18994 (build_classic_dist_vector_1): Same.
18995 (add_other_self_distances): Same.
18996 (same_access_functions): Same.
18997 (build_classic_dir_vector): Same.
18998 (subscript_dependence_tester_1): Same.
18999 (subscript_dependence_tester): Same.
19000 (access_functions_are_affine_or_constant_p): Same.
19001 (get_references_in_stmt): Same.
19002 (loop_nest_has_data_refs): Same.
19003 (graphite_find_data_references_in_stmt): Same.
19004 (find_data_references_in_bb): Same.
19005 (get_base_for_alignment): Same.
19006 (find_loop_nest_1): Same.
19007 (find_loop_nest): Same.
19008 * tree-data-ref.h (dr_alignment): Same.
19009 (ddr_dependence_level): Same.
19010 * tree-if-conv.c (fold_build_cond_expr): Same.
19011 (add_to_predicate_list): Same.
19012 (add_to_dst_predicate_list): Same.
19013 (phi_convertible_by_degenerating_args): Same.
19014 (idx_within_array_bound): Same.
19015 (all_preds_critical_p): Same.
19016 (pred_blocks_visited_p): Same.
19017 (predicate_bbs): Same.
19018 (build_region): Same.
19019 (if_convertible_loop_p_1): Same.
19020 (is_cond_scalar_reduction): Same.
19021 (predicate_scalar_phi): Same.
19022 (remove_conditions_and_labels): Same.
19023 (combine_blocks): Same.
19024 (version_loop_for_if_conversion): Same.
19025 (versionable_outer_loop_p): Same.
19026 (ifcvt_local_dce): Same.
19027 (tree_if_conversion): Same.
19028 (pass_if_conversion::gate): Same.
19029 * tree-if-conv.h: Same.
19030 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
19031 * tree-loop-distribution.c (bb_top_order_cmp): Same.
19033 (stmt_has_scalar_dependences_outside_loop): Same.
19034 (copy_loop_before): Same.
19035 (create_bb_after_loop): Same.
19036 (const_with_all_bytes_same): Same.
19037 (generate_memset_builtin): Same.
19038 (generate_memcpy_builtin): Same.
19039 (destroy_loop): Same.
19040 (build_rdg_partition_for_vertex): Same.
19041 (compute_access_range): Same.
19042 (data_ref_segment_size): Same.
19043 (latch_dominated_by_data_ref): Same.
19044 (compute_alias_check_pairs): Same.
19045 (fuse_memset_builtins): Same.
19046 (finalize_partitions): Same.
19047 (find_seed_stmts_for_distribution): Same.
19048 (prepare_perfect_loop_nest): Same.
19049 * tree-parloops.c (lambda_transform_legal_p): Same.
19050 (loop_parallel_p): Same.
19051 (reduc_stmt_res): Same.
19052 (add_field_for_name): Same.
19053 (create_call_for_reduction_1): Same.
19054 (replace_uses_in_bb_by): Same.
19055 (transform_to_exit_first_loop_alt): Same.
19056 (try_transform_to_exit_first_loop_alt): Same.
19057 (transform_to_exit_first_loop): Same.
19059 (gen_parallel_loop): Same.
19060 (gather_scalar_reductions): Same.
19061 (get_omp_data_i_param): Same.
19062 (try_create_reduction_list): Same.
19063 (oacc_entry_exit_single_gang): Same.
19064 (parallelize_loops): Same.
19065 * tree-pass.h: Same.
19066 * tree-predcom.c (determine_offset): Same.
19067 (last_always_executed_block): Same.
19068 (split_data_refs_to_components): Same.
19069 (suitable_component_p): Same.
19070 (valid_initializer_p): Same.
19071 (find_looparound_phi): Same.
19072 (insert_looparound_copy): Same.
19073 (add_looparound_copies): Same.
19074 (determine_roots_comp): Same.
19075 (predcom_tmp_var): Same.
19076 (initialize_root_vars): Same.
19077 (initialize_root_vars_store_elim_1): Same.
19078 (initialize_root_vars_store_elim_2): Same.
19079 (finalize_eliminated_stores): Same.
19080 (initialize_root_vars_lm): Same.
19081 (remove_stmt): Same.
19082 (determine_unroll_factor): Same.
19083 (execute_pred_commoning_cbck): Same.
19084 (base_names_in_chain_on): Same.
19085 (combine_chains): Same.
19086 (pcom_stmt_dominates_stmt_p): Same.
19087 (try_combine_chains): Same.
19088 (prepare_initializers_chain_store_elim): Same.
19089 (prepare_initializers_chain): Same.
19090 (prepare_initializers): Same.
19091 (prepare_finalizers_chain): Same.
19092 (prepare_finalizers): Same.
19093 (insert_init_seqs): Same.
19094 * tree-scalar-evolution.c (loop_phi_node_p): Same.
19095 (compute_overall_effect_of_inner_loop): Same.
19096 (add_to_evolution_1): Same.
19097 (add_to_evolution): Same.
19098 (follow_ssa_edge_binary): Same.
19099 (follow_ssa_edge_expr): Same.
19100 (backedge_phi_arg_p): Same.
19101 (follow_ssa_edge_in_condition_phi_branch): Same.
19102 (follow_ssa_edge_in_condition_phi): Same.
19103 (follow_ssa_edge_inner_loop_phi): Same.
19104 (follow_ssa_edge): Same.
19105 (analyze_evolution_in_loop): Same.
19106 (analyze_initial_condition): Same.
19107 (interpret_loop_phi): Same.
19108 (interpret_condition_phi): Same.
19109 (interpret_rhs_expr): Same.
19110 (interpret_expr): Same.
19111 (interpret_gimple_assign): Same.
19112 (analyze_scalar_evolution_1): Same.
19113 (analyze_scalar_evolution): Same.
19114 (analyze_scalar_evolution_for_address_of): Same.
19115 (get_instantiated_value_entry): Same.
19116 (loop_closed_phi_def): Same.
19117 (instantiate_scev_name): Same.
19118 (instantiate_scev_poly): Same.
19119 (instantiate_scev_binary): Same.
19120 (instantiate_scev_convert): Same.
19121 (instantiate_scev_not): Same.
19122 (instantiate_scev_r): Same.
19123 (instantiate_scev): Same.
19124 (resolve_mixers): Same.
19125 (initialize_scalar_evolutions_analyzer): Same.
19126 (scev_reset_htab): Same.
19127 (scev_reset): Same.
19128 (derive_simple_iv_with_niters): Same.
19129 (simple_iv_with_niters): Same.
19130 (expression_expensive_p): Same.
19131 (final_value_replacement_loop): Same.
19132 * tree-scalar-evolution.h (block_before_loop): Same.
19133 * tree-ssa-address.h: Same.
19134 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
19135 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
19136 (record_edge_info): Same.
19137 * tree-ssa-live.c (var_map_base_fini): Same.
19138 (remove_unused_locals): Same.
19139 * tree-ssa-live.h: Same.
19140 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
19141 (pass_ch_vect::execute): Same.
19142 (pass_ch::process_loop_p): Same.
19143 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
19144 (movement_possibility): Same.
19145 (outermost_invariant_loop): Same.
19147 (determine_max_movement): Same.
19148 (invariantness_dom_walker::before_dom_children): Same.
19149 (move_computations): Same.
19150 (may_move_till): Same.
19151 (force_move_till_op): Same.
19152 (force_move_till): Same.
19153 (memref_free): Same.
19154 (record_mem_ref_loc): Same.
19155 (set_ref_stored_in_loop): Same.
19156 (mark_ref_stored): Same.
19157 (sort_bbs_in_loop_postorder_cmp): Same.
19158 (sort_locs_in_loop_postorder_cmp): Same.
19159 (analyze_memory_references): Same.
19160 (mem_refs_may_alias_p): Same.
19161 (find_ref_loc_in_loop_cmp): Same.
19162 (rewrite_mem_ref_loc::operator): Same.
19163 (first_mem_ref_loc_1::operator): Same.
19164 (sm_set_flag_if_changed::operator): Same.
19165 (execute_sm_if_changed_flag_set): Same.
19166 (execute_sm): Same.
19167 (hoist_memory_references): Same.
19168 (ref_always_accessed::operator): Same.
19169 (refs_independent_p): Same.
19170 (record_dep_loop): Same.
19171 (ref_indep_loop_p_1): Same.
19172 (ref_indep_loop_p): Same.
19173 (can_sm_ref_p): Same.
19174 (find_refs_for_sm): Same.
19175 (loop_suitable_for_sm): Same.
19176 (store_motion_loop): Same.
19177 (store_motion): Same.
19178 (fill_always_executed_in): Same.
19179 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
19180 (estimated_unrolled_size): Same.
19181 (loop_edge_to_cancel): Same.
19182 (remove_exits_and_undefined_stmts): Same.
19183 (remove_redundant_iv_tests): Same.
19184 (unloop_loops): Same.
19185 (estimated_peeled_sequence_size): Same.
19186 (try_peel_loop): Same.
19187 (canonicalize_loop_induction_variables): Same.
19188 (canonicalize_induction_variables): Same.
19189 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
19191 (stmt_after_inc_pos): Same.
19192 (contains_abnormal_ssa_name_p): Same.
19193 (niter_for_exit): Same.
19196 (find_givs_in_bb): Same.
19197 (find_induction_variables): Same.
19198 (find_interesting_uses_cond): Same.
19199 (outermost_invariant_loop_for_expr): Same.
19200 (idx_find_step): Same.
19201 (add_candidate_1): Same.
19202 (add_iv_candidate_derived_from_uses): Same.
19203 (alloc_use_cost_map): Same.
19204 (prepare_decl_rtl): Same.
19205 (generic_predict_doloop_p): Same.
19206 (computation_cost): Same.
19207 (determine_common_wider_type): Same.
19208 (get_computation_aff_1): Same.
19209 (get_use_type): Same.
19210 (determine_group_iv_cost_address): Same.
19212 (difference_cannot_overflow_p): Same.
19213 (may_eliminate_iv): Same.
19214 (determine_set_costs): Same.
19215 (cheaper_cost_pair): Same.
19216 (compare_cost_pair): Same.
19217 (iv_ca_cand_for_group): Same.
19218 (iv_ca_recount_cost): Same.
19219 (iv_ca_set_remove_invs): Same.
19220 (iv_ca_set_no_cp): Same.
19221 (iv_ca_set_add_invs): Same.
19222 (iv_ca_set_cp): Same.
19223 (iv_ca_add_group): Same.
19224 (iv_ca_cost): Same.
19225 (iv_ca_compare_deps): Same.
19226 (iv_ca_delta_reverse): Same.
19227 (iv_ca_delta_commit): Same.
19228 (iv_ca_cand_used_p): Same.
19229 (iv_ca_delta_free): Same.
19231 (iv_ca_free): Same.
19232 (iv_ca_dump): Same.
19233 (iv_ca_extend): Same.
19234 (iv_ca_narrow): Same.
19235 (iv_ca_prune): Same.
19236 (cheaper_cost_with_cand): Same.
19237 (iv_ca_replace): Same.
19238 (try_add_cand_for): Same.
19239 (get_initial_solution): Same.
19240 (try_improve_iv_set): Same.
19241 (find_optimal_iv_set_1): Same.
19242 (create_new_iv): Same.
19243 (rewrite_use_compare): Same.
19244 (remove_unused_ivs): Same.
19245 (determine_scaling_factor): Same.
19246 * tree-ssa-loop-ivopts.h: Same.
19247 * tree-ssa-loop-manip.c (create_iv): Same.
19248 (compute_live_loop_exits): Same.
19249 (add_exit_phi): Same.
19250 (add_exit_phis): Same.
19251 (find_uses_to_rename_use): Same.
19252 (find_uses_to_rename_def): Same.
19253 (find_uses_to_rename_in_loop): Same.
19254 (rewrite_into_loop_closed_ssa): Same.
19255 (check_loop_closed_ssa_bb): Same.
19256 (split_loop_exit_edge): Same.
19257 (ip_end_pos): Same.
19258 (ip_normal_pos): Same.
19259 (copy_phi_node_args): Same.
19260 (gimple_duplicate_loop_to_header_edge): Same.
19261 (can_unroll_loop_p): Same.
19262 (determine_exit_conditions): Same.
19263 (scale_dominated_blocks_in_loop): Same.
19264 (niter_for_unrolled_loop): Same.
19265 (tree_transform_and_unroll_loop): Same.
19266 (rewrite_all_phi_nodes_with_iv): Same.
19267 * tree-ssa-loop-manip.h: Same.
19268 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
19269 (number_of_iterations_ne): Same.
19270 (assert_no_overflow_lt): Same.
19271 (assert_loop_rolls_lt): Same.
19272 (number_of_iterations_lt): Same.
19273 (adjust_cond_for_loop_until_wrap): Same.
19274 (tree_simplify_using_condition): Same.
19275 (simplify_using_initial_conditions): Same.
19276 (simplify_using_outer_evolutions): Same.
19277 (loop_only_exit_p): Same.
19278 (ssa_defined_by_minus_one_stmt_p): Same.
19279 (number_of_iterations_popcount): Same.
19280 (number_of_iterations_exit): Same.
19281 (find_loop_niter): Same.
19282 (finite_loop_p): Same.
19283 (chain_of_csts_start): Same.
19284 (get_val_for): Same.
19285 (loop_niter_by_eval): Same.
19286 (derive_constant_upper_bound_ops): Same.
19287 (do_warn_aggressive_loop_optimizations): Same.
19288 (record_estimate): Same.
19289 (get_cst_init_from_scev): Same.
19290 (record_nonwrapping_iv): Same.
19291 (idx_infer_loop_bounds): Same.
19292 (infer_loop_bounds_from_ref): Same.
19293 (infer_loop_bounds_from_array): Same.
19294 (infer_loop_bounds_from_pointer_arith): Same.
19295 (infer_loop_bounds_from_signedness): Same.
19296 (bound_index): Same.
19297 (discover_iteration_bound_by_body_walk): Same.
19298 (maybe_lower_iteration_bound): Same.
19299 (estimate_numbers_of_iterations): Same.
19300 (estimated_loop_iterations): Same.
19301 (estimated_loop_iterations_int): Same.
19302 (max_loop_iterations): Same.
19303 (max_loop_iterations_int): Same.
19304 (likely_max_loop_iterations): Same.
19305 (likely_max_loop_iterations_int): Same.
19306 (estimated_stmt_executions_int): Same.
19307 (max_stmt_executions): Same.
19308 (likely_max_stmt_executions): Same.
19309 (estimated_stmt_executions): Same.
19310 (stmt_dominates_stmt_p): Same.
19311 (nowrap_type_p): Same.
19312 (loop_exits_before_overflow): Same.
19313 (scev_var_range_cant_overflow): Same.
19314 (scev_probably_wraps_p): Same.
19315 (free_numbers_of_iterations_estimates): Same.
19316 * tree-ssa-loop-niter.h: Same.
19317 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
19318 (idx_analyze_ref): Same.
19319 (analyze_ref): Same.
19320 (gather_memory_references_ref): Same.
19321 (mark_nontemporal_store): Same.
19322 (emit_mfence_after_loop): Same.
19323 (may_use_storent_in_loop_p): Same.
19324 (mark_nontemporal_stores): Same.
19325 (should_unroll_loop_p): Same.
19326 (volume_of_dist_vector): Same.
19327 (add_subscript_strides): Same.
19328 (self_reuse_distance): Same.
19329 (insn_to_prefetch_ratio_too_small_p): Same.
19330 * tree-ssa-loop-split.c (split_at_bb_p): Same.
19331 (patch_loop_exit): Same.
19332 (find_or_create_guard_phi): Same.
19333 (easy_exit_values): Same.
19334 (connect_loop_phis): Same.
19335 (connect_loops): Same.
19336 (compute_new_first_bound): Same.
19337 (split_loop): Same.
19338 (tree_ssa_split_loops): Same.
19339 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
19340 (is_maybe_undefined): Same.
19341 (tree_may_unswitch_on): Same.
19342 (simplify_using_entry_checks): Same.
19343 (tree_unswitch_single_loop): Same.
19344 (tree_unswitch_loop): Same.
19345 (tree_unswitch_outer_loop): Same.
19346 (empty_bb_without_guard_p): Same.
19347 (used_outside_loop_p): Same.
19348 (get_vop_from_header): Same.
19349 (hoist_guard): Same.
19350 * tree-ssa-loop.c (gate_oacc_kernels): Same.
19351 (get_lsm_tmp_name): Same.
19352 * tree-ssa-loop.h: Same.
19353 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
19354 (build_and_add_sum): Same.
19355 (no_side_effect_bb): Same.
19357 (linearize_expr): Same.
19358 (should_break_up_subtract): Same.
19359 (linearize_expr_tree): Same.
19360 * tree-ssa-scopedtables.c: Same.
19361 * tree-ssa-scopedtables.h: Same.
19362 * tree-ssa-structalias.c (condense_visit): Same.
19363 (label_visit): Same.
19364 (dump_pred_graph): Same.
19365 (perform_var_substitution): Same.
19366 (move_complex_constraints): Same.
19367 (remove_preds_and_fake_succs): Same.
19368 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
19369 (determine_bb_domination_status): Same.
19370 (duplicate_thread_path): Same.
19371 (thread_through_all_blocks): Same.
19372 * tree-ssa-threadupdate.h: Same.
19373 * tree-streamer-in.c (streamer_read_string_cst): Same.
19374 (input_identifier): Same.
19375 (unpack_ts_type_common_value_fields): Same.
19376 (unpack_ts_block_value_fields): Same.
19377 (unpack_ts_translation_unit_decl_value_fields): Same.
19378 (unpack_ts_omp_clause_value_fields): Same.
19379 (streamer_read_tree_bitfields): Same.
19380 (streamer_alloc_tree): Same.
19381 (lto_input_ts_common_tree_pointers): Same.
19382 (lto_input_ts_vector_tree_pointers): Same.
19383 (lto_input_ts_poly_tree_pointers): Same.
19384 (lto_input_ts_complex_tree_pointers): Same.
19385 (lto_input_ts_decl_minimal_tree_pointers): Same.
19386 (lto_input_ts_decl_common_tree_pointers): Same.
19387 (lto_input_ts_decl_non_common_tree_pointers): Same.
19388 (lto_input_ts_decl_with_vis_tree_pointers): Same.
19389 (lto_input_ts_field_decl_tree_pointers): Same.
19390 (lto_input_ts_function_decl_tree_pointers): Same.
19391 (lto_input_ts_type_common_tree_pointers): Same.
19392 (lto_input_ts_type_non_common_tree_pointers): Same.
19393 (lto_input_ts_list_tree_pointers): Same.
19394 (lto_input_ts_vec_tree_pointers): Same.
19395 (lto_input_ts_exp_tree_pointers): Same.
19396 (lto_input_ts_block_tree_pointers): Same.
19397 (lto_input_ts_binfo_tree_pointers): Same.
19398 (lto_input_ts_constructor_tree_pointers): Same.
19399 (lto_input_ts_omp_clause_tree_pointers): Same.
19400 (streamer_read_tree_body): Same.
19401 * tree-streamer.h: Same.
19402 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
19403 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
19404 (vect_analyze_possibly_independent_ddr): Same.
19405 (vect_analyze_data_ref_dependence): Same.
19406 (vect_compute_data_ref_alignment): Same.
19407 (vect_enhance_data_refs_alignment): Same.
19408 (vect_analyze_data_ref_access): Same.
19409 (vect_check_gather_scatter): Same.
19410 (vect_find_stmt_data_reference): Same.
19411 (vect_create_addr_base_for_vector_ref): Same.
19412 (vect_setup_realignment): Same.
19413 (vect_supportable_dr_alignment): Same.
19414 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
19415 (adjust_phi_and_debug_stmts): Same.
19416 (vect_set_loop_mask): Same.
19417 (add_preheader_seq): Same.
19418 (vect_maybe_permute_loop_masks): Same.
19419 (vect_set_loop_masks_directly): Same.
19420 (vect_set_loop_condition_masked): Same.
19421 (vect_set_loop_condition_unmasked): Same.
19422 (slpeel_duplicate_current_defs_from_edges): Same.
19423 (slpeel_add_loop_guard): Same.
19424 (slpeel_can_duplicate_loop_p): Same.
19425 (create_lcssa_for_virtual_phi): Same.
19427 (vect_update_ivs_after_vectorizer): Same.
19428 (vect_gen_vector_loop_niters_mult_vf): Same.
19429 (slpeel_update_phi_nodes_for_loops): Same.
19430 (slpeel_update_phi_nodes_for_guard1): Same.
19431 (find_guard_arg): Same.
19432 (slpeel_update_phi_nodes_for_guard2): Same.
19433 (slpeel_update_phi_nodes_for_lcssa): Same.
19434 (vect_do_peeling): Same.
19435 (vect_create_cond_for_alias_checks): Same.
19436 (vect_loop_versioning): Same.
19437 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
19438 (vect_inner_phi_in_double_reduction_p): Same.
19439 (vect_analyze_scalar_cycles_1): Same.
19440 (vect_fixup_scalar_cycles_with_patterns): Same.
19441 (vect_get_loop_niters): Same.
19442 (bb_in_loop_p): Same.
19443 (vect_get_max_nscalars_per_iter): Same.
19444 (vect_verify_full_masking): Same.
19445 (vect_compute_single_scalar_iteration_cost): Same.
19446 (vect_analyze_loop_form_1): Same.
19447 (vect_analyze_loop_form): Same.
19448 (vect_active_double_reduction_p): Same.
19449 (vect_analyze_loop_operations): Same.
19450 (neutral_op_for_slp_reduction): Same.
19451 (vect_is_simple_reduction): Same.
19452 (vect_model_reduction_cost): Same.
19453 (get_initial_def_for_reduction): Same.
19454 (get_initial_defs_for_reduction): Same.
19455 (vect_create_epilog_for_reduction): Same.
19456 (vectorize_fold_left_reduction): Same.
19457 (vectorizable_reduction): Same.
19458 (vectorizable_induction): Same.
19459 (vectorizable_live_operation): Same.
19460 (loop_niters_no_overflow): Same.
19461 (vect_get_loop_mask): Same.
19462 (vect_transform_loop_stmt): Same.
19463 (vect_transform_loop): Same.
19464 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
19465 (vect_determine_precisions): Same.
19466 (vect_pattern_recog_1): Same.
19467 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
19468 * tree-vect-stmts.c (stmt_vectype): Same.
19469 (process_use): Same.
19470 (vect_init_vector_1): Same.
19471 (vect_truncate_gather_scatter_offset): Same.
19472 (get_group_load_store_type): Same.
19473 (vect_build_gather_load_calls): Same.
19474 (vect_get_strided_load_store_ops): Same.
19475 (vectorizable_simd_clone_call): Same.
19476 (vectorizable_store): Same.
19477 (permute_vec_elements): Same.
19478 (vectorizable_load): Same.
19479 (vect_transform_stmt): Same.
19480 (supportable_widening_operation): Same.
19481 * tree-vectorizer.c (vec_info::replace_stmt): Same.
19482 (vec_info::free_stmt_vec_info): Same.
19483 (vect_free_loop_info_assumptions): Same.
19484 (vect_loop_vectorized_call): Same.
19485 (set_uid_loop_bbs): Same.
19486 (vectorize_loops): Same.
19487 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
19488 * tree.c (add_tree_to_fld_list): Same.
19489 (fld_type_variant_equal_p): Same.
19490 (fld_decl_context): Same.
19491 (fld_incomplete_type_of): Same.
19492 (free_lang_data_in_binfo): Same.
19493 (need_assembler_name_p): Same.
19494 (find_decls_types_r): Same.
19495 (get_eh_types_for_runtime): Same.
19496 (find_decls_types_in_eh_region): Same.
19497 (find_decls_types_in_node): Same.
19498 (assign_assembler_name_if_needed): Same.
19499 * value-prof.c (stream_out_histogram_value): Same.
19500 * value-prof.h: Same.
19501 * var-tracking.c (use_narrower_mode): Same.
19502 (prepare_call_arguments): Same.
19503 (vt_expand_loc_callback): Same.
19504 (resolve_expansions_pending_recursion): Same.
19505 (vt_expand_loc): Same.
19506 * varasm.c (const_hash_1): Same.
19507 (compare_constant): Same.
19508 (tree_output_constant_def): Same.
19509 (simplify_subtraction): Same.
19510 (get_pool_constant): Same.
19511 (output_constant_pool_2): Same.
19512 (output_constant_pool_1): Same.
19513 (mark_constants_in_pattern): Same.
19514 (mark_constant_pool): Same.
19515 (get_section_anchor): Same.
19516 * vr-values.c (compare_range_with_value): Same.
19517 (vr_values::extract_range_from_phi_node): Same.
19518 * vr-values.h: Same.
19519 * web.c (unionfind_union): Same.
19520 * wide-int.h: Same.
19522 2019-07-09 Martin Sebor <msebor@redhat.com>
19525 * align.h: Change class-key from class to struct and vice versa
19526 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
19527 * alloc-pool.h: Same.
19528 * asan.c (shadow_mem_size): Same.
19529 * auto-profile.c: Same.
19530 * basic-block.h: Same.
19532 * cfgexpand.c (set_rtl): Same.
19533 (expand_one_stack_var_at): Same.
19534 * cfghooks.h: Same.
19537 * config/i386/i386.h: Same.
19538 * df-problems.c (df_print_bb_index): Same.
19540 * df.h (df_single_use): Same.
19541 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
19542 (layout::annotation_line_showed_range_p): Same.
19543 (get_printed_columns): Same.
19544 (correction::ensure_terminated): Same.
19545 (line_corrections::~line_corrections): Same.
19548 * dump-context.h: Same.
19549 * dumpfile.h: Same.
19550 * dwarf2out.c: Same.
19551 * edit-context.c: Same.
19552 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
19554 * function.c (assign_stack_local): Same.
19555 * function.h: Same.
19557 * gcov.c (block_info::block_info): Same.
19558 * genattrtab.c: Same.
19559 * genextract.c: Same.
19560 * genmatch.c (comparison_code_p): Same.
19561 (id_base::id_base): Same.
19562 (decision_tree::print): Same.
19563 * genoutput.c: Same.
19564 * genpreds.c (write_one_predicate_function): Same.
19565 * genrecog.c (validate_pattern): Same.
19566 (find_operand_positions): Same.
19567 (optimize_subroutine_group): Same.
19568 (merge_pattern_transition::merge_pattern_transition): Same.
19569 (merge_pattern_info::merge_pattern_info): Same.
19570 (merge_state_result::merge_state_result): Same.
19571 (merge_into_state): Same.
19572 * gensupport.c: Same.
19573 * gensupport.h: Same.
19574 * ggc-common.c (init_ggc_heuristics): Same.
19575 * ggc-tests.c (test_union): Same.
19576 * gimple-loop-interchange.cc (dump_induction): Same.
19577 * gimple-loop-versioning.cc: Same.
19578 * gimple-match.h (gimple_match_cond::any_else): Same.
19579 * gimple-ssa-backprop.c: Same.
19580 * gimple-ssa-sprintf.c: Same.
19581 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
19583 (store_immediate_info::store_immediate_info): Same.
19584 (merged_store_group::apply_stores): Same.
19585 (get_location_for_stmts): Same.
19586 * gimple-ssa-strength-reduction.c: Same.
19587 * gimple-ssa-warn-alloca.c: Same.
19588 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
19589 * godump.c (go_type_decl): Same.
19590 * hash-map-tests.c (test_map_of_strings_to_int): Same.
19591 * hash-map.h: Same.
19592 * hash-set-tests.c (test_set_of_strings): Same.
19593 * hsa-brig.c: Same.
19594 * hsa-common.h: Same.
19595 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
19596 * input.c (assert_loceq): Same.
19599 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
19600 * ipa-fnsummary.h: Same.
19601 * ipa-inline.h: Same.
19602 * ipa-prop.h: Same.
19603 * ipa-split.c (visit_bb): Same.
19604 * ira-int.h (minmax_set_iter_next): Same.
19605 * loop-invariant.c: Same.
19607 * lra-eliminations.c: Same.
19609 * lra-lives.c (mark_regno_dead): Same.
19610 * lra-remat.c: Same.
19611 * lra-spills.c: Same.
19612 * lto-streamer.h: Same.
19613 * mem-stats.h: Same.
19614 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
19615 * omp-low.c (omp_clause_aligned_alignment): Same.
19616 * optabs-query.h (get_vcond_eq_icode): Same.
19618 * opts.c (wrap_help): Same.
19619 * poly-int.h: Same.
19620 * predict.c (predict_paths_leading_to_edge): Same.
19621 * pretty-print.h: Same.
19622 * profile-count.h: Same.
19624 * read-rtl-function.c: Same.
19627 * regrename.c: Same.
19628 * regrename.h: Same.
19630 * rtl-iter.h: Same.
19631 * rtl.h (costs_add_n_insns): Same.
19633 * sched-int.h: Same.
19634 * sel-sched-ir.h: Same.
19635 * selftest.h: Same.
19636 * sese.h (vec_find): Same.
19638 * target-globals.h: Same.
19639 * tree-affine.c (aff_combination_find_elt): Same.
19640 * tree-affine.h: Same.
19641 * tree-data-ref.h: Same.
19642 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
19643 * tree-predcom.c: Same.
19644 * tree-scalar-evolution.c (find_var_scev_info): Same.
19645 * tree-ssa-alias.h: Same.
19646 * tree-ssa-ccp.c: Same.
19647 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
19648 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
19649 (rewrite_mem_refs): Same.
19650 (execute_sm_if_changed): Same.
19651 (hoist_memory_references): Same.
19652 * tree-ssa-loop-ivopts.c (operator<=): Same.
19653 * tree-ssa-loop.h: Same.
19654 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
19655 * tree-ssa-structalias.c: Same.
19656 * tree-switch-conversion.h (cluster::cluster): Same.
19657 (simple_cluster::simple_cluster): Same.
19658 * tree-vect-patterns.c (type_conversion_p): Same.
19659 * tree-vectorizer.c (dump_stmt_cost): Same.
19660 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
19661 * tree.c (protected_set_expr_location): Same.
19662 * tree.h (desired_pro_or_demotion_p): Same.
19663 (fndecl_built_in_p): Same.
19664 * unique-ptr-tests.cc: Same.
19665 * var-tracking.c (delete_variable_part): Same.
19666 * varasm.c (assemble_real): Same.
19667 (tree_output_constant_def): Same.
19669 * wide-int-bitmask.h: Same.
19670 * wide-int.h (decompose): Same.
19672 2019-07-09 Richard Biener <rguenther@suse.de>
19674 PR tree-optimization/91114
19675 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
19676 find a vector type isn't fatal.
19678 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
19680 * config/aarch64/aarch64-simd.md
19681 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
19682 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
19683 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
19684 (*aarch64_crypto_aese_fused,
19685 *aarch64_crypto_aesd_fused): Update to new definition.
19686 * config/aarch64/aarch64.c
19687 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
19689 2019-07-09 Richard Biener <rguenther@suse.de>
19691 * gimple-match.h (gimple_match_op::resimplify): New.
19692 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
19693 gimple_resimplify4, gimple_resimplify5): Remove.
19694 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
19695 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
19697 (gimple_match_op::resimplify): New.
19698 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
19699 according to availability. Use gimple_match_op::resimplify.
19701 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
19703 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
19705 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
19707 * config/arm/crypto.md:
19708 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
19709 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
19710 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
19711 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
19713 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
19714 * config/arm/aarch-common-protos.h
19715 (aarch_crypto_can_dual_issue): Remove.
19716 * config/arm/aarch-common.c
19717 (aarch_crypto_can_dual_issue): Likewise.
19718 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
19719 * config/arm/cortex-a53.md: Likewise.
19720 * config/arm/cortex-a57.md: Likewise.
19721 * config/arm/iterators.md:
19722 (CRYPTO_BINARY): Redefine.
19723 (CRYPTO_UNARY): Removed.
19724 (CRYPTO_AES, CRYPTO_AESMC): New.
19726 2019-07-09 Richard Biener <rguenther@suse.de>
19728 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
19729 (vn_reference_lookup_3): If the main ref has no access path recorded
19730 but orig_ref has use it to do access-path based disambiguation.
19731 (vn_reference_lookup_pieces): Adjust.
19732 (vn_reference_lookup): Pass down original ref if we valueized.
19734 2019-07-09 Martin Liska <mliska@suse.cz>
19736 * doc/extend.texi: Document influence on loop
19739 2019-07-09 Martin Liska <mliska@suse.cz>
19741 * lto-compress.c (lto_normalized_zstd_level): Do not use
19742 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
19743 of libzstd. One can use 0 as a default compression level.
19745 2019-07-09 Martin Liska <mliska@suse.cz>
19747 * doc/invoke.texi: Add link from -fprofile-dir option.
19748 Use better wording for 'gcno filename'.
19750 2019-07-08 Martin Sebor <msebor@redhat.com>
19752 PR middle-end/71924
19753 PR middle-end/90549
19754 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
19756 (args_loc_t): New type.
19757 (args_loc_t, locmap_t): same.
19758 (diag_returned_locals): New function.
19759 (is_addr_local): Same.
19760 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
19761 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
19762 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
19764 2019-07-08 Jakub Jelinek <jakub@redhat.com>
19766 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
19767 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
19768 and casts in offset when different, both through gimple stmts
19769 and through trees. Rewritten using loops to minimize code duplication
19772 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
19774 * emit-rtl.c (set_insn_locations): New function moved from...
19775 * function.c (set_insn_locations): ...here.
19776 * ira-emit.c (emit_moves): Propagate location of the first instruction
19777 to the inserted move instructions.
19778 * reg-stack.c (compensate_edge): Set the location if the sequence is
19779 inserted on the edge.
19780 * rtl.h (set_insn_locations): Declare.
19782 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19784 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
19785 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
19788 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19790 PR rtl-optimization/88233
19791 * common.opt (fsplit-wide-types-early): New option.
19792 * common/config/rs6000/rs6000-common.c
19793 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
19795 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
19796 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
19797 flag_split_wide_types_early.
19798 (pass_data_lower_subreg3): New.
19799 (pass_lower_subreg3): New.
19800 (make_pass_lower_subreg3): New.
19801 * passes.def (pass_lower_subreg2): Move after the loop passes.
19802 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
19803 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
19804 the pass pipeline; its previous place is taken by ...
19805 (make_pass_lower_subreg3): ... this.
19807 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19809 * config/s390/s390.c (s390_shift_truncation_mask): Define.
19810 (TARGET_SHIFT_TRUNCATION_MASK): Define.
19812 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19814 * config/s390/constraints.md: Add new jsc constraint.
19815 * config/s390/predicates.md: New predicates.
19816 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
19817 * config/s390/s390.c (s390_valid_shift_count): New function.
19818 (print_shift_count_operand): Use s390_valid_shift_count.
19819 (print_operand): Likewise.
19820 * config/s390/s390.md: Use new predicate.
19821 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
19822 * config/s390/vector.md: Use new predicate.
19824 2019-07-08 Andrew Waterman <andrew@sifive.com>
19825 Jim Wilson <jimw@sifive.com>
19827 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
19828 bitsize instead of BITS_PER_WORD.
19830 2019-07-08 Martin Liska <mliska@suse.cz>
19832 * collect2.c (defined): Revert to before r254460.
19833 (scan_prog_file): Revert to before r254460.
19835 2019-07-08 Richard Biener <rguenther@suse.de>
19837 PR tree-optimization/83518
19838 * tree-ssa-sccvn.c: Include splay-tree.h.
19839 (struct pd_range, struct pd_data): New.
19840 (struct vn_walk_cb_data): Add data to track partial definitions.
19841 (vn_walk_cb_data::~vn_walk_cb_data): New.
19842 (vn_walk_cb_data::push_partial_def): New.
19843 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
19844 (vn_reference_lookup_2): When partial defs are registered give up.
19845 (vn_reference_lookup_3): Track partial defs for memset and
19846 constructor zeroing and for defs from constants.
19848 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19850 * doc/install.texi (bootstrap-Og): Document.
19852 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19854 * config/riscv/pic.md (*local_pic_load_s<mode>)
19855 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
19856 referenced by <mode>, giving...
19857 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
19858 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
19859 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
19860 use <X:MODE> for the mode attribute.
19862 2019-07-07 Jeff Law <law@redhat.com>
19864 PR tree-optimization/91090
19865 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
19866 in handling of ranges to simplify switch statements.
19868 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19870 * config/darwin.c (darwin_override_options): Make a final check on PIC
19873 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19875 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
19876 on for kernel code.
19878 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19881 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
19882 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
19883 instead of matching them to "l" output operands.
19885 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19887 * config/mips/mips.c (mips_split_move): Zero-initialize addr
19888 and check whether addr.reg is nonnull before using it.
19890 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19892 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
19893 ctx->for_simd_scan_phase simd copy the outer var to the privatized
19894 variable(s). For conditional lastprivate look through outer
19895 GIMPLE_OMP_SCAN context.
19896 (lower_omp_1): For conditional lastprivate look through outer
19897 GIMPLE_OMP_SCAN context.
19899 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
19900 member to combined_into_simd_safelen1.
19901 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
19902 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
19903 clauses if ctx->combined_into_simd_safelen1 put statements after the
19904 predicate conditionalized block rather than into it.
19906 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19908 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
19910 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
19911 Make the choice of <mode> explicit, giving...
19912 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
19914 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19916 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
19917 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
19919 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
19920 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
19921 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
19922 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
19923 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
19924 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
19925 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
19926 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
19927 (*avx512f_scatterdi<mode>): Likewise.
19928 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
19930 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19932 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
19933 specify the mode iterator referenced by <mode>, giving...
19934 (*push1_h8300hs_<QHI:mode>): ...this.
19936 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19938 * config/gcn/gcn-valu.md
19939 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
19940 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
19941 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
19942 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
19943 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
19944 but using the _exec comparison patterns.
19945 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
19946 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
19947 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
19948 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
19949 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
19950 but using the _exec comparison patterns.
19952 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19954 * config/arm/sync.md
19955 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
19956 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
19957 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
19958 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
19959 <SIDI:cas_cmp_str>.
19961 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19963 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
19964 (maybe_lookup_ctx): Add forward declaration.
19965 (omp_find_scan): Likewise. Walk into body of simd if composited
19966 with worksharing loop.
19967 (scan_omp_simd_scan): New function.
19968 (scan_omp_1_stmt): Call it.
19969 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
19970 ctx->for_simd_scan_phase.
19971 (lower_rec_input_clauses): Do much less work for inscan reductions
19972 in ctx->for_simd_scan_phase is_simd regions.
19973 (lower_omp_scan): Set is_simd also on simd constructs composited
19974 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
19975 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
19976 emit their body after in simd constructs composited with worksharing
19978 (lower_omp_for_scan): Handle worksharing loop composited with simd.
19980 * omp-low.c (omp_find_scan): Make static.
19981 (lower_omp_for_scan): Fix order of merge arguments in input phase of
19982 the second loop, var2 represents the first partial sum and so needs
19983 to go before rprivb[ivar].
19985 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
19987 * config/rs6000/rs6000-logue.c: Remove unused code.
19989 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19991 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
19993 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
19996 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
19997 check with a frame laid out check.
19999 2019-07-05 Richard Biener <rguenther@suse.de>
20001 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
20002 when comparing against a store with possibly the same value.
20004 2019-07-05 Richard Biener <rguenther@suse.de>
20006 PR tree-optimization/91091
20007 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
20008 (walk_non_aliased_vuses): Likewise.
20009 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
20010 (get_continuation_for_phi): New tbaa_p parameter and pass
20012 (walk_non_aliased_vuses): Likewise.
20013 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
20014 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
20015 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
20017 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
20018 (adjust_offsets_for_equal_base_address): New function.
20019 (vn_reference_lookup_3): Use it to catch more base equivalences.
20020 Handle and pass down tbaa_p flag.
20021 (vn_reference_lookup_pieces): Adjust.
20022 (vn_reference_lookup): Remove alias-set altering, instead pass
20023 down false as tbaa_p.
20025 2019-07-05 Richard Biener <rguenther@suse.de>
20027 PR tree-optimization/91091
20028 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
20029 accesses can happen with -fno-strict-aliasing.
20031 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
20033 * tree-ssa-alias.c (alias_stats): Add
20034 nonoverlapping_component_refs_since_match_p_must_overlap.
20035 (dump_alias_stats): Print it.
20036 (nonoverlapping_component_refs_since_match_p): Add early exit.
20037 (nonoverlapping_component_refs_p): Do not account early exit.
20039 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20041 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
20042 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
20043 (emit_eh_dispatch): Delete.
20044 (lower_catch): Emit the eh_dispatch manually and set the location of
20045 the first catch statement onto it.
20046 (lower_eh_filter): Emit the eh_dispatch manually and set location.
20047 (lower_eh_dispatch): Propagate location.
20048 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
20049 (eliminate_build): Likewise.
20051 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20053 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
20054 phi nodes if possible.
20055 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
20056 location info on the newly created statement.
20057 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
20058 newly created increment if needed.
20060 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20062 PR middle-end/78884
20063 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
20064 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
20065 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
20066 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
20067 ctx->add_safelen1 is set.
20069 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
20070 GOMP_loop_start at the start of second worksharing loop in a scan.
20071 For nowait, don't emit GOMP_loop_end_nowait at the end of first
20072 worksharing loop in a scan even if there are conditional lastprivates,
20073 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
20075 2019-07-04 Jan Hubicka <jh@suse.cz>
20077 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
20078 Fix check for match in the ref walk.
20080 2019-07-04 Martin Liska <mliska@suse.cz>
20082 * tree-ssa-loop-niter.c
20083 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
20084 (estimate_numbers_of_iterations):
20085 Support __builtin_expect_with_probability for analysis
20086 of # of loop iterations.
20088 2019-07-04 Alexandre Oliva <oliva@adacore.com>
20090 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
20091 * except.c: Likewise.
20092 * expr.c (expand_expr_real_1): Reject it.
20093 * gimplify.c (gimplify_expr): Gimplify it, within
20095 * tree-dump.c (dequeue_and_dump): Dump it.
20096 * tree-pretty-print.c (dump_generic_node): Likewise.
20097 * tree.c (block_may_fallthru): Handle it.
20098 * tree.def (EH_ELSE_EXPR): Introduce it.
20099 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
20100 with GIMPLE_EH_ELSE as try/finally/else.
20102 2019-07-04 Richard Biener <rguenther@suse.de>
20105 * tree-pass.h (execute_all_ipa_transforms): Add a flag
20106 parameter whether to disable GC collection.
20107 * passes.c (execute_one_ipa_transform_pass): Likewise, and
20109 (execute_all_ipa_transforms): Likewise and pass it down.
20110 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
20111 collection from applying IPA transforms.
20112 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
20113 from applying IPA transforms.
20115 2019-07-04 Richard Biener <rguenther@suse.de>
20117 PR tree-optimization/90911
20118 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
20119 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
20120 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20121 scalar_loop_scaling.
20122 (vect_transform_loop): Scale scalar loop profile if needed.
20123 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
20124 the loop copy from if-conversion adjust edge probabilities
20125 and scale the vectorized loop body profile, queue the scalar
20126 profile for updating after peeling.
20128 2019-07-04 Jan Hubicka <jh@suse.cz>
20130 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
20131 parameters; return early for must-alias.
20132 (indirect_ref_may_alias_decl_p): Likewise; when establishing
20133 outer types match, try nonoverlapping_component_refs
20134 if must-alias is not obvious.
20135 (indirect_refs_may_alias_p): Likewise.
20136 (refs_may_alias_p_2): Likewise.
20138 2019-07-04 Richard Biener <rguenther@suse.de>
20140 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
20142 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
20144 (struct vn_walk_cb_data): New callback data struct.
20145 (vn_reference_lookup_2): Adjust.
20146 (vn_reference_lookup_3): Likewise.
20147 (vn_reference_lookup_pieces): Likewise.
20148 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
20149 (visit_reference_op_load): Adjust.
20151 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20153 PR tree-optimization/91063
20154 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
20155 stmt from stmts sequence before calling vect_init_vector_1.
20158 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20161 * fwprop.c (reg_single_def_p): New function.
20162 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
20163 (forward_propagate_into): New parameter reg_prop_only
20164 with default value false.
20165 Propagate def's src into loop only if SET_SRC and SET_DEST
20166 of def_set have single definitions.
20167 Likewise if reg_prop_only is set to true.
20168 (fwprop): New param fwprop_addr_p.
20169 Integrate fwprop_addr into fwprop.
20170 (fwprop_addr): Remove.
20171 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
20173 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
20174 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
20175 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
20177 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20179 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
20180 in worksharing loop scans.
20182 PR tree-optimization/91074
20183 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
20186 PR rtl-optimization/90756
20187 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
20190 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
20192 * config/aarch64/aarch64.md: Remove redundant constraints from
20193 define_expand but keep some patterns untouched if they are
20194 specially selected by TARGET_SECONDARY_RELOAD hook.
20195 * config/aarch64/aarch64-sve.md: Likewise.
20196 * config/aarch64/atomics.md: Remove redundant constraints from
20198 * config/aarch64/aarch64-simd.md: Likewise.
20200 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20202 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
20203 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
20204 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
20206 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
20209 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20211 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
20212 (STARTFILE_SPEC): Split crt3 into a separate spec.
20213 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
20214 (DARWIN_CRT2_SPEC): New.
20215 (DARWIN_CRT3_SPEC): New.
20216 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
20217 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
20218 (DARWIN_CRT3_SPEC): New.
20220 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
20222 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
20223 Change the RTL attribute "length" from "4" to "*" to allow the
20224 length attribute to be adjusted automatically for prefixed load,
20225 store, and add immediate instructions.
20226 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
20228 (extendsi<mode>2, EXTSI iterator): Likewise.
20229 (movsi_internal1): Likewise.
20230 (movsi_from_sf): Likewise.
20231 (movdi_from_sf_zero_ext): Likewise.
20232 (mov<mode>_internal): Likewise.
20233 (movcc_internal1, QHI iterator): Likewise.
20234 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
20235 (movsf_from_si): Likewise.
20236 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
20237 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
20238 (mov<mode>, FMOVE128 iterator): Likewise.
20239 (movdi_internal64): Likewise.
20240 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
20242 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
20243 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
20244 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
20245 (vsx_splat_v4sf): Likewise.
20247 2019-07-03 Mark Wielaard <mark@klomp.org>
20250 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
20251 DW_AT_addr_base if there is actually a .debug_addr section with
20253 (output_addr_table): Add DWARF5 table header generation here after
20254 checking there are actually any addresses from...
20255 (dwarf2out_finish): ...here.
20257 2019-07-03 Richard Biener <rguenther@suse.de>
20259 PR middle-end/91069
20260 * match.pd (vec_perm -> bit_insert): Fix element read from
20263 2019-07-03 Martin Liska <mliska@suse.cz>
20265 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
20266 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
20268 * generic-match-head.c: Include dbgcnt.h.
20269 * gimple-match-head.c: Likewise.
20271 2019-07-03 Martin Liska <mliska@suse.cz>
20273 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
20274 (GCOV_COUNTER_V_TOPN): New.
20275 (GCOV_COUNTER_V_INDIR): Use _topn.
20276 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
20277 (GCOV_TOPN_VALUES): New.
20278 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
20279 (GCOV_TOPN_VALUES_COUNTERS): New.
20280 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
20282 (gimple_init_gcov_profiler): Rename variables from one_value
20284 (gimple_gen_one_value_profiler): Remove.
20285 (gimple_gen_topn_values_profiler): New function.
20286 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
20287 names instead of SINGLE_VALUE.
20288 (stream_out_histogram_value): Likewise.
20289 (stream_in_histogram_value): Likewise.
20290 (get_most_common_single_value): Likewise.
20291 (gimple_divmod_fixed_value_transform): Likewise.
20292 (gimple_stringops_transform): Likewise.
20293 (gimple_divmod_values_to_profile): Likewise.
20294 (gimple_stringops_values_to_profile): Likewise.
20295 (gimple_find_values_to_profile): Likewise.
20296 * value-prof.h (enum hist_type): Rename to TOPN.
20297 (gimple_gen_one_value_profiler): Remove.
20298 (gimple_gen_topn_values_profiler): New.
20300 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
20302 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
20303 if it has the DW_AT_data_member_location attribute.
20305 2019-07-03 Richard Biener <rguenther@suse.de>
20307 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
20310 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
20312 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
20313 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
20314 (tlsdesc_small_sve_<mode>): Likewise.
20316 2019-07-03 Martin Liska <mliska@suse.cz>
20318 * Makefile.in: Define ZSTD_LIB.
20319 * common.opt: Adjust compression level
20320 to support also zstd levels.
20321 * config.in: Regenerate.
20322 * configure: Likewise.
20323 * configure.ac: Add --with-zstd and --with-zstd-include options
20325 * doc/install.texi: Mention zstd dependency.
20326 * gcc.c: Print supported LTO compression algorithms.
20327 * lto-compress.c (lto_normalized_zstd_level): Likewise.
20328 (lto_compression_zstd): Likewise.
20329 (lto_uncompression_zstd): Likewise.
20330 (lto_end_compression): Dispatch in between zlib and zstd.
20331 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
20332 (lto_uncompression_zlib): Make it static.
20333 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
20334 * lto-section-in.c (lto_get_section_data): Pass info
20335 about used compression.
20336 * lto-streamer-out.c: By default use zstd when possible.
20337 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
20338 (TV_IPA_LTO_COMPRESS): Likewise for compression.
20340 2019-07-03 Martin Liska <mliska@suse.cz>
20342 * lto-section-in.c (lto_get_section_data): Add "lto" section.
20343 * lto-section-out.c (lto_destroy_simple_output_block): Never
20344 compress LTO_section_lto section.
20345 * lto-streamer-out.c (produce_asm): Do not set major_version
20347 (lto_output_toplevel_asms): Likewise.
20348 (produce_lto_section): New function.
20349 (lto_output): Call produce_lto_section.
20350 (lto_write_mode_table): Do not set major_version and
20352 (produce_asm_for_decls): Likewise.
20353 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
20355 (struct lto_header): Remove.
20356 (struct lto_section): New struct.
20357 (struct lto_simple_header): Do not inherit from lto_header.
20358 (struct lto_file_decl_data): Add lto_section_header field.
20360 2019-07-03 Martin Liska <mliska@suse.cz>
20362 * lra-eliminations.c (eliminate_regs_in_insn): Remove
20364 * reg-stack.c (check_asm_stack_operands): Likewise.
20365 * tree-ssa-structalias.c (create_function_info_for): Likewise.
20366 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
20367 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
20368 force_expand_binop.
20370 2019-07-03 Martin Liska <mliska@suse.cz>
20372 PR tree-optimization/90892
20373 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
20374 in string constants.
20376 2019-07-03 Martin Liska <mliska@suse.cz>
20378 PR middle-end/90899
20379 * multiple_target.c (create_dispatcher_calls): Add to comdat
20380 group only if set for ifunc.
20382 2019-07-03 Martin Liska <mliska@suse.cz>
20385 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
20386 Define local_object_name in outer scope in order to handle
20387 use-after-scope issue.
20389 2019-07-03 Martin Liska <mliska@suse.cz>
20391 * common.opt: Add fprofile-note.
20392 * coverage.c (coverage_init): Append the option
20394 * doc/invoke.texi: Document -fprofile-note.
20396 2019-07-03 Jakub Jelinek <jakub@redhat.com>
20398 PR tree-optimization/91033
20399 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
20400 vect_analyze_data_refs): Add bool * arguments.
20401 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
20402 if failure is due to scatter/gather, set *fatal to false if non-NULL.
20403 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
20404 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
20405 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
20406 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
20407 vect_analyze_data_refs caller.
20409 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
20411 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
20412 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
20413 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
20414 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20415 OMP_CLAUSE__SCANTEMP_ entry.
20416 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
20417 * tree-pretty-print.c (dump_omp_clause): Likewise.
20418 * tree-nested.c (convert_nonlocal_omp_clauses,
20419 convert_local_omp_clauses): Likewise.
20420 * omp-general.h (struct omp_for_data): Add have_scantemp and
20421 have_nonctrl_scantemp members.
20422 * omp-general.c (omp_extract_for_data): Initialize them.
20423 * omp-low.c (struct omp_context): Add scan_exclusive member.
20424 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
20425 result again with GF_OMP_FOR_KIND_MASK. Initialize also
20426 ctx->scan_exclusive.
20427 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
20428 of !ctx->scan_inclusive.
20429 (lower_rec_input_clauses): Simplify gimplification of dtors using
20430 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
20431 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
20432 loops. Don't add barrier for reduction_omp_orig_ref if
20433 ctx->scan_??xclusive.
20434 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
20435 (lower_omp_scan): Use ctx->scan_exclusive instead
20436 of !ctx->scan_inclusive. Handle worksharing loops with inscan
20437 reductions. Use new_vard != new_var instead of repeated
20438 omp_is_reference calls.
20439 (omp_find_scan, lower_omp_for_scan): New functions.
20440 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
20442 * omp-expand.c (expand_omp_scantemp_alloc): New function.
20443 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
20444 and fd->have_scantemp.
20446 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
20447 on worksharing loop propagate it as shared clause to containing
20450 * omp-expand.c (expand_omp_for_static_nochunk,
20451 expand_omp_for_static_chunk): For nowait worksharing loop with
20452 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
20455 2019-07-02 qing zhao <qing.zhao@oracle.com>
20457 PR preprocessor/90581
20458 * doc/cppopts.texi: Add document for -fmax-include-depth.
20459 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
20461 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
20463 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
20464 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
20465 (mmx_packssdw): Ditto.
20466 (mmx_punpckhbw): Ditto.
20467 (mmx_punpcklbw): Ditto.
20468 (mmx_punpckhwd): Ditto.
20469 (mmx_punpcklwd): Ditto.
20470 (mmx_punpckhdq): Ditto.
20471 (mmx_punpckldq): Ditto.
20472 (*vec_dupv4hi): Ditto.
20473 (*vec_dupv2si): Ditto.
20474 (mmx_pmovmskb): Ditto.
20475 * config/i386/sse.md (sse_cvtpi2ps): Use
20476 TARGET_SSE2 && SSE_REG_P in split condition.
20477 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
20478 TARGET_SSSE3 && SSE_REGNO_P in split condition.
20479 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
20480 (ssse3_pshufbv8qi3): Ditto.
20481 (ssse3_palignrdi): Ditto.
20483 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
20485 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
20486 with inlined save and restore.
20488 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
20490 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
20491 to be inserted on single successor edge of the entry block. Then call
20492 commit_edge_insertions instead of inserting the instructions manually.
20493 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
20494 RTL expansion and rebuild jump labels chain.
20496 2019-07-02 Richard Biener <rguenther@suse.de>
20498 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
20500 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
20502 * tree.c (build_common_tree_nodes): Initialize them.
20503 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
20504 Make declarations comments.
20505 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
20506 chrec_known): Remove definitions.
20507 (initialize_scalar_evolutions_analyzer): Remove.
20508 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
20509 * tree-streamer.c (preload_common_nodes): Do not preload
20510 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
20512 2019-07-02 Jan Hubicka <jh@suse.cz>
20514 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
20517 2019-07-02 Jan Hubicka <jh@suse.cz>
20519 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
20521 (nonoverlapping_component_refs_since_match_p): ... this one;
20522 handle also non-decl bases; return -1 if search gave up.
20523 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
20524 nonoverlapping_component_refs_of_decl_p_no_alias to
20525 nonoverlapping_component_refs_since_match_p_may_alias,
20526 nonoverlapping_component_refs_since_match_p_no_alias.
20527 (dump_alias_stats): Update dumping.
20528 (aliasing_matching_component_refs_p): Break out from ...;
20529 dispatch to nonoverlapping_component_refs_for_decl_p
20530 and nonoverlapping_component_refs_since_match_p.
20531 (aliasing_component_refs_p): ... here; call
20532 nonoverlapping_component_refs_p in scenarios where we can not
20533 precisely determine base match.
20534 (decl_refs_may_alias_p): Use
20535 nonoverlapping_component_refs_since_match_p.
20536 (indirect_ref_may_alias_decl_p): Do not call
20537 nonoverlapping_component_refs_p.
20538 (indirect_refs_may_alias_p): Likewise.
20540 2019-07-02 Jan Hubicka <jh@suse.cz>
20542 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
20543 to clobber of return value.
20545 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20547 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
20548 for is_neon_type instructions that have not already been categorized.
20550 2019-07-02 Richard Biener <rguenther@suse.de>
20552 PR tree-optimization/58483
20553 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
20554 for MEM_REF base hashing.
20555 (equal_mem_array_ref_p): Likewise for base comparison.
20557 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20559 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
20560 parameterized name.
20561 (signbit<mode>2): Use that name. Simplify.
20563 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
20565 PR middle-end/66726
20566 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
20567 Tune heuristic from PR71016 to allow MIN / MAX.
20569 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20571 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
20572 parameterized name.
20573 (abs<mode>2): Use that name. Simplify.
20575 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20577 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
20578 parameterized name.
20579 (neg<mode>2): Use that name. Simplify.
20581 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20583 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
20585 (abs<mode>2): Use that name. Simplify.
20587 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20589 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
20591 (neg<mode>2): Use that name. Simplify.
20593 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
20595 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
20596 ("enabled" attribute): Handle sse_noavx isa attribute.
20597 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
20598 Use TARGET_SSE && SSE_REGNO_P in split condition.
20599 (*vec_dupv2sf): Ditto.
20601 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20603 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
20605 (floatsi<mode>2): Use that name. Simplify.
20607 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20609 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
20610 parameterized name.
20611 (extenddf<mode>2_vsx): Make this a parameterized name.
20612 (extenddf<mode>2): Use those names. Simplify.
20614 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20616 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
20618 (eh_return): Use that name. Simplify.
20620 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20622 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
20623 (doloop_end): Use that name. Simplify.
20625 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20627 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
20628 parameterized name.
20629 (indirect_jump): Use that name. Simplify.
20631 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20633 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
20634 parameterized name.
20635 (abs<mode>2): Use that name. Simplify.
20637 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20639 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
20640 parameterized name.
20641 (fix_trunc<mode>si2): Use that name. Simplify.
20643 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20645 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
20646 (allocate_stack): Use that name. Simplify.
20648 2019-07-01 Martin Sebor <msebor@redhat.com>
20650 PR middle-end/90923
20651 * hash-map.h (hash_map::put): On insertion invoke element ctor.
20652 (hash_map::get_or_insert): Same. Reformat comment.
20653 * hash-set.h (hash_set::add): On insertion invoke element ctor.
20654 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
20655 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
20656 * hash-table.h (hash_table::operator=): Prevent copy assignment.
20657 (hash_table::hash_table (const hash_table&)): Use copy ctor
20658 instead of assignment to copy elements.
20660 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
20661 John David Anglin <danglin@gcc.gnu.org>
20664 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
20665 using saved frame pointer.
20667 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
20669 PR middle-end/64242
20670 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
20671 Add frame clobber and schedule blockage.
20673 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
20675 * doc/invoke.texi (Link Options): Further editorial changes to
20676 -flinker-output docs.
20678 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20680 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
20681 Load both operands of a PLUS into registers separately.
20683 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
20685 * config/s390/vector.md: Fix shift count operand printing.
20687 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20689 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
20691 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20693 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
20694 Use recog_data to test for an output operand.
20696 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20698 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
20699 exclude any others that are disparaged or that are bound to need
20701 (ira_get_dup_out_num): Expand comment.
20703 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20705 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
20706 constraint string for each operand/alternative combo. Only handle
20707 '%' at the start of constraint strings, and look for it outside
20710 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20712 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
20713 alternative_mask instead of HARD_REG_SET to represent a
20714 bitmask of alternatives.
20715 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20716 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
20718 2019-07-01 Martin Liska <mliska@suse.cz>
20720 * edit-context.c (test_applying_fixits_unreadable_file): Do not
20721 use () for a constructor call.
20722 (test_applying_fixits_line_out_of_range): Likewise.
20723 * ggc-page.c (alloc_page): Use (void *) for %p printf format
20725 (free_page): Likewise.
20727 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
20729 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
20730 parameter names to match usage (no functional change).
20731 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
20733 2019-07-01 Richard Biener <rguenther@suse.de>
20735 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
20737 (pass_fre::execute): Honor it.
20738 * passes.def: Adjust pass_fre invocations to allow iterating,
20739 add non-iterating pass_fre before late threading/dom.
20741 2019-07-01 Richard Biener <rguenther@suse.de>
20743 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
20744 TARGET_MEM_REF handling to also handle address-taken ones.
20746 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
20748 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20749 hardware attributes): Document avx512vp2intersect.
20751 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20753 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
20754 (abs<mode>2): New expander.
20755 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
20756 Use CODE_FOR_ssse3_absv8qi2.
20757 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
20758 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
20760 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20762 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
20763 to sse, sse_noavx and avx. Update all uses.
20765 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20767 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
20768 (*mmx_<plusminus_insn><mode>3): Ditto.
20769 (*mmx_mulv4hi3"): Ditto.
20770 (*mmx_smulv4hi3_highpart): Ditto.
20771 (*mmx_umulv4hi3_highpart): Ditto.
20772 (*mmx_pmaddwd): Ditto.
20773 (*sse2_umulv1siv1di3): Ditto.
20774 (*mmx_<code>v4hi3): Ditto.
20775 (*mmx_<code>v8qi3): Ditto.
20776 (mmx_ashr<mode>3): Ditto.
20777 ("mmx_<shift_insn><mode>3): Ditto.
20778 (*mmx_eq<mode>3): Ditto.
20779 (mmx_gt<mode>3): Ditto.
20780 (mmx_andnot<mode>3): Ditto.
20781 (*mmx_<code><mode>3): Ditto.
20782 (*mmx_pinsrw): Ditto.
20783 (*mmx_pextrw): Ditto.
20784 (mmx_pshufw_1): Ditto.
20785 (*mmx_uavgv8qi3): Ditto.
20786 (*mmx_uavgv4hi3): Ditto.
20787 ("mmx_psadbw): Ditto.
20788 * config/i386/sse.md (sse_cvtps2pi): Ditto.
20789 (sse_cvttps2pi): Ditto.
20790 (ssse3_pmaddubsw): Ditto.
20791 (*ssse3_pmulhrswv4hi3): Ditto.
20792 (ssse3_psign<mode>3): Ditto.
20794 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
20796 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
20797 adjustment for bit-fields to all aggregate types.
20799 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
20801 * config/rs6000/predicates.md (pcrel_address): Use
20802 SYMBOL_REF_LOCAL_P to determine if a label is local.
20803 (pcrel_external_address): New predicate.
20804 (non_prefixed_mem_operand): Delete, predicate not used.
20805 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
20806 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
20808 (SYMBOL_REF_PCREL_P): Likewise.
20811 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
20813 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
20814 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
20815 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
20817 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20819 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
20820 override on extra_headers.
20822 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20824 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
20825 * config/darwin-driver.c (darwin_default_min_version): Remove newline
20827 (darwin_driver_init): Likewise.
20829 2019-06-28 Jan Beulich <jbeulich@suse.com>
20831 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20832 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
20833 Eliminate redundant alternative.
20835 2019-06-28 Jan Beulich <jbeulich@suse.com>
20837 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20838 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
20839 Use vector_operand.
20841 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
20843 * config/arc/arc.c (arc_rtx_costs): All short instructions are
20844 having a lower cost regardless of the speed option.
20846 2019-06-28 Jan Beulich <jbeulich@suse.com>
20848 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
20849 vector_operand plus, on both alternatives, "Bm" constraint.
20851 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
20853 * config/arm/arm.md: Remove redundant constraints from
20854 define_expand but leave reload_inm and reload_outm patterns
20855 untouched since they need special constraints to work.
20856 * config/arm/arm-fixed.md: Remove redundant constraints from
20858 * config/arm/iwmmxt.md: Likewise.
20859 * config/arm/neon.md: Likewise.
20860 * config/arm/sync.md: Likewise.
20861 * config/arm/thumb1.md: Likewise.
20862 * config/arm/vec-common.md: Likewise.
20864 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
20866 * doc/install.texi: Document --disable-tm-clone-registry.
20868 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20871 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
20874 PR tree-optimization/91010
20875 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
20876 return true. Otherwise, don't call operand_equal_p if offset1 or
20877 offset2 is NULL and just return false.
20879 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20881 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
20882 user-specified float mode choice for kernel mode code.
20884 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20886 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
20889 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20891 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
20892 use longcall for 64b code.
20894 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
20896 * builtins.c (get_memory_rtx): Fix comment.
20897 * optabs.def (movmem_optab): Change to cpymem_optab.
20898 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
20899 (emit_block_move_hints): Change movmem to cpymem.
20900 * defaults.h: Change movmem to cpymem.
20901 * targhooks.c (get_move_ratio): Change movmem to cpymem.
20902 (default_use_by_pieces_infrastructure_p): Ditto.
20903 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
20904 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
20906 * config/aarch64/aarch64.h: Change movmem to cpymem.
20907 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
20908 * config/alpha/alpha.h: Change movmem to cpymem in comment.
20909 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
20911 * config/arc/arc-protos.h: Change movmem to cpymem.
20912 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
20913 * config/arc/arc.h: Change movmem to cpymem in comment.
20914 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
20915 * config/arm/arm-protos.h: Change movmem to cpymem in names.
20916 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
20917 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
20918 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
20919 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
20920 * config/avr/avr-protos.h: Change movmem to cpymem.
20921 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
20922 avr_out_movmem): Change movmem to cpymem.
20923 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
20924 Change movmem to cpymem.
20925 * config/bfin/bfin-protos.h: Change movmem to cpymem.
20926 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
20927 Change movmem to cpymem.
20928 * config/bfin/bfin.h: Change movmem to cpymem in comment.
20929 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
20930 * config/c6x/c6x-protos.h: Change movmem to cpymem.
20931 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
20932 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
20933 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
20934 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
20935 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
20936 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
20937 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
20938 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
20939 expand_small_cpymem_or_setmem,
20940 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
20941 expand_set_or_cpymem_constant_prologue,
20942 ix86_expand_set_or_cpymem): Change movmem to cpymem.
20943 * config/i386/i386-protos.h: Change movmem to cpymem.
20944 * config/i386/i386.h: Change movmem to cpymem in comment.
20945 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
20946 (setmem<mode>): Change expansion function name.
20947 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
20948 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
20949 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
20950 * config/m32c/m32c-protos.h: Change movmem to cpymem.
20951 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
20952 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
20953 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
20955 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
20956 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
20957 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
20958 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
20959 Change movmem to cpymem.
20960 * config/mips/mips.h: Change movmem to cpymem.
20961 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
20962 * config/nds32/nds32-memory-manipulation.c
20963 (nds32_expand_movmemsi_loop_unknown_size,
20964 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
20965 nds32_expand_movmemsi_unroll,
20966 nds32_expand_movmemsi): Change movmem to cpymem.
20967 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
20968 * config/nds32/nds32-protos.h: Change movmem to cpymem.
20969 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
20970 (pa_adjust_insn_length): Change call to compute_movmem_length.
20971 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
20972 movmemdi, movmemdi_prereload,
20973 movmemdi_postreload): Change movmem to cpymem.
20974 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
20975 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
20976 * config/riscv/riscv.c: Change movmem to cpymem in comment.
20977 * config/riscv/riscv.h: Change movmem to cpymem.
20978 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
20979 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
20980 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
20982 * config/s390/s390-protos.h: Change movmem to cpymem.
20983 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
20984 s390_expand_insv): Change movmem to cpymem.
20985 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
20986 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
20987 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
20988 * config/sparc/sparc.h: Change movmem to cpymem in comment.
20989 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
20990 for nonexistent function.
20991 * config/vax/vax.h: Change movmem to cpymem in comment.
20992 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
20993 * config/visium/visium.h: Change movmem to cpymem in comment.
20994 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
20995 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
20996 * doc/md.texi: Change movmem to cpymem and update description to match.
20997 * doc/rtl.texi: Change movmem to cpymem.
20998 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
20999 * doc/tm.texi: Regenerate.
21001 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
21003 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
21004 -fvariable-expansion-in-unroller by default.
21005 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
21008 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
21011 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21012 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21014 * config.gcc(rs6000-*-*): Define target_gtfiles.
21016 2019-06-27 Jan Hubicka <jh@suse.cz>
21018 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
21019 (add_type_duplicate): When odr hash is not allocated, to nothing.
21020 (odr_based_tbaa_p): New function.
21021 (set_type_canonical_for_odr_type): New function.
21022 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
21023 set_type_canonical_for_odr_type): New.
21024 * tree.c (gimple_canonical_types_compatible_p): ODR types with
21025 ODR based TBAA are not equivalent to non-ODR types.
21027 2019-06-27 Martin Liska <mliska@suse.cz>
21029 PR tree-optimization/90974
21030 PR rtl-optimization/90975
21031 PR rtl-optimization/90976
21033 PR tree-optimization/91017
21034 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
21036 * lra.c (lra_set_insn_recog_data): Remove a leftover from
21037 initial commit of IRA.
21038 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
21040 * tree-vect-loop.c (vect_create_epilog_for_reduction):
21041 Remove unused mode1.
21042 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
21045 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21048 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
21049 instead of register_operand for operands[1], add m to its constraints
21050 if operands[2] uses "C" constraint. Ensure in condition that if
21051 operands[2] is not 0, then operands[1] is not a MEM. For last two
21052 alternatives, use unaligned loads instead of aligned if operands[1] is
21053 misaligned_operand.
21055 2019-06-27 Martin Liska <mliska@suse.cz>
21057 * asan.c (asan_emit_allocas_unpoison): Remove obviously
21059 * bt-load.c (move_btr_def): Likewise.
21060 * builtins.c (expand_builtin_apply_args_1): Likewise.
21061 (expand_builtin_apply): Likewise.
21062 * cfgexpand.c (expand_asm_stmt): Likewise.
21063 (construct_init_block): Likewise.
21064 * cfghooks.c (verify_flow_info): Likewise.
21065 * cfgloopmanip.c (remove_path): Likewise.
21066 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
21067 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
21068 * combine.c (simplify_if_then_else): Likewise.
21069 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21070 (choose_basereg): Likewise.
21071 (ix86_expand_prologue): Likewise.
21072 (ix86_preferred_output_reload_class): Likewise.
21073 * cselib.c (cselib_record_sets): Likewise.
21074 * df-scan.c (df_scan_alloc): Likewise.
21075 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
21076 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
21077 * emit-rtl.c (try_split): Likewise.
21078 * graphite-scop-detection.c (assign_parameter_index_in_region):
21080 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
21081 * ira-color.c (setup_profitable_hard_regs): Likewise.
21082 * ira.c (rtx_moveable_p): Likewise.
21083 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21084 * read-rtl.c (read_subst_mapping): Likewise.
21085 * regrename.c (scan_rtx): Likewise.
21086 * reorg.c (fill_slots_from_thread): Likewise.
21087 * tree-inline.c (tree_function_versioning): Likewise.
21088 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
21089 * tree-ssa-sink.c (statement_sink_location): Likewise.
21090 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
21091 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
21092 (vect_create_epilog_for_reduction): Likewise.
21093 * tree.c (build_nonstandard_integer_type): Likewise.
21095 2019-06-27 Richard Biener <rguenther@suse.de>
21097 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
21099 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
21101 PR tree-optimization/89772
21102 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
21103 out-of-bound accesses checking.
21105 2019-06-27 Martin Liska <mliska@suse.cz>
21107 PR tree-optimization/91014
21108 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
21109 when LHS is NULL_TREE.
21111 2019-06-27 Martin Liska <mliska@suse.cz>
21113 * symbol-summary.h (traverse): Pass
21114 argument a to the call of callback.
21115 (gt_ggc_mx): Mark arguments as unused.
21116 (gt_pch_nx): Likewise.
21118 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
21121 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
21124 2019-06-26 Jeff Law <law@redhat.com>
21126 PR tree-optimization/90883
21127 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
21128 (delete_dead_or_redundant_assignment): Likewise.
21130 PR tree-optimization/90883
21131 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
21132 * tree-ssa-dse.c: Update various comments to distinguish between
21133 dead and redundant stores.
21134 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
21135 (dse_optimize_redundant_stores): New function.
21136 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
21137 Distinguish between dead and redundant calls in dump output. All
21139 (delete_dead_or_redundant_assignment): Similarly for assignments.
21140 (dse_optimize_stmt): Handle _CHK variants. For statements which
21141 store 0 into multiple memory locations, try to prove a subsequent
21142 store is redundant.
21144 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
21147 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
21148 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
21150 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21152 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
21153 (branch_islands): New extern.
21154 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
21155 * config/rs6000/rs6000.c: .. here.
21157 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21159 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
21160 (powerpc*-*-*) ... to here.
21162 2019-06-26 Jeff Law <law@redhat.com>
21164 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
21165 memcpy, memmove and memset builtins.
21166 (maybe_trim_memstar_call): Likewise.
21168 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21170 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
21172 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21174 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21176 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21178 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
21180 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
21182 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
21185 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21187 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
21189 2019-06-26 Richard Biener <rguenther@suse.de>
21192 * tree-inline.c (remap_ssa_name): Copy SSA range info.
21194 2019-06-26 Richard Biener <rguenther@suse.de>
21196 * lto-streamer.h (lto_bitmap_alloc): Remove.
21197 (lto_bitmap_free): Likewise.
21198 * lto-streamer.c (lto_bitmap_alloc): Remove.
21199 (lto_bitmap_free): Likewise.
21200 (lto_obstack): Likewise.
21201 (lto_obstack_initialized): Likewise.
21202 * lto-streamer-out.c (lto_output): Use own obstack for local
21203 bitmap, free it consistently.
21205 2019-06-26 Jakub Jelinek <jakub@redhat.com>
21208 * config/i386/sse.md
21209 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
21210 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
21211 insns if operands[2] is misaligned_operand.
21213 2019-06-26 Li Jia He <helijia@linux.ibm.com>
21215 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
21217 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
21220 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21222 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
21224 2019-06-26 Martin Liska <mliska@suse.cz>
21226 PR tree-optimization/90973
21227 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
21228 epilogue_cost_vec instead of prologue_cost_vec for
21231 2019-06-26 Martin Liska <mliska@suse.cz>
21233 * bb-reorder.c (connect_better_edge_p): Add missing else
21234 statement in the middle of if-else statements.
21236 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
21237 H.J. Lu <hongjiu.lu@intel.com>
21238 Olga Makhotina <olga.makhotina@intel.com>
21240 * common/config/i386/i386-common.c
21241 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
21242 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
21243 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
21244 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
21245 (ix86_handle_option): Handle -mavx512vp2intersect.
21246 * config/i386/avx512vp2intersectintrin.h: New.
21247 * config/i386/avx512vp2intersectvlintrin.h: New.
21248 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
21249 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21250 AVX512VP2INTERSECT.
21251 * config/i386/i386-builtin-types.def: Add new types.
21252 * config/i386/i386-builtin.def: Add new builtins.
21253 * config/i386/i386-builtins.c: (enum processor_features): Add
21254 F_AVX512VP2INTERSECT.
21255 (static const _isa_names_table isa_names_table): Ditto.
21256 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21257 __AVX512VP2INTERSECT__.
21258 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
21259 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
21260 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
21261 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
21262 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
21263 * config/i386/i386-options.c (ix86_target_string): Add
21264 -mavx512vp2intersect.
21265 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
21266 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
21267 P2HImode and P2QImode.
21268 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
21269 number for P2QImode and P2HImode.
21270 (ix86_regmode_natural_size): New function.
21271 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
21272 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
21273 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
21274 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
21275 * config/i386/i386.opt: Add -mavx512vp2intersect.
21276 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
21277 avx512vp2intersectvlintrin.h.
21278 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
21279 (define_mode_iterator VI48_AVX512VP2VL): New.
21280 (avx512vp2intersect_2intersect<mode>,
21281 avx512vp2intersect_2intersectv16si): New define_insn patterns.
21282 * config.gcc: Add avx512vp2intersectvlintrin.h and
21283 avx512vp2intersectintrin.h to extra_headers.
21284 * doc/invoke.texi: Document -mavx512vp2intersect.
21286 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
21288 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
21290 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21292 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
21293 savres_routine_syms, savres_routine_name, morestack_ref,
21294 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21295 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21296 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21297 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21298 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21299 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21300 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21301 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21302 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21303 get_stack_clash_protection_probe_interval,
21304 get_stack_clash_protection_guard_size,
21305 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21306 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21307 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21308 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21309 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21310 gen_frame_mem_offset, rs6000_savres_routine_name,
21311 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21312 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21313 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21314 rs6000_global_entry_point_prologue_needed_p,
21315 rs6000_get_separate_components, rs6000_components_for_bb,
21316 rs6000_disqualify_components, rs6000_emit_prologue_components,
21317 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21318 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21319 rs6000_output_savres_externs, rs6000_output_function_prologue,
21320 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21321 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21322 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21323 rs6000_output_function_epilogue, gen_add3_const,
21324 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21325 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21327 (machine_function): Moved to rs6000.h.
21328 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
21330 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
21331 savres_routine_syms, savres_routine_name, morestack_ref,
21332 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21333 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21334 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21335 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21336 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21337 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21338 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21339 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21340 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21341 get_stack_clash_protection_probe_interval,
21342 get_stack_clash_protection_guard_size,
21343 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21344 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21345 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21346 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21347 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21348 gen_frame_mem_offset, rs6000_savres_routine_name,
21349 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21350 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21351 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21352 rs6000_global_entry_point_prologue_needed_p,
21353 rs6000_get_separate_components, rs6000_components_for_bb,
21354 rs6000_disqualify_components, rs6000_emit_prologue_components,
21355 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21356 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21357 rs6000_output_savres_externs, rs6000_output_function_prologue,
21358 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21359 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21360 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21361 rs6000_output_function_epilogue, gen_add3_const,
21362 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21363 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21364 to here from rs6000.c.
21365 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
21366 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
21367 quad_address_offset_p) Moved to here from rs6000.c.
21368 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
21369 * config/config.gcc: Add new source file rs6000-logue.c to garbage
21372 2019-06-25 Martin Liska <mliska@suse.cz>
21374 * hash-table.c (hashtab_chk_error): Move here from ...
21375 * hash-table.h (hashtab_chk_error): ... here.
21377 2019-06-25 Martin Liska <mliska@suse.cz>
21379 PR tree-optimization/90978
21380 * df-scan.c (df_update_entry_block_defs): Remove dead else
21382 (df_update_exit_block_uses): Likewise.
21384 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
21385 Andrew Stubbs <ams@codesourcery.com>
21387 * config.gcc (thread_file): Set to gcn for AMD GCN.
21388 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
21389 (TARGET_EMUTLS_VAR_INIT): New hook.
21391 2019-06-25 Martin Jambor <mjambor@suse.cz>
21394 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
21396 2019-06-25 Richard Biener <rguenther@suse.de>
21398 PR tree-optimization/90930
21399 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
21400 into parallel form in the last pass instance.
21402 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
21404 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
21405 (arc_legitimize_pic_address): Simplify and cleanup the function.
21406 (SYMBOLIC_CONST): Remove.
21407 (prepare_pic_move): Likewise.
21408 (prepare_move_operands): Handle complex mov cases here.
21409 (arc_legitimize_address_0): Remove call to
21410 arc_legitimize_pic_address.
21411 (arc_legitimize_address): Remove call to
21412 arc_legitimize_tls_address.
21413 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
21414 (movhi_insn): Likewise.
21416 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21418 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
21420 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
21421 format of "__intN" types for UINTMAX_TYPE.
21422 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
21423 format of "__intN" types for SIZETYPE.
21424 * tree.c (build_common_tree_nodes): Accept "__intN__"
21425 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
21426 * doc/invoke.texi: Document that __intN__ disables pedantic
21429 2019-06-25 Jan Hubicka <jh@suse.cz>
21431 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
21432 base2_alias_set is non-zero before doing TBAA based disambiguation.
21434 2019-06-25 Martin Liska <mliska@suse.cz>
21436 PR tree-optimization/90973
21437 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
21438 of prologue and epilogue.
21440 2019-06-24 Jan Hubicka <jh@suse.cz>
21442 * ipa-utils.h (type_with_linkage_p): Verify that type is
21444 (odr_type_p): Remove extra return.
21445 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
21446 hash STRING_FLAG only for arrays and integers.
21447 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
21448 Update analogously.
21449 * tree-streamer-out.c (pack_ts_type_common_value_fields):
21451 * print-tree.c (print_node): Print cxx-odr-p
21453 * tree.c (need_assembler_name_p): Also check that type
21455 (verify_type_variant): Update verification of SRING_FLAG;
21456 also check CXX_ODR_P.
21457 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
21458 (TYPE_STRING_FLAG): Use it.
21459 (TYPE_CXX_ODR_P): New macro.
21460 * dwarf2out.c (gen_array_type_die): First check that type
21461 is an array and then test string flag.
21463 2019-06-24 Richard Biener <rguenther@suse.de>
21465 PR tree-optimization/90972
21466 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
21467 in common code, dealing with STRING_CST properly.
21469 2019-06-24 Richard Biener <rguenther@suse.de>
21471 PR tree-optimization/90930
21472 PR tree-optimization/90316
21473 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
21474 decrement of limit.
21476 2019-06-24 Martin Sebor <msebor@redhat.com>
21478 * tree-pretty-print.h: Remove unnecessary punctuation characters
21480 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
21482 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
21484 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
21485 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
21486 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
21488 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
21490 * config/rs6000/darwin.h: Handle GCC target pragma.
21492 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
21494 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
21496 2019-06-22 Jeff Law <law@redhat.com>
21498 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21500 2019-06-22 Jan Hubicka <jh@suse.cz>
21502 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
21503 give up on bitfields; continue searching for different refs
21506 2019-06-21 Jakub Jelinek <jakub@redhat.com>
21508 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
21509 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
21510 containing the offset as possible simd lane access. Look through
21511 widening conversion. Move the
21512 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
21514 2019-06-21 Richard Biener <rguenther@suse.de>
21516 PR tree-optimization/90930
21517 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
21518 flag on new stmts to avoid re-processing them.
21520 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
21522 PR c++/90875 - added -Wswitch-outside-range option
21523 * doc/invoke.texi (Wswitch-outside-range): Document.
21525 2019-06-21 Jeff Law <law@redhat.com>
21527 PR tree-optimization/90949
21528 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
21529 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
21531 2019-06-21 Richard Biener <rguenther@suse.de>
21534 * dwarf2out.c (prune_unused_types_walk): Always consider
21535 function-local extern declarations as used.
21537 2019-06-21 Richard Biener <rguenther@suse.de>
21539 PR tree-optimization/90913
21540 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
21541 the scalar variant of if-conversion versioning.
21543 2019-06-21 Jakub Jelinek <jakub@redhat.com>
21545 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
21546 create another "omp scan inscan exclusive" array if
21547 !ctx->scan_inclusive.
21548 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
21549 (lower_omp_scan): Likewise.
21550 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
21551 2-bit bitfield for simd_lane_access_p member.
21552 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
21553 aux == (void *)-4 as simd lane access.
21554 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
21555 comment with permutations to show the canonical permutation order.
21556 (vectorizable_scan_store): Handle exclusive scan.
21557 (vectorizable_store): Call vectorizable_scan_store even for
21558 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
21560 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
21561 "omp simd array" arrays with one byte elements.
21563 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
21565 * config/alpha/alpha.md (@unaligned_store<mode>):
21566 Rename from unaligned_store<mode>.
21567 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
21568 * config/alpha/sync.md (@load_locked_<mode>): Rename
21569 from load_locked_<mode>.
21570 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
21571 (@atomic_compare_and_swap<mode>_1): Rename
21572 from atomic_compare_and_swap<mode>_1.
21573 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
21574 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
21575 Use gen_reload_in_aligned and gen_unaligned_store.
21576 (emit_load_locked): Remove.
21577 (emit_store_conditional): Ditto.
21578 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
21579 (alpha_split_compare_and_swap): Ditto.
21580 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
21581 (alpha_split_compare_and_swap_12): Use gen_load_locked
21582 and gen_store_conditional.
21583 (alpha_split_atomic_exchange): Ditto.
21584 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
21585 (alpha_split_atomic_exchange_12): Use gen_load_locked
21586 and gen_store_conditional.
21588 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
21590 * config/aarch64/aarch64-errata.h: New file.
21591 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
21592 (CA53_ERR_843419_SPEC): Delete.
21593 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
21594 * config/aarch64/aarch64-linux.h: Likewise.
21595 * config/aarch64/aarch64-netbsd.h: Likewise.
21596 * config/aarch64/aarch64-freebsd.h: Likewise.
21598 2019-06-20 Marek Polacek <polacek@redhat.com>
21600 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
21602 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
21604 * config/rs6000/rs6000.md (isa attribute): Add support for
21605 for a future processor.
21607 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
21610 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
21611 standard scalar operation pattern for V2DF.
21612 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
21613 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
21614 (*ieee_<ieee_maxmin><mode>3): Likewise.
21615 (vec_setv2df_0): Likewise.
21617 2019-06-20 Jan Hubicka <jh@suse.cz>
21619 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
21620 parameter; it has no use in gimple memory model.
21621 (indirect_ref_may_alias_decl_p): Update.
21623 2019-06-20 Martin Liska <mliska@suse.cz>
21625 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
21628 2019-06-20 Jakub Jelinek <jakub@redhat.com>
21630 * tree-vect-stmts.c (enum scan_store_kind): New type.
21631 (scan_store_can_perm_p): Change last argument from int * to
21632 vec<enum scan_store_kind> *, record precisely which permutations
21633 need whole vector left shift or that plus VEC_COND_EXPR.
21634 (vectorizable_scan_store): Adjust caller, use whole vector left shift
21635 and additional VEC_COND_EXPR only for those iterations that need it.
21637 2019-06-20 Alexandre Oliva <oliva@adacore.com>
21639 * config.gcc: Fix ARM --with-fpu checking and error message.
21641 2019-06-19 Marek Polacek <polacek@redhat.com>
21643 PR c++/60364 - noreturn after first decl not diagnosed.
21644 * attribs.c (get_attribute_namespace): No longer static.
21645 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
21647 (attr_noreturn_exclusions): Make it extern.
21648 * attribs.h (get_attribute_namespace): Declare.
21649 * tree-inline.c (function_attribute_inlinable_p): Use
21650 get_attribute_name.
21652 2019-06-19 Martin Sebor <msebor@redhat.com>
21654 PR tree-optimization/90626
21655 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
21657 PR tree-optimization/90626
21658 * tree-ssa-strlen.c (strxcmp_unequal): New function.
21659 (handle_builtin_string_cmp): Call it.
21661 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
21663 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
21664 and DARWIN_NOPIE_SPEC.
21665 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
21666 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
21667 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
21668 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
21669 (DARWIN_EXPORT_DYNAMIC): Delete.
21670 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
21671 and pie options processing to darwin.h.
21672 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
21674 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
21676 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
21677 in computing the number of options to be moved.
21679 2019-06-19 Maya Rashish <coypu@sdf.org>
21681 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
21682 (CLEAR_INSN_CACHE) Use it.
21684 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
21686 * config/i386/i386.md (cmpstrnsi): Remove dead code.
21688 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
21690 PR middle-end/84521
21691 * builtins.c (expand_builtin_setjmp_setup): Save
21692 hard_frame_pointer_rtx.
21693 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
21695 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
21697 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
21699 (remove_reg_equal_offset_note): Remove unused function.
21700 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
21702 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21703 (arc_builtin_setjmp_frame_value): Remove function.
21704 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21705 (avr_builtin_setjmp_frame_value): Remove function.
21706 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21707 (ix86_builtin_setjmp_frame_value): Remove function.
21708 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
21709 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21710 (sparc_builtin_setjmp_frame_value): Remove function.
21711 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21712 (vax_builtin_setjmp_frame_value): Remove function.
21713 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
21714 pointer if has_nonlocal_label.
21716 2019-06-19 Jakub Jelinek <jakub@redhat.com>
21718 * doc/md.texi: Document vec_shl_<mode> pattern.
21719 * optabs.def (vec_shl_optab): New optab.
21720 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
21721 argument, if == vec_shl_optab, check for left whole vector shift
21722 pattern rather than right shift.
21723 (expand_vec_perm_const): Add vec_shl_optab support.
21724 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
21726 * tree-vect-generic.c (lower_vec_perm): Support permutations which
21727 can be handled by vec_shl_optab.
21728 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
21729 (check_scan_store): Use it.
21730 (vectorizable_scan_store): If target can't do normal permutations,
21731 try to use whole vector left shifts and if needed a VEC_COND_EXPR
21733 * config/i386/sse.md (vec_shl_<mode>): New expander.
21735 * omp-low.c (lower_rec_input_clauses): Handle references properly
21737 (lower_omp_scan): Likewise.
21739 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21741 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
21742 mem_mode is BLKmode.
21744 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
21747 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
21748 pointer adjustment for the case of no callee-saved registers and
21749 stack frame bigger than 128 bytes.
21751 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
21753 PR middle-end/90862
21754 * omp-low.c (check_omp_nesting_restrictions): Handle
21755 GF_OMP_TARGET_KIND_OACC_DECLARE.
21757 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
21759 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
21760 (@add<mode>3_carry): Rename from add<mode>3_carry.
21761 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
21762 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
21763 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
21764 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
21765 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
21766 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
21767 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
21768 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
21769 (cmpstrnsi): Use gen_cmp_1.
21770 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
21771 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
21772 (@umonitor_<mode>): Rename from umonitor_<mode>.
21773 * config/i386/i386-expand.c (ix86_expand_copysign):
21774 Use gen_copysign3_const and gen_copysign3_var.
21775 (ix86_expand_xorsign): Use gen_xorsign3_1.
21776 (ix86_expand_branch): Use gen_sub3_carry_ccc,
21777 gen_sub3_carry_ccgz and gen_cmp1.
21778 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
21779 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
21780 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
21781 (ix86_split_lshr): Ditto.
21782 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
21784 2019-06-18 Jason Merrill <jason@redhat.com>
21786 * tree.c (build_constructor): Add MEM_STAT_DECL.
21788 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21790 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
21791 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
21792 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
21793 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
21794 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
21795 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
21796 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
21797 Use CC_NZC instead of CC.
21798 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
21799 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
21800 (aarch64_print_operand): Handle E_CC_NZCmode.
21801 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
21802 of gen_set_clobber_cc.
21804 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21806 * config/aarch64/aarch64-sve.md: Tabify file.
21808 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21810 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
21811 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
21812 * config/aarch64/aarch64-sve.md: Use it.
21814 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21816 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
21817 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
21818 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
21819 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
21820 (aarch64_expand_sve_vec_cmp_int): Use it.
21821 (aarch64_expand_sve_vec_cmp_float): Likewise.
21822 * config/aarch64/aarch64-sve.md: Likewise throughout.
21824 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21825 Kugan Vivekanandarajah <kuganv@linaro.org>
21827 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
21828 (*cond_<optab><mode>_z): Fold into...
21829 (*cond_<optab><mode>_any): ...here. Also handle cases in which
21830 operand 4 can be tied to operand 0 (either inherently or via RA).
21832 2019-06-18 Richard Biener <rguenther@suse.de>
21835 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
21836 as if optimized away.
21838 2019-06-18 Tom de Vries <tdevries@suse.de>
21840 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
21841 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
21842 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
21844 (define_insn "@set_softstack_<mode>"): ... this.
21845 (define_insn "omp_simt_enter_<mode>"): Rename to ...
21846 (define_insn "@omp_simt_enter_<mode>"): ... this.
21847 (define_insn "omp_simt_exit_<mode>"): Rename to ...
21848 (define_insn "@omp_simt_exit_<mode>"): ... this.
21850 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21852 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
21853 vf parameter. Restore the previous iv step of nscalars_step,
21854 but give it iv_type rather than compare_type. Tweak code order
21855 to match the comments.
21856 (vect_set_loop_condition_masked): Update accordingly.
21857 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
21858 for iv_precision. Tweak comment formatting.
21860 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21862 * config/darwin.c: Strip trailing whitespace.
21864 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21866 * config/darwin.c (darwin_emit_unwind_label): New default to false.
21867 (darwin_override_options): Set darwin_emit_unwind_label as needed.
21869 2019-06-18 Martin Jambor <mjambor@suse.cz>
21872 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
21873 caller does not have flag_ipa_cp set.
21875 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21877 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
21878 from "*fold_left_plus_<mode>", updated operands order.
21879 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
21880 * internal-fn.c (mask_fold_left_direct): New define.
21881 (expand_mask_fold_left_optab_fn): Likewise.
21882 (direct_mask_fold_left_optab_supported_p): Likewise.
21883 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
21884 * optabs.def (mask_fold_left_plus_optab): New optab.
21885 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
21886 masked internal_fn for a reduction ifn.
21887 (vectorize_fold_left_reduction): Add support for masking reductions.
21889 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
21891 PR middle-end/80791
21892 * target.def (predict_doloop_p): New hook.
21893 * targhooks.h (default_predict_doloop_p): New declaration.
21894 * targhooks.c (default_predict_doloop_p): New function.
21895 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
21896 * doc/tm.texi: Regenerate.
21897 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
21898 (TARGET_PREDICT_DOLOOP_P): New macro.
21899 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
21901 2019-06-17 Jakub Jelinek <jakub@redhat.com>
21903 * omp-low.c (struct omp_context): Add scan_inclusive field.
21904 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
21906 (struct omplow_simd_context): Add lastlane member.
21907 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
21908 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
21910 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
21911 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
21912 (lower_omp_scan): New function.
21913 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
21914 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
21915 check 3rd argument if present rather than 2nd.
21916 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
21917 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
21919 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21920 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
21922 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
21923 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
21924 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
21926 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
21927 IFN_GOMP_SIMD_LANE argument.
21928 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
21929 encoded ->aux value.
21930 * tree-vect-stmts.c: Include attribs.h.
21931 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
21932 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
21934 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
21935 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
21937 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
21940 * config/i386/i386.md (*nabstf2_1): New insn pattern.
21941 (*nabs<mode>2_1): Ditto.
21942 (nabs sse-reg splitter): New splitter.
21943 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
21945 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21947 PR bootstrap/90873.
21948 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21951 2019-06-17 Tom de Vries <tdevries@suse.de>
21953 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
21954 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
21955 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
21957 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
21959 (define_insn "omp_simt_enter_insn"): Rename to ...
21960 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
21961 match_operand 0, 1 and 2, as well as the unspec_volatile result.
21962 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
21963 gen_omp_simt_enter_si.
21964 (define_expand "omp_simt_exit"): New.
21965 (define_insn "omp_simt_exit"): Rename to ...
21966 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
21969 2019-06-17 Matthew Green <mrg@eterna.com.au>
21970 Maya Rashish <coypu@sdf.org>
21972 * config.gcc (aarch64*-*-netbsd*): New target.
21973 * config/aarch64/aarch64-netbsd.h: New file.
21974 * config/aarch64/t-aarch64-netbsd: Likewise.
21976 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21978 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
21979 the access path from base to first VIEW_CONVERT_EXPR or
21982 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21984 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
21985 access path on BIT_FIELD_REFs.
21987 2019-06-17 Martin Liska <mliska@suse.cz>
21990 * ipa-utils.h (odr_type_p): Remove dead code.
21992 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21994 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
21995 alternative Solaris 11.4 format.
21996 * configure: Regenerate.
21998 2019-06-17 Tom de Vries <tdevries@suse.de>
22000 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
22001 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
22003 (define_insn "call_value_insn"): Rename to ...
22004 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
22006 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
22009 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
22011 PR middle-end/64242
22012 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
22013 frame clobbers and schedule block.
22014 (builtin_longjmp): Likewise.
22016 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22018 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
22019 describe how to perform MSPABI compliant 64-bit shift.
22020 * config/msp430/msp430.md (ashldi3): New define_expand.
22021 (ashrdi3): New define_expand.
22022 (lshrdi3): New define_expand.
22024 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22026 * doc/sourcebuild.texi: Document new effective target keyword
22029 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22031 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
22032 indirect_refs_may_alias_p): Revert accidental commits.
22034 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
22035 at the end of structures.
22037 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22039 * config/darwin.c (machopic_indirect_call_target): Use renamed
22040 darwin_picsymbol_stubs to decide on output.
22041 (darwin_override_options): Handle darwin_picsymbol_stubs.
22042 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
22043 (LD64_VERSION): Revise default.
22044 * config/darwin.opt: (mpic-symbol-stubs): New option.
22045 (darwin_picsymbol_stubs): New variable.
22046 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
22047 rename to TARGET_MACHO_PICSYM_STUBS.
22048 * config/i386/i386.c (output_pic_addr_const): Likewise.
22049 * config/i386/i386.h Likewise.
22050 * config/rs6000/darwin.h: Likewise.
22051 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
22052 darwin_picsymbol_stubs.
22054 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22056 * config/darwin.opt (prebind, noprebind, seglinkedit,
22057 noseglinkedit): Add RejectNegative.
22059 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22061 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
22062 in my previous patch.
22064 2019-06-16 Tom de Vries <tdevries@suse.de>
22066 PR tree-optimization/89376
22067 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
22069 2019-06-15 Maya Rashish <coypu@sdf.org>
22071 * doc/invoke.texi (Spec Files): Update location of the
22074 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
22076 * doc/extend.texi (Common Function Attributes): Clarify
22077 no_sanitize. Fix grammar.
22079 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
22081 * tree-ssa-alias.c (alias_stats): Add
22082 nonoverlapping_component_refs_p_may_alias,
22083 nonoverlapping_component_refs_p_no_alias,
22084 nonoverlapping_component_refs_of_decl_p_may_alias,
22085 nonoverlapping_component_refs_of_decl_p_no_alias.
22086 (dump_alias_stats): Dump them.
22087 (nonoverlapping_component_refs_of_decl_p): Add stats.
22088 (nonoverlapping_component_refs_p): Add stats; do not stop on first
22091 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
22093 * config/i386/i386.md (and<mode>3): Generate zero-extends for
22094 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
22096 (*anddi3_doubleword): Split before reload. Merge with
22097 anddi->zext pre-reload splitter.
22098 (*andndi3_doubleword): Split before reload.
22099 (*<code>di3_doubleword): Ditto.
22100 (*one_cmpldi2_doubleword): Ditto.
22102 2019-06-15 Jakub Jelinek <jakub@redhat.com>
22104 PR middle-end/90779
22105 * gimplify.c: Include omp-offload.h and context.h.
22106 (gimplify_bind_expr): Add "omp declare target" attributes
22107 to static block scope variables inside of target region or target
22110 2019-06-15 Tom de Vries <tdevries@suse.de>
22112 PR tree-optimization/90009
22113 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
22114 Return NULL if bb contains IFN_UNIQUE.
22116 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
22118 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
22119 (un): New define_mode_attr.
22120 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
22121 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
22122 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
22124 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
22126 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
22128 * config/darwin.opt: Add RejectNegative where needed, reorder
22129 and add minimal functional descriptions.
22131 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22133 PR rtl-optimization/90765
22134 * calls.c (update_stack_alignment_for_call): New function.
22135 (expand_call): Call update_stack_alignment_for_call when
22136 outgoing parameter is passed in the stack.
22137 (emit_library_call_value_1): Likewise.
22138 * function.c (locate_and_pad_parm): Don't update
22139 stack_alignment_needed and preferred_stack_boundary.
22141 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22144 * config/i386/i386-features.c
22145 (dimode_scalar_chain::compute_convert_gain): Replace
22146 mmxsse_to_integer with sse_to_integer.
22147 * config/i386/i386.c (ix86_register_move_cost): Verify that
22148 moves between MMX and non-MMX units require secondary memory.
22149 Correct costs of moves between SSE and integer units.
22150 * config/i386/i386.h (processor_costs): Rename cost of moving
22151 SSE register to integer to sse_to_integer. Rename cost of
22153 2019-06-14 Matt Thomas <matt@3am-software.com>
22154 Matthew Green <mrg@eterna.com.au>
22155 Nick Hudson <skrll@netbsd.org>
22156 Maya Rashish <coypu@sdf.org>
22157 Richard Earnshaw <rearnsha@arm.com>
22159 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
22160 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
22161 * config/arm/netbsd-eabi.h: New file.
22162 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
22164 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
22165 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
22166 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
22167 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
22169 2019-06-14 Richard Biener <rguenther@suse.de>
22171 * tree-loop-distribution.c (classify_partition): Return
22172 whether a reduction appeared in all partitions and do not
22173 stop builtin detection because of this.
22174 (distribute_loop): Sort a non-builtin partition last if
22175 there's a reduction in all partitions and make sure the
22176 partition prevailing as last is not a builtin.
22178 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
22181 * ipa-prop.c (add_to_agg_contents_list): New function.
22182 (clobber_by_agg_contents_list_p): Likewise.
22183 (extract_mem_content): Likewise.
22184 (get_place_in_agg_contents_list): Delete.
22185 (determine_known_aggregate_parts): Renamed from
22186 determine_locally_known_aggregate_parts. New parameter
22189 2019-06-13 Martin Sebor <msebor@redhat.com>
22191 PR tree-optimization/90662
22192 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
22195 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22198 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
22199 dbase is not TARGET_MEM_REF.
22201 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22203 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
22205 (and<mode>3): Use gen_extend_insn instead of indirect functions.
22206 Do not generate DImode extends for 32bit targets.
22207 (and->zext post-reload splitter): Use gen_extend_insn
22208 instead of indirect functions.
22209 (anddi->zext pre-reload splitter): New.
22210 (*zext<mode>_doubleword_and): Remove.
22211 (*zext<mode>_doubleword): Ditto.
22212 (*zextsi_doubleword): Dittto.
22214 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22216 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22217 Use gen_sub3_insn instead of indirect function.
22218 (ix86_expand_ashl_const): Use gen_add2_insn instead of
22220 (ix86_adjust_counter): Ditto.
22222 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
22223 Lijia He <helijia@linux.ibm.com>
22225 PR tree-optimization/77820
22226 * tree-ssa-threadedge.c
22227 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
22229 (thread_across_edge): Add call to
22230 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
22232 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
22234 * config/darwin-driver.c (validate_macosx_version_min): New.
22235 (darwin_default_min_version): Cleanup and validate supplied version.
22236 (darwin_driver_init): Likewise and push cleaned version into opts.
22238 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22240 PR tree-optimization/90869
22241 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
22242 converts in MEM_REF referencing decl rather than view converts
22243 from decl type to MEM_REF type.
22245 2019-06-13 Richard Biener <rguenther@suse.de>
22247 PR tree-optimization/90856
22248 * tree-sra.c (build_ref_for_model): Only use
22249 build_reconstructed_reference when address-spaces are the same.
22251 2019-06-13 Jakub Jelinek <jakub@redhat.com>
22253 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
22254 wrap ei variable name in the declaration in ()s.
22255 (nvptx_single): Actually use mode_label variable. Formatting fix.
22257 2019-06-13 Richard Biener <rguenther@suse.de>
22259 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
22260 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
22261 also return the condition stmt.
22262 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
22263 loop we can version and version that, reusing the loop version
22264 created by if-conversion instead of versioning again.
22266 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
22268 * gimple-loop-versioning.cc (prune_loop_conditions): Use
22270 * tree-vrp (value_range_base::may_contain_p): Call into
22271 value_inside_range.
22272 (value_inside_range): Make private inside value_range_base class.
22273 Take min/max from *this.
22274 (range_includes_p): Remove.
22275 * tree-vrp.h (value_range_base): Add value_inside_range.
22276 (range_includes_p): Remove.
22277 (range_includes_zero_p): Call may_contain_p.
22278 * vr-values.c (compare_range_with_value): Same.
22280 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
22282 * doc/extend.texi (ARC Function Attributes): Update info.
22284 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
22286 PR tree-optimization/89713
22287 * doc/invoke.texi (-ffinite-loops): Document new option.
22288 * common.opt (-ffinite-loops): New option.
22289 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
22290 IFN_GOACC_LOOP calls as necessary.
22291 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
22293 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
22294 IFN_GOACC_LOOP call is not used.
22295 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
22297 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22300 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
22301 compare_type is not with Pmode size, we will create an IV with
22302 Pmode size with truncated use (i.e. converted to the correct type).
22303 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
22304 (vect_iv_limit_for_full_masking): New. Factored out of
22305 vect_set_loop_condition_masked.
22306 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
22307 (vect_iv_limit_for_full_masking): Declare.
22309 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22312 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
22313 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
22314 (get_alias_ptr_type_for_ptr_address): Likewise.
22315 (add_iv_candidate_for_use): Add scaled index candidate if useful.
22316 * tree-ssa-address.c (preferred_mem_scale_factor): New.
22317 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
22320 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22322 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
22324 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
22326 * common/config/pru/pru-common.c: New file.
22327 * config.gcc: Add PRU target.
22328 * config/pru/alu-zext.md: New file.
22329 * config/pru/constraints.md: New file.
22330 * config/pru/predicates.md: New file.
22331 * config/pru/pru-opts.h: New file.
22332 * config/pru/pru-passes.c: New file.
22333 * config/pru/pru-pragma.c: New file.
22334 * config/pru/pru-protos.h: New file.
22335 * config/pru/pru.c: New file.
22336 * config/pru/pru.h: New file.
22337 * config/pru/pru.md: New file.
22338 * config/pru/pru.opt: New file.
22339 * config/pru/t-pru: New file.
22340 * doc/extend.texi: Document PRU pragmas.
22341 * doc/invoke.texi: Document PRU-specific options.
22342 * doc/md.texi: Document PRU asm constraints.
22344 2019-06-12 Martin Sebor <msebor@redhat.com>
22346 PR middle-end/90676
22347 * tree-pretty-print.c (dump_mem_ref): New function. Include
22348 MEM_REF type in output when different size than operand.
22349 (dump_generic_node): Move code to dump_mem_ref and call it.
22351 2019-06-12 Martin Sebor <msebor@redhat.com>
22353 PR tree-optimization/90662
22354 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
22357 2019-06-12 Tom de Vries <tdevries@suse.de>
22359 PR tree-optimization/90009
22360 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
22362 2019-06-12 Martin Liska <mliska@suse.cz>
22364 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
22366 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
22367 * mem-stats.h (mem_alloc_description::mem_alloc_description):
22368 Do not sanitize created maps.
22370 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
22372 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
22373 value_range::singleton_p.
22374 * tree-vrp.c (value_range_constant_singleton): Remove.
22375 * tree-vrp.h (value_range_constant_singleton): Remove.
22376 * vr-values.c (vr_values::singleton): Use
22377 value_range::singleton_p.
22379 2019-06-12 Jakub Jelinek <jakub@redhat.com>
22382 * cfgexpand.c (align_local_variable): Add really_expand argument,
22383 don't SET_DECL_ALIGN if it is false.
22384 (add_stack_var): Add really_expand argument, pass it through to
22385 align_local_variable.
22386 (expand_one_stack_var_1): Pass true as really_expand to
22387 align_local_variable.
22388 (expand_one_ssa_partition): Pass true as really_expand to
22390 (expand_one_var): Pass really_expand through to add_stack_var.
22392 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
22394 * config/arm/iterators.md (VABAL): New int iterator.
22395 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
22396 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
22397 UNSPEC_VABAL_U values.
22399 2019-06-12 Martin Liska <mliska@suse.cz>
22401 * value-prof.c (stream_out_histogram_value): Only first value
22404 2019-06-12 Jakub Jelinek <jakub@redhat.com>
22407 * symtab.c (symtab_node::set_section): Allow being called on aliases
22408 as long as they aren't analyzed yet.
22410 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
22412 * config/mips/mips.c (mips_final_postscan_insn): Modify call
22413 to `mips_set_text_contents_type' to indicate whether a
22414 non-debug insn follows.
22416 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
22418 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
22419 enabling -mpcrel by default.
22420 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
22421 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
22422 that the test against -mcpu=future is done first. Then test if
22423 -mprefixed-addr is on for -mpcrel.
22424 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
22426 2019-06-11 Jakub Jelinek <jakub@redhat.com>
22429 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
22430 instead of and.u%d.
22432 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
22434 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
22436 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
22438 PR c++/90449 - add -Winaccessible-base option.
22439 * doc/invoke.texi (Winaccessible-base): Document.
22441 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
22443 PR tree-optimization/62041
22444 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
22446 2019-06-11 Jason Merrill <jason@redhat.com>
22448 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
22449 * tree.c (get_tree_code_name): Likewise.
22450 * print-tree.c (print_node): Only briefly print a node with an
22453 2019-06-11 Jakub Jelinek <jakub@redhat.com>
22456 * trans-mem.c (tm_memopt_compute_available): Add assertion
22457 that blocks is not empty. Formatting fix.
22459 2019-06-11 Martin Liska <mliska@suse.cz>
22462 * hash-table.h: Extend create_gcc, add one parameter
22463 that is passed into hash_table::hash_table.
22465 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
22467 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
22469 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
22470 Emit clobber also for non-sse operations.
22471 (ix86_split_fp_absneg_operator): New function.
22472 * config/i386/i386.md (SSEMODEF): New mode iterator.
22473 (ssevecmodef): New mode attribute.
22474 (<code>tf2): Use absneg code iterator.
22475 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
22476 Add three-operand AVX alternatives.
22477 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
22478 Use absneg code iterator and X87MODEF mode iterator.
22479 (absneg fp_reg non-sse splitter): Call absneg code iterator
22480 and X87MODEF mode iterator.
22481 (absneg general_reg non-sse splitter): Use absneg code iterator
22482 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
22483 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
22484 code iterator. Add three-operand AVX alternative.
22485 (absneg sse_reg splitter): Use absneg code iterator
22486 and SSEMODEF mode iterator. Handle AVX operands.
22487 (absneg fp_reg splitter): Use absneg code iterator
22488 and MODEF mode iterator.
22489 (absneg general_reg splitter): Merge splitters using MODEF mode
22490 iterator. Use absneg code iterator. Call
22491 ix86_split_fp_absneg_operator.
22492 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
22493 Do not enable for non-sse modes before reload.
22494 (CSGNMODE): Remove.
22495 (CSGNVMODE): Ditto.
22496 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
22497 ssevecmodef mode attribute instaed of CSGNVMODE.
22498 (copysign<mode>3_const): Ditto.
22499 (copysign<mode>3_var): Ditto.
22500 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
22501 Use absneg code iterator. Simplify code using std::swap.
22502 * config/i386/predicates.md (absneg_operator): Remove.
22504 2019-06-10 Martin Sebor <msebor@redhat.com>
22506 * gimple-fold.c (get_range_strlen): Update comment that didn't
22507 make it into r267503 or related commits.
22509 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
22511 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
22512 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
22514 2019-06-10 Jakub Jelinek <jakub@redhat.com>
22516 * tree.def (OMP_SCAN): New tree code.
22517 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
22518 OMP_CLAUSE_EXCLUSIVE.
22519 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
22520 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
22521 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
22522 OMP_CLAUSE_{IN,EX}CLUSIVE.
22523 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
22524 * tree-nested.c (convert_nonlocal_reference_stmt,
22525 convert_local_reference_stmt, convert_gimple_call): Handle
22527 * tree-pretty-print.c (dump_omp_clause): Handle
22528 OMP_CLAUSE_{IN,EX}CLUSIVE.
22529 (dump_generic_node): Handle OMP_SCAN.
22530 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
22531 * gimple.h (gomp_scan): New type.
22532 (is_a_helper <gomp_scan *>::test,
22533 is_a_helper <const gomp_scan *>::test): New templates.
22534 (gimple_build_omp_scan): Declare.
22535 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
22536 gimple_omp_scan_set_clauses): New inline functions.
22537 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
22538 * gimple.c (gimple_build_omp_scan): New function.
22539 (gimple_copy): Handle GIMPLE_OMP_SCAN.
22540 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
22541 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
22542 GIMPLE_OMP_TASKGROUP.
22543 (dump_gimple_omp_scan): New function.
22544 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
22545 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
22546 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
22547 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
22548 (is_gimple_stmt): Handle OMP_SCAN.
22549 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
22550 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
22551 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
22552 mentioned in nested #pragma omp scan. Handle
22553 OMP_CLAUSE_{IN,EX}CLUSIVE.
22554 (gimplify_expr): Handle OMP_SCAN.
22555 * omp-low.c (check_omp_nesting_restrictions): For parent context,
22556 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
22558 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
22561 2019-06-10 Martin Liska <mliska@suse.cz>
22563 * ipa-cp.c (ignore_edge_p): New function.
22564 (build_toporder_info): Use it.
22565 * ipa-inline.c (ignore_edge_p): New function.
22566 (inline_small_functions): Use it.
22567 * ipa-pure-const.c (ignore_edge_for_nothrow):
22568 Verify opt_for_fn for caller and callee.
22569 (ignore_edge_for_pure_const): Likewise.
22570 * ipa-reference.c (ignore_edge_p): Extend to check
22572 * ipa-utils.c (searchc): Refactor.
22573 * ipa-utils.h: Fix coding style.
22575 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
22577 * config/arc/arc.c (arc_rtx_costs): Update costs.
22579 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
22581 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
22582 (arc_split_ior): Likewise.
22583 (arc_check_mov_const): Likewise.
22584 (arc_split_mov_const): Likewise.
22585 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
22586 (arc_rtx_costs): Replace check Crr with Cax constraint.
22587 (prepare_move_operands): Cleanup, remove unused code.
22588 (arc_split_ior): New function.
22589 (arc_check_ior_const): Likewise.
22590 (arc_split_mov_const): Likewise.
22591 (arc_check_mov_const): Likewise.
22592 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
22593 in define_insn_and_split pattern.
22594 (iorsi3): Likewise.
22595 (mulsi3_v2): Add new matching variant.
22596 (andsi3_i): Cleanup pattern.
22597 (rotrsi3_cnt1): Update pattern.
22598 (rotrsi3_cnt8): New pattern.
22599 (ashlsi2_cnt8): Likewise.
22600 (ashlsi2_cnt16): Likewise.
22601 * config/arc/constraints.md (C0p): Update constraint.
22603 (C0x): New pattern.
22604 (Cax): New pattern.
22606 2019-06-10 Martin Liska <mliska@suse.cz>
22608 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
22609 Update coding style.
22610 (sem_item_optimizer::dump_cong_classes):
22611 Print how many items are in a non-singular class. Improve
22614 2019-06-10 Martin Liska <mliska@suse.cz>
22616 * value-prof.c (dump_histogram_value): Change dump format.
22617 (gimple_mod_subtract_transform): Remove legacy comment.
22619 2019-06-10 Martin Liska <mliska@suse.cz>
22621 * value-prof.c (dump_histogram_value): Print histogram values
22624 2019-06-10 Martin Liska <mliska@suse.cz>
22626 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
22627 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
22628 * ipa-profile.c (ipa_profile_generate_summary):
22629 Use get_most_common_single_value.
22630 * tree-profile.c (gimple_init_gcov_profiler):
22631 Instrument with __gcov_one_value_profiler_v2
22632 and __gcov_indirect_call_profiler_v4.
22633 * value-prof.c (dump_histogram_value):
22634 Print all values for HIST_TYPE_SINGLE_VALUE.
22635 (stream_out_histogram_value): Update assert for
22637 (stream_in_histogram_value): Set number of
22638 counters for HIST_TYPE_SINGLE_VALUE.
22639 (get_most_common_single_value): New.
22640 (gimple_divmod_fixed_value_transform):
22641 Use get_most_common_single_value.
22642 (gimple_ic_transform): Likewise.
22643 (gimple_stringops_transform): Likewise.
22644 (gimple_find_values_to_profile): Set number
22645 of counters for HIST_TYPE_SINGLE_VALUE.
22646 * value-prof.h (get_most_common_single_value): New.
22648 2019-06-10 Martin Liska <mliska@suse.cz>
22650 * hash-map.h: Pass default value to hash_table ctor.
22651 * hash-table.h: Add default value to call of a ctor.
22653 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
22655 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
22656 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
22658 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
22661 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
22662 Call pa_output_function_label.
22663 (TARGET_ASM_FUNCTION_PROLOGUE): define.
22664 * config/pa/pa-protos.h (pa_output_function_label): Declare.
22665 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
22667 (pa_linux_output_function_prologue): Declare.
22668 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
22669 (pa_output_function_label): New.
22670 (pa_output_function_prologue): Revise to use pa_output_function_label.
22671 (pa_linux_output_function_prologue): New.
22672 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
22674 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
22676 * tree-vrp.h (value_range_base::intersect): New.
22677 (value_range::intersect_helper): Move from here...
22678 (value_range_base::intersect_helper): ...to here.
22679 * tree-vrp.c (value_range::intersect_helper): Rename to...
22680 (value_range_base::intersect_helper): ...this, and rewrite to
22681 return a value instead of modifying THIS in place.
22682 Also, move equivalence handling...
22683 (value_range::intersect): ...here, while calling intersect_helper.
22684 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
22686 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
22688 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
22690 2019-06-07 Jakub Jelinek <jakub@redhat.com>
22692 * Makefile.in (genprogerr): Add condmd.
22693 (genprog): Remove it here.
22695 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
22697 * doc/invoke.texi (AMD GCN Options): Add gfx906.
22699 2019-06-07 Richard Biener <rguenther@suse.de>
22702 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
22703 that appear after user labels.
22705 2019-06-07 Martin Liska <mliska@suse.cz>
22707 * cselib.c (cselib_init): Disable hash table
22709 * hash-set.h: Pass new default argument to m_table.
22710 * hash-table.c: Add global variable with hash table
22711 sanitization limit.
22712 * hash-table.h (Allocator>::hash_table): Add new argument
22714 (hashtab_chk_error): New.
22715 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
22716 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
22717 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
22719 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
22721 * common.opt (flto-odr-type-merging): Ignore.
22722 * invoke.texi (-flto-odr-type-merging): Remove.
22723 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
22724 (can_be_vtable_hashed_p): Remove.
22725 (hash_odr_vtable): Remove.
22726 (odr_vtable_hasher::hash): Remove.
22727 (types_same_for_odr): Remove.
22728 (types_odr_comparable): Remove.
22729 (odr_vtable_hasher::equal): Remove.
22730 (odr_vtable_hash_type, odr_vtable_hash): Remove.
22731 (add_type_duplicate): Do not synchronize vtable and name hashtables.
22732 (get_odr_type): Do not use vtable hash.
22733 (dump_odr_type): Remove commented out code.
22734 (build_type_inheritance_graph): Do not allocate vtable hash.
22735 (rebuild_type_inheritance_graph): Do not delete vtable hash.
22736 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
22737 (odr_type_p): Likewise.
22738 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
22741 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
22743 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
22744 immediately after same_types_for_tbaa_p returns -1 and continue
22745 looking for possible exact match; if matching types are arrays
22746 watch for partial overlaps.
22747 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
22748 (indirect_refs_may_alias_p): Do type based disambiguation first;
22751 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
22753 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
22755 2019-06-07 Martin Liska <mliska@suse.cz>
22757 * doc/invoke.texi: Remove param.
22758 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
22760 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
22761 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
22762 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
22763 * profile.c (instrument_values): Remove
22764 HIST_TYPE_INDIR_CALL_TOPN.
22765 * tree-profile.c (init_ic_make_global_vars):
22766 Always build __gcov_indirect_call only.
22767 (gimple_init_gcov_profiler): Remove usage
22768 of PARAM_INDIR_CALL_TOPN_PROFILE.
22769 (gimple_gen_ic_profiler): Likewise.
22770 * value-prof.c (dump_histogram_value): Likewise.
22771 (stream_in_histogram_value): Likewise.
22772 (gimple_indirect_call_to_profile): Likewise.
22773 (gimple_find_values_to_profile): Likewise.
22774 * value-prof.h (enum hist_type): Likewise.
22776 2019-06-07 Martin Liska <mliska@suse.cz>
22778 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
22781 2019-06-07 Martin Liska <mliska@suse.cz>
22783 PR tree-optimization/78902
22784 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
22785 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
22786 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22787 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22788 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
22789 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22790 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
22791 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
22792 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22793 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22794 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22795 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
22796 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
22798 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
22799 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
22800 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
22801 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22802 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22803 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
22804 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22805 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22806 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
22807 warn_unused_result attribute.
22808 (BUILT_IN_STRDUP): Likewise.
22809 (BUILT_IN_STRNDUP): Likewise.
22810 (BUILT_IN_ALLOCA): Likewise.
22811 (BUILT_IN_CALLOC): Likewise.
22812 (BUILT_IN_MALLOC): Likewise.
22813 (BUILT_IN_REALLOC): Likewise.
22815 2019-06-06 Jim Wilson <jimw@sifive.com>
22818 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
22819 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
22820 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
22822 2019-06-06 Martin Sebor <msebor@redhat.com>
22824 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
22825 (handle_builtin_malloc): Remove trailing spaces.
22826 (handle_builtin_memset): Same.
22827 (handle_builtin_memcmp): Same.
22828 (compute_string_length): Same.
22829 (determine_min_objsize): Same.
22830 (handle_builtin_string_cmp): Same.
22831 (handle_char_store): Same. Break up excessively long line.
22833 2019-06-06 Martin Jambor <mjambor@suse.cz>
22835 * tree-sra.c (build_reconstructed_reference): Drop the alignment
22838 2019-06-06 Martin Jambor <mjambor@suse.cz>
22840 * tree-sra.c (struct access): New field grp_same_access_path.
22841 (dump_access): Dump it.
22842 (build_reconstructed_reference): New function.
22843 (build_ref_for_model): Use it if possible.
22844 (path_comparable_for_same_access): New function.
22845 (same_access_path_p): Likewise.
22846 (sort_and_splice_var_accesses): Set the new flag.
22847 (analyze_access_subtree): Likewise.
22848 (propagate_subaccesses_across_link): Propagate zero value of the new
22849 flag down the access tree.
22851 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
22853 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
22854 * config/gcn/gcn.opt (gpu_type): Add gfx906.
22855 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
22856 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
22859 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22861 PR tree-optimization/90332
22862 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
22863 Handle VALS containing two vectors.
22864 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
22866 (@aarch64_combinez<mode>): ... This.
22867 (*aarch64_combinez_be<mode>): Rename to...
22868 (@aarch64_combinez_be<mode>): ... This.
22869 (vec_init<mode><Vhalf>): New define_expand.
22870 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
22872 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22874 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
22875 library functions only when not optimizing for size.
22876 (ashlsi3): Likewise.
22877 (ashrhi3): Likewise.
22878 (ashrsi3): Likewise.
22879 (lshrhi3): Likewise.
22880 (lshrsi3): Likewise.
22882 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
22884 PR rtl-optimization/88751
22885 * ira.c (ira): Use the number of the actually referenced registers
22886 when calculating the threshold.
22888 2019-06-06 Jakub Jelinek <jakub@redhat.com>
22890 * configure: Regenerate.
22892 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22894 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
22895 register if it is in memory, so the shift can be emulated with a rotate
22897 (ashrhi3): Likewise.
22898 (lshrhi3): Likewise.
22900 2019-06-06 Martin Liska <mliska@suse.cz>
22902 PR tree-optimization/87954
22903 * match.pd: Simplify mult where both arguments are 0 or 1.
22905 2019-06-06 Richard Biener <rguenther@suse.de>
22907 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
22908 put equivalences on UNDEFINED ranges.
22909 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
22910 Make sure to drop defs of stmts added during simplification
22913 2019-06-06 Richard Biener <rguenther@suse.de>
22915 * tree-ssa-structalias.c: Include tree-cfg.h.
22916 (make_heapvar): Do not make heap vars artificial.
22917 (find_func_aliases_for_builtin_call): Handle stack allocation
22919 (find_func_aliases): Delay processing of simple enough returns
22921 (set_uids_in_ptset): Adjust.
22922 (find_what_var_points_to): Likewise.
22923 (solve_constraints): Do not dump points-to sets here.
22924 (compute_points_to_sets): Post-process return statements,
22925 amending the escaped solution. Dump points-to sets afterwards.
22926 (ipa_pta_execute): Dump points-to sets.
22928 2019-06-06 Martin Liska <mliska@suse.cz>
22931 * doc/install.texi: Fix HTML headers and
22932 titles for 'Installing GCC' pages.
22934 2019-06-06 Martin Liska <mliska@suse.cz>
22936 * ipa-icf-gimple.h (dump_message_1): Remove.
22937 (dump_message): Likewise.
22938 (return_false_with_message_1): Print also file.
22939 (return_false_with_msg): Likewise.
22940 (return_with_result): Likewise.
22941 (return_with_debug): Likewise.
22942 * ipa-icf.c (sem_function::equals_private): Remove call
22945 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22947 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
22948 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
22949 memory operand for it.
22950 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
22952 2019-06-05 Martin Sebor <msebor@redhat.com>
22954 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
22955 Adjust quoting and hyphenation.
22956 * convert.c (convert_to_real_1): Same.
22957 * gcc.c (driver_wrong_lang_callback): Same.
22958 (driver::handle_unrecognized_options): Same.
22959 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
22960 * opts-common.c (cmdline_handle_error): Same.
22961 (read_cmdline_option): Same.
22962 * opts-global.c (complain_wrong_lang): Same.
22963 (print_ignored_options): Same.
22964 (handle_common_deferred_options): Same.
22965 * pretty-print.h: Same.
22966 * print-rtl.c (debug_bb_n_slim): Same.
22967 * sched-rgn.c (make_pass_sched_fusion): Same.
22968 * tree-cfg.c (verify_gimple_assign_unary): Same.
22969 (verify_gimple_label): Same.
22970 * tree-ssa-operands.c (verify_ssa_operands): Same.
22971 * varasm.c (do_assemble_alias): Same.
22972 (assemble_alias): Same.
22974 2019-06-05 Richard Henderson <rth@twiddle.net>
22976 * config/alpha/alpha.c (direct_return): Move down after
22977 struct machine_function definition; use saved frame_size;
22979 (struct machine_function): Add sa_mask, sa_size, frame_size.
22980 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
22981 (alpha_compute_frame_layout): ... new function.
22982 (TARGET_COMPUTE_FRAME_LAYOUT): New.
22983 (alpha_initial_elimination_offset): Use saved sa_size.
22984 (alpha_vms_initial_elimination_offset): Likewise.
22985 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
22986 (alpha_expand_prologue): Use saved frame data. Merge integer
22987 and fp register save loops.
22988 (alpha_expand_epilogue): Likewise.
22989 (alpha_start_function): Use saved frame data.
22990 * config/alpha/alpha-protos.h (direct_return): Update.
22991 (alpha_sa_size): Remove.
22993 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
22995 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
22996 multiplication by a power-of-two value.
22997 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
22998 and turn the modulo operation into a masking operation.
23000 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23003 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
23004 with VOIDmode inner operands.
23006 2019-06-05 Richard Biener <rguenther@suse.de>
23008 PR middle-end/90726
23009 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23010 turn an expression graph into a tree.
23012 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23014 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
23016 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
23017 treat it like explicit monotonic schedule modifier.
23018 (expand_omp_for): Initialize has_lastprivate_conditional.
23019 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
23022 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
23023 references, lookup in in hash map MEM_REF operand instead of the
23025 (lower_omp_1): When looking for lastprivate conditional assignments,
23026 handle MEM_REFs with REFERENCE_TYPE operands.
23028 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
23029 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
23030 and references a VLA. Handle references to non-VLAs if is_simd
23031 all privatization clauses like reductions.
23032 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
23033 If omp_is_reference, use always omp simd arrays and set
23034 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
23035 fails, emit reference initialization.
23037 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23040 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
23041 _mm_mask_fpclass_sd_mask): New intrinsics.
23042 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
23043 * config/i386/i386-builtin.def
23044 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
23046 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
23047 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
23048 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
23049 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
23050 case QI_FTYPE_V2SF_INT): Ditto.
23051 * config/i386/sse.md
23052 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
23053 Extended to insnstructions with mask operands.
23055 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23057 * config/rs6000/constraints.md (define_register_constraint "wp"):
23059 (define_register_constraint "wq"): Delete.
23060 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23061 (rs6000_init_hard_regno_mode_ok): Adjust.
23062 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23063 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
23064 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
23065 (define_mode_attr VSa): Delete.
23066 (define_mode_attr VSisa): New.
23067 (rest of file): Adjust.
23068 * doc/md.texi (Machine Constraints): Adjust.
23070 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23072 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
23073 (define_attr "enabled"): Handle those new isa values.
23075 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23077 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
23078 (define_mode_attr VSr5): Delete.
23079 (define_mode_attr VStype_sqrt): Delete.
23080 (define_mode_iterator VSX_SPDP): Delete.
23081 (define_mode_attr VS_spdp_res): Delete.
23082 (define_mode_attr VS_spdp_insn): Delete.
23083 (define_mode_attr VS_spdp_type): Delete.
23084 (*vsx_sqrt<mode>2): Adjust.
23085 (vsx_<VS_spdp_insn>): Delete, split to...
23086 (vsx_xscvdpsp): ... this. New. And...
23087 (vsx_xvcvspdp): ... this. New. And...
23088 (vsx_xvcvdpsp): ... this. New.
23090 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23092 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
23094 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
23095 (rest of file): Adjust.
23097 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23099 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
23100 (vsx_extract_<mode>_var): Ditto.
23102 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23104 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
23107 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23109 * config/rs6000/constraints.md (define_register_constraint "ww"):
23111 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23112 (rs6000_init_hard_regno_mode_ok): Adjust.
23113 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23114 RS6000_CONSTRAINT_ww.
23115 * config/rs6000/rs6000.md: Adjust.
23116 * config/rs6000/vsx.md: Adjust.
23117 * doc/md.texi (Machine Constraints): Adjust.
23119 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23121 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
23122 (define_mode_attr sd): New.
23123 (define_mode_attr s): New.
23124 (define_mode_attr Ftrad): Delete.
23125 (define_mode_attr Fvsx): Delete.
23126 (define_mode_attr Fs): Delete.
23127 (rest of file): Use the new mode attributes.
23128 * config.rs6000/vsx.md: Use the new mode attributes.
23130 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23132 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
23135 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23137 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
23138 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
23139 used with VSX_B, VSX_D, or VSX_F, with just "wa".
23141 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
23144 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
23145 C++ with strict ANSI requirements.
23147 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
23149 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
23150 computations when step is 1.
23152 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23154 * config/rs6000/constraints.md (define_register_constraint "wf"):
23156 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23157 (rs6000_init_hard_regno_mode_ok): Adjust.
23158 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23159 RS6000_CONSTRAINT_wf.
23160 * config/rs6000/rs6000.md: Adjust.
23161 * config/rs6000/vsx.md: Adjust.
23162 * doc/md.texi (Machine Constraints): Adjust.
23164 2019-06-04 Andrew Pinski <apinski@marvell.com>
23166 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
23169 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23171 * config/rs6000/constraints.md (define_register_constraint "wd"):
23173 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23174 (rs6000_init_hard_regno_mode_ok): Adjust.
23175 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23176 RS6000_CONSTRAINT_wd.
23177 * config/rs6000/rs6000.md: Adjust.
23178 * config/rs6000/vsx.md: Adjust.
23179 * doc/md.texi (Machine Constraints): Adjust.
23181 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23183 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
23184 (rest of file): Adjust.
23186 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23188 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
23189 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
23190 (vsx_splat_<mode>_reg): Adjust.
23192 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23194 * config/rs6000/constraints.md (define_register_constraint "ws"):
23196 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23197 (rs6000_init_hard_regno_mode_ok): Adjust.
23198 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23199 RS6000_CONSTRAINT_ws.
23200 * config/rs6000/rs6000.md: Adjust.
23201 * config/rs6000/vsx.md: Adjust.
23202 * doc/md.texi (Machine Constraints): Adjust.
23204 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23206 * config/rs6000/constraints.md (define_register_constraint "wv"):
23208 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23209 (rs6000_init_hard_regno_mode_ok): Adjust.
23210 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23211 RS6000_CONSTRAINT_wv.
23212 * config/rs6000/rs6000.md: Adjust.
23213 * config/rs6000/vsx.md: Adjust.
23214 * doc/md.texi (Machine Constraints): Adjust.
23216 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23218 * config/rs6000/constraints.md (define_register_constraint "wi"):
23220 (define_register_constraint "wt"): Delete.
23221 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23222 (rs6000_init_hard_regno_mode_ok): Adjust.
23223 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23224 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
23225 * config/rs6000/rs6000.md: Adjust.
23226 * config/rs6000/vsx.md: Adjust.
23227 * doc/md.texi (Machine Constraints): Adjust.
23229 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
23231 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
23233 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
23234 default_elf_asm_output_external.
23236 2019-06-04 Martin Liska <mliska@suse.cz>
23238 * ipa-icf.c (INCLUDE_LIST): Remove.
23239 (sem_item_optimizer::execute): Remove call to init_wpa.
23240 * ipa-icf.h (init_wpa): Remove.
23242 2019-06-04 Jakub Jelinek <jakub@redhat.com>
23244 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
23245 conditional on combined for simd.
23246 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
23248 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
23249 constructs, don't remove lastprivate_conditional_map, but instead set
23250 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
23251 to parent construct temporaries.
23252 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
23253 like !ctx->lastprivate_conditional_map.
23254 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
23255 use up->outer context instead of up.
23256 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
23257 gimple_omp_for_combined_p.
23258 (expand_omp_for_static_nochunk): Likewise.
23259 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
23260 probably moved over into expand_omp_for_generic rather than being copied
23263 2019-06-04 Martin Liska <mliska@suse.cz>
23265 * value-prof.c (dump_histogram_value): Fix typo.
23266 (gimple_mod_subtract_transform): Likewise.
23268 2019-06-04 Richard Biener <rguenther@suse.de>
23270 PR middle-end/90726
23271 * tree-chrec.c (chrec_contains_symbols): Add to visited.
23272 (tree_contains_chrecs): Likewise.
23273 (chrec_contains_symbols_defined_in_loop): Move here and avoid
23274 exponential behaivor from ...
23275 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23277 (expression_expensive_p): Avoid exponential behavior and compute
23278 expanded size, rejecting any expansion.
23279 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
23280 (idx_contains_abnormal_ssa_name_p): Likewise.
23281 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
23282 (contains_abnormal_ssa_name_p): Simplify and use
23283 walk_tree_without_duplicates.
23285 2019-06-04 Richard Biener <rguenther@suse.de>
23287 PR tree-optimization/90738
23289 2019-06-03 Richard Biener <rguenther@suse.de>
23291 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23292 full reference tree and record in ref->ref.
23293 (vn_reference_lookup_3): Pass in original ref to
23294 ao_ref_init_from_vn_reference.
23295 (vn_reference_lookup): Likewise.
23296 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23297 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23298 Handle non-decl bases in the original reference.
23300 2019-06-04 Martin Liska <mliska@suse.cz>
23302 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
23303 number of references.
23304 (sem_item_optimizer::do_congruence_step):
23305 (sem_item_optimizer::worklist_push): Dump how references
23307 (sem_item_optimizer::worklist_pop): Use heap.
23308 (sem_item_optimizer::process_cong_reduction): Likewise.
23309 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
23311 2019-06-04 Martin Liska <mliska@suse.cz>
23313 * ipa-icf.h (struct sem_usage_pair_hash): New.
23314 (sem_usage_pair_hash::hash): Likewise.
23315 (sem_usage_pair_hash::equal): Likewise.
23316 (struct sem_usage_hash): Likewise.
23317 * ipa-icf.c (sem_item::sem_item): Initialize
23318 referenced_by_count.
23319 (sem_item::add_reference): Register a reference
23320 in ref_map and not in target->usages.
23321 (sem_item::setup): Remove initialization of
23323 (sem_item::~sem_item): Remove usage of dead vectors.
23324 (sem_item::dump): Remove dump of references.
23325 (sem_item_optimizer::sem_item_optimizer): Initialize
23327 (sem_item_optimizer::read_section): Remove useless
23329 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
23330 (sem_item_optimizer::build_graph): Pass m_references
23331 to ::add_reference.
23332 (sem_item_optimizer::verify_classes): Remove usage of dead
23334 (sem_item_optimizer::traverse_congruence_split): Return true
23335 when a class is split.
23336 (sem_item_optimizer::do_congruence_step_for_index): Use
23337 hash_map for look up of (sem_item *, index). That brings
23338 significant speed up.
23339 (sem_item_optimizer::do_congruence_step): Return true
23340 when a split is done.
23341 (congruence_class::is_class_used): Use referenced_by_count.
23343 2019-06-04 Alan Modra <amodra@gmail.com>
23346 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
23349 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23351 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
23352 * config/rs6000/rs6000.c (direct_move_p): Adjust.
23353 (rs6000_secondary_reload_simple_move): Adjust.
23354 (rs6000_opt_masks): Neuter the "mfpgpr" option.
23355 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
23356 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
23359 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
23360 (floatunssi<mode>2_lfiwzx): Adjust.
23361 (fix_trunc<mode>si2_stfiwx): Adjust.
23362 (fixuns_trunc<mode>si2_stfiwx): Adjust.
23363 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
23364 (mfpgpr): Mark as deprecated.
23365 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
23366 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
23367 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
23369 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23371 * config/rs6000/constraints.md (define_register_constraint "wg"):
23373 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23374 RS6000_CONSTRAINT_wg.
23375 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23376 (rs6000_init_hard_regno_mode_ok): Adjust.
23377 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
23378 Delete "wg" alternatives.
23379 * doc/md.texi (Machine Constraints): Adjust.
23381 2019-06-03 Alan Modra <amodra@gmail.com>
23383 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
23384 (get_uncond_jump_length): Assert length less than INT_MAX and
23387 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
23389 PR middle-end/64242
23390 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
23392 (expand_builtin_nonlocal_goto): Likewise.
23394 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23396 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
23397 (aarch64_asm_output_external): Declare.
23398 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
23399 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
23400 (aarch64_asm_output_alias): New.
23401 (aarch64_asm_output_external): New.
23402 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
23403 (ASM_OUTPUT_EXTERNAL): Define.
23405 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
23406 * tree-vrp.h (value_range_base::nonzero_p): New.
23407 (value_range_base::set_nonnull): Rename to...
23408 (value_range_base::set_nonzero): ...this.
23409 (value_range_base::set_null): Rename to...
23410 (value_range_base::set_zero): ...this.
23411 (value_range::set_nonnull): Remove.
23412 (value_range::set_null): Remove.
23413 * tree-vrp.c (range_is_null): Remove.
23414 (range_is_nonnull): Remove.
23415 (extract_range_from_binary_expr): Use value_range_base::*zero_p
23416 instead of range_is_*null.
23417 (extract_range_from_unary_expr): Same.
23418 (value_range_base::set_nonnull): Rename to...
23419 (value_range_base::set_nonzero): ...this.
23420 (value_range::set_nonnull): Remove.
23421 (value_range_base::set_null): Rename to...
23422 (value_range_base::set_zero): ...this.
23423 (value_range::set_null): Remove.
23424 (extract_range_from_binary_expr): Rename set_*null uses to
23426 (extract_range_from_unary_expr): Same.
23427 (union_helper): Same.
23428 * vr-values.c (get_value_range): Use set_*zero instead of
23430 (vr_values::extract_range_from_binary_expr): Same.
23431 (vr_values::extract_range_basic): Same.
23433 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
23436 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
23438 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23440 * config/aarch64/iterators.md (MAX_OPP): New code attr.
23441 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
23443 (aarch64_<su>abd<mode>_3): ... This.
23444 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
23446 2019-06-03 Richard Biener <rguenther@suse.de>
23448 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23449 full reference tree and record in ref->ref.
23450 (vn_reference_lookup_3): Pass in original ref to
23451 ao_ref_init_from_vn_reference.
23452 (vn_reference_lookup): Likewise.
23453 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23454 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23455 Handle non-decl bases in the original reference.
23457 2019-06-03 Martin Liska <mliska@suse.cz>
23459 * doc/generic.texi: Remove Java Trees.
23461 2019-06-03 Martin Liska <mliska@suse.cz>
23463 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
23464 returns 0 when operands are equal.
23466 2019-06-03 Richard Biener <rguenther@suse.de>
23468 PR tree-optimization/90716
23469 * tree-loop-distribution.c (destroy_loop): Process blocks in
23472 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23475 * vector-builder.h (vector_builder::count_dups): New method.
23476 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
23478 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
23479 (vec_init<mode><Vel>): New pattern.
23480 * config/aarch64/aarch64.c (emit_insr): New function.
23481 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
23482 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
23483 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
23484 (aarch64_sve_expand_vector_init): Define two overloaded functions.
23486 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23488 PR tree-optimization/90681
23489 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
23490 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
23491 special case for SLP, but fail on non-groupped loads.
23493 2019-06-03 Martin Liska <mliska@suse.cz>
23495 * cfg.c (debug): Use TDF_DETAILS for debug and
23496 print edge info only once.
23498 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
23501 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
23503 2019-06-01 Martin Sebor <msebor@redhat.com>
23505 PR middle-end/90694
23506 * tree-pretty-print.c (dump_generic_node): Add parentheses.
23508 2019-05-31 Jan Hubicka <jh@suse.cz>
23510 * alias.c: Include ipa-utils.h.
23511 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
23512 * ipa-devirt.c (prevailing_odr_type): New.
23513 * ipa-utils.h (previaling_odr_type): Declare.
23515 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
23516 Hongtao Liu <hongtao.liu@intel.com>
23519 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
23520 NOTE_INSN_DELETED_LABEL check.
23522 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
23523 Robert Suchanek <robert.suchanek@mips.com>
23525 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
23526 and 3rd operands of the fmadd/fmsub/maddv builtin.
23528 2019-05-31 Jakub Jelinek <jakub@redhat.com>
23530 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
23531 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23532 on OMP_SIMD if not nested inside of worksharing loop that also has
23533 lastprivate conditional clause for the same decl.
23534 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
23535 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
23537 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
23539 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
23541 (lower_lastprivate_clauses): Likewise.
23542 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
23543 calling lower_rec_input_clauses.
23544 (lower_omp_for): Likewise.
23545 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
23546 clause on simd construct.
23547 * omp-expand.c (expand_omp_simd): Initialize cond_var if
23548 OMP_CLAUSE__CONDTEMP_ clause is present.
23550 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
23553 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
23556 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
23557 TEX_D32, TEX_D64 or TEX_D128.
23559 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
23561 * match.pd (~(vec?cst1:cst2)): New transformation.
23563 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
23565 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
23566 ((size_t)(A /[ex] B) CMP C): New transformation.
23568 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
23570 * doc/md.texi: Document define_insn_and_rewrite.
23571 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
23572 * gensupport.c (queue_elem): Update comment.
23573 (replace_operands_with_dups): New function.
23574 (gen_rewrite_sequence): Likewise.
23575 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
23576 * read-rtl.c (apply_subst_iterator): Likewise.
23577 (add_condition_to_rtx, named_rtx_p): Likewise.
23578 (rtx_reader::read_rtx_operand): Likewise.
23579 * config/aarch64/aarch64-sve.md
23580 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
23581 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
23582 define_insn_and_rewrite.
23583 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
23584 Remove separate define_split.
23586 2019-05-31 Jan Hubicka <jh@suse.cz>
23588 * tree-ssa-alias.c (type_has_components_p): New function.
23589 (aliasing_component_refs_p): Use it.
23591 2019-05-31 Martin Liska <mliska@suse.cz>
23593 * gdbhooks.py: Add const_tree to TreePrinter.
23595 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
23598 * common.opt (feliminate-unused-debug-symbols): Enable by default.
23599 * doc/invoke.texi (Debugging Options): Document new default of
23600 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
23602 2019-05-31 Jakub Jelinek <jakub@redhat.com>
23604 PR tree-optimization/90671
23605 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
23606 template_block used to be empty on the first call, don't use
23607 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
23608 seq with bb_seq and set it with set_bb_seq.
23610 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
23612 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
23614 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23615 Michael Meissner <meissner@linux.ibm.com>
23617 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
23618 (prefixed_mem_operand): Likewise.
23619 (non_prefixed_mem_operand): Likewise.
23620 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
23622 * config/rs6000/rs6000.c (print_operand_address): Handle
23623 PC-relative addresses.
23624 (mode_supports_prefixed_address_p): New function.
23625 (rs6000_prefixed_address): New function.
23626 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
23627 (SYMBOL_REF_PCREL_P): Likewise.
23629 2019-05-30 Jakub Jelinek <jakub@redhat.com>
23631 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
23632 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
23633 (gimplify_omp_for): If worksharing loop with lastprivate conditional
23634 is nested inside of parallel region, add _condtemp_ clause to both.
23635 * tree-nested.c (convert_nonlocal_omp_clauses,
23636 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
23638 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
23640 * omp-general.c (omp_extract_for_data): Compute it.
23641 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
23642 (lower_rec_input_clauses): Likewise.
23643 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
23644 clause is already present, just add one further one after it.
23645 (lower_lastprivate_clauses): Handle cond_ptr with array type.
23646 (lower_send_shared_vars): Clear _condtemp_ vars.
23647 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
23648 or section or taskgroup.
23649 * omp-expand.c (determine_parallel_type): Disallow combining only if
23650 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
23651 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
23652 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23653 expand_omp_for_static_chunk, expand_omp_for): Use
23654 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
23655 determine if a special set of API routines are needed and if condtemp
23656 needs to be initialized, while always initialize cond_var if
23657 fd->lastprivate_conditional is non-zero.
23659 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23660 Michael Meissner <meissner@linux.ibm.com>
23662 * config/rs6000/constraints.md (eI): New constraint.
23663 * config/rs6000/predicates.md (cint34_operand): New predicate.
23664 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
23665 (SIGNED_34BIT_OFFSET_P): Likewise.
23666 * doc/md.texi (eI): Document constraint.
23668 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
23670 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
23672 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23673 Michael Meissner <meissner@linux.ibm.com>
23675 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
23676 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
23677 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
23678 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
23679 (OTHER_FUTURE_MASKS): Likewise.
23680 (POWERPC_MASKS): Likewise.
23681 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
23682 specified without -mprefixed-addr or -mcpu=future. Error if
23683 -mprefixed-addr is specified without -mcpu=future.
23684 (rs6000_opt_masks): Add entry for prefixed-addr.
23685 * rs6000.opt (mprefixed-addr): New option.
23687 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
23689 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
23690 cfun->is_thunk check.
23692 2019-05-30 Jakub Jelinek <jakub@redhat.com>
23694 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
23697 2019-05-30 Martin Liska <mliska@suse.cz>
23699 * gdbinit.in: Fix 'ptc' command. Add trt
23700 that prints TREE_TYPE($).
23702 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
23703 Alan Modra <amodra@gmail.com>
23705 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
23707 (rs6000_indirect_call_template_1): ...and here.
23708 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
23709 plt16_ha, plt16_lo, mtctr indirect calls. Use
23710 rs6000_pltseq_enum.
23711 (rs6000_decl_ok_for_sibcall): New function.
23712 (rs6000_function_ok_for_sibcall): Refactor.
23713 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
23714 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
23715 when pcrel. Reorganize.
23716 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
23717 * rs6000.h (rs6000_pltseq_enum): New enum.
23718 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
23719 (*pltseq_tocsave): Use rs6000_pltseq_enum.
23720 (*pltseq_plt16_ha): Likewise.
23721 (*pltseq_plt16_lo): Likewise.
23722 (*pltseq_mtctr): Likewise.
23723 (*pltseq_plt_pcrel): New insn.
23724 (*call_local_aix): Handle @notoc calls.
23725 (*call_value_local_aix): Likewise.
23726 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
23727 (*call_value_nonlocal_aix): Likewise.
23728 (*call_indirect_pcrel): New insn.
23729 (*call_value_indirect_pcrel): Likewise.
23731 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
23733 * config/i386/sse.md (*save_multiple<mode>): Rename from
23734 save_multiple<mode>.
23735 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
23736 (*restore_multiple_and_return<mode>): Rename from
23737 restore_multiple_and_return<mode>.
23738 (*restore_multiple_leave_return<mode>): Rename from
23739 restore_multiple_leave_return<mode>.
23741 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
23743 * config.gcc (rx-*-linux*): New target.
23744 * config/rx/elf.opt: New file.
23745 * config/rx/linux.h: Likewise.
23746 * config/rx/t-linux: Likewise.
23747 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
23749 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
23750 (ASM_APP_OFF): Likewise.
23751 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
23754 2019-05-29 Jan Hubicka <jh@suse.cz>
23756 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
23757 variants are pointer equivalent.
23759 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23761 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
23762 * config/aarch64/aarch64-sve2.md: New file.
23763 (<u>avg<mode>3_floor): New pattern.
23764 (<u>avg<mode>3_ceil): Likewise.
23765 (*<sur>h<addsub><mode>): Likewise.
23766 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
23767 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
23769 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23772 * optc-save-gen.awk: In cl_optimization_print, use correct condition
23773 for var_opt_string printing. In cl_optimization_print_diff, print
23774 (null) instead of invoking undefined behavior if one of the
23775 var_opt_string pointers is NULL and use && instead of first || in the
23776 guarding condition. For var_target_other options, handle const char *
23777 target variables similarly to const char * optimize node variables.
23779 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
23781 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
23782 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
23783 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
23784 Add autib1716 and pacib1716 initialisation.
23785 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
23786 for autib1716 and pacib1716.
23787 * config/aarch64/aarch64-protos.h (aarch64_key_type,
23788 aarch64_post_cfi_startproc): Define.
23789 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
23790 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
23791 aarch64_handle_pac_ret_protection): Set default sign key to A.
23792 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
23793 aarch64_expand_prologue): Add check for b-key.
23794 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
23795 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
23796 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
23797 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
23798 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
23799 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
23800 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23801 * config/aarch64/aarch64.md (do_return): Add check for b-key.
23802 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
23803 pauth_hint_num_a with pauth_hint_num.
23804 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
23805 pauth_hint_num_a with pauth_hint_num.
23806 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
23807 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
23808 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23809 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
23810 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
23811 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
23812 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
23813 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23814 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
23815 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
23816 UNSPEC_AUTIA1716 respectively.
23817 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
23818 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
23819 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
23820 * doc/invoke.texi (-mbranch-protection): Add b-key type.
23821 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
23822 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
23824 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23826 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
23827 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
23828 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
23829 explicit clause on combined parallel into implicit shared clause.
23830 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
23831 and firstprivate if the decl has one too from combined parallel to
23832 the worksharing construct.
23834 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
23835 Michael Meissner <meissner@linux.ibm.com>
23837 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
23839 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
23841 * rtl.h (LABEL_REF_P): New #define.
23843 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
23845 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
23847 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23849 * internal-fn.c: Marked mask_load_direct as vectorizable.
23850 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
23851 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
23852 combined even if masks different with allow_slp_p param.
23853 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
23854 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
23855 dissolve SLP-only vectorizable groups when SLP has been discarded.
23856 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
23857 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
23859 (vect_build_slp_tree_1): Fixed comment typo.
23860 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
23861 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
23862 loads for SLP only.
23863 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
23865 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
23867 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23869 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
23870 Remove obsolete use_thunk reference.
23871 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23872 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23873 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23874 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23875 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23876 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23877 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23878 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23879 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23881 2019-05-28 Nathan Sidwell <nathan@acm.org>
23883 * tree.h (IDENTIFIER_ANON_P): New.
23884 (anon_aggrname_format, anon_aggname_p): Don't declare.
23885 (make_anon_name): Declare.
23886 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
23887 (hash_tree): Likewise.
23888 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
23889 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
23890 (anon_cnt, make_anon_name): New.
23892 2019-05-28 Martin Liska <mliska@suse.cz>
23895 * opts-global.c (decode_options): Print help for all
23896 help_option_arguments.
23897 * opts.c (print_help): Add new argument.
23898 (common_handle_option): Remember all values into
23899 help_option_arguments.
23900 * opts.h (print_help): Add new argument.
23902 2019-05-28 Martin Liska <mliska@suse.cz>
23905 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
23906 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
23907 (func_checker::compare_bb): Call compare_loops.
23909 2019-05-27 Jakub Jelinek <jakub@redhat.com>
23911 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23912 on sections construct.
23913 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
23915 (lower_omp_sections): Handle lastprivate conditional.
23916 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
23917 lastprivate_conditional_map.
23918 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
23920 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
23921 critical, taskgroup and section regions when looking for a region
23922 with non-NULL lastprivate_conditional_map.
23924 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23926 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
23927 (*ix86_gen_sub3): Ditto.
23928 (*ix86_gen_sub3_carry): Ditto.
23929 (*ix86_gen_one_cmpl2): Ditto.
23930 (*ix86_gen_andsp): Ditto.
23931 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
23932 (gen_and2_insn): New static function.
23933 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
23934 Use gen_add3_insn instead of ix86_gen_add3.
23935 (ix86_expand_split_stack_prologue): Use gen_add2_insn
23936 instead of ix86_gen_add3.
23937 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
23938 Use gen_sub3_insn instead of ix86_gen_sub3.
23939 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
23940 instead of ix86_gen_add3.
23941 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
23942 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
23943 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
23944 * config/i386/i386-options.c (ix86_option_override_internal):
23945 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
23946 ix86_gen_one_cmpl2 and ix86_gen_andsp.
23948 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
23950 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
23951 and DW_OP_GNU_const_index opcodes.
23953 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23955 * config/i386/i386.h (STACK_SIZE_MODE): Define.
23957 2019-05-27 Richard Biener <rguenther@suse.de>
23959 PR tree-optimization/90637
23960 * tree-ssa-sink.c (statement_sink_location): Honor the
23961 computed sink location for single-uses.
23963 2019-05-27 Richard Biener <rguenther@suse.de>
23965 PR middle-end/90610
23966 * match.pd (vec_perm): Avoid clobbering op0 when not generating
23969 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23971 * config/i386/i386.md (@sub<mode>3_carry): Rename
23972 from sub<mode>3_carry.
23973 (@leave_<mode>): New expander.
23974 (*leave): Rename from leave.
23975 (*leave_rex64): Rename from leave_rex64.
23976 (@monitorx_<mode>): Rename from monitorx_<mode>.
23977 (@clzero_<mode>): Rename from clzero_<mode>.
23978 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
23979 from sse3_monitor_<mode>.
23980 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
23981 (*ix86_gen_leave): Ditto.
23982 (*ix86_gen_monitor): Ditto.
23983 (*ix86_gen_monitorx): Ditto.
23984 (*ix86_gen_clzero): Ditto.
23985 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
23986 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
23987 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
23988 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
23989 Use gen_sse3_monitor instead of ix86_gen_monitor.
23990 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
23991 instead of ix86_gen_monitorx.
23992 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
23993 instead of ix86_gen_clzero.
23994 * config/i386/i386-options.c (ix86_option_override_internal):
23995 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
23996 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
23998 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24000 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
24001 Rename from tls_global_dynamic_64_<mode>.
24002 (@tls_local_dynamic_base_64_<mode>): Rename from
24003 tls_local_dynamic_base_64_<mode>.
24004 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
24005 Remove indirect function.
24006 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
24007 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
24008 instead of ix86_gen_tls_global_dynamic_64.
24009 Use gen_tls_local_dynamic_base_64 instead of
24010 ix86_gen_tls_local_dynamic_base_64.
24011 * config/i386/i386-options.c (ix86_option_override_internal):
24012 Do not initialize ix86_gen_tls_global_dynamic_64 and
24013 ix86_gen_tls_local_dynamic_base_64.
24015 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24017 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
24018 Rename from pro_epilogue_adjust_stack_<mode>_add.
24019 (@pro_epilogue_adjust_stack_sub_<mode>)
24020 Rename from pro_epilogue_adjust_stack_<mode>_sub.
24021 (@allocate_stack_worker_probe_<mode>):
24022 Rename from allocate_stack_worker_probe_<mode>.
24023 (allocate_stack): Use gen_allocate_stack_worker_probe.
24024 (probe_stack): Use gen_probe_stack_1.
24025 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
24026 (@adjust_stack_and_probe_<mode>): Rename from
24027 adjust_stack_and_probe<mode>.
24028 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
24029 (stack_protect_set): Use gen_stack_protect_set_1.
24030 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
24031 (stack_protect_test): Use gen_stack_protect_test_1.
24032 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
24033 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
24034 Remove indirect function.
24035 (*ix86_gen_adjust_stack_and_probe): Ditto.
24036 (*ix86_gen_probe_stack_range): Ditto.
24037 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
24038 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
24039 (ix86_adjust_stack_and_probe_stack_clash): Use
24040 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
24041 (ix86_adjust_stack_and_probe): Ditto.
24042 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
24043 of ix86_gen_probe_stack_range.
24044 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
24045 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
24046 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
24047 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
24048 CODE_FOR_stack_protect_test_{si,di}.
24049 * config/i386/i386-options.c (ix86_option_override_internal):
24050 Do not initialize ix86_gen_allocate_stack_worker,
24051 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
24053 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
24055 * doc/invoke.texi (Link Options): Many editorial changes around
24058 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24060 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
24061 pre-Solaris 11 referene and most Studio compiler details.
24063 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
24066 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
24067 DImode to SImode in floating-point registers on 64-bit target.
24068 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
24069 register_operand in xmpyu patterns.
24071 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24073 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
24074 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
24075 OMP_CLAUSE__REDUCTEMP_.
24076 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
24077 OMP_CLAUSE__CONDTEMP_.
24078 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
24079 * tree-pretty-print.c (dump_omp_clause): Likewise.
24080 * tree-nested.c (convert_nonlocal_omp_clauses,
24081 convert_local_omp_clauses): Likewise.
24082 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
24083 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
24084 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
24086 (gimplify_omp_for): Warn and disable conditional modifier from
24087 lastprivate on loop iterators.
24088 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
24090 * omp-general.c (omp_extract_for_data): Initialize it.
24091 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
24093 (delete_omp_context): Delete it.
24094 (lower_lastprivate_conditional_clauses): New function.
24095 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
24096 handle lastprivate conditional clauses.
24097 (lower_reduction_clauses): Add CLIST argument, emit it into
24098 the critical section if any.
24099 (lower_omp_sections): Adjust lower_lastprivate_clauses and
24100 lower_reduction_clauses callers.
24101 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
24102 to lower_lastprivate_clauses.
24103 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
24104 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
24105 clist into a critical section if not emitted there already by
24106 lower_reduction_clauses.
24107 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
24109 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
24110 conditional variables.
24111 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
24113 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24114 expand_omp_for_static_chunk): Handle lastprivate conditional.
24115 (expand_omp_for): Handle fd.lastprivate_conditional like
24118 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24120 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
24121 kernel does not exit cleanly.
24122 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
24124 2019-05-24 Jason Merrill <jason@redhat.com>
24127 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24129 2019-05-24 Richard Biener <rguenther@suse.de>
24132 * tree-loop-distribution.c (struct partition): Add location
24134 (partition_alloc): Initialize all fields.
24135 (generate_memset_builtin): Use the location recorded in the
24136 partition for the generated call.
24137 (generate_memcpy_builtin): Likewise.
24138 (classify_partition): Record the location of a single store
24139 as location for the partition.
24141 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24143 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
24146 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
24149 * common/config/aarch64/aarch64-common.c
24150 (aarch64_rewrite_selected_cpu): Change local temporary variable
24151 type from unsigned long to uint64_t.
24152 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
24153 aarch64_get_extension_string_for_isa_flags): Change declaration to
24154 match new definition by replacing unsigned long with uint64_t.
24156 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24159 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
24160 gen_attr_type just once instead of 4-7 times. Formatting fixes.
24161 Handle stack_protect_test_<mode> codegen similarly to corresponding
24164 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
24166 * config/i386/darwin.h: Reject -mfentry*.
24167 * doc/sourcebuild.texi: Document mfentry target support.
24169 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24171 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
24172 Rename to rs6000_global_entry_point_prologue_needed_p. Return
24173 false for PC-relative functions.
24174 (rs6000_output_function_prologue): Change called function name to
24175 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
24176 name,1" for PC-relative functions.
24177 (rs6000_elf_declare_function_name): Change called function name to
24178 rs6000_global_entry_point_prologue_needed_p.
24180 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
24183 * config/i386/i386.c (gen_rtx_cost):
24184 Use ix86_tune_cost instead of ix86_cost.
24186 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24187 Michael Meissner <meissner@linux.ibm.com>
24188 Segher Boessenkool <segher@kernel.crashing.org>
24190 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
24192 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
24193 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
24194 (rs6000_fndecl_pcrel_p): Likewise.
24195 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
24196 error if -mpcrel is requested without -mcpu=future.
24197 (rs6000_opt_masks): Add entry for pcrel.
24198 (rs6000_fndecl_pcrel_p): New function.
24199 (rs6000_pcrel_p): Likewise.
24200 * config/rs6000/rs6000.opt (mpcrel): New option.
24201 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
24203 2019-05-23 Jan Hubicka <jh@suse.cz>
24204 Martin Liska <mliska@suse.cz>
24206 PR tree-optimization/90576
24207 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
24209 (aliasing_component_refs_p): Fix three way size compare conditional;
24210 give up earlier in case we can not decide on equivalence.
24212 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24213 Michael Meissner <meissner@linux.ibm.com>
24214 Segher Boessenkool <segher@kernel.crashing.org>
24216 * config.gcc: Add future cpu.
24217 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
24218 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
24220 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
24221 (RS6000_CPU): New instantiation for future cpu.
24222 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24224 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
24225 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
24226 * config/rs6000/rs6000-tables.opt: Regenerate.
24227 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
24228 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
24229 (rs6000_machine_from_flags): Handle future cpu.
24230 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
24231 PROCESSOR_POWER9 for now.
24232 (rs6000_adjust_cost): Likewise.
24233 (rs6000_issue_rate): Likewise.
24234 (rs6000_register_move_cost): Likewise.
24235 (rs6000_opt_masks): Add entry for future.
24236 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
24237 (MASK_FUTURE): New #define.
24238 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
24239 * config/rs6000/rs6000.opt (mfuture): New target option.
24240 * doc/invoke.texi (mcpu): Add future cpu.
24242 2019-05-23 Martin Liska <mliska@suse.cz>
24245 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
24246 operation points to a temporary (pointed via tree_to_wide_ref)
24247 that is out of scope after the &.
24249 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
24252 * doc/extend.texi (Function Names): Add missing word.
24254 2019-05-23 Richard Biener <rguenther@suse.de>
24256 PR tree-optimization/88440
24257 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
24259 * tree-loop-distribution.c (generate_memset_builtin): Fold the
24261 (generate_memcpy_builtin): Likewise.
24262 (distribute_loop): Pass in whether to only distribute patterns.
24263 (prepare_perfect_loop_nest): Also allow size optimization.
24264 (pass_loop_distribution::execute): When optimizing a loop
24265 nest for size allow pattern replacement.
24267 2019-05-23 Jakub Jelinek <jakub@redhat.com>
24270 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
24273 2019-05-23 Martin Liska <mliska@suse.cz>
24276 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
24277 expression similarly to gimplify_decl_expr.
24279 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24281 * cse.c (cse_dump_path): s/dump_file/f.
24283 2019-05-22 David Malcolm <dmalcolm@redhat.com>
24286 * diagnostic-format-json.cc: Include "selftest.h".
24287 (json_from_expanded_location): Only add "file" key for non-NULL
24289 (json_from_location_range): Don't add "start" and "finish"
24290 children if they are UNKNOWN_LOCATION.
24291 (selftest::test_unknown_location): New selftest.
24292 (selftest::test_bad_endpoints): New selftest.
24293 (selftest::diagnostic_format_json_cc_tests): New function.
24294 * json.cc (json::object::get): New function.
24295 (selftest::test_object_get): New selftest.
24296 (selftest::json_cc_tests): Call it.
24297 * json.h (json::object::get): New decl.
24298 * selftest-run-tests.c (selftest::run_tests): Call
24299 selftest::diagnostic_format_json_cc_tests.
24300 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
24303 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
24304 Andrew Stubbs <amd@codesourcery.com>
24306 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
24307 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
24308 (kernel): Rename to...
24309 (main_kernel): ... this.
24310 (load_image): Load _init_array and _fini_array kernels.
24311 (run): Add argument for kernel to run.
24312 (main): Run init_array_kernel before main_kernel, and
24313 fini_array_kernel after.
24314 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
24315 amdgpu_hsa_kernel attribute on functions.
24316 (gcn_disable_constructors): Delete.
24317 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
24318 * config/gcn/crt0.c (size_t): Define.
24319 (_init_array, _fini_array): New.
24320 (__preinit_array_start, __preinit_array_end,
24321 __init_array_start, __init_array_end,
24322 __fini_array_start, __fini_array_end): Declare weak references.
24324 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
24326 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
24328 2019-05-22 Jason Merrill <jason@redhat.com>
24330 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24332 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
24335 * config/i386/i386-options.c (ix86_init_machine_status): Set
24336 stack_frame_required to true.
24337 * config/i386/i386.c (ix86_get_frame_size): New function.
24338 (ix86_frame_pointer_required): Replace get_frame_size with
24339 ix86_get_frame_size.
24340 (ix86_compute_frame_layout): Likewise.
24341 (ix86_find_max_used_stack_alignment): Changed to void. Set
24342 stack_frame_required.
24343 (ix86_finalize_stack_frame_flags): Always call
24344 ix86_find_max_used_stack_alignment. Replace get_frame_size with
24345 ix86_get_frame_size.
24346 * config/i386/i386.h (machine_function): Add stack_frame_required.
24348 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
24350 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
24352 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
24354 * common/config/aarch64/aarch64-common.c
24355 (struct aarch64_option_extension, struct processor_name_to_arch,
24356 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
24357 aarch64_contains_opt,
24358 aarch64_get_extension_string_for_isa_flags): Change type of
24359 variables storing flags to uint64_t.
24360 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
24361 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
24362 * config/aarch64/aarch64.c (struct processor,
24363 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
24364 aarch64_validate_march, aarch64_override_options,
24365 aarch64_option_print, aarch64_handle_attr_isa_flags,
24366 aarch64_declare_function_name, aarch64_start_file): Make flag
24367 variables uint64_t.
24368 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
24369 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
24370 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
24371 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
24372 * config/aarch64/driver-aarch64.c
24373 (struct aarch64_arch_extension, struct aarch64_core_data,
24374 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
24375 flag variables uint64_t.
24376 * doc/invoke.texi: Add documentation for new arguments.
24378 2019-05-22 Richard Biener <rguenther@suse.de>
24380 * alias.c (ao_ref_from_mem): Move stack-slot sharing
24382 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
24384 2019-05-22 Martin Liska <mliska@suse.cz>
24387 * doc/extend.texi: Document the change.
24389 2019-05-22 Richard Biener <rguenther@suse.de>
24391 PR tree-optimization/90450
24392 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
24393 (mem_ref_hasher::equal): Check it.
24394 (mem_ref_alloc): Initialize it.
24395 (gather_mem_refs_stmt): Set it.
24397 2019-05-22 Richard Biener <rguenther@suse.de>
24399 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
24401 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
24404 2019-05-22 Alan Modra <amodra@gmail.com>
24406 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
24407 (ASM_CPU_SPEC): Conditionally add -many.
24408 * config/rs6000/rs6000.c (rs6000_machine): New static var.
24409 (rs6000_machine_from_flags, emit_asm_machine): New functions..
24410 (rs6000_file_start): ..extracted from here, and modified to
24412 (rs6000_output_function_prologue): Emit .machine as necessary.
24414 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
24416 PR middle-end/90553
24417 * ira-lives.c (process_bb_node_lives): Consider defs
24418 for a call insn to be die before the call, not after.
24420 * function.c (assign_parm_setup_block): Raise alignment of
24421 stacked parameter only for STRICT_ALIGNMENT targets.
24423 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24425 * config/rs6000/constraints.md (define_register_constraint "wz"):
24427 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24428 RS6000_CONSTRAINT_wz.
24429 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24430 (rs6000_init_hard_regno_mode_ok): Adjust.
24431 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
24432 * doc/md.texi (Machine Constraints): Adjust.
24434 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24436 * config/rs6000/constraints.md (define_register_constraint "wl"):
24438 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24439 RS6000_CONSTRAINT_wl.
24440 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24441 (rs6000_init_hard_regno_mode_ok): Adjust.
24442 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
24443 * doc/md.texi (Machine Constraints): Adjust.
24445 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24447 * config/rs6000/constraints.md (define_register_constraint "wm"):
24449 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24450 RS6000_CONSTRAINT_wm.
24451 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24452 (rs6000_init_hard_regno_mode_ok): Adjust.
24453 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
24454 * doc/md.texi (Machine Constraints): Adjust.
24456 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24458 * config/rs6000/constraints.md (define_register_constraint "wk"):
24460 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24461 RS6000_CONSTRAINT_wk.
24462 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24463 (rs6000_init_hard_regno_mode_ok): Adjust.
24464 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
24465 * doc/md.texi (Machine Constraints): Adjust.
24467 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24469 * config/rs6000/constraints.md (define_register_constraint "wj"):
24471 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24472 RS6000_CONSTRAINT_wj.
24473 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24474 (rs6000_init_hard_regno_mode_ok): Adjust.
24475 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
24477 * config/rs6000/vsx.md: Ditto.
24478 * doc/md.texi (Machine Constraints): Adjust.
24480 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24482 * config/rs6000/constraints.md (define_register_constraint "wh"):
24484 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24485 RS6000_CONSTRAINT_wh.
24486 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24487 (rs6000_init_hard_regno_mode_ok): Adjust.
24488 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
24489 * doc/md.texi (Machine Constraints): Adjust.
24491 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24494 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
24495 Avoid calling gen_lowpart with CONST operand.
24497 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
24499 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
24500 field template_last_to_copy.
24501 (ssa_create_duplicates): Set it, and use it. Attempt to
24502 preserve more debug stmts.
24504 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24506 * config/i386/sse.md (VF1_AVX2): New mode iterator.
24507 (signbit<mode>2): New expander
24509 2019-05-21 James Clarke <jrtc27@jrtc27.com>
24512 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
24513 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
24515 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24517 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
24518 %ebx and %ecx bafore calling cpuid with leaf 1 or
24519 non-constant leaf argument.
24521 2019-05-21 Alan Modra <amodra@gmail.com>
24524 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
24525 power9 direct move cost.
24527 2019-05-21 Richard Biener <rguenther@suse.de>
24529 PR middle-end/90510
24530 * fold-const.c (fold_read_from_vector): New function.
24531 * fold-const.h (fold_read_from_vector): Declare.
24532 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
24533 single-element insert permutations. Canonicalize selector
24534 further and fix issue with last commit.
24536 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
24538 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
24539 parameter with default value false to declaration.
24540 (split_edges_for_insertion): New inline function. Wrapper for
24541 split_critical_edges with for_edge_insertion_p = true.
24542 * tree-cfg.c (split_critical_edges): Don't split non-critical
24543 edges if for_edge_insertion_p is false. Fix whitespace.
24544 * tree-ssa-pre.c (pass_pre::execute): Call
24545 split_edges_for_insertion instead of split_critical_edges.
24546 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
24547 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
24548 (pass_data_sink_code): Update function name in the comment.
24550 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
24552 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
24553 around is_value_included_in that knows how to handle BIT_AND_EXPR.
24554 (is_pred_expr_subset_of): Use the new function. Handle more cases where
24555 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
24558 2019-05-21 Martin Liska <mliska@suse.cz>
24560 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
24562 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
24563 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
24565 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24567 (rs6000_function_arg): Likewise.
24568 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
24569 (rs6000_expand_ternop_builtin): Use interval syntax.
24570 (get_element_number): Likewise.
24571 (altivec_expand_builtin): Likewise.
24572 (rs6000_get_function_versions_dispatcher): Quote target_clones.
24574 2019-05-20 Jakub Jelinek <jakub@redhat.com>
24578 * function.h (struct function): Add calls_eh_return member.
24579 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
24580 gimplifying __builtin_eh_return call.
24581 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
24583 (expand_call_inline): Or in src_cfun->calls_eh_return into
24584 dst_cfun->calls_eh_return.
24585 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
24586 cfun->calls_eh_return.
24587 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
24588 * lto-streamer-out.c (output_struct_function_base): Write
24591 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
24593 PR rtl-optimization/43147
24594 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
24595 IX86_BUILTIN_SHUFPD.
24597 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
24599 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
24600 (refs_may_alias_p_1): ... here; update stats.
24601 (refs_may_alias_p): Do not update stats here.
24603 2019-05-20 Richard Biener <rguenther@suse.de>
24605 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
24606 doesn't produce pointers.
24607 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
24608 the first operand points to.
24610 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
24612 * tree-ssa-alias.c (compare_sizes): New function.
24613 (sompare_type_sizes): New function
24614 (aliasing_component_refs_p): Use it.
24615 (indirect_ref_may_alias_decl_p): Likewise.
24617 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24619 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
24621 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24623 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
24624 (LIBLSAN_EARLY_SPEC): Likewise.
24625 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
24627 2019-05-20 Martin Liska <mliska@suse.cz>
24629 * config/i386/i386.c (ix86_libc_has_fast_function):
24630 Add ATTRIBUTE_UNUSED for the argument.
24632 2019-05-20 Richard Biener <rguenther@suse.de>
24634 * gimple-match-head.c: Include vec-perm-indices.h.
24635 * generic-match-head.c: Likewise.
24636 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
24638 * fold-const.c (fold_vec_perm): Export.
24639 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
24640 (match.pd): ...here.
24642 2019-05-20 Jakub Jelinek <jakub@redhat.com>
24644 * cfgloop.h (struct loop): Add simdlen member.
24645 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
24646 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
24647 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
24648 as new argument to autovectorize_vector_sizes target hook. If
24649 loop->simdlen, pick up vector size where the vectorization factor
24650 is equal to loop->simd, and if there is none, fall back to the first
24652 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
24654 * omp-low.c (omp_clause_aligned_alignment): Likewise.
24655 * omp-general.c (omp_max_vf): Likewise.
24656 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
24657 * tree-vect-slp.c (vect_slp_bb): Likewise.
24658 * target.def (autovectorize_vector_sizes): Add ALL argument and
24660 * doc/tm.texi: Adjust documentation.
24661 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
24662 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
24663 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
24665 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
24666 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
24667 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
24668 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
24669 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
24670 preferred vector size is not 512-bit or 256-bit, just put those
24671 unpreferred ones last.
24673 2019-05-20 Martin Liska <mliska@suse.cz>
24675 * targhooks.c (default_libc_has_fast_function): New function.
24676 * targhooks.h (default_libc_has_fast_function): Likewise.
24678 2019-05-20 Martin Liska <mliska@suse.cz>
24680 PR middle-end/90263
24681 * builtins.c (expand_builtin_memory_copy_args): When having a
24682 target with fast mempcpy implementation do now use memcpy.
24683 * config/i386/i386.c (ix86_libc_has_fast_function): New.
24684 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
24685 * doc/tm.texi: Likewise.
24686 * doc/tm.texi.in: Likewise.
24688 * expr.c (emit_block_move_hints): Add 2 new arguments.
24689 * expr.h (emit_block_move_hints): Bail out when libcall
24690 to memcpy would be used.
24692 2019-05-20 Martin Liska <mliska@suse.cz>
24694 * profile-count.c: Add vertical spacing in order
24695 to separate functions.
24696 * profile-count.h: Likewise.
24698 2019-05-20 Martin Liska <mliska@suse.cz>
24700 * profile-count.h: Do not use full qualified
24702 * profile-count.c (profile_count::to_frequency): Likewise.
24704 2019-05-20 Martin Liska <mliska@suse.cz>
24706 * profile-count.h (enum profile_quality): Use capital letters
24707 for enum value names. Use the adjusted names.
24708 * profile-count.c: Use the adjusted names.
24710 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24712 * config/rs6000/constraints.md (define_register_constraint "wH"):
24714 (define_register_constraint "wI"): Delete.
24715 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24716 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
24717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24718 (rs6000_init_hard_regno_mode_ok): Adjust.
24719 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
24720 resp. "d", or with "wa" as appropriate, all with "p8v".
24721 * config/rs6000/vsx.md: Ditto.
24722 * doc/md.texi (Machine Constraints): Adjust.
24724 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24726 * config/rs6000/constraints.md (define_register_constraint "wy"):
24728 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24729 RS6000_CONSTRAINT_wy.
24730 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24731 (rs6000_init_hard_regno_mode_ok): Adjust.
24732 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
24733 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
24734 (define_mode_attr Fisa): New.
24735 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
24736 * doc/md.texi (Machine Constraints): Adjust.
24738 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24740 * config/rs6000/constraints.md (define_register_constraint "wu"):
24742 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24743 RS6000_CONSTRAINT_wu.
24744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24745 (rs6000_init_hard_regno_mode_ok): Adjust.
24746 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
24748 (define_mode_attr Fa): Delete.
24749 * config/rs6000/vsx.md: Ditto.
24750 * doc/md.texi (Machine Constraints): Adjust.
24752 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24754 * config/rs6000/constraints.md (define_register_constraint "wJ"):
24756 (define_register_constraint "wK"): Delete.
24757 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24758 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
24759 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24760 (rs6000_init_hard_regno_mode_ok): Adjust.
24761 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
24762 Replace "wK" constraint by "wH" with "p9v".
24763 * config/rs6000/vsx.md: Ditto.
24764 * doc/md.texi (Machine Constraints): Adjust.
24766 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24768 * config/rs6000/constraints.md (define_register_constraint "wb"):
24770 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24771 RS6000_CONSTRAINT_wb.
24772 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24773 (rs6000_init_hard_regno_mode_ok): Adjust.
24774 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
24775 * config/rs6000/vsx.md: Ditto.
24776 * doc/md.texi (Machine Constraints): Adjust.
24778 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24780 * config/rs6000/constraints.md (define_register_constraint "wo"):
24782 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24783 RS6000_CONSTRAINT_wo.
24784 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24785 (rs6000_init_hard_regno_mode_ok): Adjust.
24786 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
24787 * config/rs6000/altivec.md: Ditto.
24788 * doc/md.texi (Machine Constraints): Adjust.
24790 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24792 * config/darwin-c.c (darwin_register_objc_includes): Do not
24793 prepend the sysroot when building gnu-runtime header search
24796 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24798 * config/darwin.c (darwin_file_end): Use switch_to_section ()
24799 instead of direct output of the asm.
24801 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24803 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
24804 argument to be type bool (was int before).
24805 (rs6000_emit_epilogue): Simplify some code. Declare some variables
24806 at first use. Use type bool for some variables. Fix a theoretical
24807 eh_return bug for svr4.
24809 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24811 * config/rs6000/rs6000.md (isa): New attribute.
24812 (enabled): New attribute.
24814 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
24816 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
24817 assemble_start_function and assemble_end_function.
24819 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
24821 PR middle-end/89433
24822 * omp-general.c (oacc_verify_routine_clauses): Change formal
24823 parameters. Add checking if already marked with an OpenACC
24824 'routine' directive. Adjust all users.
24826 PR middle-end/89433
24827 * omp-general.c (oacc_build_routine_dims): Move some of its
24829 (oacc_verify_routine_clauses): ... this new function.
24830 * omp-general.h (oacc_verify_routine_clauses): New prototype.
24832 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24834 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
24835 formating of picbase labels to match other ports.
24837 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24839 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
24840 in the generated code.
24842 2019-05-16 Martin Sebor <msebor@redhat.com>
24844 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
24845 identifiers, keywords, operators, and types in diagnostics. Correct
24846 quoting, spelling, and sentence capitalization issues.
24847 (expand_builtin_atomic_is_lock_free): Same.
24848 (fold_builtin_next_arg): Same.
24849 * cfgexpand.c (expand_one_var): Same.
24850 (tree_conflicts_with_clobbers_p): Same.
24851 (expand_asm_stmt): Same.
24852 (verify_loop_structure): Same.
24853 * cgraphunit.c (process_function_and_variable_attributes): Same.
24854 * collect-utils.c (collect_execute): Same.
24855 * collect2.c (maybe_run_lto_and_relink): Same.
24856 (is_lto_object_file): Same.
24857 (scan_prog_file): Same.
24858 * convert.c (convert_to_real_1): Same.
24859 * dwarf2out.c (dwarf2out_begin_prologue): Same.
24860 * except.c (verify_eh_tree): Same.
24861 * gcc.c (execute): Same.
24862 (eval_spec_function): Same.
24863 (run_attempt): Same.
24864 (driver::set_up_specs): Same.
24865 (compare_debug_auxbase_opt_spec_function): Same.
24866 * gcov-tool.c (unlink_gcda_file): Same.
24868 (do_rewrite): Same.
24869 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
24870 * gimplify.c (gimplify_asm_expr): Same.
24871 (gimplify_adjust_omp_clauses): Same.
24872 * hsa-gen.c (gen_hsa_addr_insns): Same.
24873 (gen_hsa_insns_for_load): Same.
24874 (gen_hsa_cmp_insn_from_gimple): Same.
24875 (gen_hsa_insns_for_operation_assignment): Same.
24876 (gen_get_level): Same.
24877 (gen_hsa_alloca): Same.
24878 (omp_simple_builtin::generate): Same.
24879 (gen_hsa_atomic_for_builtin): Same.
24880 (gen_hsa_insns_for_call): Same.
24881 * input.c (dump_location_info): Same.
24882 * ipa-devirt.c (compare_virtual_tables): Same.
24883 * ira.c (ira_setup_eliminable_regset): Same.
24884 * lra-assigns.c (lra_assign): Same.
24885 * lra-constraints.c (lra_constraints): Same.
24886 * lto-streamer-in.c (lto_input_mode_table): Same.
24887 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
24888 (merge_and_complain): Same.
24889 (compile_offload_image): Same.
24890 (compile_images_for_offload_targets): Same.
24891 (debug_objcopy): Same.
24894 * opts.c (print_specific_help): Same.
24895 (parse_no_sanitize_attribute): Same.
24896 (print_help): Same.
24897 (handle_param): Same.
24898 * plugin.c (add_new_plugin): Same.
24899 (parse_plugin_arg_opt): Same.
24900 (try_init_one_plugin): Same.
24901 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
24902 operators, and types in diagnostics. Correct quoting and spelling
24904 * read-rtl-function.c (parse_edge_flag_token): Same.
24905 (function_reader::parse_enum_value): Same.
24906 * reg-stack.c (check_asm_stack_operands): Same.
24907 * regcprop.c (validate_value_data): Same.
24908 * sched-rgn.c (make_pass_sched_fusion): Same.
24909 * stmt.c (check_unique_operand_names): Same.
24910 * targhooks.c (default_target_option_pragma_parse): Same.
24911 * tlink.c (recompile_files): Same.
24912 * toplev.c (process_options): Same.
24913 (do_compile): Same.
24914 * trans-mem.c (diagnose_tm_1): Same.
24915 (ipa_tm_scan_irr_block): Same.
24916 (ipa_tm_diagnose_transaction): Same.
24917 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
24918 format a tree code name in a diagnostic.
24919 (verify_types_in_gimple_min_lval): Same.
24920 (verify_types_in_gimple_reference): Same.
24921 (verify_gimple_call): Same.
24922 (verify_gimple_assign_unary): Same.
24923 (verify_gimple_assign_binary): Same.
24924 (verify_gimple_assign_ternary): Same.
24925 (verify_gimple_assign_single): Same.
24926 (verify_gimple_switch): Same.
24927 (verify_gimple_label): Same.
24928 (verify_gimple_phi): Same.
24929 (verify_gimple_in_seq): Same.
24930 (verify_eh_throw_stmt_node): Same.
24931 (collect_subblocks): Same.
24932 (gimple_verify_flow_info): Same.
24933 (do_warn_unused_result): Same.
24934 * tree-inline.c (expand_call_inline): Same.
24935 * tree-into-ssa.c (update_ssa): Same.
24936 * tree.c (tree_int_cst_elt_check_failed): Same.
24937 (tree_vec_elt_check_failed): Same.
24938 (omp_clause_operand_check_failed): Same.
24939 (verify_type_variant): Same.
24940 (verify_type): Same.
24941 * value-prof.c (verify_histograms): Same.
24942 * varasm.c (assemble_start_function): Same.
24944 2019-05-16 Martin Sebor <msebor@redhat.com>
24946 * config/i386/i386-expand.c (get_element_number): Quote keywords
24947 and other internal names in diagnostics. Adjust other diagnostic
24948 formatting issues noted by -Wformat-diag.
24949 * config/i386/i386-features.c
24950 (ix86_mangle_function_version_assembler_name): Same.
24951 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
24952 * config/i386/i386.c (ix86_function_type_abi): Same.
24953 (ix86_function_ms_hook_prologue): Same.
24954 (classify_argument): Same.
24955 (ix86_expand_prologue): Same.
24956 (ix86_md_asm_adjust): Same.
24957 (ix86_memmodel_check): Same.
24959 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
24961 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
24962 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
24965 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
24968 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
24969 intrinsics without SSE/SSE2/SSSE3.
24970 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
24972 (*mmx_uavgv8qi3): Likewise.
24974 2019-05-17 Richard Biener <rguenther@suse.de>
24976 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
24977 VEC_PERM_EXPR as __VEC_PERM with -gimple.
24979 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
24981 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
24982 vec_sldw insn pattern.
24984 2019-05-17 Richard Biener <rguenther@suse.de>
24986 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
24988 2019-05-17 Martin Liska <mliska@suse.cz>
24991 * toplev.c (output_stack_usage): With LTO and sanitizer it
24992 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
24993 has no file location.
24995 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24998 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
24999 sz0 is equal to sz1, instead return false in that case.
25001 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
25002 has non-constant expression, force sctx.lane and use two
25003 argument IFN_GOMP_SIMD_LANE instead of single argument.
25004 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
25005 two argument IFN_GOMP_SIMD_LANE without lhs.
25006 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
25008 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
25010 (LOOP_REQUIRES_VERSIONING): Or in
25011 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
25012 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25014 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
25015 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
25016 from simd if clause if needed.
25018 2019-05-16 Richard Biener <rguenther@suse.de>
25020 * tree-affine.c (expr_to_aff_combination): New function split
25022 (tree_to_aff_combination): ... here.
25023 (aff_combination_expand): Avoid building a GENERIC tree.
25025 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
25027 * cgraphunit.c (cgraph_node::expand_thunk): Remove
25028 assemble_start_function and assemble_end_function calls.
25029 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
25030 assemble_start_function and assemble_end_function.
25031 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
25032 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
25033 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
25034 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
25035 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
25036 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
25037 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
25038 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
25039 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25040 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25041 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
25042 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
25044 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
25045 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
25046 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
25047 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
25048 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25049 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25050 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
25051 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
25052 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25053 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25054 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25055 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25056 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
25057 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
25059 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25060 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25061 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
25063 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
25065 * tree-ssa-alias.c (alias_stats): Add
25066 aliasing_component_refs_p_may_alias and
25067 aliasing_component_refs_p_no_alias.
25068 (dump_alias_stats): Print aliasing_component_refs_p stats.
25069 (aliasing_component_refs_p): Update stats.
25071 2019-05-16 Martin Liska <mliska@suse.cz>
25074 * multiple_target.c (expand_target_clones): Do not allow
25075 target_clones being used with a symbol that is an alias.
25077 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
25079 PR tree-optimization/90394
25080 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
25081 positives rather than ICE for cases where (code2 == NE_EXPR
25082 && code1 == BIT_AND_EXPR).
25084 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25087 * tree-core.h (struct tree_decl_common): Document
25088 decl_nonshareable_flag for PARM_DECLs.
25089 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
25090 * calls.c (expand_call): Don't try tail call if caller
25091 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
25092 passed on the stack and callee needs to pass any arguments on the
25094 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25095 else if instead of series of mutually exclusive ifs. Handle
25096 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
25097 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
25099 * lto-streamer.h (LTO_major_version): Bump to 9.
25101 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
25103 PR tree-optimization/90106
25104 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
25105 new parameter as new internal function call, also move it to new
25107 (use_internal_fn): Pass internal function call to
25108 shrink_wrap_one_built_in_call_with_conds.
25110 2019-05-15 Jakub Jelinek <jakub@redhat.com>
25112 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
25114 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
25115 safelen_int and set loop->dont_vectorize.
25117 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25120 * config/i386/i386-builtin.def: Enable MMX intrinsics with
25122 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
25124 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
25125 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
25126 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
25129 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25132 * config/i386/mmx.md (*vec_dupv2sf): Changed to
25133 define_insn_and_split to support SSE emulation.
25134 (*vec_extractv2sf_0): Likewise.
25135 (*vec_extractv2sf_1): Likewise.
25136 (*vec_extractv2si_0): Likewise.
25137 (*vec_extractv2si_1): Likewise.
25138 (*vec_extractv2si_zext_mem): Likewise.
25139 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
25140 (vec_extractv2sf_1 splitter): Likewise.
25141 (vec_extractv2sfsf): Likewise.
25142 (vec_setv2si): Likewise.
25143 (vec_extractv2si_1 splitter): Likewise.
25144 (vec_extractv2sisi): Likewise.
25145 (vec_setv4hi): Likewise.
25146 (vec_extractv4hihi): Likewise.
25147 (vec_setv8qi): Likewise.
25148 (vec_extractv8qiqi): Likewise.
25149 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25150 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
25151 (vec_extractv2sisi): Likewise.
25152 (vec_extractv4hihi): Likewise.
25153 (vec_extractv8qiqi): Likewise.
25154 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25155 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
25156 (vec_initv2sisi): Likewise.
25157 (vec_initv4hihi): Likewise.
25158 (vec_initv8qiqi): Likewise.
25159 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
25160 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
25161 (vec_setv4hi): Likewise.
25162 (vec_setv8qi): Likewise.
25164 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25167 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
25168 TARGET_MMX_WITH_SSE.
25169 (MMXMODE:*mov<mode>_internal): Likewise.
25170 (MMXMODE:movmisalign<mode>): Likewise.
25172 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
25175 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
25176 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
25177 (sse2_cvtpd2pi): Ditto.
25178 (sse2_cvttpd2pi): Ditto.
25179 (*vec_concatv2sf_sse4_1): Ditto.
25180 (*vec_concatv2sf_sse): Ditto.
25181 (*vec_concatv2si_sse4_1): Ditto.
25182 (*vec_concatv2si): Ditto.
25183 (*vec_concatv4si_0): Ditto.
25184 (*vec_concatv2di_0): Ditto.
25186 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25189 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
25191 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25194 * config/i386/sse.md (ssse3_palignrdi): Changed to
25195 define_insn_and_split to support SSE emulation.
25197 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25200 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
25202 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25205 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
25206 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25209 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25212 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
25213 or TARGET_MMX_WITH_SSE.
25214 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
25216 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25219 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
25221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25224 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
25225 Changed to define_insn_and_split to support SSE emulation.
25227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25230 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
25231 Changed to define_insn_and_split to support SSE emulation.
25233 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25236 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
25237 (*mmx_<emms>): This.
25238 (mmx_<emms>): New expander.
25240 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25243 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
25245 (*sse2_umulv1siv1di3): Add SSE2 emulation.
25247 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25250 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
25252 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25255 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
25257 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25260 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
25261 TARGET_MMX_WITH_SSE.
25262 (*mmx_uavgv4hi3): Add SSE emulation.
25264 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25267 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
25268 and TARGET_MMX_WITH_SSE.
25269 (*mmx_uavgv8qi3): Add SSE emulation.
25271 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25274 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
25275 maskmovdqu for __MMX_WITH_SSE__.
25277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25280 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
25281 TARGET_MMX and TARGET_MMX_WITH_SSE.
25282 (*mmx_umulv4hi3_highpart): Add SSE emulation.
25284 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25287 * config/i386/mmx.md (mmx_pmovmskb): Changed to
25288 define_insn_and_split to support SSE emulation.
25290 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25293 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
25294 and TARGET_MMX_WITH_SSE.
25295 (mmx_<code>v8qi3): Likewise.
25296 (smaxmin:<code>v4hi3): New.
25297 (umaxmin:<code>v8qi3): Likewise.
25298 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
25299 (umaxmin:*mmx_<code>v8qi3): Likewise.
25301 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25304 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
25305 TARGET_MMX_WITH_SSE.
25306 (*mmx_pinsrw): Add SSE emulation.
25308 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25311 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
25313 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25316 * config/i386/sse.md (sse_cvtpi2ps): Changed to
25317 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25320 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25323 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
25324 (sse_cvttps2pi): Likewise.
25326 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25329 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
25330 TARGET_MMX_WITH_SSE.
25331 (mmx_pshufw_1): Add SSE emulation.
25332 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
25333 TARGET_MMX_WITH_SSE to support SSE emulation.
25335 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25338 * config/i386/constraints.md (Yw): New constraint.
25339 * config/i386/mmx.md (*vec_dupv2si): Changed to
25340 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
25341 support SSE emulation.
25343 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25346 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
25347 TARGET_MMX_WITH_SSE.
25348 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25350 (mmx_gt<mode>3): Likewise.
25352 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25355 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
25356 TARGET_MMX_WITH_SSE. Add SSE support.
25358 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25361 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
25362 TARGET_MMX_WITH_SSE.
25363 (any_logic:<code><mode>3): New.
25364 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
25367 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25370 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
25371 TARGET_MMX_WITH_SSE. Add SSE emulation.
25372 (mmx_<shift_insn><mode>3): Likewise.
25373 (ashr<mode>3): New.
25374 (<shift_insn><mode>3): Likewise.
25376 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25379 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
25380 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
25382 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25385 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
25386 TARGET_MMX_WITH_SSE.
25387 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
25390 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25393 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
25394 TARGET_MMX_WITH_SSE.
25396 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25399 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25402 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
25403 (plusminus:mmx_<plusminus_insn><mode>3): Check
25404 TARGET_MMX_WITH_SSE.
25405 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
25406 (<plusminus_insn><mode>3): New.
25407 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
25408 (*mmx_<plusminus_insn><mode>3): Likewise.
25410 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25413 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
25414 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
25416 * config/i386/mmx.m (mmx_punpckhbw): Changed to
25417 define_insn_and_split to support SSE emulation.
25418 (mmx_punpcklbw): Likewise.
25419 (mmx_punpckhwd): Likewise.
25420 (mmx_punpcklwd): Likewise.
25421 (mmx_punpckhdq): Likewise.
25422 (mmx_punpckldq): Likewise.
25424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25425 Uros Bizjak <ubizjak@gmail.com>
25428 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
25430 (ix86_split_mmx_pack): Likewise.
25431 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
25433 (ix86_split_mmx_pack): Likewise.
25434 * config/i386/i386.md (mmx_isa): New.
25435 (enabled): Also check mmx_isa.
25436 * config/i386/mmx.md (any_s_truncate): New code iterator.
25437 (s_trunsuffix): New code attr.
25438 (mmx_packsswb): Removed.
25439 (mmx_packssdw): Likewise.
25440 (mmx_packuswb): Likewise.
25441 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
25442 MMX packsswb/packuswb with SSE2.
25443 (mmx_packssdw): Likewise.
25444 * config/i386/predicates.md (register_mmxmem_operand): New.
25446 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25449 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25450 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
25451 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
25452 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
25453 (ix86_vector_mode_supported_p): Likewise.
25454 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
25456 2019-05-15 Martin Liska <mliska@suse.cz>
25458 PR middle-end/90478
25459 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
25460 Check for overflow.
25462 2019-05-15 Richard Biener <rguenther@suse.de>
25464 * tree-into-ssa.c (pass_build_ssa::execute): Run
25465 update_address_taken before going into SSA.
25467 2019-05-15 Richard Biener <rguenther@suse.de>
25469 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
25470 as __BIT_FIELD_REF with type with -gimple.
25472 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
25474 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
25475 semantically equivalent branches (left over after prior refactorings).
25477 2019-05-15 Richard Biener <rguenther@suse.de>
25479 PR tree-optimization/88828
25480 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
25483 2019-05-14 Richard Biener <rguenther@suse.de>
25485 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
25486 as __VIEW_CONVERT with -gimple.
25488 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25491 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
25494 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
25496 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
25497 define_split to become a define_insn_and_split.
25499 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
25501 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
25503 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
25504 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
25505 (sibcall_epilogue): Adjust.
25506 (epilogue): Adjust.
25508 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25510 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
25511 to unsupported ones.
25512 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
25513 * config.host: Likewise.
25514 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
25515 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
25516 __svr4__]: Remove "brand" fallback.
25517 [!KSTAT_DATA_STRING]: Remove.
25518 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
25520 (comdat_group): Likewise.
25521 (set_have_as_tls): Likewise.
25522 (gcc_cv_target_dl_iterate_phdr): Likewise.
25523 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
25524 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
25525 * configure: Regenerate.
25526 * doc/install.texi: Simplify Solaris target triplets.
25527 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
25528 (Specific, *-*-solaris2*): Document Solaris 10 removal.
25529 Remove Solaris 10 references.
25530 Remove obsolete Solaris bug reference.
25531 (Specific, sparc-sun-solaris2.10): Remove.
25533 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
25535 * config/i386/i386.md (any_div): New code iterator.
25536 (paired_mod): New code attribute.
25537 (sgnprefix): Handle DIV and UDIV RTXes.
25539 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
25540 and udivmod<mode>4 patterns using any_div code iterator.
25541 (divmod splitters): Macroize splitters using any_div code iterator.
25542 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
25543 (*udivmodsi4_pow2_zext_2): Ditto.
25544 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
25545 and *udivmod<mode>4_noext patterns using any_div code iterator.
25546 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
25547 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
25548 patterns using any_div code iterator.
25549 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
25550 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
25551 patterns using any_div code iterator.
25552 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
25553 udivmodhiqi3 patterns using any_extend code iterator.
25555 2019-05-14 Richard Biener <rguenther@suse.de>
25556 H.J. Lu <hongjiu.lu@intel.com>
25558 PR tree-optimization/88828
25559 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
25560 permuting in a single non-constant element not extracted
25563 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
25565 * internal-fn.def (SIGNBIT): New.
25566 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
25568 (signbitv4sf2): Likewise.
25570 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
25573 * config/mips/mips.c (mips_split_move): Skip forward SRC into
25574 next insn when the SRC reg is dead.
25576 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
25578 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
25579 (alloc_cand_and_find_basis): Ditto.
25580 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
25581 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
25582 (create_add_imm_cand, slsr_process_cast): Ditto.
25583 (slsr_process_copy, replace_mult_candidate): Ditto.
25584 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
25585 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
25586 (pass_strength_reduction::execute): Init the first NULL element.
25588 2019-05-13 Nathan Sidwell <nathan@acm.org>
25590 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
25591 (run_attempt): Reformat line break.
25593 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
25596 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
25597 data registers in sibcall epilogues.
25598 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
25600 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
25603 * configure.ac (--enable-frame-pointer):
25604 Disable by default for cygwin and mingw.
25605 * configure: Regenerate.
25607 2019-05-13 Nathan Sidwell <nathan@acm.org>
25609 * dwarf2out.c (breakout_comdat_types): Move comment to correct
25611 (const_ok_for_output_1): Balance parens around #if/#else/#endif
25612 (gen_member_die): Move abstract origin check earlier. Only VARs
25613 can be static_inline_p. Simplify splicing control flow.
25615 2019-05-13 Richard Biener <rguenther@suse.de>
25617 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
25619 (vect_build_slp_tree_1): Likewise.
25621 2019-05-13 Richard Biener <rguenther@suse.de>
25623 PR tree-optimization/90402
25624 * tree-if-conv.c (tree_if_conversion): Value number only
25625 the loop body by making the latch an exit of the region
25627 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
25629 (do_rpo_vn): Deal with multiple edges into the entry block
25630 that are not backedges inside the region by skipping PHIs
25631 of the entry block.
25633 2019-05-13 Richard Biener <rguenther@suse.de>
25635 PR tree-optimization/90316
25636 * tree-ssa-pre.c (insert_aux): Fold into ...
25637 (insert): ... this function. Use a RPO walk to reduce the
25638 number of required iterations.
25640 2019-05-13 Martin Liska <mliska@suse.cz>
25642 PR tree-optimization/90416
25643 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
25644 string instead of passing the second part as va_arg argument.
25646 2019-05-13 Martin Liska <mliska@suse.cz>
25648 PR gcov-profile/90380
25649 * gcov.c (handle_cycle): Do not support zero cycle count,
25650 it should not be possible.
25651 (path_contains_zero_cycle_arc): New function.
25652 (circuit): Ignore zero cycle arc counts.
25654 2019-05-13 Martin Liska <mliska@suse.cz>
25656 PR gcov-profile/90380
25657 * gcov.c (enum loop_type): Remove the enum and
25659 (handle_cycle): Assert that we should not reach
25661 (circuit): Use loop_found instead of a tri-state loop_type.
25662 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
25665 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25668 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
25669 (ix86_output_indirect_branch_via_reg): Use output mechanism
25670 accounting for __USER_LABEL_PREFIX__.
25671 (ix86_output_indirect_branch_via_push): Likewise.
25672 (ix86_output_function_return): Likewise.
25673 (ix86_output_indirect_function_return): Likewise.
25675 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
25677 * doc/md.texi: Document use of code attributes in rtx patterns.
25678 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
25679 * read-rtl.c (find_code): Split out search loops into...
25680 (maybe_find_code): ...this new function.
25681 (check_code_iterator): Make the error message more informative.
25682 (check_code_attribute): New function.
25683 (rtx_reader::rtx_alloc_for_name): Likewise.
25684 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
25685 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
25686 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
25687 <max_opp> directly as an rtx code instead of via a match_operator.
25688 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
25689 (<su>abd<mode>_3): Update accordingly.
25691 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25693 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
25694 is given, print the state of the EH "save world" computation for
25697 2019-05-11 Jakub Jelinek <jakub@redhat.com>
25700 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
25701 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
25703 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
25705 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
25706 Use pinsrd for TARGET_SSE4_1.
25707 * config/i386/sse.md (movdi_to_sse): Ditto.
25709 2019-05-10 Richard Biener <rguenther@suse.de>
25711 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
25712 (do_rpo_vn): Initialize next_value_id.
25714 2019-05-10 Martin Liska <mliska@suse.cz>
25716 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25719 2019-05-10 Jakub Jelinek <jakub@redhat.com>
25721 PR tree-optimization/90385
25722 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
25723 arguments of the exit phis.
25726 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
25727 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
25729 (copy_tree_body_r): Likewise.
25730 (copy_fn): Set id.do_not_fold to true.
25732 2019-05-10 Martin Liska <mliska@suse.cz>
25734 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
25735 Reapply changes from r269790.
25737 2019-05-10 Martin Liska <mliska@suse.cz>
25739 PR middle-end/90340
25740 * doc/invoke.texi: New params.
25741 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
25742 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
25743 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
25745 * tree-switch-conversion.h (struct jump_table_cluster):
25748 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
25750 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
25752 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
25754 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
25756 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
25758 PR rtl-optimization/88879
25759 * sel-sched.c (sel_target_adjust_priority): Remove assert.
25761 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
25764 * config/arm/arm.c (callee_saved_reg_p): Move before
25765 thumb_find_work_register.
25766 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
25767 thumb_find_work_register. Only call df_get_live_out once.
25768 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
25769 (thumb_find_work_register): Use
25770 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
25771 algorithms to locate a spare call clobbered reg.
25773 2019-05-09 Martin Liska <mliska@suse.cz>
25775 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
25776 and MAX_EXPR in GIMPLE FE format.
25778 2019-05-09 Martin Liska <mliska@suse.cz>
25780 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
25781 * gimple-pretty-print.c (dump_gimple_bb_header):
25783 (pp_cfg_jump): Dump edge probability.
25784 * profile-count.c (profile_quality_as_string): Simplify
25785 with a static array.
25786 (parse_profile_quality): New function.
25787 (profile_count::dump): Simplify with a static array.
25788 (profile_count::from_gcov_type): Add new argument.
25789 * profile-count.h (parse_profile_quality): Likewise.
25790 * predict.h (set_hot_bb_threshold): New.
25791 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25793 * predict.c (get_hot_bb_threshold): Set from the new param.
25794 (set_hot_bb_threshold): New.
25796 2019-05-09 Richard Biener <rguenther@suse.de>
25798 PR tree-optimization/90395
25799 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
25800 rewrite vector stores that throw internally.
25802 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
25804 * cif-code.def (CHKP): Remove.
25807 * configure.ac (--enable-frame-pointer): Disable by default for
25809 * configure: Regenerate.
25811 2019-05-09 Alan Modra <amodra@gmail.com>
25814 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
25815 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
25816 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
25817 cost for general <-> vsx when direct moves are available.
25818 Cost union classes at minimal cost for any reg in the class.
25819 Correct calculation for moves between vsx, float, and altivec.
25820 Don't return a low cost for moves between special regs. Don't
25821 use hard coded register numbers.
25822 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
25823 (rs6000_ira_change_pseudo_allocno_class): New function.
25824 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
25825 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
25827 (movsi_internal1): Don't disparage vector alternatives.
25828 (mov<mode>_internal): Likewise, excepting alternative that
25830 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
25831 we <- b alternative.
25833 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25836 PR tree-optimization/89060
25837 * tree-ssa-live.h (live_vars_map): New typedef.
25838 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
25839 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
25840 (struct compute_live_vars_data): New type.
25841 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
25842 live_vars_at_stmt, destroy_live_vars): New functions.
25843 * tree-tailcall.c: Include tree-ssa-live.h.
25844 (live_vars, live_vars_vec): New global variables.
25845 (find_tail_calls): Perform variable life analysis before punting.
25846 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
25847 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
25849 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
25850 Perform variable life analysis to select variables that really need
25852 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
25853 instead set id->eh_landing_pad_dest and assert it is the same.
25854 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
25856 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
25857 Richard Earnshaw <rearnsha@arm.com>
25860 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
25862 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
25863 (thumb1_compute_save_core_reg_mask): Don't force a spare work
25864 register if both the epilogue and prologue can use call-clobbered
25866 (thumb1_unexpanded_epilogue): Use
25867 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
25868 picking temporaries for restoring high regs to match that of the
25869 prologue where possible.
25870 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
25871 the list of work registers. Detect if the return address is still live
25872 at the end of the prologue and avoid using it for a work register if so.
25873 If the return address is not live, add LR to the list of pushable regs
25874 after the first pass.
25876 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25878 PR tree-optimization/90078
25879 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
25880 (INFTY): Increase the value for infinite cost.
25881 (struct comp_cost): Promote type of members to int64_t.
25882 (infinite_cost): Don't set complexity in initialization.
25883 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
25884 overflows to infinite_cost.
25885 (adjust_setup_cost): Promote type of parameter and cost computation
25887 (struct ainc_cost_data, struct iv_ca): Promote type of member to
25889 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
25890 cost computation to int64_t.
25891 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
25892 int64_t's format specifier in dump.
25894 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25896 PR tree-optimization/90240
25897 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
25898 with respect to scaling factor pre-computed for each basic block.
25899 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
25900 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
25901 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
25902 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
25903 live range for array of loop's basic blocks. Cleanup aux field of
25904 loop's basic blocks.
25906 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25908 PR tree-optimization/90356
25909 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
25911 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
25913 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
25914 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
25915 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
25916 (ix86_handle_option): Handle -mavx512bf16.
25917 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
25919 * config/i386/avx512bf16vlintrin.h: New.
25920 * config/i386/avx512bf16intrin.h: New.
25921 * config/i386/cpuid.h (bit_AVX512BF16): New.
25922 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
25923 * config/i386/i386-builtin-types.def: Add new types.
25924 * config/i386/i386-builtin.def: Add new builtins.
25925 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25927 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
25928 (ix86_option_override_internal): Handle BF16.
25929 (ix86_valid_target_attribute_inner_p): Ditto.
25930 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
25931 * config/i386/i386-builtin.c (enum processor_features): Add
25933 (static const _isa_names_table isa_names_table): Ditto.
25934 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
25935 (PTA_AVX512BF16): Ditto.
25936 * config/i386/i386.opt: Add -mavx512bf16.
25937 * config/i386/immintrin.h: Include avx512bf16intrin.h
25938 and avx512bf16vlintrin.h.
25939 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
25940 avx512f_cvtneps2bf16_<mode><mask_name>,
25941 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
25942 * config/i386/subst.md (mask_half): Add new subst.
25943 * doc/invoke.texi: Document -mavx512bf16.
25945 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25947 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
25948 Delete declaration.
25949 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
25950 (rs6000_debug_legitimize_reload_address): Delete.
25951 (rs6000_legitimize_reload_address_ptr): Delete.
25952 (rs6000_option_override_internal): Adjust.
25953 (mem_operand_gpr): Adjust comment.
25954 (legitimate_lo_sum_address_p): Ditto.
25955 (rs6000_legitimize_reload_address): Delete.
25956 (rs6000_debug_legitimize_reload_address): Delete.
25957 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
25959 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
25962 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25963 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
25964 to compute vector element selector for both constant and variable
25967 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25969 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
25970 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
25971 ashrdi3_cvt using SWI48 mode iterator.
25973 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25975 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
25976 (aarch64_<su>abd<mode>_3): Likewise.
25977 (*aarch64_<su>abd<mode>_3): New define_insn.
25978 (<sur>sad<vsi2qi>): New define_expand.
25979 * config/aarch64/iterators.md: Added MAX_OPP attribute.
25980 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
25981 (build_vect_cond_expr): Likewise.
25983 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25985 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
25986 clobbers outside of accessible_reg_set.
25987 * config/i386/i386.c (ix86_conditional_register_usage):
25988 Disable register sets by clearing corresponding bits in
25989 accessible_reg_set. Do not set corresponding bits in fixed_regs,
25990 call_used_regs and don't clear corresponding reg_names array members.
25992 2019-05-07 Richard Biener <rguenther@suse.de>
25994 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
25995 not specified still compute a comp_vectype for invariant
25998 2019-05-07 Richard Biener <rguenther@suse.de>
26000 PR tree-optimization/90316
26001 * tree-ssa-pre.c (translate_vuse_through_block): When
26002 same_valid is NULL do not bother to search for a virtual
26004 (phi_translate_1): When operands changed we cannot keep
26005 the same value-number so do not bother to ask whether
26006 that's possible from translate_vuse_through_block.
26008 2019-05-07 Martin Liska <mliska@suse.cz>
26010 * bitmap.c (bitmap_register): Come up with
26011 alloc_descriptor_max_uid and assign it for
26013 (register_overhead): Use get_descriptor as
26015 (release_overhead): New.
26016 (bitmap_elem_to_freelist): Call it.
26017 (bitmap_elt_clear_from): Likewise.
26018 (bitmap_obstack_free): Likewise.
26019 (bitmap_move): Sensitively release memory.
26020 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
26021 (bitmap_initialize): Initialize alloc_descriptor to zero.
26022 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
26024 2019-05-07 Richard Biener <rguenther@suse.de>
26026 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
26027 we build a SLP node. Remove max_size and limiting.
26028 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
26030 2019-05-07 Richard Biener <rguenther@suse.de>
26032 PR tree-optimization/90316
26033 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
26034 limit by reference.
26035 (walk_non_aliased_vuses): Take walking limit argument.
26036 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
26037 walking if it is reached instead of just counting.
26038 (get_continuation_for_phi): Likewise.
26039 (walk_non_aliased_vuses): Likewise, instead of leaving counter
26040 limiting to the callback.
26041 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
26042 (vn_reference_lookup_3): Likewise.
26043 (vn_reference_lookup_pieces): Likewise.
26044 (vn_reference_lookup): Likewise.
26045 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
26046 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
26047 (avail_exprs_stack::lookup_avail_expr): Likewise.
26049 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
26051 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
26052 for comparaible types in the second direction even if first one
26053 hits incomparable type.
26055 2019-05-07 Richard Biener <rguenther@suse.de>
26058 * lto-wrapper.c (debug_objcopy): Use the original filename
26059 including archive offset for the filename used for -save-temps.
26061 2019-05-07 Li Jia He <helijia@linux.ibm.com>
26063 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
26066 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
26067 Hongtao Liu <hongtao.liu@intel.com>
26071 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
26072 Modified, original implementation isn't correct.
26074 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26076 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
26077 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
26078 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
26079 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
26080 (FRAME_POINTER_REGNUM): Change numbering.
26081 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
26082 (alt_reg_names): Adjust.
26083 (rs6000_conditional_register_usage): Don't mark hard register 64 as
26085 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26086 (DWARF_FRAME_REGISTERS): Delete.
26087 (DWARF2_FRAME_REG_OUT): Fix whitespace.
26088 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26090 (REG_ALLOC_ORDER): Adjust.
26091 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
26092 (REG_CLASS_CONTENTS): Adjust.
26093 (RETURN_ADDR_RTX): Change comment.
26094 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
26096 (REGISTER_NAMES): Adjust.
26097 (ADDITIONAL_REGISTER_NAMES): Adjust.
26098 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26100 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26102 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
26104 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26105 (DWARF_FRAME_REGISTERS): Adjust.
26106 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26108 (REG_ALLOC_ORDER): Adjust.
26109 (enum reg_class): Delete SPR_REGS.
26110 (REG_CLASS_NAMES): Delete SPR_REGS.
26111 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
26112 (REGISTER_NAMES): Adjust.
26113 (ADDITIONAL_REGISTER_NAMES): Adjust.
26114 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26115 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
26116 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
26117 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
26118 (htm_spr_regno): Delete.
26119 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
26121 (rs6000_dbx_register_number): Adjust.
26123 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26125 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
26127 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26129 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
26130 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
26132 2019-05-06 Jakub Jelinek <jakub@redhat.com>
26134 PR tree-optimization/88709
26135 PR tree-optimization/90271
26136 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
26137 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
26138 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
26140 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
26141 of the store merging group is larger than
26142 PARAM_STORE_MERGING_MAX_SIZE parameter.
26143 (split_group): Add bzero_first argument. If set, always emit first
26144 the first store which must be = {} of the whole area and then for the
26145 rest of the stores consider all zero bytes as paddings.
26146 (imm_store_chain_info::output_merged_store): Check if first store
26147 is = {} of the whole area and if yes, determine which setting of
26148 bzero_first for split_group gives smaller number of stores. Adjust
26149 split_group callers.
26150 (lhs_valid_for_store_merging_p): Allow decls.
26151 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
26153 (pass_store_merging::process_store): Likewise.
26155 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
26158 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
26159 handling of V1TImode.
26161 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
26164 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
26165 and enable_frame_pointer ...
26166 * configure.ac: ... here. Update help strings for
26167 --enable-frame-pointer.
26168 * configure: Regenerate.
26169 * config/i386/i386-options.c (ix86_option_override_internal): Remove
26170 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
26171 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
26172 (USE_X86_64_FRAME_POINTER): Ditto.
26174 2019-05-06 Martin Liska <mliska@suse.cz>
26176 * config.gcc: Append to target_gtfiles and fix indentation.
26178 2019-05-06 Richard Biener <rguenther@suse.de>
26180 PR tree-optimization/90358
26181 * tree-vect-stmts.c (get_group_load_store_type): Properly
26182 detect unused upper half of load.
26183 (vectorizable_load): Likewise.
26185 2019-05-06 Richard Biener <rguenther@suse.de>
26187 PR tree-optimization/88828
26188 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
26189 (simplify_vector_constructor): ...here. Handle constants in
26192 2019-05-06 Richard Biener <rguenther@suse.de>
26194 PR tree-optimization/90328
26195 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
26196 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
26197 is valid in the loop nest before using it.
26198 (initialize_data_dependence_relation): Adjust.
26199 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
26200 loop as loop-nest to dr_may_alias_p.
26202 2019-05-06 Richard Biener <rguenther@suse.de>
26204 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
26206 2019-05-06 Richard Biener <rguenther@suse.de>
26208 PR tree-optimization/90316
26209 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
26210 compute target on demand.
26211 (get_continuation_for_phi): Remove code walking stmts to
26212 get to a target virtual operand which could end up being
26215 2019-05-06 Martin Liska <mliska@suse.cz>
26218 * config/i386/i386-options.c (ix86_option_override_internal): Error only
26219 when -mabi is selected to a non-default version.
26221 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
26222 Martin Liska <mliska@suse.cz>
26224 * Makefile.in: Add lto-dump.texi.
26225 * cgraph.h: Add new functions get_visibility_string and
26226 get_symtab_type_string.
26227 * doc/gcc.texi: Include lto-dump section.
26228 * doc/lto-dump.texi: New file.
26229 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
26230 (parse_dump_option): Factor out this function.
26231 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
26232 (parse_dump_option): Export the function.
26233 * symtab.c (symtab_node::get_visibility_string): New function.
26234 (symtab_node::get_symtab_type_string): Likewise.
26236 2019-05-06 Martin Liska <mliska@suse.cz>
26238 * config/i386/i386-builtins.c: New file.
26239 * config/i386/i386-builtins.h: New file.
26240 * config/i386/i386-expand.c: New file.
26241 * config/i386/i386-expand.h: New file.
26242 * config/i386/i386-features.c: New file.
26243 * config/i386/i386-features.h: New file.
26244 * config/i386/i386-options.c: New file.
26245 * config/i386/i386-options.h: New file.
26246 * config.gcc: Add new files into extra_objs and
26248 * config/i386/i386.c: Split content of the file
26249 into newly introduced files.
26250 * config/i386/i386.h: Declare common variables
26252 * config/i386/t-i386: Define dependencies for new files.
26254 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
26257 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
26258 Restrict 'all' variant to 32-bit configurations.
26259 (unaligned_loadhiu): Likewise.
26260 (unaligned_storehi): Likewise.
26261 (unaligned_storesi): Likewise.
26262 (unaligned_loadhis): Disable when compiling for thumb1.
26264 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
26266 PR tree-optimization/90269
26267 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
26270 2019-05-03 Martin Liska <mliska@suse.cz>
26272 * hash-map.h: Add is_empty function.
26273 * hash-set.h: Likewise.
26274 * hash-table.h: Likewise.
26275 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
26276 elements () == 0 (and similar usages).
26277 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
26278 * gimplify.c (gimplify_bind_expr): Likewise.
26279 (gimplify_switch_expr): Likewise.
26280 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
26281 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
26282 * postreload-gcse.c (dump_hash_table): Likewise.
26283 (gcse_after_reload_main): Likewise.
26284 * predict.c (combine_predictions_for_bb): Likewise.
26285 * tree-parloops.c (reduction_phi): Likewise.
26286 (separate_decls_in_region): Likewise.
26287 (transform_to_exit_first_loop): Likewise.
26288 (gen_parallel_loop): Likewise.
26289 (gather_scalar_reductions): Likewise.
26290 (try_create_reduction_list): Likewise.
26291 * var-tracking.c (dump_vars): Likewise.
26292 (emit_notes_for_changes): Likewise.
26293 (vt_emit_notes): Likewise.
26295 2019-05-03 Richard Biener <rguenther@suse.de>
26297 PR tree-optimization/90316
26298 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
26301 2019-05-03 Richard Biener <rguenther@suse.de>
26303 * tree-vect-stmts.c (get_group_load_store_type): Avoid
26304 peeling for gaps by loading only lower halves of vectors
26306 (vectorizable_load): Likewise.
26308 2019-05-03 Richard Biener <rguenther@suse.de>
26310 PR middle-end/89518
26311 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
26313 2019-05-03 Richard Biener <rguenther@suse.de>
26315 PR middle-end/87314
26316 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
26317 Handle STRING_CST vs DECL or STRING_CST.
26319 2019-05-03 Richard Biener <rguenther@suse.de>
26321 PR tree-optimization/88963
26322 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
26323 vector loads feeding only BIT_FIELD_REFs to component
26324 loads. Rewrite stores fed by CONSTRUCTORs to component
26327 2019-05-03 Jakub Jelinek <jakub@redhat.com>
26329 * opts.h (finish_options): Remove lang_mask argument.
26330 (print_help, help_option_argument): Declare.
26331 * opts.c (print_help): Remove forward declaration, no longer static.
26332 (finish_options): Remove lang_mask argument, don't call print_help
26334 * opts-global.c (decode_options): Adjust finish_option caller, call
26337 PR tree-optimization/90303
26338 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
26339 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
26341 2019-05-03 Richard Biener <rguenther@suse.de>
26343 PR tree-optimization/89698
26344 * gimple-fold.c (canonicalize_constructor_val): Early out
26345 for constants, handle unfolded INTEGER_CSTs as they appear in
26346 C++ virtual table ctors.
26348 2019-05-03 Richard Biener <rguenther@suse.de>
26350 * passes.c (execute_function_todo): Remove dead code.
26352 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26354 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
26355 the internal register number, for any "real" register.
26357 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26359 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
26360 correct numbers for TFHAR, TFIAR, TEXASR.
26362 2019-05-02 Richard Biener <rguenther@suse.de>
26364 PR tree-optimization/89653
26365 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
26366 update-address-taken before the pass.
26367 * passes.def (pass_tree_loop_init): Put comment before it.
26369 2019-05-02 Richard Biener <rguenther@suse.de>
26371 PR tree-optimization/89509
26372 * tree-ssa-structalias.c (compute_dependence_clique): Look
26373 at the first subvar when determining whether it is restrict.
26375 2019-05-02 Richard Biener <rguenther@suse.de>
26377 PR tree-optimization/90273
26378 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
26379 useless debug stmts.
26381 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26383 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
26385 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
26387 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
26388 VEC_COND_EXPR be inserted to emulate a conditional internal function.
26389 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
26390 (vectorizable_reduction): Use the functions above to vectorize in a
26391 fully masked loop codes that don't have a conditional internal
26394 2019-05-02 Martin Liska <mliska@suse.cz>
26396 * cgraphclones.c: Call valid_attribute_p with 1 for
26398 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
26399 it's for target attribute.
26400 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
26401 Add new boolean argument.
26402 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
26404 (ix86_valid_target_attribute_tree): Pass target_clone_attr
26405 to ix86_valid_target_attribute_inner_p.
26406 (ix86_valid_target_attribute_p): Pass flags argument to
26407 ix86_valid_target_attribute_inner_p.
26408 (get_builtin_code_for_version): Use 0 as it's target attribute.
26410 2019-05-02 Martin Liska <mliska@suse.cz>
26412 * gcc.c (process_command): Add dummy file only
26414 * opts-global.c (decode_options): Pass lang_mask.
26415 * opts.c (print_help): New function.
26416 (finish_options): Print --help if help_option_argument
26418 (common_handle_option): Factor out content of OPT__help_
26420 * opts.h (finish_options): Add new argument.
26422 2019-05-02 Martin Liska <mliska@suse.cz>
26425 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
26426 With -minline-all-stringops use inline expansion using 4B loop.
26427 * doc/invoke.texi: Document the change of
26428 -minline-all-stringops.
26430 2019-05-01 Jeff Law <law@redhat.com>
26432 PR tree-optimization/88797
26433 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
26434 PHI feeds a conditional on the RHS of an assignment.
26436 2019-04-30 Andrew Waterman <andrew@sifive.com>
26437 Jim Wilson <jimw@sifive.com>
26439 * config/riscv/constraints.md (L): New.
26440 * config/riscv/predicates.md (lui_operand): New.
26441 (sfb_alu_operand): New.
26442 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
26443 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
26444 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
26445 * config/riscv/risc.md (type): Add sfb_alu.
26446 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
26447 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
26448 (branch_zero<mode>): Delete.
26449 (mov<mode>cc): New.
26450 (mov<GPR:mode><X:mode>cc): Likewise.
26451 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
26453 2019-04-30 Nathan Sidwell <nathan@acm.org>
26455 * tree.h (MARK_TS_EXP): New.
26457 2019-04-30 Martin Liska <mliska@suse.cz>
26459 * opts.c (enable_warning_as_error): Provide hints
26460 for unknown options.
26462 2019-04-30 Martin Liska <mliska@suse.cz>
26465 * doc/invoke.texi: Add missing dash for gas-locview-support
26466 and gno-as-locview-support.
26468 2019-04-30 Jakub Jelinek <jakub@redhat.com>
26471 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
26472 whitespace at the start of target attribute string.
26474 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26477 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26478 Define __ARM_FEATURE_ATOMICS.
26480 2019-04-30 Martin Liska <mliska@suse.cz>
26482 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
26483 into built_in_function enum. Remove code for endp == 2 and
26484 use BUILT_IN_* constants.
26485 (gimple_fold_builtin): Call the function with fcode.
26487 2019-04-30 Martin Liska <mliska@suse.cz>
26489 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
26490 DECL_FUNCTION_CODE into ix86_builtins enum before
26491 the switch statement.
26493 2019-04-30 Jakub Jelinek <jakub@redhat.com>
26495 PR tree-optimization/89475
26496 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
26499 2019-04-30 Martin Liska <mliska@suse.cz>
26501 PR translation/90274
26502 * opts.c (print_filtered_help): Wrap string in _(...).
26504 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
26506 PR tree-optimization/90240
26508 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26510 PR tree-optimization/90078
26511 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
26512 checks for infinite_cost overflow.
26514 2019-04-29 Jeff Law <law@redhat.com>
26516 * passes.def: Move -Wrestrict pass after copy propagation.
26518 2019-04-29 Maya Rashish <coypu@sdf.org>
26520 * config.gcc (default_gnu_indirect_function): Default to yes
26521 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
26522 sparc*-*-netbsd*, x86_64-*-netbsd*.
26524 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
26526 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
26527 where cond2 is NE_EXPR.
26528 (is_value_included_in): Update comment.
26530 2019-04-29 Richard Biener <rguenther@suse.de>
26532 PR tree-optimization/90278
26533 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
26534 EH on comparison simplification.
26536 2019-04-29 Jason Merrill <jason@redhat.com>
26538 PR c++/82081 - tail call optimization breaks noexcept
26539 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
26540 nothrow function to a might-throw function into a tail call.
26542 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
26544 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
26545 (DDR_INNER_LOOP): Likewise.
26546 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
26547 (initialize_data_dependence_relation): Likewise.
26548 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
26550 2019-04-29 Jakub Jelinek <jakub@redhat.com>
26552 PR rtl-optimization/90257
26553 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
26557 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
26561 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
26564 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
26567 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
26569 * lra-spills.c (lra_final_code_change): Remove useless move insns.
26571 2019-04-29 Richard Biener <rguenther@suse.de>
26573 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
26576 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
26578 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
26579 varasm.h, and netbsd-protos.h.
26581 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
26584 * config/i386/i386-protos.h (ix86_data_alignment): Change
26585 the second argument type to unsigned int.
26586 * config/i386/i386.c (ix86_data_alignment): Change "align"
26587 argument type to unsigned int.
26589 2019-04-27 Martin Liska <mliska@suse.cz>
26591 PR middle-end/90258
26592 * opt-suggestions.c (option_proposer::build_option_suggestions):
26593 When get_valid_option_values returns empty values, add the
26594 misspelling candidate.
26596 2019-04-26 Jim Wilson <jimw@sifive.com>
26598 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
26600 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
26601 Pass orig_mode to riscv_build_integer.
26602 (riscv_split_integer): Pass mode to riscv_move_integer.
26603 (riscv_legitimize_const_move): Likewise.
26604 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
26605 promoted_mode. Replace force_reg call with code to load constant into
26606 promoted reg and then subreg it for the store.
26607 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
26608 riscv_move_integer.
26610 2018-04-26 Eugene Sharygin <eush@ispras.ru>
26612 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
26615 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
26617 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
26618 commentary about the encoding of precision.
26620 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
26622 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
26623 * config/i386/t-freebsd64: New file.
26624 * config.gcc: Add the t-freebsd64 for multilib support.
26626 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
26628 * doc/extend.texi (vector_size): Add missing comma after @xref.
26630 2019-04-25 Jakub Jelinek <jakub@redhat.com>
26632 * BASE-VER: Set to 10.0.0.
26634 2019-04-25 Richard Biener <rguenther@suse.de>
26636 PR middle-end/89765
26637 * gimplify.c (gimplify_expr): Avoid turning a lvalue
26638 VIEW_CONVERT_EXPR into one operating on an rvalue.
26640 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
26643 * config/i386/i386.c (feature_priority): Moved to file scope.
26644 (processor_features): Likewise.
26645 (processor_model): Likewise.
26646 (_arch_names_table): Likewise.
26647 (arch_names_table): Likewise.
26648 (_feature_list): Removed.
26649 (feature_list): Likewise.
26650 (_isa_names_table): Moved to file scope. Add priority.
26651 (isa_names_table): Likewise.
26652 (get_builtin_code_for_version): Replace feature_list with
26653 isa_names_table. Update error message for P_ZERO priority.
26655 2019-04-25 Richard Biener <rguenther@suse.de>
26657 * tree-pass.h (make_pass_phi_only_cprop): Remove.
26658 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
26660 2019-04-24 Jeff Law <law@redhat.com>
26662 PR tree-optimization/90037
26663 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
26664 * passes.def: Replace all instance of phi-only cprop with the
26665 lattice propagator. Move propagation pass from after erroneous
26666 path isolation to before erroneous path isolation.
26667 * tree-ssa-phionlycprop.c: Remove.
26669 2019-04-24 Richard Biener <rguenther@suse.de>
26671 PR middle-end/90213
26672 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
26673 by size and BITS_PER_UNIT on poly-wide-ints.
26675 2019-04-25 Richard Biener <rguenther@suse.de>
26677 PR middle-end/90194
26678 * match.pd: Add pattern to simplify view-conversion of an
26681 2019-04-24 Clement Chigot <clement.chigot@atos.net>
26683 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
26684 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
26685 for Go on 32 bit AIX.
26686 * config/rs6000/aix72.h: Likewise.
26688 2019-04-24 Jakub Jelinek <jakub@redhat.com>
26691 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
26692 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
26694 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
26697 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
26698 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
26699 for restored hard frame pointer.
26700 (s390_sched_dependencies_evaluation): Implement new target hook.
26701 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
26703 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
26705 * config/arc/arc-options.def: Fix typos and spelling mistakes.
26706 * config/arc/arc.c (arc_init): Cleanup warning message.
26707 (arc_override_options): Likewise.
26709 2019-04-24 Jakub Jelinek <jakub@redhat.com>
26712 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
26713 a register if both if_true and if_false are MEMs.
26715 PR tree-optimization/90208
26716 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
26717 after labels of new_bb, not before them.
26719 PR tree-optimization/90211
26720 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
26721 which are not SSA_NAMEs.
26723 2018-04-23 Sudakshina Das <sudi.das@arm.com>
26725 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
26727 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
26729 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
26731 PR rtl-optimization/87979
26732 * modulo-sched.c (sms_schedule): Start ii value "mii" should
26735 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
26737 PR rtl-optimization/84032
26738 * modulo-sched.c (ps_insn_find_column): Change condition so that
26739 branch will always be the last insn in a row inside partial
26742 2019-04-23 Richard Biener <rguenther@suse.de>
26745 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
26746 dest_single_pred_p argument.
26747 (remove_forwarder_block): Adjust.
26748 (remove_forwarder_block_with_phi): Likewise.
26750 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26751 Bernd Edlinger <bernd.edlinger@hotmail.de>
26752 Jakub Jelinek <jakub@redhat.com>
26755 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
26756 if used with general-regs-only.
26757 (arm_conditional_register_usage): Don't add non-general regs if
26759 (arm_valid_target_attribute_rec): Handle general-regs-only.
26760 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
26762 (TARGET_HARD_FLOAT_SUB): Define.
26763 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
26764 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
26765 (TARGET_REALLY_IWMMXT2): Likewise.
26766 * config/arm/arm.opt: Add -mgeneral-regs-only.
26767 * doc/extend.texi: Document ARM general-regs-only target.
26768 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
26770 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26772 PR tree-optimization/90078
26773 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
26774 checks for infinite_cost overflow.
26776 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26778 PR tree-optimization/90021
26779 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
26780 and check univariate against it.
26781 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
26782 * tree-data-ref.c (add_other_self_distances): Pass new argument.
26784 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
26788 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
26791 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
26794 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
26796 * lra-spills.c (lra_final_code_change): Remove useless move insns.
26798 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
26800 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
26801 names using operand format, rather than hard-wired.
26802 (speculation_barrier): Likewise.
26804 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
26806 PR tree-optimization/88055
26807 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
26808 (gen_one_condition): Use it if !HONOR_NANS.
26810 2019-04-19 Jakub Jelinek <jakub@redhat.com>
26812 PR middle-end/90139
26813 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
26814 assign_temp instead of gen_reg_rtx.
26816 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
26818 PR translation/90118
26819 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26820 Add missing space before %<.
26822 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
26824 PR rtl-optimization/87871
26825 * ira-lives.c (make_object_dead): Don't add conflicts to
26826 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
26828 2019-04-18 Martin Sebor <msebor@redhat.com>
26830 PR middle-end/89797
26831 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
26832 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
26833 assuming type size fits in SHWI.
26835 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
26838 * ipa-inline.c (flatten_function): New parameter UPDATE.
26839 (ipa_inline, early_inliner): Use it.
26841 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26843 * fold-const.c (int_const_binop): Return early on failure.
26845 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26847 PR middle-end/85164
26848 * combine.c (force_int_to_mode): Cast the argument rather than
26849 the result of known_alignment.
26850 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
26852 2019-04-18 Richard Biener <rguenther@suse.de>
26855 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
26857 (remove_forwarder_block): ... here.
26858 (remove_forwarder_block_with_phi): Also move debug stmts here.
26860 2019-04-18 Jakub Jelinek <jakub@redhat.com>
26862 PR translation/79183
26863 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
26864 inform where appropriate.
26866 2019-04-18 Richard Biener <rguenther@suse.de>
26868 * tree.c (get_qualified_type): Put found type variants at the
26869 head of the variant list.
26871 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26873 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
26875 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
26878 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
26879 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
26880 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
26881 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
26882 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
26884 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
26886 * ira-conflicts.c (print_allocno_conflicts): Always print something,
26887 even for allocno's with no conflicts.
26888 (print_conflicts): Print an extra newline.
26890 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26892 * auto-inc-dec.c (attempt_change): Set the alignment of the
26893 temporary memory to that of the original.
26895 2019-04-17 Joao Moreira <jmoreira@suse.de>
26897 * targhooks.c (default_print_patchable_function_entry): Emit
26898 __patchable_function_entries section with writable flags to allow
26899 relocation resolution.
26901 2019-04-17 Jonny Grant <jg@jguk.org>
26903 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
26905 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26907 PR middle-end/90095
26908 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
26909 on lowpart SUBREGs.
26911 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
26913 * config/arc/arc.c (arc_init): Format diagnostic string.
26914 (arc_override_options): Likewise.
26915 (check_if_valid_regno_const): Likewise.
26916 (arc_reorg): Likewise.
26918 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26921 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
26923 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
26925 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
26926 (*movdi_update1): Use Pmode.
26927 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
26928 (movdi_<mode>_update_stack): Rename to ...
26929 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
26931 (*movsi_update1): Use Pmode.
26932 (*movsi_update2): Use Pmode.
26933 (movsi_update): Rename to ...
26934 (movsi_<mode>_update): ... this. Use Pmode.
26935 (movsi_update_stack): Fix condition.
26936 (*movhi_update1): Use Pmode. Fix argument to
26937 avoiding_indexed_address_p.
26938 (*movhi_update2): Ditto.
26939 (*movhi_update3): Ditto.
26940 (*movhi_update4): Ditto.
26941 (*movqi_update1): Ditto.
26942 (*movqi_update2): Ditto.
26943 (*movqi_update3): Ditto.
26944 (*movsf_update1, *movdf_update1): Merge, rename to...
26945 (*mov<mode>_update1): This. Use Pmode. Fix argument to
26946 avoiding_indexed_address_p. Add "size" attribute.
26947 (*movsf_update2, *movdf_update2): Merge, rename to...
26948 (*mov<mode>_update2): This. Ditto.
26949 (*movsf_update3): Use Pmode. Fix argument to
26950 avoiding_indexed_address_p.
26951 (*movsf_update4): Ditto.
26952 (allocate_stack): Simplify condition. Adjust pattern names.
26954 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26957 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
26958 whitespace at the start of target attribute string.
26960 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
26963 * config/rs6000/power9.md: Add store forwarding bypass.
26965 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
26968 * valtrack.c (dead_debug_insert_temp): Reset debug references
26969 to the return value of a call being removed.
26971 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26973 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
26974 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
26975 implement target hook.
26976 (arc_memory_move_cost): New function.
26977 (TARGET_REGISTER_MOVE_COST): Define.
26978 (TARGET_MEMORY_MOVE_COST): Likewise.
26979 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
26980 (MEMORY_MOVE_COST): Likewise.
26982 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26984 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
26985 (sibcall_value_insn): Likewise.
26986 * config/arc/constraints.md (Rs5): Remove.
26988 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26990 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
26991 for last two fake registers.
26992 (arc_conditional_register_usage): Make sure fake frame and arg
26993 pointer regs are in general regs class.
26994 (FRAME_POINTER_MASK): Remove.
26995 (RETURN_ADDR_MASK): Remove.
26996 (arc_must_save_register): Use hard frame regnum.
26997 (frame_restore_reg): Use hard_frame_pointer_rtx.
26998 (arc_save_callee_saves): Likewise.
26999 (arc_restore_callee_saves): Likewise.
27000 (arc_save_callee_enter): Likewise.
27001 (arc_restore_callee_leave): Likewise.
27002 (arc_save_callee_milli): Likewise.
27003 (arc_eh_return_address_location): Likewise.
27004 (arc_check_multi): Use hard frame regnum.
27005 (arc_can_eliminate): Likewise.
27006 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
27007 for register allocator.
27008 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
27009 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
27010 (FRAME_POINTER_REGNUM): Change it to a fake register.
27011 (HARD_FRAME_POINTER_REGNUM): Defined.
27012 (ARG_POINTER_REGNUM): Change it to a new fake register.
27013 (ELIMINABLE_REGS): Update.
27014 (REGISTER_NAMES): Update names.
27015 * config/arc/arc.md (LP_START): Remove.
27016 (LP_END): Likewise.
27017 (shift_si3_loop): Update pattern.
27019 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27021 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
27022 to avoid delay slot scheduling.
27023 (arc_must_save_register): Don't save SP.
27024 * config/arc/arc.md (stack_tie): Remove.
27025 (UNSPEC_ARC_STKTIE): Likewise.
27027 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
27028 Shiva Chen <shiva0217@gmail.com>
27030 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
27031 code gen with large shift amount.
27033 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
27035 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
27038 2019-04-16 Jakub Jelinek <jakub@redhat.com>
27041 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
27042 print -m64/-mx32/-m32 if it is true.
27043 (ix86_debug_options, ix86_function_specific_print): Pass true as
27044 ADD_ABI_P to ix86_target_string.
27045 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
27046 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
27047 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
27049 PR rtl-optimization/90082
27050 * dce.c (can_delete_call): New function.
27051 (deletable_insn_p, mark_insn): Use it.
27053 PR tree-optimization/90090
27054 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
27056 (is_division_by_square): Likewise. Formatting fix.
27058 2019-04-16 Richard Biener <rguenther@suse.de>
27060 PR tree-optimization/56049
27061 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
27062 equality check if alias-set zero will prevail.
27064 2019-04-15 Jeff Law <law@redhat.com>
27066 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
27067 size and alignment as unsigned.
27069 2019-04-15 Richard Biener <rguenther@suse.de>
27072 * tree-loop-distribution.c (destroy_loop): Preserve correct
27075 2019-04-15 Richard Biener <rguenther@suse.de>
27077 PR tree-optimization/90071
27078 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
27079 abnormal operands from def stmts.
27081 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
27083 PR rtl-optimization/89794
27084 * combine.c (count_auto_inc): New function.
27085 (try_combine): Count how many auto_inc expressions there were in the
27086 original instructions. Ensure we have the same number in the new
27087 instructions. Remove the code that tried to ensure auto_inc side
27088 effects on i1 and i0 are not lost.
27090 2019-04-15 Richard Biener <rguenther@suse.de>
27093 * tree.h (auto_var_p): Declare.
27094 * tree.c (auto_var_p): New function, split out from ...
27095 (auto_var_in_fn_p): ... here.
27096 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
27098 (new_var_info): Initialize it.
27099 (set_uids_in_ptset): Also set the shadow variable uid if required.
27100 (ipa_pta_execute): Postprocess points-to solutions assigning
27101 shadow variable uids for locals that may reach their containing
27102 function recursively.
27103 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
27104 assert but instead check whether the points-to solution is
27107 2019-04-15 Martin Jambor <mjambor@suse.cz>
27110 * cgraph.c (clone_of_p): Loop over clone chain for each step in
27113 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27115 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
27117 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27118 Kito Cheng <kito.cheng@gmail.com>
27119 Shiva Chen <shiva0217@gmail.com>
27121 * config/nds32/nds32-md-auxiliary.c
27122 (nds32_legitimize_pic_address): Use new PIC pattern.
27123 (nds32_legitimize_tls_address): Use new TLS pattern.
27124 (nds32_output_symrel): New.
27125 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
27126 (nds32_alloc_relax_group_id): Ditto.
27127 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
27128 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
27130 (nds32_group_tls_insn): Ditto.
27131 (nds32_group_float_insns): Ditto.
27132 * config/nds32/nds32.md (tls_le): New.
27135 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
27137 * configure: Add nds32 target for dwarf2 debug_line checking.
27138 * configure.ac: Regenerated.
27140 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
27143 * ipa-devirt.c (skip_in_fields_list_p): New.
27144 (odr_types_equivalent_p): Use it.
27146 2019-04-13 Jakub Jelinek <jakub@redhat.com>
27149 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
27150 instead of strncmp when checking for thumb and arm. Formatting fixes.
27152 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
27154 * doc/install.texi: Document --with-target-system-zlib.
27156 2019-04-12 Martin Sebor <msebor@redhat.com>
27162 * targhooks.c (default_vector_alignment): Avoid assuming
27163 argument fits in SHWI.
27164 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
27165 a shift expression.
27166 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
27168 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27170 PR rtl-optimization/89965
27171 * dce.c: Include rtl-iter.h.
27172 (struct check_argument_load_data): New type.
27173 (check_argument_load): New function.
27174 (find_call_stack_args): Check for loads from stack slots still tracked
27175 in sp_bytes and punt if any is found.
27177 * config/mips/loongson-mmiintrin.h: Fix up #error message.
27179 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
27181 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
27182 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
27184 2019-04-12 Martin Liska <mliska@suse.cz>
27186 PR middle-end/89970
27187 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
27189 (separate_attrs): Handle multiple 'default's.
27190 (expand_target_clones): Rework error handling code.
27192 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
27195 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
27196 mode of vector rather than mode of destination for move instruction.
27197 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
27198 Use QI inner mode with V16QI vector mode.
27200 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27203 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
27204 "invalid %%t operand" in output_operand_lossage message.
27206 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
27208 * config/s390/predicates.md (permute_pattern_operand): New
27210 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
27211 operand for the permute pattern.
27212 ("*vec_perm<mode>"): New insn definition.
27213 ("bswap<mode>"): Generate the permute pattern operand in the
27214 expander and perform the operand reloads for pre arch13 level
27216 ("*bswap<mode>_emu"): Rename to ...
27217 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
27218 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
27219 Add the USE operand for the permute pattern.
27220 ("*vec_set_bswap_vec<mode>"): Likewise.
27222 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27225 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
27226 and gcc_unreachable if it fails, just call tree_to_uhwi which
27227 verifies that too. Test TREE_CHAIN instead of list_length > 1.
27228 Start warning message with a lower-case letter. Formatting fixes.
27230 PR rtl-optimization/90026
27231 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
27232 successors, look for BARRIERs inside of the whole BB_FOOTER chain
27233 rather than just at the start of it. If e->src BB_FOOTER is not NULL
27234 in cfglayout mode, use emit_barrier_after_bb.
27236 2018-04-11 Steve Ellcey <sellcey@marvell.com>
27238 PR rtl-optimization/87763
27239 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
27242 2019-04-11 Tom de Vries <tdevries@suse.de>
27244 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
27245 max macro using statement expression.
27247 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
27249 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
27250 * xcoffout.c (xcoff_private_rodata_section_name): Define.
27251 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
27252 read_only_private_data_section using xcoff_private_rodata_section_name.
27253 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
27255 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
27258 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
27260 2019-04-11 Jakub Jelinek <jakub@redhat.com>
27262 PR rtl-optimization/89965
27263 * dce.c (sp_based_mem_offset): New function.
27264 (find_call_stack_args): Use sp_based_mem_offset.
27266 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
27268 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
27270 2019-04-11 Richard Biener <rguenther@suse.de>
27272 PR tree-optimization/90020
27273 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
27274 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
27275 * tree-ssa-pre.c (compute_avail): Use it to not put
27276 possibly trapping references after a call that might not
27277 return into EXP_GEN.
27278 * gcse.c (compute_hash_table_work): Do not elide
27279 marking a block containing a call if the call might not
27282 2019-04-11 Richard Biener <rguenther@suse.de>
27284 PR tree-optimization/90018
27285 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
27286 Test both SLP and interleaving variants.
27288 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
27290 * config/s390/8561.md: New file.
27291 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27292 Add arch13 cpu model.
27293 * config/s390/s390-opts.h (enum processor_type): Likewise.
27294 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
27295 (s390_get_unit_mask): Likewise.
27296 (s390_is_fpd): Likewise.
27297 (s390_is_fxd): Likewise.
27298 * config/s390/s390.h (s390_tune_attr): Likewise.
27299 * config/s390/s390.md: Include arch13 pipeline description.
27300 * config/s390/s390.opt: Add arch13.
27302 2018-04-10 Steve Ellcey <sellcey@marvell.com>
27304 PR rtl-optimization/87763
27305 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
27307 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
27309 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
27311 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
27312 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
27313 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
27314 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
27316 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
27318 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
27319 "Although" in -fipa-icf documentation.
27321 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
27322 of using multiple -g options.
27324 2019-04-10 Martin Liska <mliska@suse.cz>
27326 PR gcov-profile/89959
27327 * doc/gcov.texi: Make documentation of -x option
27330 2019-04-10 Richard Biener <rguenther@suse.de>
27332 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
27334 (DR_GROUP_SAME_DR_STMT): Remove.
27335 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
27336 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
27337 replace with assert.
27338 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
27339 (vect_record_grouped_load_vectors): Remove unreachable code.
27341 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
27344 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
27345 obsolete reference to N.
27347 2019-04-10 Jakub Jelinek <jakub@redhat.com>
27349 PR middle-end/90025
27350 * expr.c (store_expr): Set properly size on the MEM passed to
27354 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
27355 with strlen in between hostsz-3 and hostsz-1 inclusive when no
27356 translation is needed, and when translation is needed, only append
27357 ... if the string length is hostsz or more bytes long. Avoid using
27360 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
27363 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
27364 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
27366 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
27367 differences directly.
27368 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
27370 2019-04-09 Jakub Jelinek <jakub@redhat.com>
27372 PR translation/90011
27373 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27375 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
27377 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
27378 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
27379 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
27380 trailing space from -gsplit-dwarf diagnostics.
27382 PR tree-optimization/89998
27383 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
27384 instead of integer_type_node if possible, don't add ranges if return
27385 type is not compatible with int.
27386 * gimple-fold.c (gimple_fold_builtin_sprintf,
27387 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
27390 2019-04-09 Martin Liska <mliska@suse.cz>
27392 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
27393 * doc/install.texi: Document the new config.
27395 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
27397 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
27398 use gimple_expr_type for load and store calls. Skip over the
27399 condition argument in a conditional internal function.
27400 Protect use of TREE_INT_CST_LOW.
27402 2019-04-09 Jakub Jelinek <jakub@redhat.com>
27405 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
27406 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
27407 trailing period from it too.
27409 2019-04-08 wu yuan <wuyuan5@huawei.com>
27411 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
27412 * config/aarch64/aarch64.md: Add "tsv110.md".
27413 * config/aarch64/tsv110.md: New file.
27415 2019-04-08 Richard Biener <rguenther@suse.de>
27417 PR tree-optimization/90006
27418 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
27421 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
27424 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
27426 (fma_root_node): Likewise.
27427 (func_fma_steering): Likewise.
27429 2019-04-08 Jakub Jelinek <jakub@redhat.com>
27431 PR rtl-optimization/89865
27432 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
27434 PR rtl-optimization/89865
27435 * config/i386/i386.md
27436 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
27437 numbers not to clash with the additional operands[4].
27438 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
27439 with extra register copy in the middle.
27441 2019-04-08 Martin Liska <mliska@suse.cz>
27443 PR gcov-profile/89961
27444 * doc/gcov.texi: Document data_file.
27445 * gcov.c (generate_results): Add data_info into JSON output.
27447 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
27449 PR tree-optimization/89725
27450 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
27451 loop's chrec as invariant symbol.
27452 * tree-chrec.h (chrec_contains_symbols): New parameter.
27453 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
27454 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
27455 function of loops not in DDR's loop_nest.
27456 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
27458 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
27461 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
27464 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
27467 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27468 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
27470 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
27472 * sched-deps.c (sched_macro_fuse_insns): Check return value of
27473 targetm.fixed_condition_code_regs.
27475 2019-04-05 Richard Biener <rguenther@suse.de>
27479 * tree-cfgcleanup.c (remove_forwarder_block): Always move
27480 debug bind stmts but reset them if they are not valid at the
27483 2019-04-05 Martin Liska <mliska@suse.cz>
27485 PR translation/89936
27486 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
27487 order to wrap keywords or arguments.
27488 * collect2.c (main): Likewise.
27489 (scan_prog_file): Likewise.
27490 (scan_libraries): Likewise.
27491 * common/config/riscv/riscv-common.c
27492 (riscv_subset_list::parsing_subset_version): Likewise.
27493 (riscv_subset_list::parse_std_ext): Likewise.
27494 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27496 * config/arm/arm.c (arm_option_override): Likewise.
27497 * config/cris/cris.c (cris_print_operand): Likewise.
27498 * config/darwin-c.c (darwin_pragma_options): Likewise.
27499 (darwin_pragma_unused): Likewise.
27500 (darwin_pragma_ms_struct): Likewise.
27501 * config/ft32/ft32.c (ft32_print_operand): Likewise.
27502 * config/i386/i386.c (print_reg): Likewise.
27503 (ix86_print_operand): Likewise.
27504 * config/i386/xm-djgpp.h: Likewise.
27505 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
27506 * config/m32c/m32c.c (m32c_option_override): Likewise.
27507 * config/msp430/msp430.c (msp430_option_override): Likewise.
27508 * config/nds32/nds32.c (nds32_option_override): Likewise.
27509 * config/nvptx/mkoffload.c (main): Likewise.
27510 * config/rx/rx.c (rx_print_operand): Likewise.
27511 (valid_psw_flag): Likewise.
27512 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
27513 (vms_pragma_nomember_alignment): Likewise.
27514 (vms_pragma_extern_model): Likewise.
27515 * lto-wrapper.c (compile_offload_image): Likewise.
27516 * omp-offload.c (oacc_parse_default_dims): Likewise.
27517 * symtab.c (symtab_node::verify_base): Likewise.
27518 * tlink.c (recompile_files): Likewise.
27519 (start_tweaking): Likewise.
27520 * tree-profile.c (parse_profile_filter): Likewise.
27522 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
27524 PR tree-optimization/89956
27525 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
27526 multiple negates of the same value.
27528 2019-04-04 Martin Sebor <msebor@redhat.com>
27530 PR middle-end/89957
27531 PR middle-end/89911
27532 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
27533 have the same precision since the function crashes otherwise.
27534 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
27535 has non-zero arguments.
27537 2019-04-04 Martin Sebor <msebor@redhat.com>
27539 PR middle-end/89934
27540 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
27541 out if the number of arguments is less than expected.
27543 2019-04-04 Jeff Law <law@redhat.com>
27545 PR rtl-optimization/89399
27546 * ree.c (combine_set_extension): Use single_set rather than
27547 digging into PATTERN for items on the candidate list.
27548 (combine_reaching_defs): Likewise.
27550 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
27552 PR rtl-optimization/46590
27553 * loop-invariant.c (find_defs): Move df_remove_problem and
27554 df_process_deferred_rescans to move_invariants.
27555 Move df_live_add_problem and df_live_set_all_dirty calls
27556 to move_invariants.
27557 (move_invariants): Likewise.
27558 (move_loop_invariants): Likewise, making the df_live calls
27559 conditional on -O. Remove the problem again if we added it
27562 2019-04-03 qing zhao <qing.zhao@oracle.com>
27564 PR tree-optimization/89730
27565 * ipa-inline.c (can_inline_edge_p): Delete the checking for
27566 -flive-patching=inline-only-static.
27567 (can_inline_edge_by_limits_p): Add the checking for
27568 -flive-patching=inline-only-static and grant always_inline
27569 even when -flive-patching=inline-only-static is specified.
27571 2019-04-03 Jeff Law <law@redhat.com>
27573 PR rtl-optimization/81025
27574 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
27576 2019-04-03 Richard Biener <rguenther@suse.de>
27578 PR tree-optimization/84101
27579 * tree-vect-stmts.c: Include explow.h for hard_function_value,
27580 regs.h for hard_regno_nregs.
27581 (cfun_returns): New helper.
27582 (vect_model_store_cost): When vectorizing a store to a decl
27583 we return and the function ABI returns in a multi-reg location
27584 account for the possible spilling that will happen.
27586 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
27588 * config/s390/s390.c (s390_legitimate_address_p): Reject long
27589 displacement addresses for vector mode operands.
27591 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
27593 * config/arc/arc.c (GMASK_LEN): Define.
27594 (arc_restore_callee_saves): Restore first blink when
27597 2019-04-03 Sudakshina Das <sudi.das@arm.com>
27599 * doc/extend.texi: Add deprecated comment on sign-return-address
27600 function attribute and add mbranch-protection.
27601 * doc/invoke.texi: Add bti to the options for mbranch-protection.
27603 2019-04-03 Richard Biener <rguenther@suse.de>
27606 * lto-wrapper.c (run_gcc): Avoid implicit rules making
27607 the all target phony.
27609 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
27613 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
27614 Return false for variable DImode shifts.
27615 (dimode_scalar_chain::compute_convert_gain): Do not handle
27616 register count operand in variable DImode shifts.
27617 (dimode_scalar_chain::make_vector_copies): Remove support to copy
27618 count argument of a variable shift instruction to a vector register.
27619 (dimode_scalar_chain::convert_reg): Remove support to convert
27620 count argument of a variable shift instruction.
27622 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
27624 PR rtl-optimization/84206
27625 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
27626 iterating over loop headers.
27628 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
27630 PR rtl-optimization/85876
27631 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
27632 beyond the original fence.
27634 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
27636 * config.gcc: Mark spu* targets as deprecated/obsolete.
27638 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27640 * config/s390/s390-builtin-types.def: New builtin function type
27641 definitions. Remove unused types.
27642 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
27643 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
27644 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
27645 overloaded builtins.
27646 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
27647 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
27648 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
27649 (vec_double, vec_signed, vec_unsigned): Define to use the new
27650 overloaded builtins.
27651 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
27654 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27656 * config/s390/s390-builtin-types.def: New builtin function type
27658 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
27659 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
27660 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
27661 (s390_vstrszh, s390_vstrszf): New low-level builtins.
27662 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
27663 constant definitions.
27664 * config/s390/vecintrin.h (vec_search_string_cc)
27665 (vec_search_string_until_zero_cc): New builtin name definitions.
27666 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
27668 ("vec_vstrs<mode>"): New insn definition.
27670 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27672 * config/s390/s390-builtin-types.def: Add new builtin function
27674 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
27675 New overloaded builtins.
27676 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
27678 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
27679 (UNSPEC_VEC_SLDBYTE): ... this.
27680 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
27681 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
27683 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
27684 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
27685 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
27687 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27689 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
27690 New insn definition.
27691 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
27692 * config/s390/vector.md (V_HW_HSD): ... here.
27694 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27696 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
27697 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
27698 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
27699 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
27700 New insn definitions.
27702 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27704 * config/s390/s390-builtin-types.def: Add new builtin function type.
27705 * config/s390/s390-builtins.def: Add overloaded builtin
27706 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
27707 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
27708 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
27709 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
27710 ("eltswap<mode>"): New expander.
27711 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
27714 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27716 * config/s390/s390-builtin-types.def: Add new builtin function types.
27717 * config/s390/s390-builtins.def: Add overloaded builtin
27718 s390_vec_revb. Add low-level builtins for vlbr and vstbr
27720 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
27721 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
27722 ("bswap<mode>"): New expander.
27723 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
27725 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27727 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
27728 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
27729 vector builtin version number in __VEC__.
27731 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27733 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
27735 (SFSI): New mode attribute.
27736 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
27737 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
27739 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
27740 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
27741 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
27742 ("floatsi<mode>2"): Add wcefb instruction.
27744 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27746 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
27747 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
27749 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
27750 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
27751 support 32 bit fp-int conversions. Rename to ...
27752 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27753 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27754 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
27755 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
27758 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27760 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
27761 if-then-else constructs if we can use the select instruction.
27762 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
27764 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27766 * config/s390/s390.md ("*popcountdi_arch13_cc")
27767 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
27769 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
27770 Append _z196 to make it ...
27771 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
27772 ("popcounthi2_z196"): ... this.
27773 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
27774 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
27776 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27778 * config/s390/s390.c (s390_canonicalize_comparison): Convert
27779 certain compares for arch13 in order to make use of the condition
27780 code result produced by the new instructions.
27781 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
27782 nxrk, and nxgrk instruction patterns.
27783 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
27784 (inv_no): Add new code iterator together with some attributes.
27785 ("*andc_split_<mode>"): Disable splitter for arch13.
27786 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
27787 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
27788 ("*<ANDOR:bitops_name>c<GPR:mode>")
27789 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
27790 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
27791 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
27792 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
27794 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27796 * common/config/s390/s390-common.c (processor_flags_table): New
27798 * config.gcc: Support arch13 with the --with-arch= configure flag.
27799 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27800 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
27801 * config/s390/s390.c (s390_get_sched_attrmask)
27802 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
27803 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
27804 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
27805 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
27806 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
27808 * config/s390/s390.opt: Support arch13 as processor type in
27809 command line options.
27811 2019-04-02 Martin Liska <mliska@suse.cz>
27813 PR translation/89912
27814 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
27815 Fix param description of graphite-max-arrays-per-scop.
27817 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
27819 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
27820 (ASAN_CC1_SPEC): Use it in 64-bit mode.
27821 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
27823 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27825 PR rtl-optimization/85412
27826 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
27827 sel_sched_region_1, not after.
27829 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27831 PR rtl-optimization/86928
27832 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
27833 compute_live if necessary.
27834 (sel_redirect_edge_and_branch): Likewise.
27836 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
27838 PR rtl-optimization/89865
27839 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
27840 register if it is a part of small class.
27842 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27844 PR rtl-optimization/87273
27845 * sel-sched-ir.c (merge_fences): Remove assert.
27847 2019-04-01 Richard Biener <rguenther@suse.de>
27849 PR tree-optimization/46590
27850 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
27851 (dom_walker::m_reachability): Add in place of...
27852 (dom_walker::m_skip_unreachable_blocks): ...this.
27853 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
27854 Move complex initialization ...
27855 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
27856 lazily and initialize edge flags on each invocation.
27857 (dom_walker::bb_reachable): Use m_reachability.
27859 2019-04-01 Martin Liska <mliska@suse.cz>
27862 * opt-suggestions.c (option_proposer::build_option_suggestions):
27863 Add variant without any argument in order to provide better
27866 2019-04-01 Richard Biener <rguenther@suse.de>
27869 * gimple.c: Include langhooks.h.
27870 (gimple_get_alias_set): Treat enumeral types as the underlying
27873 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
27874 Eric Botcazou <ebotcazou@adacore.com>
27876 PR rtl-optimization/89862
27877 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
27878 that operates on the full registers for WORD_REGISTER_OPERATIONS
27881 2019-03-29 Jim Wilson <jimw@sifive.com>
27883 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
27884 Clear MASK_RVC and then set if C subset supported.
27886 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27889 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
27890 non-addressable complit into its initializer if it is volatile.
27892 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
27894 * opts-common.c (integral_argument): Set errno properly in one case.
27896 2019-03-29 Martin Liska <mliska@suse.cz>
27898 * doc/invoke.texi: Remove -Wchkp from documentation.
27900 2019-03-29 Martin Liska <mliska@suse.cz>
27902 * dbgcnt.c (print_limit_reach): New function.
27905 2019-03-29 Martin Liska <mliska@suse.cz>
27907 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
27908 (dbg_cnt_process_opt): Parse first tokens aas
27909 dbg_cnt_process_single_pair is also using strtok.
27911 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27913 PR rtl-optimization/87485
27914 * function.c (expand_function_end): Move stack_protect_epilogue
27915 before loading of return value into hard register(s).
27917 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27919 PR middle-end/89621
27920 * tree-inline.h (struct copy_body_data): Add
27921 dont_remap_vla_if_no_change flag.
27922 * tree-inline.c (remap_type_3, remap_type_2): New functions.
27923 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
27924 and remap_type_2 returns false.
27925 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
27926 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
27927 only from where it is copied to nested contexts.
27929 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27932 * config/i386/i386.md (RMW operation with LEA peephole):
27933 Use LEAMODE mode attribute instead of SWI mode iterator for
27936 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27939 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
27940 Also process XEXP (src, 0) of a shift insn.
27942 2019-03-28 David Malcolm <dmalcolm@redhat.com>
27944 PR middle-end/89725
27945 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
27946 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
27948 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27950 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
27952 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
27953 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
27954 immediately after first one with df_analyze in between, but rather
27955 process all bbs, queueing ones that need second pass in a worklist,
27956 df_analyze, process queued debug insn changes and if second pass is
27957 needed, process bbs from worklist, df_analyze, process queued debug
27960 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
27961 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
27962 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
27964 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
27967 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
27970 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
27973 * config/i386/i386.c (ix86_function_value_1): Call the newly added
27974 function for 32-bit MS_ABI.
27975 (function_value_ms_32): New function.
27977 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
27979 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
27980 (movdi): Call gen_movdi_symbol_save_scc.
27981 (gen_movdi_symbol_save_scc): New insn and split.
27983 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
27985 PR rtl-optimization/89313
27986 * function.c (matching_constraint_num): New static function.
27987 (match_asm_constraints_1): Use it. Fixup white space and comment.
27988 Don't replace inputs with non-matching constraints which conflict
27989 with early clobber outputs.
27991 2019-03-27 Jeff Law <law@redhat.com>
27993 PR rtl-optimization/87761
27994 PR rtl-optimization/89826
27995 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
27997 (pass_cprop_hardreg::execute): Call df_analyze after adding the
27998 note problem to get REG_DEAD/REG_UNUSED notes updated.
28000 2019-03-27 Richard Biener <rguenther@suse.de>
28002 PR tree-optimization/89463
28003 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
28004 queue edges to remove.
28005 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
28006 dead stmts. Delay edge removal until PHIs are removed to
28007 make debug-stmt creation not confused by seemingly degenerate
28010 2019-03-27 Alan Modra <amodra@gmail.com>
28012 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
28014 * config/rs6000/darwin.h: Likewise.
28015 * config/rs6000/rs6000.c: Likewise.
28017 2019-03-27 Alan Modra <amodra@gmail.com>
28019 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
28020 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
28022 2019-03-26 Andrew Waterman <andrew@sifive.com>
28023 Jim Wilson <jimw@sifive.com>
28025 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
28026 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
28027 (generic_idivdi, generic_fmul_single, generic_fmul_double)
28028 (generic_fdiv, generic_fsqrt): Add check for generic tune.
28029 (generic_alu): Add auipc to type list.
28030 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
28031 (riscv_microarchitecture): Declare.
28032 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
28033 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
28035 (riscv_microarchitecture): New.
28036 (sifive_7_tune_info): New.
28037 (riscv_cpu_info_table): Add microarchitecture value for rocket and
28038 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
28040 (riscv_store_data_bypass_p): New.
28041 (riscv_option_override): Set riscv_microarchitecture from
28042 cpu->microarchitecture.
28043 * config/riscv/riscv.md: Include sifive-7.md.
28046 (auipc<mode>): Change type to auipc.
28047 (restore_stack_nonlocal): New.
28048 * config/riscv/sifive-7.md: New.
28049 * doc/invoke.texi (RISC-V Options): Update mtune docs.
28051 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
28054 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28055 Also process XEXP (src, 0) of a shift insn.
28057 2019-03-26 Richard Biener <rguenther@suse.de>
28059 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
28060 (copy_debug_stmt): Likewise.
28061 (expand_call_inline): Likewise.
28062 (copy_bb): Avoid redundant lookup & set of gimple_block.
28063 * gimple-low.c (lower_gimple_return): Likewise.
28064 (lower_builtin_setjmp): Likewise.
28066 2019-03-26 Jakub Jelinek <jakub@redhat.com>
28068 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
28069 is constant 0, turn into static const data member initialized to false.
28070 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
28071 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
28073 2019-03-26 Jason Merrill <jason@redhat.com>
28074 Jakub Jelinek <jakub@redhat.com>
28076 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
28078 (mem_alloc_description::release_object_overhead): Fix comment typos.
28079 * hash-table.h (hash_table::~hash_table): Call
28080 release_instance_overhead only if m_entries is non-NULL, otherwise
28081 call unregister_descriptor.
28083 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
28085 PR tree-optimization/81740
28086 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28087 In case of outer loop vectorization, check for backward dependence
28088 at the inner loop if outer loop dependence is reversed.
28090 2019-03-26 Alan Modra <amodra@gmail.com>
28092 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
28093 rs6000_vector_mem init. Correct wI and wJ comment.
28095 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
28097 PR rtl-optimization/88347
28098 PR rtl-optimization/88423
28099 * sched-deps.c (sched_analyze_insn): Take into account that for
28100 tablejumps the barrier appears after a label and a jump_table_data.
28102 2019-03-25 Martin Sebor <msebor@redhat.com>
28105 * c-common.c (check_user_alignment): Rename local. Correct maximum
28106 alignment in diagnostic. Avoid assuming argument fits in SHWI,
28107 convert it to UHWI when it fits.
28109 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
28112 * dwarf2out.c (premark_used_variables): New function.
28113 (prune_unused_types_walk): Do not mark not premarked external
28115 (prune_unused_types): Call premark_used_variables.
28117 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
28119 PR rtl-optimization/89676
28120 * lra-constraints.c (curr_insn_transform): Do match reload for
28121 early clobbers when the match was successful only for different
28124 2019-03-25 Martin Sebor <msebor@redhat.com>
28126 * doc/extend.texi (Common Type Attributes): Document vector_size.
28127 (Common Variable Attributes): Mention size constraint. Correct
28129 (Vector Extensions): Use @dfn when defining bas type. Clarify
28130 base type and size constraints.
28132 2019-03-25 Richard Biener <rguenther@suse.de>
28134 PR tree-optimization/89789
28135 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
28136 changes from non-undefined back to undefined.
28138 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
28140 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
28141 heap string and a gc string, but since this variable is unknown to
28142 ggc the gc string might get reused and corrupted. Fixed by always
28143 using a heap string.
28145 2019-03-25 Richard Biener <rguenther@suse.de>
28147 PR tree-optimization/89779
28148 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
28149 to remove IV defs, delay actual removal.
28150 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
28151 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
28152 very end, properly also reset loop control IV information.
28154 2019-03-25 Richard Biener <rguenther@suse.de>
28156 PR tree-optimization/89802
28157 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
28158 move EH data to folded stmt.
28160 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28162 * config/s390/s390-builtin-types.def: Remove few unused types and
28163 fix sort order for others.
28165 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28167 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
28168 expected and found types with -mdebug during builtin matching.
28170 2019-03-25 Richard Biener <rguenther@suse.de>
28172 PR middle-end/89790
28173 * fold-const.c (operand_equal_p): Revert last change with
28176 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
28178 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
28179 notes for the result of the __tls_get_addr calls.
28180 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
28182 2019-03-24 Jeff Law <law@redhat.com>
28184 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
28186 PR rtl-optimization/87761
28187 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
28188 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
28190 (pass_cprop_hardreg::execute): Add df note problem and defer insn
28191 rescans. Reprocess blocks as needed, calling df_analyze before
28192 reprocessing. Always call df_analyze before fixing up debug bind
28195 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
28197 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
28200 2019-03-22 Andrew Pinski <apinski@marvell.com>
28202 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
28203 attrribute for uxtw.
28205 2019-03-26 Jeff Law <law@redhat.com>
28207 PR rtl-optimization/87761
28208 * config/mips/mips-protos.h (mips_split_move): Add new argument.
28209 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
28210 (mips_split_move): Accept new INSN argument. Try to forward SRC
28211 into the next instruction.
28212 (mips_split_move_insn): Pass INSN through to mips_split_move.
28214 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
28216 PR rtl-optimization/89676
28217 * lra-constraints.c (curr_insn_transform): Do match reload for
28218 early clobbers even if the match was successful.
28220 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28223 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
28225 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
28227 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
28229 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28231 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
28232 <avx512>_fmsub_<mode>_mask3<round_name>,
28233 <avx512>_fnmadd_<mode>_mask3<round_name>,
28234 <avx512>_fnmsub_<mode>_mask3<round_name>,
28235 avx512f_vmfmadd_<mode>_mask3<round_name>,
28236 avx512f_vmfmsub_<mode>_mask3<round_name>,
28237 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
28238 instead of register_operand and %v instead of v for match_operand 1.
28239 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
28240 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
28241 <round_nimm_predicate> instead of register_operand and %v instead of v
28242 for match_operand 1.
28244 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
28245 <avx512>_fmadd_<mode>_mask3<round_name>,
28246 <avx512>_fmsub_<mode>_mask<round_name>,
28247 <avx512>_fmsub_<mode>_mask3<round_name>,
28248 <avx512>_fnmadd_<mode>_mask<round_name>,
28249 <avx512>_fnmadd_<mode>_mask3<round_name>,
28250 <avx512>_fnmsub_<mode>_mask<round_name>,
28251 <avx512>_fnmsub_<mode>_mask3<round_name>,
28252 <avx512>_fmaddsub_<mode>_mask<round_name>,
28253 <avx512>_fmaddsub_<mode>_mask3<round_name>,
28254 <avx512>_fmsubadd_<mode>_mask<round_name>,
28255 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
28256 <round_nimm_predicate> instead of nonimmediate_operand.
28257 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
28258 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
28259 Use register_operand instead of <round_nimm_predicate> for the
28260 operand that needs to match output.
28261 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
28262 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
28263 Likewise. Formatting fixes.
28266 * config/i386/i386.c (enum ix86_builtins): Remove
28267 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
28268 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
28269 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
28270 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
28271 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
28272 __builtin_ia32_vfmsubss3_mask3): New builtins.
28273 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
28274 avx512f_vmfmadd_<mode>_mask3<round_name>,
28275 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
28276 *avx512f_vmfmsub_<mode>_mask<round_name>,
28277 avx512f_vmfmsub_<mode>_mask3<round_name>,
28278 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
28279 *avx512f_vmfnmadd_<mode>_mask<round_name>,
28280 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
28281 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
28282 *avx512f_vmfnmsub_<mode>_mask<round_name>,
28283 avx512f_vmfnmsub_<mode>_mask3<round_name>,
28284 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
28285 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
28286 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
28287 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
28288 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
28289 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
28290 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
28291 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
28292 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
28293 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
28294 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
28295 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
28296 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
28297 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
28298 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
28299 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
28300 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
28301 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
28302 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
28303 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
28304 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
28305 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
28307 2019-03-21 Martin Sebor <msebor@redhat.com>
28309 PR tree-optimization/89350
28310 * builtins.c (compute_objsize): Also ignore offsets whose upper
28312 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
28313 (builtin_memref::builtin_memref): Initialize new member.
28314 Allow EXPR to be null.
28315 (builtin_memref::extend_offset_range): Replace local with a member.
28316 Avoid assuming pointer offsets are unsigned.
28317 (builtin_memref::set_base_and_offset): Determine base object
28318 before computing offset range.
28319 (builtin_access::builtin_access): Handle memset.
28320 (builtin_access::generic_overlap): Replace local with a member.
28321 (builtin_access::strcat_overlap): Same.
28322 (builtin_access::overlap): Same.
28323 (maybe_diag_overlap): Same.
28324 (maybe_diag_access_bounds): Same.
28325 (wrestrict_dom_walker::check_call): Handle memset.
28326 (check_bounds_or_overlap): Same.
28328 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
28329 Jakub Jelinek <jakub@redhat.com>
28332 * tree.c (fld_type_variant, fld_incomplete_type_of,
28333 fld_process_array_type): Call fld->pset.add and don't call
28334 add_tree_to_fld_list if it returns true.
28335 (free_lang_data_in_type): Similarly with self-recursive call. Purge
28336 non-marked types from TYPE_NEXT_VARIANT list.
28337 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
28339 2019-03-21 Jakub Jelinek <jakub@redhat.com>
28341 * hash-table.h (hash_table): Add Lazy template parameter defaulted
28342 to false, if true, don't alloc_entries during construction, but defer
28343 it to the first method that needs m_entries allocated.
28344 (hash_table::hash_table, hash_table::~hash_table,
28345 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
28346 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
28347 hash_table::clear_slot, hash_table::traverse_noresize,
28348 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
28349 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
28351 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
28352 NO_INSERT instead of find_with_hash.
28353 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
28354 hash_set::m_table): Add Lazy to template params of hash_table.
28355 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
28356 * attribs.c (test_attribute_exclusions): Likewise.
28357 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
28358 hash_set. Add tests for hash_set with Lazy = true.
28360 2019-03-21 Richard Biener <rguenther@suse.de>
28362 PR tree-optimization/89779
28363 * tree.c (tree_nop_conversion): Consolidate and fix defensive
28364 checks with respect to released SSA names now having error_mark_node
28366 * fold-const.c (operand_equal_p): Likewise.
28368 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
28371 * config/s390/s390.c (global_not_special_regno_p): Move to make it
28373 (s390_optimize_register_info): Use global_not_special_regno_p to
28374 check for global regs.
28376 2019-03-20 Jakub Jelinek <jakub@redhat.com>
28379 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
28380 update this_alternative nor this_alternative_set.
28382 2019-03-19 Jim Wilson <jimw@sifive.com>
28385 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
28386 align, size, offset. Use them to handle a BLKmode reference. Update
28388 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
28390 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28392 PR rtl-optimization/89768
28393 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
28394 instead of GEN_INT.
28395 (unroll_loop_runtime_iterations): Likewise.
28397 2019-03-19 Martin Sebor <msebor@redhat.com>
28399 PR tree-optimization/89644
28400 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
28401 rather than endptr as an indicator of nul-termination.
28403 PR tree-optimization/89644
28404 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
28405 arrays in determining sequence sizes in strncpy and stpncpy.
28407 2019-03-19 Martin Liska <mliska@suse.cz>
28409 PR middle-end/89737
28410 * predict.c (combine_predictions_for_bb): Empty likely_edges and
28411 unlikely_edges if there's an edge that belongs to both these sets.
28413 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
28416 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
28417 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
28418 go via a stack temporary.
28420 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28423 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
28424 instead of gen_rtx_SUBREG.
28425 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
28427 2019-03-19 Richard Biener <rguenther@suse.de>
28430 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
28432 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
28436 * tree.c (free_lang_data_in_decl): Do not free context of C++
28439 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28442 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
28443 subs for the first alternative except when operands[3] is 1.
28446 * gimplify.c (gimplify_asm_expr): For output argument with
28447 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
28450 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
28452 PR rtl-optimization/89753
28453 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28454 explicit unrolling factor even more robust.
28456 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28459 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
28460 compensation use x2 += 1 instead of x2 -= -1 and when honoring
28461 signed zeros, do another copysign after the compensation.
28463 2019-03-18 Martin Sebor <msebor@redhat.com>
28465 PR tree-optimization/89720
28466 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
28467 more conservatively, the same as anti-range.
28469 2019-03-18 Richard Biener <rguenther@suse.de>
28471 PR middle-end/88945
28472 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
28473 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
28474 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
28475 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
28477 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
28479 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
28480 Extend queue to 1024 entries.
28481 Add "consumed" field.
28482 (gomp_print_output): Remove print_index parameter.
28483 Add final parameter.
28484 Change limit to unsigned.
28485 Use consumed field to implement circular buffer.
28486 Detect interrupted print in final pass.
28487 Flush output at the end.
28488 (run): Update gomp_print_output usage.
28489 (main): Initialize kernargs->output_data.consumed.
28491 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
28493 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
28494 calculation of the minimum number of scalar iterations for
28495 fully-predicated loops.
28497 2019-03-18 Martin Jambor <mjambor@suse.cz>
28499 PR tree-optimization/89546
28500 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
28501 any propagation to its children took place.
28503 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
28506 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
28507 parameter, and make use of it.
28508 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
28510 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28512 * config/arc/arc.opt (mcode-density-frame): Get the inital value
28513 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
28514 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
28515 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
28516 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
28517 match what the ops is doing.
28518 (push_multi_fp_blink): Likewise.
28519 * config/arc/arc.c (arc_override_options): Enable enter/leave when
28520 compiling for size and elf target.
28521 (arc_save_callee_enter): Adjust note to match what enter/leave
28524 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28526 * config/arc/arc.md (tst_movb): Fix constraint.
28528 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28530 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
28532 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28534 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
28535 * config/arc/arc.c (arc_conditional_register_usage): Remove all
28536 reg_alloc_order references.
28537 (size_alloc_order): Define.
28538 (arc_adjust_reg_alloc_order): New function.
28539 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
28541 (ADJUST_REG_ALLOC_ORDER): Define.
28542 (HONOR_REG_ALLOC_ORDER): Likewise.
28544 2019-03-18 Richard Biener <rguenther@suse.de>
28547 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
28548 loads and stores a bit more.
28550 2019-03-18 Richard Biener <rguenther@suse.de>
28553 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
28554 load pessimization to stores as well.
28556 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
28558 PR middle-end/86979
28559 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
28560 successor, use NULL as its av set.
28562 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28564 PR rtl-optimization/89721
28565 * lra-constraints (invariant_p): Return false if side_effects_p holds.
28567 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
28570 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28571 When handling vec_extract, use modular arithmetic to allow
28572 constant selectors greater than vector length.
28573 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
28574 V1TImode vectors to have constant selector values greater than 0.
28575 Use modular arithmetic to compute vector index.
28576 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
28577 index for in-memory vectors. Correct code generation for
28578 in-register vectors.
28579 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
28582 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
28586 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
28589 2019-03-15 Jakub Jelinek <jakub@redhat.com>
28592 * tree.c (inchash::add_expr): Strip any location wrappers.
28593 * fold-const.c (operand_equal_p): Move stripping of location wrapper
28594 after hash verification.
28597 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
28598 SIGN_EXTEND and ZERO_EXTEND.
28600 2019-03-14 Jason Merrill <jason@redhat.com>
28601 Jakub Jelinek <jakub@redhat.com>
28603 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
28604 than if is_empty (*slot).
28605 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
28606 existing elt and for elt removal.
28607 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
28608 of already removed elt.
28610 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
28613 * config/i386/i386.c (remove_partial_avx_dependency): Handle
28614 REG_EH_REGION note.
28616 2019-03-14 Martin Liska <mliska@suse.cz>
28619 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
28621 2019-03-14 Richard Biener <rguenther@suse.de>
28624 * config/i386/i386.c (make_resolver_func): Properly set
28625 DECL_CONTEXT on the RESULT_DECL.
28626 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
28628 2019-03-14 Richard Biener <rguenther@suse.de>
28630 * gimple-pretty-print.c: Include cfgloop.h.
28631 (dump_gimple_phi): Adjust.
28632 (dump_gimple_bb_header): Dump loop header for GIMPLE.
28633 (pp_cfg_jump): Adjust.
28634 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
28635 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
28636 (lower_phi_internal_fn): Remove.
28637 (verify_gimple_call): Remove IFN_PHI special-casing.
28638 (dump_function_to_file): Dump IL state.
28639 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
28640 done to deal with PHI nodes being present in non-SSA state.
28642 2019-03-14 Jakub Jelinek <jakub@redhat.com>
28645 * multiple_target.c (create_dispatcher_calls): Change
28646 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
28647 In the node->iterate_referring loop, push *ref rather than ref, call
28648 ref->remove_reference () and always pass 0 to iterate_referring.
28650 PR rtl-optimization/89679
28651 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
28652 would contain a paradoxical SUBREG.
28654 2019-03-14 Richard Biener <rguenther@suse.de>
28656 PR tree-optimization/89710
28657 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
28660 2019-03-14 Martin Liska <mliska@suse.cz>
28662 * coverage.c (coverage_begin_function): Stream also
28664 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
28665 documentation about function declaration location.
28666 * gcov-dump.c (tag_function): Print whole range
28667 of function declaration.
28668 * gcov.c (struct function_info): Add end_column field.
28669 (function_info::function_info): Initialize it.
28670 (output_json_intermediate_file): Output {start,end}_column
28672 (read_graph_file): Read end_column.
28674 2019-03-14 Richard Biener <rguenther@suse.de>
28676 PR middle-end/89698
28677 * fold-const.c (operand_equal_p): For INDIRECT_REF check
28678 that the access types are similar.
28680 2019-03-14 Jakub Jelinek <jakub@redhat.com>
28682 PR tree-optimization/89703
28683 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
28684 aren't compatible also with builtin_decl_explicit. Check pure
28685 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
28686 and BUILT_IN_STPNCPY{,_CHK}.
28688 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
28691 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
28692 addr32 prefix to VSIB address for X32.
28693 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
28695 (*avx512pf_gatherpf<mode>df_mask): Likewise.
28696 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
28697 (*avx512pf_scatterpf<mode>df_mask): Likewise.
28698 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
28699 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
28700 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
28701 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
28702 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
28703 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
28704 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
28705 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
28706 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
28707 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
28708 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
28709 (*avx512f_scatterdi<mode>): Likewise.
28711 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
28714 * lra-constraints.c (inherit_in_ebb): Update
28715 potential_reload_hard_regs along with live_hard_regs.
28717 2019-03-13 Jakub Jelinek <jakub@redhat.com>
28720 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
28722 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
28724 2019-03-13 Martin Sebor <msebor@redhat.com>
28726 PR tree-optimization/89662
28727 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
28730 2019-03-13 Richard Biener <rguenther@suse.de>
28732 PR middle-end/89677
28733 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
28734 throw FP expressions at tree-affine.
28736 2019-03-14 Richard Biener <rguenther@suse.de>
28738 * tree-pretty-print.c (dump_generic_node): For -gimple properly
28739 dump negative integer constants using _Literal (type) -num.
28741 2019-03-13 Jakub Jelinek <jakub@redhat.com>
28743 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
28744 nonlocal_value member.
28746 PR middle-end/88588
28747 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
28748 (ipa_simd_modify_function_body): Handle PHIs.
28750 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28752 * config/s390/s390.c (s390_option_override_internal): Use more
28753 aggressive inlining parameters.
28755 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28757 * config/s390/3906.md: New file.
28758 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28759 (LONGRUNNING_THRESHOLD): Remove.
28760 (MAX_SCHED_MIX_SCORE): Decrease.
28761 (MAX_SCHED_MIX_DISTANCE): Decrease.
28762 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
28763 (struct s390_sched_state): New struct to hold scheduling state.
28764 (S390_SCHED_STATE_NORMAL): Remove.
28765 (S390_SCHED_STATE_CRACKED): Remove.
28766 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
28767 (s390_get_sched_attrmask): Use new attribute.
28768 (s390_get_unit_mask): Use new units.
28769 (s390_is_fpd): New function.
28770 (s390_is_fxd): New function.
28771 (s390_is_longrunning): New function.
28772 (s390_sched_score): Use new functions.
28773 (s390_sched_reorder): Likewise.
28774 (s390_sched_variable_issue): Rework and use new functions.
28775 (s390_sched_init): Use new functions.
28776 * config/s390/s390.h (s390_tune_attr): Add z14.
28777 * config/s390/s390.md: Add z14.
28779 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28781 * config/s390/2964.md: Update pipeline description.
28782 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28783 (LONGRUNNING_THRESHOLD): Remove.
28784 (LATENCY_FACTOR): Remove.
28785 (s390_get_unit_mask): Add unit.
28786 (s390_sched_score): Use fxd/fpd.
28787 (s390_sched_variable_issue): Use fxd/fpd.
28789 2019-03-12 Martin Liska <mliska@suse.cz>
28791 * config/i386/i386.c: Reword an error message.
28793 2019-03-12 Martin Jambor <mjambor@suse.cz>
28795 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
28796 terminate with newline.
28798 2019-03-12 Jakub Jelinek <jakub@redhat.com>
28801 * config/s390/s390.md (tabort): Use %wd instead of
28802 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
28803 letters and periods.
28804 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
28805 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
28808 PR middle-end/89663
28809 * builtins.c (expand_builtin_int_roundingfn,
28810 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
28811 gcc_unreachable if validate_arglist fails.
28813 2019-03-12 Richard Biener <rguenther@suse.de>
28815 PR tree-optimization/89664
28816 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
28817 free the occurance tree after the early out.
28819 2019-03-11 Jakub Jelinek <jakub@redhat.com>
28821 PR middle-end/89655
28823 * vr-values.c (vr_values::update_value_range): If
28824 old_vr->varying_p (), don't update it, make new_vr also VARYING
28827 2019-03-11 Martin Liska <mliska@suse.cz>
28829 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28830 Fix double string quoting.
28832 2019-03-11 Martin Liska <mliska@suse.cz>
28834 * collect-utils.c (collect_wait): Wrap apostrophes
28835 in gcc internal format with %'.
28836 * collect2.c (main): Likewise.
28837 (scan_prog_file): Likewise.
28838 (scan_libraries): Likewise.
28839 * config/i386/i386.c (ix86_expand_call): Likewise.
28840 (ix86_handle_interrupt_attribute): Likewise.
28841 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
28842 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
28843 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
28844 * lto-wrapper.c (find_crtoffloadtable): Likewise.
28845 * symtab.c (symtab_node::verify_base): Likewise.
28846 * tree-cfg.c (verify_gimple_label): Likewise.
28847 * tree.c (verify_type_variant): Likewise.
28849 2019-03-11 Martin Liska <mliska@suse.cz>
28851 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
28852 in a string format message and fix GNU coding style.
28853 (expand_builtin_set_thread_pointer): Likewise.
28854 * common/config/aarch64/aarch64-common.c
28855 (aarch64_rewrite_selected_cpu): Likewise.
28856 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
28857 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
28858 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
28859 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
28860 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
28861 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
28862 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
28863 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
28864 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
28865 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
28867 * common/config/riscv/riscv-common.c
28868 (riscv_subset_list::parsing_subset_version): Likewise.
28869 (riscv_subset_list::parse_std_ext): Likewise.
28870 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28871 (riscv_subset_list::parse): Likewise.
28872 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
28873 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
28874 (aarch64_override_options_internal): Likewise.
28875 (aarch64_validate_mcpu): Likewise.
28876 (aarch64_validate_march): Likewise.
28877 (aarch64_validate_mtune): Likewise.
28878 (aarch64_override_options): Likewise.
28879 * config/alpha/alpha.c (alpha_option_override): Likewise.
28880 * config/arc/arc.c (arc_init): Likewise.
28881 (parse_mrgf_banked_regs_option): Likewise.
28882 (arc_override_options): Likewise.
28883 (arc_expand_builtin_aligned): Likewise.
28884 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
28885 (arm_expand_builtin): Likewise.
28886 * config/arm/arm.c (arm_option_check_internal): Likewise.
28887 (arm_configure_build_target): Likewise.
28888 (arm_option_override): Likewise.
28889 (arm_options_perform_arch_sanity_checks): Likewise.
28890 (arm_handle_cmse_nonsecure_entry): Likewise.
28891 (arm_handle_cmse_nonsecure_call): Likewise.
28892 (arm_tls_referenced_p): Likewise.
28893 (thumb1_expand_prologue): Likewise.
28894 * config/avr/avr.c (avr_option_override): Likewise.
28895 * config/bfin/bfin.c (bfin_option_override): Likewise.
28896 * config/c6x/c6x.c (c6x_option_override): Likewise.
28897 * config/cr16/cr16.c (cr16_override_options): Likewise.
28898 * config/cris/cris.c (cris_option_override): Likewise.
28899 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
28900 * config/darwin-c.c (macosx_version_as_macro): Likewise.
28901 * config/darwin.c (darwin_override_options): Likewise.
28902 * config/frv/frv.c (frv_expand_builtin): Likewise.
28903 * config/h8300/h8300.c (h8300_option_override): Likewise.
28904 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
28905 (ix86_option_override_internal): Likewise.
28906 (warn_once_call_ms2sysv_xlogues): Likewise.
28907 (ix86_expand_prologue): Likewise.
28908 (split_stack_prologue_scratch_regno): Likewise.
28909 (ix86_warn_parameter_passing_abi): Likewise.
28910 * config/ia64/ia64.c (fix_range): Likewise.
28911 * config/m68k/m68k.c (m68k_option_override): Likewise.
28912 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
28913 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
28914 (mips_set_compression_mode): Likewise.
28915 * config/mmix/mmix.c (mmix_option_override): Likewise.
28916 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
28917 * config/msp430/msp430.c (msp430_option_override): Likewise.
28918 * config/nds32/nds32.c (nds32_option_override): Likewise.
28919 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
28920 (nios2_option_override): Likewise.
28921 (nios2_expand_custom_builtin): Likewise.
28922 * config/nvptx/mkoffload.c (main): Likewise.
28923 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
28924 * config/pa/pa.c (fix_range): Likewise.
28925 (pa_option_override): Likewise.
28926 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
28927 (riscv_option_override): Likewise.
28928 * config/rl78/rl78.c (rl78_option_override): Likewise.
28929 * config/rs6000/aix61.h: Likewise.
28930 * config/rs6000/aix71.h: Likewise.
28931 * config/rs6000/aix72.h: Likewise.
28932 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
28933 * config/rs6000/freebsd64.h: Likewise.
28934 * config/rs6000/linux64.h: Likewise.
28935 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28936 (rs6000_expand_zeroop_builtin): Likewise.
28937 (rs6000_expand_mtfsb_builtin): Likewise.
28938 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
28939 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
28940 (rs6000_invalid_builtin): Likewise.
28941 (rs6000_expand_split_stack_prologue): Likewise.
28942 * config/rs6000/rtems.h: Likewise.
28943 * config/rx/rx.c (valid_psw_flag): Likewise.
28944 (rx_expand_builtin): Likewise.
28945 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
28946 * config/s390/s390.c (s390_expand_builtin): Likewise.
28947 (s390_function_profiler): Likewise.
28948 (s390_option_override_internal): Likewise.
28949 (s390_option_override): Likewise.
28950 * config/sh/sh.c (sh_option_override): Likewise.
28951 (sh_builtin_saveregs): Likewise.
28952 (sh_fix_range): Likewise.
28953 * config/sh/vxworks.h: Likewise.
28954 * config/sparc/sparc.c (sparc_option_override): Likewise.
28955 * config/spu/spu.c (spu_option_override): Likewise.
28956 (fix_range): Likewise.
28957 * config/visium/visium.c (visium_option_override): Likewise.
28958 (visium_handle_interrupt_attr): Likewise.
28959 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
28960 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
28961 (dbg_cnt_process_opt): Likewise.
28962 * dwarf2out.c (output_dwarf_version): Likewise.
28963 * except.c (expand_eh_return): Likewise.
28964 * gcc.c (defined): Likewise.
28965 (driver_handle_option): Likewise.
28966 (process_command): Likewise.
28967 (compare_files): Likewise.
28968 (driver::prepare_infiles): Likewise.
28969 (driver::do_spec_on_infiles): Likewise.
28970 (driver::maybe_run_linker): Likewise.
28971 * omp-offload.c (oacc_parse_default_dims): Likewise.
28972 * opts-global.c (handle_common_deferred_options): Likewise.
28973 * opts.c (parse_sanitizer_options): Likewise.
28974 (common_handle_option): Likewise.
28975 (enable_warning_as_error): Likewise.
28976 * passes.c (enable_disable_pass): Likewise.
28977 * plugin.c (parse_plugin_arg_opt): Likewise.
28978 (default_plugin_dir_name): Likewise.
28979 * targhooks.c (default_expand_builtin_saveregs): Likewise.
28980 (default_pch_valid_p): Likewise.
28981 * toplev.c (init_asm_output): Likewise.
28982 (process_options): Likewise.
28983 (toplev::run_self_tests): Likewise.
28984 * tree-cfg.c (verify_gimple_call): Likewise.
28985 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
28986 (tree_inlinable_function_p): Likewise.
28987 * var-tracking.c (vt_find_locations): Likewise.
28989 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
28991 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
28992 only on the else branch.
28994 2019-03-11 Martin Liska <mliska@suse.cz>
28996 * gcov.c (output_intermediate_json_line): Print function
28998 (output_json_intermediate_file): Add new argument.
28999 * doc/gcov.texi: Document the change.
29001 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
29003 PR rtl-optimization/89588
29004 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29005 explicit unrolling factor more robust.
29007 2019-03-11 Richard Biener <rguenther@suse.de>
29009 PR tree-optimization/89649
29010 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
29011 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
29012 on the prolog and epilog loops.
29013 (vect_loop_versioning): Return copy of loop.
29014 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
29015 on the non-vectorized version of the loop.
29017 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
29020 * config/i386/sse.md (*vec_extractv2di_0_sse):
29021 Add (=r,x) alternative and corresponding splitter.
29023 2019-03-10 Martin Jambor <mjambor@suse.cz>
29025 PR tree-optimization/85762
29026 PR tree-optimization/87008
29027 PR tree-optimization/85459
29028 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
29029 it points to if there is a type changing MEM_REF. Adjust all callers.
29030 (build_accesses_from_assign): Disable total scalarization if
29031 contains_vce_or_bfcref_p returns true through the new parameter, for
29034 2019-03-09 Jakub Jelinek <jakub@redhat.com>
29037 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
29038 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
29041 * common.opt (fdiagnostics-show-labels,
29042 fdiagnostics-show-line-numbers, fdiagnostics-format=,
29043 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
29044 gas-locview-support, ginline-points, ginternal-reset-location-views):
29045 Terminate description text with a dot.
29046 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
29047 * config/mcore/mcore.opt (m210, m340): Likewise.
29048 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
29049 mnops=): Start description text with a capital letter.
29050 * config/arc/arc.opt (msize-level=): Likewise.
29051 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
29052 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
29053 mnewlib): Likewise.
29054 * config/ft32/ft32.opt (msim): Likewise.
29055 (mft32b, mcompress): Likewise. Terminate description text with a dot.
29056 (mnodiv, mnopm): Terminate description text with a dot.
29057 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
29059 * config/i386/i386.opt (prefer_vector_width, instrument_return):
29061 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
29064 PR rtl-optimization/89634
29065 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
29066 are modified in BB_END (e->src) instruction.
29068 2019-03-08 David Malcolm <dmalcolm@redhat.com>
29071 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
29072 messages more amenable to translation, and improve wording.
29074 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
29076 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
29077 ud- and du-chains between phases.
29079 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
29082 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
29083 instead of POLY_INT_CST.
29085 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
29087 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
29090 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
29095 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
29096 (_mm_storeu_si64): Ditto.
29098 2019-03-08 Martin Liska <mliska@suse.cz>
29101 * config/i386/i386.c (ix86_option_override_internal): Disable
29102 jump tables when retpolines are used.
29104 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
29107 * ipa-split.c (execute_split_functions): Do not split
29108 'noinline' or 'section' function.
29110 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29113 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
29114 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
29115 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
29118 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29119 from diagnostics. Formatting fixes.
29122 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
29123 warn_odr diagnostics.
29126 * lra-constraints.c (process_alt_operands): Avoid one space before
29127 " at the end of line and another after " on another line in a string
29129 * attribs.c (handle_dll_attribute): Likewise.
29130 * config/avr/avr-devices.c (avr_texinfo): Likewise.
29132 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
29133 warning_at or inform messages in G_() if there is no ?:.
29135 PR tree-optimization/89550
29136 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
29137 returned true. Formatting fixes.
29138 (expand_builtin_strnlen): Formatting fixes.
29139 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
29140 if warning_at returned true.
29141 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
29143 2019-03-08 Richard Biener <rguenther@suse.de>
29145 PR middle-end/89578
29146 * cfgloop.h (struct loop): Add owned_clique field.
29147 * cfgloopmanip.c (copy_loop_info): Copy it.
29148 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
29150 * tree-inline.c (copy_loops): Remap owned_clique.
29151 * lto-streamer-in.c (input_cfg): Stream owned_clique.
29152 * lto-streamer-out.c (output_cfg): Likewise.
29154 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29157 * config/darwin.c: Include intl.h.
29158 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
29159 composing the message out of two separate parts.
29161 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29164 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
29165 doesn't start with a capital letter and doesn't end with a dot.
29166 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
29167 with a capital letter.
29168 (ix86_mangle_function_version_assembler_name): Likewise.
29169 (ix86_generate_version_dispatcher_body): Likewise.
29170 (fold_builtin_cpu): Likewise.
29171 (get_builtin_code_for_version): Likewise. Remove extraneous space.
29172 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
29173 translators, wrap full type name in %qs.
29175 PR translation/79999
29176 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
29177 depend clause with source (or sink) modifier.
29178 * omp-expand.c (expand_omp_ordered_sink): Likewise.
29181 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
29182 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
29183 (avx512f_load<mode>_mask): New define_expand.
29184 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
29185 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
29186 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
29187 __builtin_ia32_movess_mask): New builtins.
29188 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
29189 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
29190 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
29191 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
29193 2019-03-07 Martin Jambor <mjambor@suse.cz>
29196 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
29197 for extern inline functions.
29199 2019-03-07 Martin Jambor <mjambor@suse.cz>
29202 * cgraph.h (cgraph_node): New inline method former_thunk_p.
29203 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
29204 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
29205 have multiple callees. At the end check if declarations match as
29206 opposed to cgraph_nodes.
29208 2019-03-07 Martin Liska <mliska@suse.cz>
29210 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
29211 which is equivalent to searching for this in clones chain.
29212 * symtab.c (symtab_node::verify_base): Similarly compare ASM
29213 names with a neighbour and special case first node in a chain.
29215 2019-01-25 Jason Merrill <jason@redhat.com>
29217 PR c++/80916 - spurious "static but not defined" warning.
29218 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
29219 for an internal symbol with DECL_EXTERNAL.
29221 2019-04-07 Richard Biener <rguenther@suse.de>
29223 PR middle-end/89618
29224 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
29225 * tree-inline.c (copy_loops): Simplify.
29227 2019-03-07 Martin Liska <mliska@suse.cz>
29229 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
29231 2019-03-07 Richard Biener <rguenther@suse.de>
29233 PR tree-optimization/89595
29234 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
29235 stmt iterator as reference, take boolean output parameter to
29236 indicate whether the stmt was removed and thus the iterator
29238 (dom_opt_dom_walker::before_dom_children): Re-iterate over
29239 stmts created by folding.
29241 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29244 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
29247 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
29249 PR rtl-optimization/88845
29250 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
29252 * lra.c (remove_scratches_1): New function.
29253 (remove_scratches): Use it.
29254 (lra_emit_move): Likewise.
29256 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
29258 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
29259 unaligned_access variable.
29260 * config/arc/arc.c (arc_override_options): Set unaligned access
29261 default on for HS CPUs.
29262 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
29264 2019-03-06 Martin Liska <mliska@suse.cz>
29266 PR gcov-profile/89577
29267 * doc/gcov.texi: Prefer to use --coverage.
29268 * doc/sourcebuild.texi: Likewise.
29270 2019-03-02 Jason Merrill <jason@redhat.com>
29272 PR c++/86485 - -Wmaybe-unused with empty class ?:
29273 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
29275 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29278 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
29281 PR middle-end/89590
29282 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
29283 exactly one argument.
29285 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29286 Richard Sandiford <richard.sandiford@arm.com>
29288 PR tree-optimization/89570
29289 * match.pd (vec_cond into cond_op simplification): Don't use
29290 get_conditional_internal_fn, use as_internal_fn (cond_op).
29292 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
29295 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
29296 to decide when to split off a non-zero offset from a symbol.
29297 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
29298 in function symbols.
29300 2019-03-05 Richard Biener <rguenther@suse.de>
29302 PR tree-optimization/89594
29303 * tree-if-conv.c (pass_if_conversion::execute): Handle
29304 case where .LOOP_VECTORIZED_FUNCTION was removed.
29306 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29309 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
29310 instead alloca it only when needed with the needed size.
29312 PR tree-optimization/89570
29313 * match.pd (vec_cond into cond_op simplification): Guard with
29314 vectorized_internal_fn_supported_p test and #if GIMPLE.
29316 PR tree-optimization/89566
29317 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
29318 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
29319 Punt if get_user_idx_format succeeds, but idx_format argument is
29320 not provided or doesn't have pointer type, or if idx_args is above
29321 number of provided arguments.
29323 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
29325 PR tree-optimization/89437
29326 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
29328 2019-03-04 Richard Biener <rguenther@suse.de>
29330 PR middle-end/89572
29331 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
29334 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
29336 PR tree-optimization/89487
29337 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
29338 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
29339 (distribute_loop): Don't do runtime alias check if there is non-
29340 addressable data reference.
29341 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
29342 is a register variable.
29344 2019-03-02 Jakub Jelinek <jakub@redhat.com>
29347 * config/arm/arm.md (cmpsi2_addneg): Use
29348 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
29349 If operands[2] is 0 or INT_MIN, force use of subs.
29350 (*compare_scc splitter): Use gen_int_mode.
29351 (*negscc): Likewise.
29352 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
29354 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
29355 Monk Chiang <sh.chiang04@gmail.com>
29357 * common/config/riscv/riscv-common.c: Include sstream.
29358 (riscv_subset_list::to_string): New.
29359 (riscv_arch_str): Likewise.
29360 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
29361 * config.in: Regen.
29362 * config/riscv/riscv-protos.h (riscv_arch_str): New.
29363 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
29364 (riscv_emit_attribute): New.
29365 (riscv_file_start): Emit attribute if needed.
29366 (riscv_option_override): Init riscv_emit_attribute_p.
29367 * config/riscv/riscv.opt (mriscv-attribute): New option.
29368 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
29369 * configure: Regen.
29370 * doc/install.texi: Document --with-riscv-attribute.
29371 * doc/invoke.texi: Document -mriscv-attribute.
29373 * common/config/riscv/riscv-common.c:
29374 Include config/riscv/riscv-protos.h.
29375 (INCLUDE_STRING): Defined.
29376 (RISCV_DONT_CARE_VERSION): Defined.
29377 (riscv_subset_t): Declare.
29378 (riscv_subset_t::riscv_subset_t): New.
29379 (riscv_subset_list): Declare.
29380 (riscv_subset_list::riscv_subset_list): New.
29381 (riscv_subset_list::~riscv_subset_list): Likewise.
29382 (riscv_subset_list::parsing_subset_version): Likewise.
29383 (riscv_subset_list::parse_std_ext): Likewise.
29384 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29385 (riscv_subset_list::add): Likewise.
29386 (riscv_subset_list::lookup): Likewise.
29387 (riscv_subset_list::xlen): Likewise.
29388 (riscv_subset_list::parse): Likewise.
29389 (riscv_supported_std_ext): Likewise.
29390 (current_subset_list): Likewise.
29391 (riscv_parse_arch_string): Using riscv_subset_list::parse to
29394 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
29396 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
29397 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
29398 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
29400 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
29402 PR rtl-optimization/85899
29403 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
29404 fallthru edges leading to the exit block.
29406 2019-03-01 Tamar Christina <tamar.christina@arm.com>
29409 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
29410 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
29412 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
29414 PR tree-optimization/89535
29415 * tree-vect-stmts.c (vectorizable_call): Record the vector types
29416 for each operand. Calculate the fallback choice for mask operands
29417 and pass it to vect_get_vec_def_for_operand.
29419 2019-03-01 Richard Biener <rguenther@suse.de>
29421 PR middle-end/89541
29422 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
29423 get virtual operands.
29424 (get_expr_operands): Handle CONST_DECL like other decls.
29426 2019-03-01 Jakub Jelinek <jakub@redhat.com>
29428 PR middle-end/89503
29429 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
29430 on DECL_P and EXPR_P.
29432 2019-03-01 Richard Biener <rguenther@suse.de>
29434 PR middle-end/89497
29435 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
29436 argument, defaulted to zero.
29437 * passes.c (execute_function_todo): Pass down SSA update flags
29438 to cleanup_tree_cfg.
29439 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
29440 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
29442 (cleanup_tree_cfg): Get and pass down SSA update flags.
29444 2019-03-01 Jakub Jelinek <jakub@redhat.com>
29447 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
29448 early_lto_debug argument.
29450 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
29452 PR tree-optimization/89536
29453 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
29454 only whether bit #0 of the value is 0 instead of the entire value.
29456 2019-02-28 Marek Polacek <polacek@redhat.com>
29458 PR c++/87068 - missing diagnostic with fallthrough statement.
29459 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
29460 at the end of a seq, save its location to walk_stmt_info.
29461 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
29464 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
29467 * tree.c (find_atomic_core_type): Move ahead in file.
29468 (check_base_type): Correctly compare alignments of atomic types.
29470 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
29473 * config/i386/i386.c (get_builtin_code_for_version): Identify
29474 Westmere from PCLMUL, instead of AES.
29476 2019-02-28 Jakub Jelinek <jakub@redhat.com>
29479 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
29480 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
29483 2019-02-28 Tamar Christina <tamar.christina@arm.com>
29486 * config/aarch64/aarch64-option-extensions.def: Document it.
29487 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
29490 2019-02-28 Jakub Jelinek <jakub@redhat.com>
29493 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
29494 builtins if they don't have a single scalar floating point argument.
29497 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
29499 PR rtl-optimization/89490
29500 * varasm.c (get_block_for_section): Bail out for mergeable sections.
29501 (default_use_anchors_for_symbol_p, output_object_block): Assert the
29502 block section is not mergeable.
29504 2019-02-27 Jakub Jelinek <jakub@redhat.com>
29507 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
29508 old define_insn to ...
29509 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
29510 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
29511 Rename old define_insn to ...
29512 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
29513 (thumb2_casesi_internal_pic): New define_expand. Rename old
29515 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
29516 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
29517 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
29519 2019-02-27 Richard Biener <rguenther@suse.de>
29522 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
29524 2019-02-27 Richard Biener <rguenther@suse.de>
29526 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
29529 2019-02-27 Richard Biener <rguenther@suse.de>
29532 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
29533 parameter, prefix section name with .gnu.debuglto_ if true.
29534 (dwarf2out_finish): Pass false to output_comdat_type_unit.
29535 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
29537 2019-02-27 Richard Biener <rguenther@suse.de>
29540 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
29541 rather than on use_debug_types, doing what output_die does.
29542 (value_format): Likewise.
29544 2019-02-27 Martin Jambor <mjambor@suse.cz>
29545 Martin Sebor <msebor@redhat.com>
29547 * doc/invoke.texi (Warning Options): Reword description of
29548 -Wno-absolute-value.
29550 2019-02-27 Jakub Jelinek <jakub@redhat.com>
29552 PR tree-optimization/89280
29553 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
29554 builtin_setjmp_setup_bb): New functions.
29555 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
29556 When visiting __builtin_setjmp_setup block, queue in special
29557 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
29558 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
29559 from visited after the loop if they don't have any visited successor
29562 2018-02-26 Steve Ellcey <sellcey@marvell.com>
29564 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
29566 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
29568 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29571 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
29572 with types other than sizetype/ssizetype.
29574 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
29576 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
29577 (enum sparc_processor_type): ...this.
29578 (enum sparc_code_model_type): New enumeration type.
29579 (enum sparc_memory_model_type): Tweak comments.
29580 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
29582 (mcmodel): Use sparc_code_model enumeration and variable.
29583 (sparc_code_model): New enumeration.
29584 (mdebug): Add Undocumented marker.
29585 * config/sparc/sparc.h (enum cmodel): Delete.
29586 (sparc_cmodel): Likewise.
29587 (TARGET_CM_MEDLOW): Adjust to above renaming.
29588 (TARGET_CM_MEDMID): Likewise.
29589 (TARGET_CM_MEDANY): Likewise.
29590 (TARGET_CM_EMBMEDANY): Likewise.
29591 * config/sparc/sparc.c (sparc_cmodel): Delete.
29592 (sparc_option_override): Remove string/value mapping support for the
29593 code model. Move code and memory model support to after the handling
29594 of target flags. Do private machine setup last.
29595 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
29596 (sparc_legitimize_reload_address): Likewise.
29597 (sparc_output_mi_thunk): Likewise.
29598 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
29600 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29602 PR tree-optimization/89500
29603 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
29604 (handle_builtin_strlen): Remove noncst_bound variable. Always
29605 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
29606 cst if the first cst bytes starting at x are known to be non-zero,
29607 even if the string is not zero terminated. Don't try to modify
29608 *si for strnlen. Update strlen_to_stridx only for strlen or if
29609 we can prove strnlen returns the same value as strlen would.
29611 2019-02-26 Martin Liska <mliska@suse.cz>
29613 * alloc-pool.h (struct pool_usage): Remove extra
29615 * bitmap.h (struct bitmap_usage): Likewise.
29616 * ggc-common.c (struct ggc_usage): Likewise.
29617 * mem-stats.h (struct mem_usage): Likewise.
29618 (mem_alloc_description::dump): Print dash lines
29619 here and repeat header at the end of a table report.
29620 It's then more readable.
29621 * tree-phinodes.c (phinodes_print_statistics): Make
29622 horizontal alignment.
29623 * tree-ssanames.c (ssanames_print_statistics): Likewise.
29624 * vec.c (struct vec_usage): Remove extra print_dash_line.
29625 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
29627 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
29629 * doc/extend.texi (__builtin_object_size):
29630 Use @pxref instead of @xref inside parenthesis.
29631 (__builtin_has_attribute): Add missing comma after @xref.
29632 (__builtin_object_size): Ditto.
29633 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
29635 2019-02-26 Jeff Law <law@redhat.com>
29637 PR rtl-optimization/87761
29638 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
29639 detect obviously dead insns and delete them.
29641 2019-02-26 Richard Biener <rguenther@suse.de>
29643 PR tree-optimization/89505
29644 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
29645 to handle restrict pointed-to vars with multiple subvars
29648 2019-02-26 Richard Biener <rguenther@suse.de>
29650 PR tree-optimization/89489
29651 * tree-parloops.c (create_loop_fn): Copy over last_clique.
29653 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
29655 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
29656 and move around comment.
29657 <BIT_AND_EXPR>: Likewise.
29658 <BIT_NOT_EXPR>: Add specific handling for boolean types.
29660 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29663 * config/i386/i386.c (remove_partial_avx_dependency): Call
29664 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
29665 after changing possibly many instructions to use that pseudo. Fix up
29666 insertion of v4sf_const0 setter at the start of bb.
29668 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
29671 * doc/extend.texi (Variadic Pointer Args): New section.
29673 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
29674 Martin Sebor <msebor@gmail.com>
29676 * common.opt (Wattribute-alias): Likewise.
29677 * doc/invoke.texi (Option Summary): List general form of
29678 -Wattribute-alias=. List positive form of -Wmissing-attributes.
29679 (-Wmissing-attributes): Invert entry, rewrite and correct default.
29680 Add cross-references.
29681 (-Wattribute-alias): Rewrite and correct default. Mention
29682 considered attributes (same as for -Wmissing-attributes).
29684 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
29686 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
29687 (_mm_cvtpd_ps): Likewise.
29688 (_mm_cvttpd_epi32): Likewise.
29691 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
29692 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
29695 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
29697 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29700 * common/config/aarch64/aarch64-common.c
29701 (struct aarch64_option_extension): Add is_synthetic.
29702 (all_extensions): Use it.
29703 (TARGET_OPTION_INIT_STRUCT): Define hook.
29704 (struct gcc_targetm_common): Moved to end.
29705 (all_extensions_by_on): New.
29706 (opt_ext_cmp, typedef opt_ext): New.
29707 (aarch64_option_init_struct): New.
29708 (aarch64_contains_opt): New.
29709 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
29710 * config/aarch64/aarch64-option-extensions.def
29711 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
29712 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
29713 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
29714 Set is_synthetic to false.
29715 (crypto): Set is_synthetic to true.
29716 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
29719 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29721 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
29722 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
29723 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
29724 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
29725 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
29726 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
29727 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
29728 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
29730 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
29731 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
29732 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
29733 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
29734 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
29735 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
29736 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
29737 vfmlsl_laneq_high_f16): ... To this.
29738 * config/arm/neon.md: Update comments.
29740 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29742 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
29743 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
29744 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
29745 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
29746 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
29747 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
29748 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
29749 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
29751 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
29752 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
29753 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
29754 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
29755 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
29756 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
29757 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
29758 vfmlslq_laneq_high_f16): ... To this.
29760 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
29762 PR rtl-optimization/86096
29763 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
29764 comparing mw_order values.
29766 2019-02-25 Jakub Jelinek <jakub@redhat.com>
29769 * config/arm/arm.md (*subsi3_carryin_const): Use
29770 arm_neg_immediate_operand predicate instead of
29771 arm_not_immediate_operand, "L" constraint instead of "K" and
29772 print it using %n2 instead of %B2.
29773 (*subsi3_carryin_const0): New define_insn.
29774 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
29775 instead of arm_not_operand and "I" constraint instead of "K" and
29776 print it using %n3 instead of %B2. Instead of using match_dup 2 add
29777 another match_operand and in the condition check that it is negation
29779 (*subsi3_carryin_compare_const0): New define_ins.
29780 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
29781 *subsi3_carryin_const.
29782 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
29783 split into *subsi3_carryin_compare_const0 if the highpart is zero.
29786 * config/arm.vfp.md (*negdf2_vfp): Use
29787 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
29788 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
29790 2019-02-24 Jakub Jelinek <jakub@redhat.com>
29792 PR rtl-optimization/89445
29793 * simplify-rtx.c (simplify_ternary_operation): Don't use
29794 simplify_merge_mask on operands that may trap.
29795 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
29796 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
29797 second operand is CONST_VECTOR, check if any element could be zero.
29798 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
29799 their operands can trap.
29801 2019-02-23 Martin Sebor <msebor@redhat.com>
29803 * gimple-ssa-sprintf.c (target_strtol): Rename...
29804 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
29805 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
29806 check for range error.
29808 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
29811 * opts-common.c (prune_options): Also prune joined switches
29812 with Negative and RejectNegative.
29813 * config/i386/i386.opt (march=): Add Negative(march=).
29814 (mtune=): Add Negative(mtune=).
29815 * doc/options.texi: Document Negative used together with Joined
29816 and RejectNegative.
29818 2019-02-22 Martin Sebor <msebor@redhat.com>
29820 * doc/extend.texi (Other Builtins): Add
29821 __builtin_is_constant_evaluated.
29823 2019-02-22 Richard Biener <rguenther@suse.de>
29825 PR tree-optimization/87609
29826 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
29828 2019-02-22 Jeff Law <law@redhat.com>
29830 PR rtl-optimization/87761
29831 * config/mips/mips.md: Add new combiner pattern to recognize
29832 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
29834 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
29837 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
29838 destination register in peepholes generating patterns for ADDS/SUBS.
29839 (add<mode>3_compare0,
29840 *addsi3_compare0_uxtw, add<mode>3_compareC,
29841 add<mode>3_compareV_imm, add<mode>3_compareV,
29842 *adds_<optab><ALLX:mode>_<GPI:mode>,
29843 *subs_<optab><ALLX:mode>_<GPI:mode>,
29844 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
29845 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
29846 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
29847 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
29848 sub<mode>3_compare1): Allow stack pointer for source register.
29849 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
29851 2019-02-22 Martin Sebor <msebor@redhat.com>
29853 PR tree-optimization/88993
29854 PR tree-optimization/88853
29855 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
29857 (sprintf_dom_walker::call_info::is_string_func): New helper.
29858 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
29859 for formatted string functions.
29860 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
29862 2019-02-22 Martin Sebor <msebor@redhat.com>
29865 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
29866 unreachable subexpressions.
29868 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
29869 Hongtao Liu <hongtao.liu@intel.com>
29870 Sunil K Pandey <sunil.k.pandey@intel.com>
29873 * config/i386/i386-passes.def: Add
29874 pass_remove_partial_avx_dependency.
29875 * config/i386/i386-protos.h
29876 (make_pass_remove_partial_avx_dependency): New.
29877 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
29879 (pass_data_remove_partial_avx_dependency): New.
29880 (pass_remove_partial_avx_dependency): Likewise.
29881 (make_pass_remove_partial_avx_dependency): Likewise.
29882 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
29883 (*extendsfdf2): Add avx_partial_xmm_update.
29884 (truncdfsf2): Likewise.
29885 (*float<SWI48:mode><MODEF:mode>2): Likewise.
29886 (SF/DF conversion splitters): Disabled for TARGET_AVX.
29888 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
29890 PR middle-end/85598
29891 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
29894 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
29897 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
29898 (PTA_SKYLAKE): Add PTA_AES.
29899 (PTA_GOLDMONT): Likewise.
29901 2019-02-22 Sudakshina Das <sudi.das@arm.com>
29903 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
29904 instruction if enabled.
29905 (aarch64_override_options): Remove reference to return address key.
29907 2019-02-22 Richard Biener <rguenther@suse.de>
29909 PR tree-optimization/89440
29910 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
29911 not necessary assert.
29913 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
29916 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
29917 (oacc_replace_fn_attrib_attr): ... this new function.
29918 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
29919 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
29921 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29923 * config/arm/arm-cpus.in (ares): Rename to...
29924 (neoverse-n1): ... This. Add ares as alias.
29925 * config/arm/arm-tables.opt: Regenerate.
29926 * config/arm/arm-tune.md: Likewise.
29927 * doc/invoke.txt (ARM Options): Document neoverse-n1.
29929 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29931 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
29932 * config/aarch64/aarch64-tune.md: Regenerate.
29933 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
29935 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29937 * config/aarch64/aarch64.c (ares_tunings): Rename to...
29938 (neoversen1_tunings): ... This.
29939 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
29940 (neoverse-n1): New CPU.
29941 * config/aarch64/aarch64-tune.md: Regenerate.
29942 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
29944 2019-02-22 Richard Biener <rguenther@suse.de>
29946 PR middle-end/87609
29947 * cfghooks.h (dependence_hash): New typedef.
29948 (struct copy_bb_data): New type.
29949 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
29950 (duplicate_block): Likewise.
29951 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
29952 (copy_bbs): Create and pass down copy_bb_data.
29953 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
29954 (rtl_duplicate_bb): Likewise.
29955 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
29956 remap dependence info.
29958 2019-02-22 Richard Biener <rguenther@suse.de>
29960 PR tree-optimization/87609
29961 * tree-core.h (tree_base): Document special clique values.
29962 * tree-inline.c (remap_dependence_clique): Do not use the
29963 special clique value of one.
29964 (maybe_set_dependence_info): Use clique one.
29965 (clear_dependence_clique): New callback.
29966 (compute_dependence_clique): Clear clique one from all refs
29967 before assigning it (again).
29969 2019-02-21 Martin Sebor <msebor@redhat.com>
29971 * doc/extend.texi (__clear_cache): Correct signature.
29973 2019-02-21 Ian Lance Taylor <iant@golang.org>
29976 * varasm.c (decode_addr_const): Call lookup_constant_def rather
29977 than output_constant_def.
29978 (add_constant_to_table): New static function.
29979 (output_constant_def): Call add_constant_to_table.
29980 (tree_output_constant_def): Likewise.
29982 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29985 * builtins.c (fold_builtin_arith_overflow): If first two args are
29986 INTEGER_CSTs, set intres and ovfres to constants rather than calls
29989 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
29992 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
29993 error for -mindirect-branch/-mfunction-return with incompatible
29996 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29999 * constraints.md (q): Remove.
30000 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
30003 2019-02-21 Martin Jambor <mjambor@suse.cz>
30006 * omp-general.c (omp_extract_for_data): Removed a duplicate call
30007 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
30008 (omp_adjust_for_condition): ...here. Added necessary parameters.
30009 * omp-general.h (omp_adjust_for_condition): Updated declaration.
30010 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
30011 proper values to new parameters of omp_adjust_for_condition.
30013 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30015 PR middle-end/89412
30016 * expr.c (expand_assignment): If result is a MEM, use change_address
30017 instead of simplify_gen_subreg.
30019 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30020 David Malcolm <dmalcolm@redhat.com>
30022 PR middle-end/89091
30023 * fold-const.c (decode_field_reference): Return NULL_TREE if
30024 lang_hooks.types.type_for_size returns NULL. Check it before
30025 overwriting *exp_. Use return NULL_TREE instead of return 0.
30027 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30029 PR middle-end/88074
30030 PR middle-end/89415
30031 * toplev.c (do_compile): Double the emin/emax exponents to workaround
30034 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
30037 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
30038 TARGET_SSE in addition to TARGET_SSE_MATH.
30040 (ix86_excess_precision): Ditto.
30041 (ix86_float_exceptions_rounding_supported_p): Ditto.
30042 (use_rsqrt_p): Ditto.
30043 * config/i386/sse.md (rsqrt<mode>2): Ditto.
30045 2019-02-20 David Malcolm <dmalcolm@redhat.com>
30048 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
30049 linenum_arith_t when determining if two adjacent line spans are
30050 close enough to merge.
30051 (diagnostic_show_locus): Use linenum_arith_t when iterating over
30052 lines within each line_span.
30054 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
30057 * lra-constraints.c(uses_hard_regs_p): Fix handling of
30058 paradoxical SUBREGS.
30060 2019-02-20 Li Jia He <helijia@linux.ibm.com>
30063 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
30064 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
30065 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
30068 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
30070 * config/gcn/gcn.c (print_operand): Fix typo.
30072 2019-02-19 Richard Biener <rguenther@suse.de>
30074 PR middle-end/88074
30075 * toplev.c (do_compile): Initialize mpfr's exponent range
30076 based on available float modes.
30078 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
30080 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
30081 as long as the epilogue isn't completed.
30083 2019-02-18 Martin Sebor <msebor@redhat.com>
30085 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
30086 __has_cpp_attribute, and __has_include.
30088 2019-02-18 Martin Sebor <msebor@redhat.com>
30090 * doc/invoke.texi (-Wreturn-type): Correct and expand.
30092 2019-02-18 Martin Sebor <msebor@redhat.com>
30094 PR middle-end/89294
30095 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
30097 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
30099 2019-02-18 Richard Biener <rguenther@suse.de>
30101 PR tree-optimization/89296
30102 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
30103 of no-warning flag to cases that might emit the bogus warning.
30105 2019-02-18 Jakub Jelinek <jakub@redhat.com>
30108 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
30110 * config/arm/vfp.md (*movdi_vfp): Likewise.
30111 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
30112 "q" constraint for operands[0].
30115 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
30116 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
30117 pattern in a temporary buffer.
30118 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
30119 than 64-operands[2].
30122 * config/s390/s390.c (s390_indirect_branch_attrvalue,
30123 s390_indirect_branch_settings): Define unconditionally.
30124 (s390_set_current_function): Likewise, but guard the whole body except
30125 the s390_indirect_branch_settings call with
30126 #if S390_USE_TARGET_ATTRIBUTE.
30127 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
30129 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
30130 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
30131 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
30132 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
30133 HOST_WIDE_INT_1U instead of 1ULL.
30134 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
30135 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
30136 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
30137 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
30139 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
30142 2019-02-18 Martin Jambor <mjambor@suse.cz>
30144 PR tree-optimization/89209
30145 * tree-sra.c (create_access_replacement): New optional parameter
30146 reg_tree. Use it as a type if non-NULL and access type is not of
30148 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
30149 to create_access_replacement.
30150 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
30151 Check lacc is non-NULL before attempting to re-create it on the RHS.
30153 2019-02-18 Martin Liska <mliska@suse.cz>
30156 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
30158 (symbol_table::free_edge): Recycle m_summary_id.
30159 * cgraph.h (get_summary_id): New.
30160 (symbol_table::release_symbol): Set m_summary_id to -1
30162 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
30163 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
30164 function_summary to fast_function_summary.
30165 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
30166 * ipa-pure-const.c (class funct_state_summary_t):
30167 Switch from function_summary to fast_function_summary.
30168 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
30169 (class ipa_ref_opt_summary_t): Switch from function_summary
30170 to fast_function_summary.
30171 * symbol-summary.h (class function_summary_base): New class
30172 that is created from base of former function_summary.
30173 (function_summary_base::unregister_hooks): New.
30174 (class function_summary): Inherit from function_summary_base.
30175 (class call_summary_base): New class
30176 that is created from base of former call_summary.
30177 (class call_summary): Inherit from call_summary_base.
30178 (struct is_same): New.
30179 (class fast_function_summary): New summary class.
30180 (class fast_call_summary): New summary class.
30181 * vec.h (vec_safe_grow_cleared): New function.
30183 2019-02-18 Martin Liska <mliska@suse.cz>
30185 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
30186 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
30187 * doc/tm.texi: Document new target hook.
30188 * doc/tm.texi.in: Likewise.
30189 * target.def: Add new target macro.
30190 * gcc.c (find_fortran_preinclude_file): Do not search multilib
30193 2019-02-17 Alan Modra <amodra@gmail.com>
30196 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
30197 output reg on add insn.
30198 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
30200 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30203 * config/i386/sse.md (ssedoublemode): Remove V4HI.
30204 (PMULHRSW): Likewise.
30205 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
30207 (ssse3_pmulhrswv4hi3): New expander.
30209 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30211 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
30212 MMX. Add isa attribute.
30214 2019-02-16 Jakub Jelinek <jakub@redhat.com>
30216 PR rtl-optimization/66152
30217 * builtins.h (c_readstr): Declare.
30218 * builtins.c (c_readstr): Remove forward declaration. Add
30219 null_terminated_p argument, if false, read all bytes from the
30220 string instead of stopping after '\0'.
30221 * expr.c (string_cst_read_str): New function.
30222 (store_expr): Use string_cst_read_str instead of
30223 builtin_strncpy_read_str. Try to store by pieces the whole
30224 exp_len first, and only if that fails, split it up into
30225 store by pieces followed by clear_storage. Formatting fix.
30227 * config/i386/i386.md (*movqi_internal): Remove static from
30228 buf variable. Use output_asm_insn (buf, operands); return "";
30229 instead of return buf;.
30230 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
30231 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
30232 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
30234 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30236 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
30237 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
30238 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
30239 (CC1_SPEC): Likewise.
30240 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
30242 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30244 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
30245 the base address on 64-bit strict-alignment platforms.
30247 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
30249 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
30251 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30253 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
30255 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
30257 PR rtl-optimization/88308
30258 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
30259 on copied instruction.
30261 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30263 * final.c (insn_current_reference_address): Replace test on JUMP_P
30264 with test on jump_to_label_p.
30265 * config/visium/visium-passes.def: New file.
30266 * config/visium/t-visium (PASSES_EXTRA): Define.
30267 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
30268 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
30269 (TRAMPOLINE_ALIGNMENT): Define.
30270 * config/visium/visium.c (visium_option_override): Do not register
30271 the machine-specific reorg pass here.
30272 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
30274 (output_branch): Adjust threshold for long branch instruction.
30275 * config/visium/visium.md (cpu): Move around.
30276 (length): Adjust for the GR6.
30278 2019-02-15 Richard Biener <rguenther@suse.de>
30279 Jakub Jelinek <jakub@redhat.com>
30281 PR tree-optimization/89278
30282 * tree-loop-distribution.c: Include tree-eh.h.
30283 (generate_memset_builtin, generate_memcpy_builtin): Call
30284 rewrite_to_non_trapping_overflow on builtin->size before passing it
30285 to force_gimple_operand_gsi.
30287 2019-02-15 Jakub Jelinek <jakub@redhat.com>
30290 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
30292 * opth-gen.awk: Likewise.
30294 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30296 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
30297 Enable MMX, SSE and SSE2 by default.
30298 * config/i386/i386.c (ix86_option_override_internal): Do not
30299 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
30301 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30303 PR rtl-optimization/89354
30304 * combine.c (make_extraction): Punt if extraction_mode is narrower
30307 2019-02-14 Maya Rashish <coypu@sdf.org>
30309 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
30310 * config/netbsd-d.c: New file.
30311 * config/t-netbsd: Add netbsd-d.o
30313 2018-02-14 Steve Ellcey <sellcey@marvell.com>
30315 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
30316 affects_type_identity to true for aarch64_vector_pcs.
30317 (aarch64_comp_type_attributes): New function.
30318 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
30320 2019-02-14 Tamar Christina <tamar.christina@arm.com>
30323 * config/arm/iterators.md (ANY64): Add V4HF.
30325 2019-02-14 Martin Liska <mliska@suse.cz>
30327 PR rtl-optimization/89242
30328 * dce.c (delete_unmarked_insns): Call free_dominance_info we
30329 process a transformation.
30331 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30333 PR tree-optimization/89314
30334 * fold-const.c (fold_binary_loc): Cast strlen argument to
30335 const char * before dereferencing it. Formatting fixes.
30337 PR middle-end/89284
30338 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
30340 2019-02-13 Ian Lance Taylor <iant@golang.org>
30342 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
30343 and set current index for other optimizations.
30345 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
30347 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
30348 nonimmediate_operand as operand 2 predicate.
30349 (vec_set<VF2_512_256:mode>_0): Ditto.
30350 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
30351 (*vec_concatv2si): Remove alternative 2.
30352 (*vec_concatv4si_0): Use vm constraint for alternative 0.
30353 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
30354 (vec_concatv2di): Split alternatives 4,5,6 to ...
30355 (*vec_concatv2di_0) ... new pattern.
30357 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
30360 * config/arm/arm.c (ldm_stm_operation_p) Set
30361 addr_reg_in_reglist correctly for first register.
30362 (load_multiple_sequence): Remove dead base check.
30363 (gen_ldm_seq): Correctly set write_back for Thumb-1.
30365 2019-02-13 Tamar Christina <tamar.christina@arm.com>
30368 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
30369 Expose as @aarch64_pred_mov.
30370 * config/aarch64/aarch64.c (aarch64_classify_address):
30371 Use expand_insn which legitimizes operands.
30373 2019-02-13 Martin Liska <mliska@suse.cz>
30375 * builtins.h (expand_builtin_with_bounds): Remove declaration.
30376 * calls.c (struct arg_data): Remove special_slot, pointer_arg
30377 and pointer_offset fields.
30378 (initialize_argument_information): Remove usage of dead
30380 * cgraph.h (struct cgraph_thunk_info): Remove
30381 add_pointer_bounds_args.
30382 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
30384 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
30386 * config/i386/i386.c (ix86_function_arg_advance): Remove
30388 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
30389 (def_builtin): Remove usage of dead fields.
30390 (ix86_add_new_builtins): Likewise.
30391 * ipa-fnsummary.c (compute_fn_summary): Likewise.
30392 * ipa-icf.c (sem_function::equals_wpa): Likewise.
30393 (sem_function::init): Likewise.
30394 (sem_variable::merge): Likewise.
30395 * ipa-visibility.c (function_and_variable_visibility): Likewise.
30396 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
30397 * lto-cgraph.c (lto_output_node): Likewise.
30398 (lto_output_varpool_node): Likewise.
30399 (input_node): Likewise.
30400 (input_varpool_node): Likewise.
30401 * lto-streamer-out.c (lto_output): Likewise.
30402 * tree-inline.c (expand_call_inline): Remove usage of
30404 * tree-inline.h (struct copy_body_data): Likewise.
30405 * varpool.c (varpool_node::dump): Likewise.
30407 2019-02-13 Jakub Jelinek <jakub@redhat.com>
30409 PR middle-end/89303
30410 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
30411 into pt->vars_contains_escaped_heap instead of setting
30412 pt->vars_contains_escaped_heap to it.
30414 PR middle-end/89281
30415 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
30416 INTVAL (size), compare it to GET_MODE_MASK instead of
30417 1 << GET_MODE_BITSIZE.
30420 * config/i386/predicates.md (x86_64_immediate_operand): Allow
30421 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
30424 2019-02-13 Martin Liska <mliska@suse.cz>
30427 * cfgrtl.c (remove_barriers_from_footer): New function.
30428 (try_redirect_by_replacing_jump): Use it.
30429 (cfg_layout_redirect_edge_and_branch): Likewise.
30431 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30433 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
30434 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
30435 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
30436 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
30437 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
30438 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
30440 * config/rs6000/rs6000.c (builtin_function_type)
30441 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
30442 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
30443 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
30444 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
30445 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
30447 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
30449 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
30450 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
30452 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
30455 * config/i386/i386.md (*movoi_internal_avx): Revert revision
30456 268678 and revision 268657.
30457 (*movti_internal): Likewise.
30459 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
30462 * config/s390/s390.c (s390_decompose_address): Update comment.
30463 (s390_check_qrst_address): Reject invalid address forms after
30466 2019-02-12 Martin Liska <mliska@suse.cz>
30469 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
30470 we need default values of funct_state for a function that
30473 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
30475 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
30476 the object to pick the size of stores on strict-alignment platforms.
30478 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
30479 (*movdi_insn_sp32): Likewise.
30480 (*movdi_insn_sp64): Likewise.
30482 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
30485 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
30486 types that needs constructiong.
30487 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
30489 2019-02-12 Richard Biener <rguenther@suse.de>
30491 PR tree-optimization/89253
30492 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
30493 duplicate the loop.
30495 2019-02-11 David Malcolm <dmalcolm@redhat.com>
30498 * input.c (selftest::test_line_offset_overflow): New selftest.
30499 (selftest::input_c_tests): Call it.
30501 2019-02-11 Martin Sebor <msebor@redhat.com>
30503 PR tree-optimization/88771
30504 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
30505 when -Wstringop-overflow is set.
30506 (builtin_memref::builtin_memref): Adjust excessive upper bound
30507 only when lower bound is not excessive.
30508 (maybe_diag_overlap): Detect and diagnose excessive bounds via
30509 -Wstringop-ovefflow.
30510 (maybe_diag_offset_bounds): Rename...
30511 (maybe_diag_access_bounds): ...to this.
30512 (check_bounds_or_overlap): Adjust for name change above.
30514 2019-02-11 Martin Sebor <msebor@redhat.com>
30517 * builtins.c (max_object_size): Move from here...
30518 * builtins.h (max_object_size): ...and here...
30519 * tree.c (max_object_size): ...to here...
30520 * tree.h (max_object_size): ...and here.
30522 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
30524 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
30525 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
30526 for correct semantics.
30528 2019-02-11 Alan Modra <amodra@gmail.com>
30530 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
30531 -mlongcall and -mpltseq.
30532 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
30533 (RS/6000 and PowerPC Options <-mpltseq>): Document.
30534 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
30535 * config/rs6000/sysv4.opt (mpltseq): New option.
30536 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
30537 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
30538 support is lacking. Don't allow -mpltseq with -mbss-plt.
30539 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
30540 -mpltseq given for ELFv1.
30541 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
30542 Only use UNSPEC_PLTSEQ for inline PLT calls.
30543 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
30544 use UNSPEC_PLTSEQ for inline PLT calls.
30545 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
30546 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
30547 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
30548 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30549 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30550 (pltseq_mtctr_<mode>): Likewise.
30552 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30554 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
30556 * configure: Regenerate.
30558 2019-02-11 Jakub Jelinek <jakub@redhat.com>
30561 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
30564 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
30566 * function.c (assign_parm_setup_block): Use the stored
30567 size, not the passed size, when allocating stack-space,
30568 also for a parameter with alignment larger than
30569 MAX_SUPPORTED_STACK_ALIGNMENT.
30571 2019-02-11 Martin Liska <mliska@suse.cz>
30574 * ipa-cp.c (build_toporder_info): Remove usage of a param.
30575 * ipa-inline.c (inline_small_functions): Likewise.
30576 * ipa-pure-const.c (propagate_pure_const): Likewise.
30577 (propagate_nothrow): Likewise.
30578 * ipa-reference.c (propagate): Likewise.
30579 * ipa-utils.c (struct searchc_env): Remove unused field.
30580 (searchc): Always search across AVAIL_INTERPOSABLE.
30581 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
30582 the only called IPA pure const can properly not propagate
30583 across interposable boundary.
30584 * ipa-utils.h (ipa_reduced_postorder): Remove param.
30586 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
30588 * config/nds32/nds32.md (call_internal, call_value_internal,
30589 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
30591 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
30593 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
30596 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
30598 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
30601 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
30603 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
30605 2019-02-10 Jakub Jelinek <jakub@redhat.com>
30607 PR tree-optimization/89268
30608 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
30609 if preds is non-NULL.
30611 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30614 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
30617 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
30619 * config/nds32/nds32.md (trap): New pattern.
30621 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
30623 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
30626 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
30628 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
30631 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30633 * ipa-visibility.c (localize_node): Also do not localize
30634 LDPR_PREVAILING_DEF_IRONLY_EXP.
30636 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30639 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
30640 instead of type_with_linkage.
30642 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30645 * params.def (uninlined-function-insns, uninlined-function-time,
30646 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
30647 bound so we don't get overflows.
30649 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
30651 * config/rs6000/rs6000-string.c (expand_compare_loop,
30652 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
30655 2019-02-09 Jakub Jelinek <jakub@redhat.com>
30657 PR middle-end/89246
30658 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30659 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
30660 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
30662 2019-02-09 Alan Modra <amodra@gmail.com>
30665 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
30666 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
30669 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
30671 PR middle-end/88560
30672 * lra-constraints.c (process_alt_operands): Don't increase reject
30673 for memory when offset memory is required.
30675 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
30677 * config/s390/vector.md: Implement vector copysign.
30679 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
30681 * expr.c (expand_constructor): Correct indentations.
30683 2019-02-08 Richard Biener <rguenther@suse.de>
30685 PR tree-optimization/89247
30686 * tree-if-conv.c: Include tree-cfgcleanup.h.
30687 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
30688 (tree_if_conversion): Pass through predicate vector.
30689 (pass_if_conversion::execute): Do CFG cleanup and SSA update
30690 inline, see if any if-converted loops we refrece in
30691 LOOP_VECTORIZED calls vanished and fixup.
30692 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
30694 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
30696 * config/s390/constraints.md (jdd): New constraint.
30698 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
30701 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
30702 upper 16 vector registers without TARGET_AVX512VL.
30703 (*movti_internal): Likewise.
30705 2019-02-08 Jakub Jelinek <jakub@redhat.com>
30707 PR rtl-optimization/89234
30708 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
30709 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
30710 (copy_reg_eh_region_note_backward): Likewise.
30712 2019-02-08 Richard Biener <rguenther@suse.de>
30714 PR middle-end/89223
30715 * tree-data-ref.c (initialize_matrix_A): Fail if constant
30716 doesn't fit in HWI.
30717 (analyze_subscript_affine_affine): Handle failure from
30718 initialize_matrix_A.
30720 2019-02-08 Jakub Jelinek <jakub@redhat.com>
30722 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
30725 2019-02-07 David Malcolm <dmalcolm@redhat.com>
30727 PR tree-optimization/86637
30728 PR tree-optimization/89235
30729 * tree-vect-loop.c (optimize_mask_stores): Add an
30730 auto_purge_vect_location sentinel to ensure that vect_location is
30732 * tree-vectorizer.c
30733 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
30734 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
30735 to ensure that vect_location is purged on exit.
30736 (pass_slp_vectorize::execute): Likewise, replacing the manual
30738 * tree-vectorizer.h (class auto_purge_vect_location): New class.
30740 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30742 * config/aarch64/iterators.md (max_opp): New code_attr.
30743 (USMAX): New code iterator.
30744 * config/aarch64/predicates.md (aarch64_smin): New predicate.
30745 (aarch64_smax): Likewise.
30746 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
30747 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
30750 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
30753 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
30754 for TARGET_AVX512VL.
30755 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
30757 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
30759 * config/s390/s390-builtin-types.def: Add new types.
30760 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
30761 (s390_vec_xlw4): Make the memory operand into a const pointer.
30762 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
30764 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
30765 a new vector type with the alignment of the scalar memory operand.
30767 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
30768 Jakub Jelinek <jakub@redhat.com>
30771 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
30772 arm_count_ldrdstrd_insns): New declarations.
30773 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
30775 (valid_operands_ldrd_strd): New function.
30776 (arm_count_ldrdstrd_insns): New function.
30777 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
30778 sets instead of single DImode set and define new insns to match this.
30780 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30782 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
30783 Make it a C initializer.
30785 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30788 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
30790 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30792 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
30793 Use neon_dot<q> for type.
30794 (neon_<sup>dot_lane<vsi2qi>): Likewise.
30796 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30798 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
30799 Use neon_dot<q> for type.
30800 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
30801 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
30803 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
30805 PR rtl-optimization/89225
30806 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
30809 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
30811 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
30812 after restoring registers saved to allocate the frame on Windows.
30814 2019-02-06 Richard Biener <rguenther@suse.de>
30816 PR tree-optimization/89182
30817 * graphite.h (cached_scalar_evolution_in_region): Declare.
30818 * graphite.c (struct seir_cache_key): New.
30819 (struct sese_scev_hash): Likewise.
30820 (seir_cache): New global.
30821 (cached_scalar_evolution_in_region): New function.
30822 (graphite_transform_loops): Allocate and release seir_cache.
30823 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
30824 cached_scalar_evolution_in_region.
30825 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30827 (scop_detection::graphite_can_represent_expr: Use
30828 cached_scalar_evolution_in_region.
30829 (scop_detection::stmt_simple_for_scop_p): Likewise.
30830 (find_params_in_bb): Likewise.
30831 (gather_bbs::before_dom_children): Likewise.
30832 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
30833 (add_loop_constraints): Likewise.
30835 2019-02-06 Jakub Jelinek <jakub@redhat.com>
30837 PR middle-end/89210
30838 * fold-const-call.c (fold_const_vec_convert): Pass true as last
30839 operand to new_unary_operation only if both element types are integral
30840 and it isn't a widening conversion. Return NULL_TREE if
30841 new_unary_operation failed.
30843 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
30846 * config/s390/s390.md: Remove load and test FP splitter.
30848 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30851 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
30852 expand_compare_loop, expand_block_compare_gpr,
30853 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
30854 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
30855 #include "profile-count.h" and "predict.h" for types and functions
30856 needed to work with REG_BR_PROB notes.
30858 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30861 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
30862 for the long branch case.
30864 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30867 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
30868 can throw, non-call exceptions are enabled and we can't delete
30869 dead exceptions or alter cfg. Set must_clean if
30870 delete_insn_and_edges returns true, don't set it blindly for calls.
30871 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
30873 PR rtl-optimization/89195
30874 * combine.c (make_extraction): For MEMs, don't extract bytes outside
30875 of the original MEM.
30877 2019-02-05 Martin Liska <mliska@suse.cz>
30879 PR gcov-profile/89000
30880 * gcov.c (function_summary): Remove argument.
30881 (file_summary): New function.
30882 (print_usage): Replace tabs with spaces.
30883 (generate_results): Use new function file_summary.
30885 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30888 * optabs.c (prepare_cmp_insn): Pass x and y to
30889 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
30891 2019-02-05 Richard Biener <rguenther@suse.de>
30893 PR middle-end/89150
30894 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
30895 (struct bitmap_element): Drop chain_prev so we properly recurse on
30896 the prev member, supporting tree views.
30897 (struct bitmap_head): GTY skip the obstack member.
30899 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
30902 * doc/extend.texi (Vector Extensions): Add an example of using vector
30903 types together with x86 intrinsics.
30905 2019-02-04 Alan Modra <amodra@gmail.com>
30907 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
30908 str[] size to 160, and comment.
30910 2019-02-04 Alan Modra <amodra@gmail.com>
30912 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
30913 (rs6000_pltseq_template): Guard output of TLS markers with
30914 TARGET_TLS_MARKERS.
30915 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
30916 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
30917 to use inline PLT sequences.
30918 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30919 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30920 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
30922 2019-02-04 Martin Liska <mliska@suse.cz>
30925 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
30926 out when ipa_fn_summaries does not contain entry for callee.
30928 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
30930 * config/sparc/sparc.h: Remove superfluous blank lines.
30931 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
30932 (got_register_rtx): ...this.
30933 (sparc_got): Adjust to above renaming.
30934 (sparc_tls_got): Likewise.
30935 (sparc_delegitimize_address): Likewise.
30936 (sparc_output_mi_thunk): Likewise.
30937 (sparc_init_pic_reg): Likewise.
30938 (save_local_or_in_reg_p): Fix test on the GOT register.
30939 (USE_HIDDEN_LINKONCE): Move around.
30940 (get_pc_thunk_name): Likewise.
30941 (gen_load_pcrel_sym): Likewise.
30942 (load_got_register): Likewise.
30944 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
30946 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
30947 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
30949 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30951 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
30952 into consideration.
30954 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30956 * config.gcc (with_nds32_lib, glibc):
30957 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
30958 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
30959 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
30961 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
30964 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
30965 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
30966 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
30967 (*rcpsf2_sse): Ditto.
30968 (*rsqrtsf2_sse): Ditto.
30969 (sse4_1_round<mode<2): Ditto.
30971 2019-02-03 Richard Biener <rguenther@suse.de>
30974 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
30977 2019-02-02 Jakub Jelinek <jakub@redhat.com>
30979 PR middle-end/87887
30980 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30981 Punt with warning on aggregate return or argument types. Ignore
30982 type/mode checking for uniform arguments.
30984 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
30986 * combine.c (try_combine): Do not print "Can't combine" messages unless
30987 printing failed combination attempts.
30989 2019-02-01 Martin Jambor <mjambor@suse.cz>
30992 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
30993 segment and global segment variables before making them static.
30995 2019-02-01 Martin Jambor <mjambor@suse.cz>
30997 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
30998 missed optimization dump with dump_enabled_p.
31000 2019-02-01 Richard Biener <rguenther@suse.de>
31002 PR middle-end/88597
31003 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
31004 the instantiate cache.
31005 (instantiate_scev_binary): Elide second operand procesing
31006 if equal to the first.
31007 * tree-chrec.c (chrec_contains_symbols): Add visited set.
31008 (chrec_contains_undetermined): Likewise.
31009 (tree_contains_chrecs): Likewise.
31011 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
31013 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
31015 2019-02-01 Jakub Jelinek <jakub@redhat.com>
31017 PR tree-optimization/89143
31018 * wide-int-range.h (wide_int_range_absu): Declare.
31019 * wide-int-range.cc (wide_int_range_absu): New function.
31020 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
31022 PR tree-optimization/88107
31023 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
31024 instead of assertion that eh_region_outermost is non-NULL, if it
31025 is NULL, set *ALL to true and return NULL.
31026 (move_sese_region_to_fn): Adjust caller, if all is set, call
31027 duplicate_eh_regions with NULL region.
31029 2019-02-01 Richard Biener <rguenth@suse.de>
31031 PR rtl-optimization/88593
31032 * mode-switching.c (optimize_mode_switching): Free dominators before
31033 calling cleanup_cfg.
31035 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
31037 PR tree-optimization/88932
31038 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
31040 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31042 PR middle-end/89137
31043 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
31044 bogus clang warning.
31046 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
31049 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
31050 alternative to avoid partial SSE register stall for TARGET_AVX.
31051 (truncdfsf2): Ditto.
31052 (sse4_1_round<mode>2): Ditto.
31054 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
31056 PR tree-optimization/89008
31057 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
31058 process anything of the form X * 0.
31060 2019-01-31 Richard Biener <rguenther@suse.de>
31062 PR tree-optimization/89135
31063 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
31064 with abnormal preds.
31066 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31069 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
31070 always_inline callees into no_sanitize_address callers.
31072 2019-01-31 Richard Biener <rguenther@suse.de>
31074 PR rtl-optimization/89115
31075 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
31077 2019-01-30 Martin Sebor <msebor@redhat.com>
31080 * doc/extend.texi (cast to a union): Correct and expand.
31082 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
31084 PR rtl-optimization/87246
31085 * lra-constraints.c (simplify_operand_subreg): Reload memory
31086 in subreg if the address became invalid.
31088 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
31091 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
31092 Disable for little-endian.
31094 2019-01-30 Richard Biener <rguenther@suse.de>
31096 PR rtl-optimization/89115
31097 * opts.c (default_options_optimization): Reduce
31098 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
31099 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
31102 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
31104 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
31105 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
31106 type of vector element when vec_extract is implemented by direct
31109 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
31111 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
31113 2019-01-30 Richard Biener <rguenther@suse.de>
31115 PR tree-optimization/89111
31116 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
31117 canonicalization to appropriately sized access types.
31119 2019-01-30 Jakub Jelinek <jakub@redhat.com>
31122 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
31123 for arguments to functions that are TU-local and shouldn't be
31124 referenced by assembly.
31126 2019-01-30 Ulrich Drepper <drepper@redhat.com>
31128 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
31131 2019-01-29 Martin Sebor <msebor@redhat.com>
31134 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
31136 2019-01-29 Jakub Jelinek <jakub@redhat.com>
31140 * omp-simd-clone.c (simd_clone_clauses_extract)
31141 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
31142 OMP_CLAUSE_ALIGNED_ALIGNMENT.
31144 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
31146 * config.gcc: Force .init_array for ARC.
31148 2019-01-29 Richard Biener <rguenther@suse.de>
31151 * dwarf2out.c (collect_skeleton_dies): New helper.
31152 (copy_decls_for_unworthy_types): Call it.
31153 (build_abbrev_table): Assert we do not try to replace
31154 DW_AT_signature refs with local refs.
31156 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31158 PR middle-end/89002
31159 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
31160 for lastprivate/linear IV, push gimplify context around gimplify_assign
31161 and, if it needed any temporaries, pop it into a gimple bind around the
31164 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
31166 * common.opt (-Wattribute-alias): Remove "no-" from name.
31167 Make -Wattribute-alias command line option and
31168 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
31170 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31173 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
31174 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
31176 (bmi2): Add missing @opindex.
31177 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
31178 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
31179 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
31180 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
31181 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
31182 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
31183 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
31184 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
31185 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
31186 xsavec, xsaveopt and xsaves options.
31188 2019-01-28 Richard Biener <rguenther@suse.de>
31191 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
31194 2019-01-28 Richard Biener <rguenther@suse.de>
31196 PR tree-optimization/88739
31197 * tree-cfg.c (verify_types_in_gimple_reference): Verify
31198 BIT_FIELD_REFs only are applied to mode-precision operands
31199 when they are integral.
31200 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
31201 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
31202 BIT_FIELD_REFs of non-mode-precision integral operands.
31204 2019-01-27 Jakub Jelinek <jakub@redhat.com>
31207 * config/i386/sse.md
31208 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
31209 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
31210 first constants in pairs are multiples of 2. Formatting fixes.
31211 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
31212 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
31213 first constants in each quadruple are multiples of 4. Formatting fixes.
31215 2019-01-26 Martin Jambor <mjambor@suse.cz>
31218 * tree-inline.c: Include tree-cfgcleanup.h.
31219 (delete_unreachable_blocks_update_callgraph): Move...
31220 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
31221 ...here, make externally visible, make second argument bool, adjust
31223 * tree-cfgcleanup.c: Include cgraph.h.
31224 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
31226 * ipa-prop.c: Include tree-cfgcleanup.h.
31227 (ipcp_transform_function): Call
31228 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
31230 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
31232 PR rtl-optimization/88846
31233 * ira.c (process_set_for_memref_referenced_p): New.
31234 (memref_referenced_p): Add new param. Use
31235 process_set_for_memref_referenced_p. Add new switch cases.
31236 (memref_used_between_p): Pass new arg to memref_referenced_p.
31238 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
31241 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
31242 argument ABI_BREAK. Set to true if the calculated alignment has
31243 changed in gcc-9. Check bit-fields for their base type alignment.
31244 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
31245 (aarch64_function_arg_boundary): Likewise.
31246 (aarch64_gimplify_va_arg_expr): Likewise.
31248 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31250 PR middle-end/89037
31251 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
31252 instead of accessing TREE_INT_CST_ELT directly.
31254 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
31256 * doc/sourcebuild.texi (Environment attributes): Add fenv and
31257 fenv_exceptions description.
31259 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
31261 PR rtl-optimization/87763
31262 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
31263 Allow SUBREG when matching CC_NZmode compare.
31265 2019-01-25 Richard Biener <rguenther@suse.de>
31267 PR tree-optimization/89049
31268 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
31269 Look at the pattern stmt to determine if the stmt is vectorized.
31271 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31273 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
31274 (pred_mov<mode>): Handle all-register forms using both a new
31275 alternative and a split.
31277 2019-01-25 Richard Biener <rguenther@suse.de>
31279 PR tree-optimization/86865
31280 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31281 Reject non-do-while loops.
31283 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
31285 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
31286 * config/rs6000/constraints.md (Q constraint): Use REG_P.
31287 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
31288 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31289 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
31290 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31291 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
31292 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
31293 vlogical_operand, gpc_reg_operand, int_reg_operand,
31294 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
31295 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
31296 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
31297 (save_world_operation, restore_world_operation, lmw_operation,
31298 stmw_operation): Use MEM_P and REG_P.
31299 (tie_operand): Use MEM_P.
31300 (vrsave_operation, crsave_operation): Use REG_P.
31301 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
31302 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
31303 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
31304 (call_operand): Use HARD_REGISTER_P.
31305 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
31307 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
31308 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
31309 quad_aligned_load_p, replace_swapped_aligned_store,
31310 recombine_lvx_pattern, replace_swapped_aligned_load,
31311 recombine_stvx_pattern): Use MEM_P.
31312 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
31313 Use MEM_P and SYMBOL_REF_P.
31314 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
31315 (insn_is_swappable_p): Use REG_P and MEM_P.
31316 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
31317 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
31319 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
31320 Use CONST_DOUBLE_P.
31321 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
31323 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
31324 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
31325 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
31326 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
31328 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31329 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
31330 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
31331 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
31332 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
31333 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
31334 rs6000_split_logical_di): Use CONST_INT_P.
31335 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
31336 REG_P and SYMBOL_REF_P.
31337 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
31338 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
31339 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
31340 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
31341 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
31342 (small_data_operand, print_operand_address): Use CONST_INT_P and
31344 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
31345 (rs6000_init_hard_regno_mode_ok, direct_move_p):
31346 Use HARD_REGISTER_NUM_P.
31347 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
31348 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
31349 SUBREG_P and SYMBOL_REF_P.
31350 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
31351 and HARD_REGISTER_NUM_P.
31352 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
31354 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
31355 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
31357 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
31358 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
31359 find_addr_reg): Use REG_P.
31360 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
31361 (rs6000_emit_le_vsx_move): Use SUBREG_P.
31362 (offsettable_ok_by_alignment, constant_pool_expr_p,
31363 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
31364 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
31365 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
31366 rs6000_assemble_integer, create_TOC_reference,
31367 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
31368 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
31369 (rs6000_split_vec_extract_var): Use reg_or_subregno.
31370 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31371 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31372 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31373 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31374 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
31375 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
31376 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
31377 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
31378 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
31379 and cbranch<mode>4): Use CONST_INT_P.
31380 (multiple define_splits): Use REG_P and SUBREG_P.
31381 (define_expands call, call_value): Use MEM_P.
31382 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
31383 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
31384 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
31385 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
31386 and HARD_REGISTER_NUM_P.
31387 (multiple define_splits): Use HARD_REGISTER_NUM_P.
31389 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
31391 PR rtl-optimization/88948
31392 * rtl.h (prepare_copy_insn): New prototype.
31393 * gcse.c (prepare_copy_insn): New function, split out from
31394 process_insert_insn.
31395 (process_insert_insn): Use prepare_copy_insn.
31396 * store-motion.c (replace_store_insn): Use prepare_copy_insn
31397 instead of gen_move_insn.
31399 2019-01-24 Jakub Jelinek <jakub@redhat.com>
31402 * config/i386/i386.c (ix86_pic_register_p): Return true for
31403 UNSPEC_SET_GOT too.
31405 PR tree-optimization/88964
31406 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
31407 punt if HONOR_SNANS (chrec).
31409 PR middle-end/89015
31410 * tree-nested.c (convert_nonlocal_reference_stmt,
31411 convert_local_reference_stmt, convert_tramp_reference_stmt,
31412 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
31413 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
31414 or GIMPLE_OMP_TASK.
31416 PR tree-optimization/89027
31417 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
31418 for "omp simd array" variables.
31420 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
31423 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
31424 force the alignment of m_val.
31426 2019-01-24 Richard Biener <rguenther@suse.de>
31429 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
31430 When in "legacy" debug mode make sure to reset self-origins.
31432 2019-01-24 Martin Liska <mliska@suse.cz>
31434 PR gcov-profile/88994
31435 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
31436 result will be always smaller or equal to the original.
31437 * gcov.c (mangle_name): Fix else branch where we should
31438 also copy to PTR and shift the pointer.
31440 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31442 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
31443 * vr-values.c (find_case_label_ranges): Fix a comment typo.
31445 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
31447 * common/config/i386/i386-common.c
31448 (OPTION_MASK_ISA_ENQCMD_SET,
31449 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
31450 (ix86_handle_option): Handle -menqcmd.
31451 * config.gcc (enqcmdintrin.h): New header file.
31452 * config/i386/cpuid.h (bit_ENQCMD): New bit.
31453 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
31455 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
31457 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
31458 __builtin_ia32_enqcmds): New builtins.
31459 * config/i386/i386-c.c (__ENQCMD__): New macro.
31460 * config/i386/i386-option.c (ix86_target_string): Add
31462 (ix86_valid_target_attribute_inner_p): Likewise.
31463 * config/i386/i386-expand.c
31464 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
31465 IX86_BUILTIN_ENQCMDS.
31466 * config/i386/i386.h (TARGET_ENQCMD): New.
31467 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
31468 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
31469 (movdir64b_<mode>): Parameterize to enable share expansion code
31470 with ENQCMD in function ix86_expand_builtin.
31471 * config/i386/i386.opt: Add -menqcmd.
31472 * config/i386/immintrin.h: Include enqcmdintrin.h.
31473 * config/i386/enqcmdintrin.h: New intrinsic file.
31474 * doc/invoke.texi: Add -menqcmd.
31476 2019-01-23 Bin Cheng <bin.cheng@arm.com>
31477 Steve Ellcey <sellcey@marvell.com>
31480 * recog.c (address_operand): Return false on wrong mode for address.
31481 (constrain_operands): Check for mode with 'p' constraint.
31483 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
31486 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
31487 Disparage MMX alternative.
31488 (sse2_cvtpd2pi): Ditto.
31489 (sse2_cvttpd2pi): Ditto.
31491 2019-01-23 David Malcolm <dmalcolm@redhat.com>
31494 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
31495 use-after-free of the result of
31496 aarch64_get_extension_string_for_isa_flags.
31498 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31501 * doc/extend.texi: Document break and continue behavior in
31502 statement expressions.
31504 2019-01-23 Richard Biener <rguenther@suse.de>
31506 PR tree-optimization/89008
31507 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
31508 not leave another stray operand.
31510 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31512 * BASE-VER: Bump to 9.0.1.
31514 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
31516 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
31517 thunk that returns by reference, use the type of the return object
31518 of the thunk instead of that of the alias to build the dereference.
31520 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
31522 * config/arc/atomic.md: Add operand to DMB instruction.
31524 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31526 PR tree-optimization/88964
31527 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
31528 build_zero_cst instead of build_int_cst. Return false for loop
31529 invariants which honor signed zeros.
31531 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
31533 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
31535 2019-01-22 Jakub Jelinek <jakub@redhat.com>
31538 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
31539 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
31540 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
31542 PR middle-end/88968
31543 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
31544 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
31547 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
31548 Disable for little endian.
31550 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
31553 * config/arm/arm.c (arm_needs_double_word_align): Check
31554 DECL_BIT_FIELD_TYPE.
31556 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
31557 H.J. Lu <hongjiu.lu@intel.com>
31560 * config/i386/i386-builtin.def: Add mask2 to all builtin
31561 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
31563 * config/i386/i386.c (BDESC): Add mask2 to the definition.
31564 (BDESC_FIRST): Likewise.
31565 (define_builtin): Add an argument for mask2. Updated to handle
31566 both ix86_isa_flags and ix86_isa_flags2.
31567 (define_builtin_const): Likewise.
31568 (define_builtin_pure): Likewise.
31569 (define_builtin2): Deleted.
31570 (define_builtin_const2): Likewise.
31571 (builtin_description): Add a member, mask2.
31572 (bdesc_*): Add mask2 to builtin initializations.
31573 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
31574 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
31576 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
31578 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
31581 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
31584 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
31587 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
31588 alignment is dominated by a bitfield with 64-bit aligned base type.
31589 (arm_function_arg): Emit a warning if the alignment has changed since
31590 earlier GCC releases.
31591 (arm_function_arg_boundary): Likewise.
31592 (arm_setup_incoming_varargs): Likewise.
31594 2019-01-22 Richard Biener <rguenther@suse.de>
31596 PR tree-optimization/88862
31597 * graphite-scop-detection.c
31598 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
31600 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
31602 * doc/extend.tex (AMD GCN Function Attributes): New section.
31603 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
31604 * doc/invoke.texi (AMD GCN Options): New section.
31605 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
31607 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
31609 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
31610 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
31612 2019-01-22 Jakub Jelinek <jakub@redhat.com>
31614 PR tree-optimization/88044
31615 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
31616 is false in the first iteration, but !every_iteration, return false
31617 instead of true with niter->niter zero.
31619 PR rtl-optimization/88904
31620 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
31621 any nonequal registers before processing BB_END (b).
31624 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
31626 (expand_binop_directly, expand_doubleword_clz,
31627 expand_doubleword_popcount, expand_ctz, expand_ffs,
31628 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
31630 PR rtl-optimization/49429
31632 PR rtl-optimization/86334
31634 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
31635 addressable from here...
31636 (emit_block_op_via_libcall): ... to here.
31638 2019-01-22 Richard Biener <rguenther@suse.de>
31640 * tree-vect-loop.c (vect_analyze_loop_operations): Use
31641 auto_vec for cost vector to fix memleak.
31642 (vectorize_fold_left_reduction): Properly gather SLP defs.
31643 (vectorizable_comparison): Do not swap operands to properly
31646 2019-01-22 Alan Modra <amodra@gmail.com>
31649 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
31650 stays a reg. Allow a const_int.
31651 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
31652 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
31653 (IS_NOMARK_TLSGETADDR): Define.
31654 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
31655 (rs6000_output_tlsargs): New function.
31656 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
31657 __tls_get_addr call takes an arg.
31658 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
31659 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
31661 (call_value_nonlocal_sysv): ..or here, delete split.
31662 (tls_gdld_nomark): Delete.
31663 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
31664 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
31665 (call_value_nonlocal_sysv): Likewise.
31666 (call_value_nonlocal_sysv_secure): Likewise.
31667 (call_value_nonlocal_aix): Likewise.
31668 (call_value_indirect_aix): Likewise.
31669 (call_value_indirect_elfv2): Likewise.
31670 (call_value_local32, call_value_local64): Disable for no-mark tls.
31671 (call_value_local_aix): Likewise.
31673 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
31676 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
31677 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
31679 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
31681 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
31682 string contents as hash_map keys.
31684 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31687 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
31688 for rvalue context. Handle rvalues correctly. Use min_align_of_type
31689 instead of TYPE_ALIGN.
31690 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
31691 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
31692 pointer from TYPE_STUB_DECL.
31694 2019-01-21 Richard Biener <rguenther@suse.de>
31696 PR tree-optimization/88934
31697 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
31698 at the possibly non-constant operand.
31699 (vect_get_constant_vectors): Adjust.
31701 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
31704 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
31705 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
31706 instead of _X86INTRIN_H_INCLUDED.
31707 * onfig/i386/clwbintrin.h: Likewise.
31708 * config/i386/pkuintrin.h: Likewise.
31709 * config/i386/prfchwintrin.h: Likewise.
31710 * config/i386/rdseedintrin.h: Likewise.
31711 * config/i386/wbnoinvdintrin.h: Likewise.
31712 * config/i386/xsavecintrin.h: Likewise.
31713 * config/i386/xsavesintrin.h: Likewise.
31714 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
31715 * config/i386/xsaveintrin.h: Likewise.
31716 * config/i386/xsaveoptintrin.h: Likewise.
31717 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
31718 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
31719 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
31720 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
31721 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
31722 * config/i386/immintrin.h: Here.
31724 2019-01-20 Martin Jambor <mjambor@suse.cz>
31727 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
31728 with aa_walk_budget.
31729 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
31730 aa_walk_budget_p parameter.
31731 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
31732 walk. Updated all callers.
31733 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
31734 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
31736 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
31737 parameter info. Extract info from fbi. Pass fbi to recursive calls
31738 and to unmodified_parm.
31739 (phi_result_unknown_predicate): New parameter fbi, removed parameter
31740 info, updated call to will_be_nonconstant_expr_predicate.
31741 (param_change_prob): New parameter fbi, limit AA walking.
31742 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
31743 calls to various above functions.
31744 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
31745 parameter. Use it to limit AA walking.
31746 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
31747 fbi, limit AA walk.
31748 (detect_type_change): New parameter fbi, pass it on to
31749 detect_type_change_from_memory_writes.
31750 (detect_type_change_ssa): Likewise.
31751 (aa_overwalked): Removed.
31752 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
31753 accordingly, adjust to the neew AA limiting scheme.
31754 (parm_ref_data_preserved_p): Likewise.
31755 (ipa_compute_jump_functions_for_edge): Adjust call to
31757 (ipa_analyze_call_uses): Likewise.
31758 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
31759 (ipa_analyze_node): Initialize aa_walk_budget.
31760 (ipcp_transform_function): Likewise.
31761 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
31762 to get_dynamic_type.
31764 2019-01-19 Jakub Jelinek <jakub@redhat.com>
31766 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
31767 outside of #if CHECKING_P code.
31769 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
31771 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
31772 New function, split out from...
31773 (loop_versioning::analyze_stride): ...here.
31774 (loop_versioning::find_per_loop_multiplication): Use gassign.
31775 (loop_versioning::analyze_term_using_scevs): Return a success code.
31776 (loop_versioning::analyze_arbitrary_term): New function.
31777 (loop_versioning::analyze_address_fragment): Use
31778 analyze_arbitrary_term if all else fails.
31780 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
31783 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
31786 2019-01-18 Richard Biener <rguenther@suse.de>
31788 PR tree-optimization/88903
31789 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
31790 scalar stmts a SLP shift amount is composed of when detecting
31793 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
31796 * config/arm/arm-cpus.in (mp): New feature.
31797 (sec): New feature.
31798 (fgroup ARMv7ve): Add mp and sec features.
31799 (arch armv7-a): Add options to allow mp and sec extensions.
31800 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
31801 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
31802 extenstions to the base architecture.
31803 (cpu cortex-a8): Add sec extension to the base architecture.
31804 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
31805 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
31806 variants down to the base v7-a varaint.
31807 * config/arm/t-multilib (v7_a_arch_variants): New variable.
31808 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
31809 of permitted extensions for -march=armv7-a and for
31810 -mcpu=generic-armv7-a.
31812 2019-01-18 Martin Liska <mliska@suse.cz>
31814 * params.def: Fix comment.
31815 * tree-profile.c (gimple_init_gcov_profiler): Bump function
31817 (gimple_gen_ic_func_profiler): Likewise.
31819 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31821 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
31822 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
31823 and put in error checks for stack protector guard options.
31824 (aarch64_stack_protect_guard): New.
31825 (TARGET_STACK_PROTECT_GUARD): Define.
31826 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
31827 (reg_stack_protect_address<mode>): New.
31828 (stack_protect_set): Adjust for SSP_GLOBAL.
31829 (stack_protect_test): Likewise.
31830 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
31831 (-mstack-protector-guard): Likewise.
31832 (-mstack-protector-guard-offset): Likewise.
31834 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31836 PR tree-optimization/86214
31837 * tree-inline.h (struct copy_body_data): Add
31838 add_clobbers_to_eh_landing_pads member.
31839 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
31840 (copy_edges_for_bb): Call it if EH edge destination is <
31841 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
31842 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
31843 if flag_stack_reuse != SR_NONE and clear it afterwards.
31845 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
31848 * doc/install.texi (with-multilib-list): Document for aarch64.
31850 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31853 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
31854 (("..."))) with ("...").
31856 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31858 * doc/extend.texi (Built-in Functions for Memory Model Aware
31859 Atomic Operations): Document atomic fetch and nand.
31861 2019-01-18 Martin Liska <mliska@suse.cz>
31862 Richard Biener <rguenther@suse.de>
31864 PR middle-end/88587
31865 * cgraph.h (create_version_clone_with_body): Add new argument
31867 * cgraphclones.c (cgraph_node::create_version_clone): Add
31868 DECL_ATTRIBUTES to a newly created decl. And call
31869 valid_attribute_p so that proper cl_target_optimization_node
31870 is set for the newly created declaration.
31871 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
31873 (expand_target_clones): Do not call valid_attribute_p, it must
31875 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
31878 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31881 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
31882 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
31883 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
31885 2019-01-17 Martin Sebor <msebor@redhat.com>
31887 PR middle-end/88273
31888 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
31889 Handle anti-ranges the same as no range at all.
31891 2018-01-17 Steve Ellcey <sellcey@cavium.com>
31893 * config/aarch64/aarch64.c (cgraph.h): New include.
31894 (intl.h): New include.
31895 (supported_simd_type): New function.
31896 (currently_supported_simd_type): Ditto.
31897 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
31898 (aarch64_simd_clone_adjust): Ditto.
31899 (aarch64_simd_clone_usable): Ditto.
31900 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
31901 (TARGET_SIMD_CLONE_ADJUST): Ditto.
31902 (TARGET_SIMD_CLONE_USABLE): Ditto.
31903 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
31904 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
31907 2019-01-17 Martin Sebor <msebor@redhat.com>
31909 PR tree-optimization/88800
31910 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
31911 NO_WARNING bit here. Avoid folding out-of-bounds calls.
31912 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
31913 redundant argument. Add new argument and issue diagnostics under
31914 its control. Detect out-of-bounds access even with warnings
31916 (check_bounds_or_overlap): Change return type. Add argument.
31917 (wrestrict_dom_walker::check_call): Adjust.
31918 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
31919 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
31920 check_bounds_or_overlap's return value.
31921 (handle_builtin_stxncpy): Same.
31922 (handle_builtin_strcat): Same.
31924 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31925 Kwok Cheung Yeung <kcy@codesourcery.com>
31926 Julian Brown <julian@codesourcery.com>
31927 Tom de Vries <tom@codesourcery.com>
31929 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
31931 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31933 * doc/sourcebuild.texi: Document dg-require-effective-target
31934 llvm_binutils and offload_gcn.
31936 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31937 Kwok Cheung Yeung <kcy@codesourcery.com>
31938 Julian Brown <julian@codesourcery.com>
31939 Tom de Vries <tom@codesourcery.com>
31941 * doc/sourcebuild.texi: Document dg-required-effective-target
31944 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31945 Kwok Cheung Yeung <kcy@codesourcery.com>
31946 Julian Brown <julian@codesourcery.com>
31947 Tom de Vries <tom@codesourcery.com>
31948 Jan Hubicka <hubicka@ucw.cz>
31949 Martin Jambor <mjambor@suse.cz>
31951 * config.gcc: Add amdgcn*-*-amdhsa configuration.
31952 * configure.ac: Check for dlopen.
31953 * configure: Regenerate.
31955 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31956 Kwok Cheung Yeung <kcy@codesourcery.com>
31957 Julian Brown <julian@codesourcery.com>
31958 Tom de Vries <tom@codesourcery.com>
31959 Jan Hubicka <hubicka@ucw.cz>
31960 Martin Jambor <mjambor@suse.cz>
31962 * common/config/gcn/gcn-common.c: New file.
31963 * config/gcn/driver-gcn.c: New file.
31964 * config/gcn/gcn-builtins.def: New file.
31965 * config/gcn/gcn-hsa.h: New file.
31966 * config/gcn/gcn-modes.def: New file.
31967 * config/gcn/gcn-opts.h: New file.
31968 * config/gcn/gcn-passes.def: New file.
31969 * config/gcn/gcn-protos.h: New file.
31970 * config/gcn/gcn-run.c: New file.
31971 * config/gcn/gcn-tree.c: New file.
31972 * config/gcn/gcn.c: New file.
31973 * config/gcn/gcn.h: New file.
31974 * config/gcn/gcn.opt: New file.
31975 * config/gcn/t-gcn-hsa: New file.
31977 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31978 Kwok Cheung Yeung <kcy@codesourcery.com>
31979 Julian Brown <julian@codesourcery.com>
31980 Tom de Vries <tom@codesourcery.com>
31981 Jan Hubicka <hubicka@ucw.cz>
31982 Martin Jambor <mjambor@suse.cz>
31984 * config/gcn/constraints.md: New file.
31985 * config/gcn/gcn-valu.md: New file.
31986 * config/gcn/gcn.md: New file.
31987 * config/gcn/predicates.md: New file.
31989 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
31991 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
31992 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
31993 (stmt_uses_0_or_null_in_undefined_way): Likewise.
31994 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
31996 2019-01-17 Tamar Christina <tamar.christina@arm.com>
31999 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
32000 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
32001 it and document registers.
32003 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32005 * config/aarch64/aarch64.c (ares_tunings): Define.
32006 * config/aarch64/aarch64-cores.def (ares): Use the above.
32008 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32012 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
32014 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
32015 (_mm512_fixupimm_round_pd): Update parameters and builtin.
32016 (_mm512_maskz_fixupimm_round_pd): Ditto.
32017 (_mm512_fixupimm_round_ps): Ditto.
32018 (_mm512_maskz_fixupimm_round_ps): Ditto.
32019 (_mm_fixupimm_round_sd): Ditto.
32020 (_mm_maskz_fixupimm_round_sd): Ditto.
32021 (_mm_fixupimm_round_ss): Ditto.
32022 (_mm_maskz_fixupimm_round_ss): Ditto.
32023 (_mm512_fixupimm_pd): Ditto.
32024 (_mm512_maskz_fixupimm_pd): Ditto.
32025 (_mm512_fixupimm_ps): Ditto.
32026 (_mm512_maskz_fixupimm_ps): Ditto.
32027 (_mm_fixupimm_sd): Ditto.
32028 (_mm_maskz_fixupimm_sd): Ditto.
32029 (_mm_fixupimm_ss): Ditto.
32030 (_mm_maskz_fixupimm_ss): Ditto.
32031 (_mm512_mask_fixupimm_round_pd): Update builtin.
32032 (_mm512_mask_fixupimm_round_ps): Ditto.
32033 (_mm_mask_fixupimm_round_sd): Ditto.
32034 (_mm_mask_fixupimm_round_ss): Ditto.
32035 (_mm512_mask_fixupimm_pd): Ditto.
32036 (_mm512_mask_fixupimm_ps): Ditto.
32037 (_mm_mask_fixupimm_sd): Ditto.
32038 (_mm_mask_fixupimm_ss): Ditto.
32039 * config/i386/avx512vlintrin.h:
32040 (_mm256_fixupimm_pd): Update parameters and builtin.
32041 (_mm256_maskz_fixupimm_pd): Ditto.
32042 (_mm256_fixupimm_ps): Ditto.
32043 (_mm256_maskz_fixupimm_ps): Ditto.
32044 (_mm_fixupimm_pd): Ditto.
32045 (_mm_maskz_fixupimm_pd): Ditto.
32046 (_mm_fixupimm_ps): Ditto.
32047 (_mm_maskz_fixupimm_ps): Ditto.
32048 (_mm256_mask_fixupimm_pd): Update builtin.
32049 (_mm256_mask_fixupimm_ps): Ditto.
32050 (_mm_mask_fixupimm_pd): Ditto.
32051 (_mm_mask_fixupimm_ps): Ditto.
32052 * config/i386/i386-builtin-types.def: Add new types and remove
32054 * config/i386/i386-builtin.def: Update builtin definitions.
32055 * config/i386/i386.c: Handle new builtin types and remove useless ones.
32056 * config/i386/sse.md: Update VFIXUPIMM* patterns.
32057 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32058 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32059 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
32060 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32061 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32062 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
32063 * config/i386/subst.md:
32064 (round_saeonly_sd_mask_operand4): Add new subst_attr.
32065 (round_saeonly_sd_mask_op4): Ditto.
32066 (round_saeonly_expand_operand5): Ditto.
32067 (round_saeonly_expand): Update.
32069 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32073 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
32075 * config/i386/sse.md: Combine VFIXUPIMM* patterns
32076 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32077 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32078 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
32079 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32080 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32081 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
32083 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32087 2018-12-15 Jakub Jelinek <jakub@redhat.com>
32090 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
32091 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
32092 instead of UNSPEC_FIXUPIMM.
32094 2019-01-17 Richard Biener <rguenther@suse.de>
32097 * dwarf2out.c (want_pubnames): Never generate pubnames sections
32098 and friends for the LTO part of debug info.
32100 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32102 PR tree-optimization/86214
32103 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
32106 PR rtl-optimization/88870
32107 * dce.c (deletable_insn_p): Never delete const/pure calls that can
32108 throw if we can't alter the cfg or delete dead exceptions.
32109 (mark_insn): Don't call find_call_stack_args for such calls.
32111 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
32113 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
32114 prototypes for vec_st.
32115 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
32116 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
32117 mainly on signed/unsigned long long and double.
32119 2019-01-16 David Malcolm <dmalcolm@redhat.com>
32122 * combine.c (delete_noop_moves): Convert to "bool" return,
32123 returning true if any edges are eliminated.
32124 (combine_instructions): Also return true if delete_noop_moves
32127 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32129 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
32130 correct max nunits for endian swap.
32131 (aarch64_expand_fcmla_builtin): Correct subreg code.
32132 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32133 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
32136 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
32138 * config/alpha/alpha.c (alpha_gimplify_va_arg):
32139 Handle split indirect COMPLEX_TYPE arguments.
32141 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
32144 * config/aarch64/aarch64-modes.def: Add comment about how the carry
32145 bit is set by add and compare.
32146 (CC_ADC): New CC_MODE.
32147 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
32148 to cache the code and mode of X. Adjust the shape of a CC_Cmode
32149 comparison. Add detection for CC_ADCmode.
32150 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
32152 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
32153 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
32154 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
32155 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
32156 to eliminate the need for zero-extending the operands.
32157 (add<mode>3_compareC_imm): Delete. Merge into ...
32158 (add<mode>3_compareC): ... this. Restructure the comparison to
32159 eliminate the need for zero-extending the operands.
32160 (add<mode>3_carryin): Use LTU for the overflow detection.
32161 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
32162 Reexpress comparison for overflow.
32163 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
32164 (add<mode>3_carryinC): Likewise.
32165 (add<mode>3_carryinV): Use LTU for carry between partials.
32166 * config/aarch64/predicates.md (aarch64_carry_operation): Update
32167 handling of CC_Cmode and add CC_ADCmode.
32168 (aarch64_borrow_operation): Likewise.
32170 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32172 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
32173 Remove patternmode.
32174 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
32175 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32176 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
32177 Remove endianness conversion.
32179 2019-01-16 Martin Liska <mliska@suse.cz>
32181 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
32183 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
32185 * gcc.c (add_sysrooted_hdrs_prefix): New function.
32186 (path_prefix_reset): Move up in the source file.
32187 (find_fortran_preinclude_file): Make complex search for the
32188 fortran header files.
32190 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
32192 * godump.c (go_output_typedef): When outputting a typedef, refer
32193 to the underlying type by its name and not its structure.
32195 2019-01-15 David Malcolm <dmalcolm@redhat.com>
32198 * tree.c (build_function_type): Assert that arg_types is not
32201 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
32203 PR inline-asm/52813
32204 * doc/extend.texi: Document that listing the stack pointer in the
32205 clobber list of an asm is a deprecated feature.
32206 * common.opt (Wdeprecated): Moved from c-family/c.opt.
32207 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
32208 warning instead of an error for clobbers of the stack pointer.
32209 Add a note explaining why.
32211 2019-01-15 Richard Biener <rguenther@suse.de>
32214 * dwarf2out.c (gen_member_die): Do not generate inheritance
32217 2019-01-15 Richard Biener <rguenther@suse.de>
32219 PR tree-optimization/88855
32220 * tree-if-conv.c (combine_blocks): Collect
32221 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
32223 2019-01-15 Tom de Vries <tdevries@suse.de>
32226 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
32227 lhs == NULL_TREE for gang-level reduction.
32229 2019-01-15 Richard Biener <rguenther@suse.de>
32230 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32233 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
32234 return true if SSA_NAME is already marked in visited bitmap.
32235 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
32237 2019-01-15 Jakub Jelinek <jakub@redhat.com>
32239 PR tree-optimization/88775
32240 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
32241 equal == 0 equality pointer comparisons some more if compared in
32242 integral types and either one points to an automatic var and the
32243 other to a global, or we can prove at least one points to the middle
32244 or both point to start or both point to end.
32246 2019-01-14 Andi Kleen <ak@linux.intel.com>
32248 * Makefile.in: Lower autofdo sampling rate by 10x.
32249 * Makefile.tpl: Dito.
32251 2019-01-14 Tom Honermann <tom@honermann.net>
32253 * defaults.h: Define CHAR8_TYPE.
32255 2019-01-14 Martin Sebor <msebor@redhat.com>
32258 * doc/extend.texi (Darwin Format Checks): Clarify.
32260 2019-01-14 Richard Biener <rguenther@suse.de>
32262 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
32263 whether we are in (simplify ...) or (match ...) context.
32265 2019-01-14 Jakub Jelinek <jakub@redhat.com>
32267 PR rtl-optimization/88796
32268 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
32269 * cfgexpand.c (stack_protect_prologue): Initialize
32270 crtl->stack_protect_guard_decl.
32271 * function.c (stack_protect_epilogue): Use it instead of calling
32272 targetm.stack_protect_guard again.
32273 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
32274 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
32275 crtl->stack_protect_guard_decl.
32276 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
32277 on the returned MEM_EXPR.
32279 2019-01-12 Tom de Vries <tdevries@suse.de>
32281 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
32282 vector length using -fopenacc-dim.
32284 2019-01-12 Tom de Vries <tdevries@suse.de>
32286 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
32287 lengths into account.
32289 2019-01-12 Svante Signell <svante.signell@gmail.com>
32291 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
32292 (TARGET_CAN_SPLIT_STACK): Define.
32293 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
32295 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32297 * params.def (inline-unit-growth): Set to 40.
32299 2019-01-12 Jakub Jelinek <jakub@redhat.com>
32301 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
32303 2019-01-12 Tom de Vries <tdevries@suse.de>
32305 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
32306 region calling vector-partitionable routine, set default_vector_length
32309 2019-01-12 Tom de Vries <tdevries@suse.de>
32311 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
32312 variable default_vector_length.
32314 2019-01-12 Tom de Vries <tdevries@suse.de>
32316 PR middle-end/88703
32317 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
32318 from oacc_default_dims, as oacc_validate_dims would do it, and apply
32321 2019-01-12 Tom de Vries <tdevries@suse.de>
32323 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
32324 (nvptx_goacc_validate_dims): Add used parameter.
32325 * doc/tm.texi: Regenerate.
32326 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
32327 argument to call to targetm.goacc.validate_dims.
32328 (default_goacc_validate_dims): Add used
32330 * target.def (validate_dims): Add used parameter in DEFHOOK.
32331 * targhooks.h (default_goacc_validate_dims): Add used parameter.
32333 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32335 PR middle-end/85956
32337 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
32339 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
32340 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
32341 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
32342 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
32344 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
32346 PR rtl-optimization/87305
32348 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
32349 for little endian pseudos used as paradoxical subreg.
32351 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32353 PR tree-optimization/88693
32354 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
32355 for STRING_CSTs that don't contain any NUL characters in the first
32356 TREE_STRING_LENGTH bytes.
32358 2019-01-11 Alan Modra <amodra@gmail.com>
32362 * genattrtab.c (min_fn): Don't translate values.
32363 (min_attr_value): Return INT_MAX when the value can't be calculated.
32364 Return minimum among any values that can be calculated.
32365 (max_attr_value): Adjust.
32367 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32369 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
32371 2019-01-11 Steve Ellcey <sellcey@marvell.com>
32373 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
32374 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
32375 (aarch64_return_call_with_max_clobbers): New function.
32376 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
32377 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
32379 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
32380 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
32381 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
32382 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
32383 * cselib.c (cselib_process_insn): Add argument to
32384 targetm.hard_regno_call_part_clobbered call.
32385 * ira-conflicts.c (ira_build_conflicts): Ditto.
32386 * ira-costs.c (ira_tune_allocno_costs): Ditto.
32387 * lra-constraints.c (inherit_reload_reg): Ditto.
32388 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
32389 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
32390 argument. Call targetm.return_call_with_max_clobbers.
32391 Add argument to targetm.hard_regno_call_part_clobbered call.
32392 (calls_have_same_clobbers_p): New function.
32393 (process_bb_lives): Add call_insn and last_call_insn variables.
32394 Pass call_insn to check_pseudos_live_through_calls.
32395 Modify if stmt to check targetm.return_call_with_max_clobbers.
32396 Update setting of flush variable.
32397 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
32399 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
32400 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
32401 targetm.hard_regno_call_part_clobbered call.
32402 * reginfo.c (choose_hard_reg_mode): Ditto.
32403 * regrename.c (check_new_reg_p): Ditto.
32404 * reload.c (find_equiv_reg): Ditto.
32405 * reload1.c (emit_reload_insns): Ditto.
32406 * sched-deps.c (deps_analyze_insn): Ditto.
32407 * sel-sched.c (init_regs_for_mode): Ditto.
32408 (mark_unavailable_hard_regs): Ditto.
32409 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
32410 * target.def (hard_regno_call_part_clobbered): Add insn argument.
32411 (return_call_with_max_clobbers): New target function.
32412 * doc/tm.texi: Regenerate.
32413 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
32414 * hooks.c (hook_bool_uint_mode_false): Change to
32415 hook_bool_insn_uint_mode_false.
32416 * hooks.h (hook_bool_uint_mode_false): Ditto.
32418 2019-01-11 Steve Ellcey <sellcey@marvell.com>
32420 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
32421 (aarch64_remove_extra_call_preserved_regs): New function.
32422 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
32423 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
32424 * doc/tm.texi: Regenerate.
32425 * final.c (get_call_reg_set_usage): Call new hook.
32426 * target.def (remove_extra_call_preserved_regs): New hook.
32427 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
32428 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
32430 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32433 * passes.c (finish_optimization_passes): Call print_combine_total_stats
32434 inside of pass_combine_1 dump rather than pass_profile_1.
32436 2019-01-11 Tom de Vries <tdevries@suse.de>
32438 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
32439 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
32440 (PTX_NUM_PER_WORKER_BARRIERS): Define.
32441 (nvptx_apply_dim_limits): Prevent vector_length 64 and
32444 2019-01-11 Tom de Vries <tdevries@suse.de>
32446 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
32448 2019-01-11 Jan Beulich <jbeulich@suse.com>
32450 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
32451 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
32452 sse2_cvtsi2sd): Add {l}.
32453 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
32456 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32459 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
32461 (*float<floatunssuffix>v2div2sf2): New define_insn.
32462 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
32463 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
32464 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
32465 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
32466 match_operands with "const0_operand" "C".
32468 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32470 * config/aarch64/aarch64-builtins.c
32471 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
32472 (aarch64_init_simd_builtins): ...Here
32474 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
32476 PR rtl-optimization/87305
32478 (setup_live_pseudos_and_spill_after_risky_transforms): Check
32479 allocation for big endian pseudos used as paradoxical subregs and
32480 spill them if it is wrong.
32481 * lra-constraints.c (lra_constraints): Add a comment.
32483 2019-01-10 Richard Biener <rguenther@suse.de>
32485 PR tree-optimization/88792
32486 * tree-ssa-pre.c (get_representative_for): Do not return a
32489 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32491 PR middle-end/84877
32493 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
32494 (assign_parm_setup_block): Do the argument slot realignment here
32497 2019-01-10 Stefan Agner <stefan@agner.ch>
32500 * config/arm/arm.c (arm_option_override_internal): Force
32501 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
32503 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32506 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
32509 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32511 * config/arm/arm-builtins.c
32512 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
32513 (MAC_LANE_PAIR_QUALIFIERS): New.
32514 (arm_expand_builtin_args): Use it.
32515 (arm_expand_builtin_1): Likewise.
32516 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
32517 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
32518 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
32519 * config/arm/arm_neon.h:
32520 (vcadd_rot90_f16): New.
32521 (vcaddq_rot90_f16): New.
32522 (vcadd_rot270_f16): New.
32523 (vcaddq_rot270_f16): New.
32526 (vcmla_lane_f16): New.
32527 (vcmla_laneq_f16): New.
32528 (vcmlaq_lane_f16): New.
32529 (vcmlaq_laneq_f16): New.
32530 (vcmla_rot90_f16): New.
32531 (vcmlaq_rot90_f16): New.
32532 (vcmla_rot90_lane_f16): New.
32533 (vcmla_rot90_laneq_f16): New.
32534 (vcmlaq_rot90_lane_f16): New.
32535 (vcmlaq_rot90_laneq_f16): New.
32536 (vcmla_rot180_f16): New.
32537 (vcmlaq_rot180_f16): New.
32538 (vcmla_rot180_lane_f16): New.
32539 (vcmla_rot180_laneq_f16): New.
32540 (vcmlaq_rot180_lane_f16): New.
32541 (vcmlaq_rot180_laneq_f16): New.
32542 (vcmla_rot270_f16): New.
32543 (vcmlaq_rot270_f16): New.
32544 (vcmla_rot270_lane_f16): New.
32545 (vcmla_rot270_laneq_f16): New.
32546 (vcmlaq_rot270_lane_f16): New.
32547 (vcmlaq_rot270_laneq_f16): New.
32548 (vcadd_rot90_f32): New.
32549 (vcaddq_rot90_f32): New.
32550 (vcadd_rot270_f32): New.
32551 (vcaddq_rot270_f32): New.
32554 (vcmla_lane_f32): New.
32555 (vcmla_laneq_f32): New.
32556 (vcmlaq_lane_f32): New.
32557 (vcmlaq_laneq_f32): New.
32558 (vcmla_rot90_f32): New.
32559 (vcmlaq_rot90_f32): New.
32560 (vcmla_rot90_lane_f32): New.
32561 (vcmla_rot90_laneq_f32): New.
32562 (vcmlaq_rot90_lane_f32): New.
32563 (vcmlaq_rot90_laneq_f32): New.
32564 (vcmla_rot180_f32): New.
32565 (vcmlaq_rot180_f32): New.
32566 (vcmla_rot180_lane_f32): New.
32567 (vcmla_rot180_laneq_f32): New.
32568 (vcmlaq_rot180_lane_f32): New.
32569 (vcmlaq_rot180_laneq_f32): New.
32570 (vcmla_rot270_f32): New.
32571 (vcmlaq_rot270_f32): New.
32572 (vcmla_rot270_lane_f32): New.
32573 (vcmla_rot270_laneq_f32): New.
32574 (vcmlaq_rot270_lane_f32): New.
32575 (vcmlaq_rot270_laneq_f32): New.
32576 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
32577 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
32578 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
32579 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
32580 vcmlaq_lane270): New.
32581 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32582 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
32583 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
32584 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
32585 (arm_option_reconfigure_globals): Use them.
32586 * config/arm/iterators.md (VDF, VQ_HSF): New.
32587 (VCADD, VCMLA): New.
32588 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
32589 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
32591 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
32592 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
32594 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32596 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
32597 Add qualifier_lane_pair_index.
32598 (emit-rtl.h): Include.
32599 (TYPES_QUADOP_LANE_PAIR): New.
32600 (aarch64_simd_expand_args): Use it.
32601 (aarch64_simd_expand_builtin): Likewise.
32602 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
32604 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
32605 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
32606 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
32607 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
32608 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
32609 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
32610 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
32611 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
32612 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
32613 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
32614 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
32615 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
32616 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
32617 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
32618 Add __ARM_FEATURE_COMPLEX.
32619 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
32620 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
32621 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
32622 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
32623 fcmlaq_lane270): New.
32624 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32625 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
32626 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
32627 * config/aarch64/arm_neon.h:
32628 (vcadd_rot90_f16): New.
32629 (vcaddq_rot90_f16): New.
32630 (vcadd_rot270_f16): New.
32631 (vcaddq_rot270_f16): New.
32634 (vcmla_lane_f16): New.
32635 (vcmla_laneq_f16): New.
32636 (vcmlaq_lane_f16): New.
32637 (vcmlaq_rot90_lane_f16): New.
32638 (vcmla_rot90_laneq_f16): New.
32639 (vcmla_rot90_lane_f16): New.
32640 (vcmlaq_rot90_f16): New.
32641 (vcmla_rot90_f16): New.
32642 (vcmlaq_laneq_f16): New.
32643 (vcmla_rot180_laneq_f16): New.
32644 (vcmla_rot180_lane_f16): New.
32645 (vcmlaq_rot180_f16): New.
32646 (vcmla_rot180_f16): New.
32647 (vcmlaq_rot90_laneq_f16): New.
32648 (vcmlaq_rot270_laneq_f16): New.
32649 (vcmlaq_rot270_lane_f16): New.
32650 (vcmla_rot270_laneq_f16): New.
32651 (vcmlaq_rot270_f16): New.
32652 (vcmla_rot270_f16): New.
32653 (vcmlaq_rot180_laneq_f16): New.
32654 (vcmlaq_rot180_lane_f16): New.
32655 (vcmla_rot270_lane_f16): New.
32656 (vcadd_rot90_f32): New.
32657 (vcaddq_rot90_f32): New.
32658 (vcaddq_rot90_f64): New.
32659 (vcadd_rot270_f32): New.
32660 (vcaddq_rot270_f32): New.
32661 (vcaddq_rot270_f64): New.
32665 (vcmla_lane_f32): New.
32666 (vcmla_laneq_f32): New.
32667 (vcmlaq_lane_f32): New.
32668 (vcmlaq_laneq_f32): New.
32669 (vcmla_rot90_f32): New.
32670 (vcmlaq_rot90_f32): New.
32671 (vcmlaq_rot90_f64): New.
32672 (vcmla_rot90_lane_f32): New.
32673 (vcmla_rot90_laneq_f32): New.
32674 (vcmlaq_rot90_lane_f32): New.
32675 (vcmlaq_rot90_laneq_f32): New.
32676 (vcmla_rot180_f32): New.
32677 (vcmlaq_rot180_f32): New.
32678 (vcmlaq_rot180_f64): New.
32679 (vcmla_rot180_lane_f32): New.
32680 (vcmla_rot180_laneq_f32): New.
32681 (vcmlaq_rot180_lane_f32): New.
32682 (vcmlaq_rot180_laneq_f32): New.
32683 (vcmla_rot270_f32): New.
32684 (vcmlaq_rot270_f32): New.
32685 (vcmlaq_rot270_f64): New.
32686 (vcmla_rot270_lane_f32): New.
32687 (vcmla_rot270_laneq_f32): New.
32688 (vcmlaq_rot270_lane_f32): New.
32689 (vcmlaq_rot270_laneq_f32): New.
32690 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
32691 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
32692 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
32693 (FCADD, FCMLA): New.
32695 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
32697 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
32701 * config/pa/pa.c: Change "can not" to "cannot".
32702 * gimple-ssa-evrp-analyze.c: Likewise.
32703 * ipa-icf.c: Likewise.
32704 * ipa-polymorphic-call.c: Likewise.
32705 * ipa-pure-const.c: Likewise.
32706 * lra-constraints.c: Likewise.
32707 * lra-remat.c: Likewise.
32708 * reload1.c: Likewise.
32709 * reorg.c: Likewise.
32710 * tree-ssa-uninit.c: Likewise.
32712 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
32716 * Makefile.in: Mechanically replace "can not" with "cannot".
32717 * alias.c: Likewise.
32718 * builtins.c: Likewise.
32719 * calls.c: Likewise.
32720 * cgraph.c: Likewise.
32721 * cgraph.h: Likewise.
32722 * cgraphclones.c: Likewise.
32723 * cgraphunit.c: Likewise.
32724 * combine-stack-adj.c: Likewise.
32725 * combine.c: Likewise.
32726 * common/config/i386/i386-common.c: Likewise.
32727 * config/aarch64/aarch64.c: Likewise.
32728 * config/alpha/sync.md: Likewise.
32729 * config/arc/arc.c: Likewise.
32730 * config/arc/predicates.md: Likewise.
32731 * config/arm/arm-c.c: Likewise.
32732 * config/arm/arm.c: Likewise.
32733 * config/arm/arm.h: Likewise.
32734 * config/arm/arm.md: Likewise.
32735 * config/arm/cortex-r4f.md: Likewise.
32736 * config/csky/csky.c: Likewise.
32737 * config/csky/csky.h: Likewise.
32738 * config/darwin-f.c: Likewise.
32739 * config/epiphany/epiphany.md: Likewise.
32740 * config/i386/i386.c: Likewise.
32741 * config/i386/sol2.h: Likewise.
32742 * config/m68k/m68k.c: Likewise.
32743 * config/mcore/mcore.h: Likewise.
32744 * config/microblaze/microblaze.md: Likewise.
32745 * config/mips/20kc.md: Likewise.
32746 * config/mips/sb1.md: Likewise.
32747 * config/nds32/nds32.c: Likewise.
32748 * config/nds32/predicates.md: Likewise.
32749 * config/pa/pa.c: Likewise.
32750 * config/rs6000/e300c2c3.md: Likewise.
32751 * config/rs6000/rs6000.c: Likewise.
32752 * config/s390/s390.h: Likewise.
32753 * config/sh/sh.c: Likewise.
32754 * config/sh/sh.md: Likewise.
32755 * config/spu/vmx2spu.h: Likewise.
32756 * cprop.c: Likewise.
32757 * dbxout.c: Likewise.
32758 * df-scan.c: Likewise.
32759 * doc/cfg.texi: Likewise.
32760 * doc/extend.texi: Likewise.
32761 * doc/fragments.texi: Likewise.
32762 * doc/gty.texi: Likewise.
32763 * doc/invoke.texi: Likewise.
32764 * doc/lto.texi: Likewise.
32765 * doc/md.texi: Likewise.
32766 * doc/objc.texi: Likewise.
32767 * doc/rtl.texi: Likewise.
32768 * doc/tm.texi: Likewise.
32770 * emit-rtl.c: Likewise.
32771 * emit-rtl.h: Likewise.
32772 * except.c: Likewise.
32773 * expmed.c: Likewise.
32774 * expr.c: Likewise.
32775 * fold-const.c: Likewise.
32776 * genautomata.c: Likewise.
32777 * gimple-fold.c: Likewise.
32778 * hard-reg-set.h: Likewise.
32779 * ifcvt.c: Likewise.
32780 * ipa-comdats.c: Likewise.
32781 * ipa-cp.c: Likewise.
32782 * ipa-devirt.c: Likewise.
32783 * ipa-fnsummary.c: Likewise.
32784 * ipa-icf.c: Likewise.
32785 * ipa-inline-transform.c: Likewise.
32786 * ipa-inline.c: Likewise.
32787 * ipa-polymorphic-call.c: Likewise.
32788 * ipa-profile.c: Likewise.
32789 * ipa-prop.c: Likewise.
32790 * ipa-pure-const.c: Likewise.
32791 * ipa-reference.c: Likewise.
32792 * ipa-split.c: Likewise.
32793 * ipa-visibility.c: Likewise.
32795 * ira-build.c: Likewise.
32796 * ira-color.c: Likewise.
32797 * ira-conflicts.c: Likewise.
32798 * ira-costs.c: Likewise.
32799 * ira-int.h: Likewise.
32800 * ira-lives.c: Likewise.
32803 * loop-invariant.c: Likewise.
32804 * loop-unroll.c: Likewise.
32805 * lower-subreg.c: Likewise.
32806 * lra-assigns.c: Likewise.
32807 * lra-constraints.c: Likewise.
32808 * lra-eliminations.c: Likewise.
32809 * lra-lives.c: Likewise.
32810 * lra-remat.c: Likewise.
32811 * lra-spills.c: Likewise.
32813 * lto-cgraph.c: Likewise.
32814 * lto-streamer-out.c: Likewise.
32815 * postreload-gcse.c: Likewise.
32816 * predict.c: Likewise.
32817 * profile-count.h: Likewise.
32818 * profile.c: Likewise.
32819 * recog.c: Likewise.
32821 * reload.c: Likewise.
32822 * reload1.c: Likewise.
32823 * reorg.c: Likewise.
32824 * resource.c: Likewise.
32825 * rtl.def: Likewise.
32827 * rtlanal.c: Likewise.
32828 * sched-deps.c: Likewise.
32829 * sched-ebb.c: Likewise.
32830 * sched-rgn.c: Likewise.
32831 * sel-sched-ir.c: Likewise.
32832 * sel-sched.c: Likewise.
32833 * shrink-wrap.c: Likewise.
32834 * simplify-rtx.c: Likewise.
32835 * symtab.c: Likewise.
32836 * target.def: Likewise.
32837 * toplev.c: Likewise.
32838 * tree-call-cdce.c: Likewise.
32839 * tree-cfg.c: Likewise.
32840 * tree-complex.c: Likewise.
32841 * tree-core.h: Likewise.
32842 * tree-eh.c: Likewise.
32843 * tree-inline.c: Likewise.
32844 * tree-loop-distribution.c: Likewise.
32845 * tree-nrv.c: Likewise.
32846 * tree-profile.c: Likewise.
32847 * tree-sra.c: Likewise.
32848 * tree-ssa-alias.c: Likewise.
32849 * tree-ssa-dce.c: Likewise.
32850 * tree-ssa-dom.c: Likewise.
32851 * tree-ssa-forwprop.c: Likewise.
32852 * tree-ssa-loop-im.c: Likewise.
32853 * tree-ssa-loop-ivcanon.c: Likewise.
32854 * tree-ssa-loop-ivopts.c: Likewise.
32855 * tree-ssa-loop-niter.c: Likewise.
32856 * tree-ssa-phionlycprop.c: Likewise.
32857 * tree-ssa-phiopt.c: Likewise.
32858 * tree-ssa-propagate.c: Likewise.
32859 * tree-ssa-threadedge.c: Likewise.
32860 * tree-ssa-threadupdate.c: Likewise.
32861 * tree-ssa-uninit.c: Likewise.
32862 * tree-ssanames.c: Likewise.
32863 * tree-streamer-out.c: Likewise.
32864 * tree.c: Likewise.
32865 * tree.h: Likewise.
32866 * vr-values.c: Likewise.
32868 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
32870 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
32871 (ix86_split_xorsign): Ditto.
32872 * config/i386/i386.c (ix86_expand_xorsign): New function.
32873 (ix86_split_xorsign): Ditto.
32874 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
32875 (xorsign<mode>3): New expander.
32876 (xorsign<mode>3_1): New insn_and_split pattern.
32877 * config/i386/sse.md (xorsign<mode>3): New expander.
32879 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32881 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
32882 (*tablejump_sp64): Likewise.
32883 (*tablejump<P:mode>): ...this.
32884 (*call_address_sp32): Merge into...
32885 (*call_address_sp64): Likewise.
32886 (*call_address<P:mode>): ...this.
32887 (*call_symbolic_sp32): Merge into...
32888 (*call_symbolic_sp64): Likewise.
32889 (*call_symbolic<P:mode>): ...this.
32890 (call_value): Remove constraint and add predicate.
32891 (*call_value_address_sp32): Merge into...
32892 (*call_value_address_sp64): Likewise.
32893 (*call_value_address<P:mode>): ...this.
32894 (*call_value_symbolic_sp32): Merge into...
32895 (*call_value_symbolic_sp64): Likewise.
32896 (*call_value_symbolic<P:mode>): ...this.
32897 (*sibcall_symbolic_sp32): Merge into...
32898 (*sibcall_symbolic_sp64): Likewise.
32899 (*sibcall_symbolic<P:mode>): ...this.
32900 (sibcall_value): Remove constraint and add predicate.
32901 (*sibcall_value_symbolic_sp32): Merge into...
32902 (*sibcall_value_symbolic_sp64): Likewise.
32903 (*sibcall_value_symbolic<P:mode>): ...this.
32904 (window_save): Minor tweak.
32905 (*branch_sp32): Merge into...
32906 (*branch_sp64): Likewise.
32907 (*branch<P:mode>): ...this.
32909 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32910 James Clarke <jrtc27@jrtc27.com>
32913 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
32914 consistently in TLS address generation and adjust code to the renaming
32915 of patterns. Mark calls to __tls_get_addr as const.
32916 * config/sparc/sparc.md (tgd_hi22): Turn into...
32917 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
32918 (tgd_lo10): Turn into...
32919 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
32920 (tgd_add32): Merge into...
32921 (tgd_add64): Likewise.
32922 (tgd_add<P:mode>): ...this and use Pmode throughout.
32923 (tldm_hi22): Turn into...
32924 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
32925 (tldm_lo10): Turn into...
32926 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
32927 (tldm_add32): Merge into...
32928 (tldm_add64): Likewise.
32929 (tldm_add<P:mode>): ...this and use Pmode throughout.
32930 (tldm_call32): Merge into...
32931 (tldm_call64): Likewise.
32932 (tldm_call<P:mode>): ...this and use Pmode throughout.
32933 (tldo_hix22): Turn into...
32934 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
32935 (tldo_lox10): Turn into...
32936 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
32937 (tldo_add32): Merge into...
32938 (tldo_add64): Likewise.
32939 (tldo_add<P:mode>): ...this and use Pmode throughout.
32940 (tie_hi22): Turn into...
32941 (tie_hi22<P:mode>): ...this and use Pmode throughout.
32942 (tie_lo10): Turn into...
32943 (tie_lo10<P:mode>): ...this and use Pmode throughout.
32944 (tie_ld64): Use DImode throughout.
32945 (tie_add32): Merge into...
32946 (tie_add64): Likewise.
32947 (tie_add<P:mode>): ...this and use Pmode throughout.
32948 (tle_hix22_sp32): Merge into...
32949 (tle_hix22_sp64): Likewise.
32950 (tle_hix22<P:mode>): ...this and use Pmode throughout.
32951 (tle_lox22_sp32): Merge into...
32952 (tle_lox22_sp64): Likewise.
32953 (tle_lox22<P:mode>): ...this and use Pmode throughout.
32954 (*tldo_ldub_sp32): Merge into...
32955 (*tldo_ldub_sp64): Likewise.
32956 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
32957 (*tldo_ldub1_sp32): Merge into...
32958 (*tldo_ldub1_sp64): Likewise.
32959 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
32960 (*tldo_ldub2_sp32): Merge into...
32961 (*tldo_ldub2_sp64): Likewise.
32962 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
32963 (*tldo_ldsb1_sp32): Merge into...
32964 (*tldo_ldsb1_sp64): Likewise.
32965 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
32966 (*tldo_ldsb2_sp32): Merge into...
32967 (*tldo_ldsb2_sp64): Likewise.
32968 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
32969 (*tldo_ldub3_sp64): Use DImode throughout.
32970 (*tldo_ldsb3_sp64): Likewise.
32971 (*tldo_lduh_sp32): Merge into...
32972 (*tldo_lduh_sp64): Likewise.
32973 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
32974 (*tldo_lduh1_sp32): Merge into...
32975 (*tldo_lduh1_sp64): Likewise.
32976 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
32977 (*tldo_ldsh1_sp32): Merge into...
32978 (*tldo_ldsh1_sp64): Likewise.
32979 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
32980 (*tldo_lduh2_sp64): Use DImode throughout.
32981 (*tldo_ldsh2_sp64): Likewise.
32982 (*tldo_lduw_sp32): Merge into...
32983 (*tldo_lduw_sp64): Likewise.
32984 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
32985 (*tldo_lduw1_sp64): Use DImode throughout.
32986 (*tldo_ldsw1_sp64): Likewise.
32987 (*tldo_ldx_sp64): Likewise.
32988 (*tldo_stb_sp32): Merge into...
32989 (*tldo_stb_sp64): Likewise.
32990 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
32991 (*tldo_sth_sp32): Merge into...
32992 (*tldo_sth_sp64): Likewise.
32993 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
32994 (*tldo_stw_sp32): Merge into...
32995 (*tldo_stw_sp64): Likewise.
32996 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
32997 (*tldo_stx_sp64): Use DImode throughout.
32999 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33001 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
33002 check configure option to set BTI and Return Address Signing.
33003 * configure.ac: Add --enable-standard-branch-protection and
33004 --disable-standard-branch-protection.
33005 * configure: Regenerated.
33006 * doc/install.texi: Document the same.
33008 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33009 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33011 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
33012 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
33013 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
33015 * config/aarch64/aarch64-bti-insert.c: New file.
33016 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
33018 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
33020 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
33021 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
33022 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
33023 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
33025 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33027 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
33028 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
33029 Disable bti for -mbranch-protection=none.
33030 (aarch64_handle_standard_branch_protection): Enable bti for
33031 -mbranch-protection=standard.
33032 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
33033 -mbranch-protection.
33034 (aarch64_bti_enabled): Check if bti is enabled.
33035 * config/aarch64/aarch64.opt: Declare target variable.
33036 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
33038 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33040 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
33041 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
33042 (aarch64_expand_epilogue): Likewise.
33043 (aarch64_output_mi_thunk): Likewise.
33044 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
33045 TAILCALL_ADDR_REGS to x16 and x17.
33046 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
33048 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33050 * config/aarch64/aarch64-option-extensions.def: Define
33051 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
33052 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
33053 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
33054 (AARCH64_FL_PREDRES): New.
33055 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
33056 AARCH64_FL_PREDRES by default.
33057 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
33059 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33061 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
33063 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
33064 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
33065 * doc/invoke.texi: Document ARMv8.5-A.
33067 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
33069 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
33070 (xorsign<mode>3): Likewise.
33072 2019-01-09 Jelinek <jakub@redhat.com>
33074 PR middle-end/88758
33075 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
33076 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
33078 PR rtl-optimization/88331
33079 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
33080 not currently_expanding_to_rtl.
33082 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33084 * doc/invoke.texi (-Os): Remove trailing spaces.
33085 (-finline-functions): Remove reference to -O2.
33087 2019-01-08 Jakub Jelinek <jakub@redhat.com>
33089 PR rtl-optimization/79593
33090 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
33092 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
33093 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
33095 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
33098 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
33102 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
33103 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
33105 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
33108 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
33109 ix86_avx_u128_mode_entry.
33111 2019-01-08 Martin Liska <mliska@suse.cz>
33113 PR tree-optimization/88753
33114 * tree-switch-conversion.c (switch_conversion::build_one_array):
33115 Come up with local variable constructor. Convert first to
33116 type of constructor values.
33118 2019-01-08 Richard Biener <rguenther@suse.de>
33120 PR tree-optimization/86554
33121 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
33122 rpo_avail): Move earlier.
33123 (visit_nary_op): When value-numbering to expressions
33124 with different overflow behavior make sure there's an
33125 available expression on the path.
33127 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
33129 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
33130 aarch64_parse_branch_protection,
33131 struct aarch64_branch_protect_type,
33132 aarch64_handle_no_branch_protection,
33133 aarch64_handle_standard_branch_protection,
33134 aarch64_validate_mbranch_protection,
33135 aarch64_handle_pac_ret_protection,
33136 aarch64_handle_attr_branch_protection,
33137 accepted_branch_protection_string,
33138 aarch64_pac_ret_subtypes,
33139 aarch64_branch_protect_types,
33140 aarch64_handle_pac_ret_leaf): Define.
33141 (aarch64_override_options_after_change_1, aarch64_override_options):
33142 Add check for accepted_branch_protection_string.
33143 (aarch64_option_save): Save accepted_branch_protection_string.
33144 (aarch64_option_restore): Save accepted_branch_protection_string.
33145 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
33146 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
33147 msign-return-address.
33148 * doc/invoke.texi: Add mbranch-protection.
33150 2019-01-08 Alan Modra <amodra@gmail.com>
33153 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
33154 Delete "unknownp" parameter. Adjust callers. Handle
33155 CONST_INT, PLUS, MINUS, and MULT.
33156 (attr_value_aligned): Renamed from or_attr_value.
33157 (min_attr_value): Return INT_MIN for unhandled rtl case..
33158 (min_fn): ..and translate to INT_MAX here.
33159 (write_length_unit_log): Modify to cope without "unknown".
33160 (write_attr_value): Handle IF_THEN_ELSE.
33162 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33164 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
33165 optimization for masked stores.
33167 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33169 PR middle-end/88567
33170 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
33171 output vector directly to duplicate_and_interleave instead of
33172 going through a temporary. Postpone insertion of ctor_seq to
33173 the end of the loop.
33175 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
33178 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
33179 unsigned_p. Handle signed and unsigned overflow correction as
33181 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
33183 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
33185 (add<mode>3_compareV_imm): Make this callable for expanding.
33186 (subv<GPI:mode>4): Use register_operand for operand 1. Use
33187 aarch64_plus_operand for operand 2.
33188 (subv<GPI:mode>_insn): New insn pattern.
33189 (subv<GPI:mode>_imm): Likewise.
33190 (negv<GPI:mode>3): New expand pattern.
33191 (negv<GPI:mode>_insn): New insn pattern.
33192 (negv<GPI:mode>_cmp_only): Likewise.
33193 (cmpv<GPI:mode>_insn): Likewise.
33194 (subvti4): Use register_operand for operand 1. Update call to
33195 aarch64_expand_subvti.
33196 (usubvti4): Likewise.
33197 (negvti3): New expand pattern.
33198 (negdi_carryout): New insn pattern.
33199 (negvdi_carryinV): New insn pattern.
33200 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
33201 version the named version.
33202 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
33204 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
33206 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
33208 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
33209 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
33210 (sub<mode>3_carryinCV): Delete.
33211 (sub<GPI:mode>3_carryinV): New expand pattern.
33212 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
33214 2019-01-07 Richard Biener <rguenther@suse.de>
33216 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
33217 of tree_operand_hash.
33219 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33221 PR tree-optimization/88598
33222 * tree.h (single_nonzero_element): Declare.
33223 * tree.c (single_nonzero_element): New function.
33224 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
33225 if I is the only nonzero element of CST.
33227 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33229 PR tree-optimization/88598
33230 * tree.h (initializer_each_zero_or_onep): Declare.
33231 * tree.c (initializer_each_zero_or_onep): New function.
33232 (signed_or_unsigned_type_for): Handle float types too.
33233 (unsigned_type_for, signed_type_for): Update comments accordingly.
33234 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
33235 x & { 0 or -1, 0 or -1, ... }.
33237 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
33239 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
33240 with x86_64-pc-linux-gnu.
33242 2019-01-07 Tom de Vries <tdevries@suse.de>
33245 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
33247 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
33250 2019-01-07 Jakub Jelinek <jakub@redhat.com>
33252 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
33253 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
33254 TARGET_AVX512F as condition.
33257 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
33258 const_not_ok_for_debug_p target hook.
33259 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
33260 on UNSPEC and subexpressions thereof if all subexpressions of the
33261 UNSPEC are CONSTANT_P.
33263 PR tree-optimization/88676
33264 * tree-ssa-phiopt.c (two_value_replacement): New function.
33265 (tree_ssa_phiopt_worker): Call it.
33268 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
33269 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
33272 * tree-vect-generic.c: Include insn-config.h and recog.h.
33273 (expand_vector_piecewise): Add defaulted ret_type argument,
33274 if non-NULL, use that in preference to type for the result type.
33275 (expand_vector_parallel): Formatting fix.
33276 (do_vec_conversion, do_vec_narrowing_conversion,
33277 expand_vector_conversion): New functions.
33278 (expand_vector_operations_1): Call expand_vector_conversion
33279 for VEC_CONVERT ifn calls.
33280 * internal-fn.def (VEC_CONVERT): New internal function.
33281 * internal-fn.c (expand_VEC_CONVERT): New function.
33282 * fold-const-call.c (fold_const_vec_convert): New function.
33283 (fold_const_call): Use it for CFN_VEC_CONVERT.
33284 * doc/extend.texi (__builtin_convertvector): Document.
33286 2019-01-07 Tom de Vries <tdevries@suse.de>
33288 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
33289 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
33290 vector_red_partition, vector_red_sym): New global variables.
33291 (nvptx_option_override): Initialize vector_red_sym.
33292 (nvptx_declare_function_name): Restore red_partition register.
33293 (nvptx_file_end): Emit code to declare the vector reduction variables.
33294 (nvptx_output_red_partition): New function.
33295 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
33296 large vector reductions.
33297 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
33298 (nvptx_init_builtins): Add VECTOR_ADDR.
33299 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
33300 Handle nvptx_expand_shared_addr.
33301 (nvptx_get_shared_red_addr): Add vector argument and handle large
33303 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
33305 (nvptx_goacc_reduction_init): Likewise.
33306 (nvptx_goacc_reduction_fini): Likewise.
33307 (nvptx_goacc_reduction_teardown): Likewise.
33308 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
33309 init,fini,teardown}.
33310 (nvptx_init_axis_predicate): Initialize vector_red_partition.
33311 (nvptx_set_current_function): Init vector_red_partition.
33312 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
33313 (nvptx_red_partition): New insn.
33314 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
33316 2019-01-07 Tom de Vries <tdevries@suse.de>
33319 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
33322 2019-01-07 Tom de Vries <tdevries@suse.de>
33324 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
33325 (nvptx_option_override): Init oacc_bcast_partition.
33326 (nvptx_init_oacc_workers): New function.
33327 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
33328 (nvptx_needs_shared_bcast): New function.
33329 (nvptx_find_par): Generalize to enable vectors to use shared-memory
33330 to propagate state.
33331 (nvptx_shared_propagate): Initialize vector bcast partition and
33332 synchronization state.
33333 (nvptx_single): Generalize to enable vectors to use shared-memory
33334 to propagate state.
33335 (nvptx_process_pars): Likewise.
33336 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
33337 * config/nvptx/nvptx.h (struct machine_function): Add
33338 bcast_partition and sync_bar members.
33340 2019-01-07 Tom de Vries <tdevries@suse.de>
33342 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
33343 (nvptx_apply_dim_limits): New function.
33344 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
33347 2019-01-07 Tom de Vries <tdevries@suse.de>
33349 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
33350 as late as possible.
33352 2019-01-07 Tom de Vries <tdevries@suse.de>
33354 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
33355 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
33356 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
33357 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
33358 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
33360 2019-01-07 Tom de Vries <tdevries@suse.de>
33362 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
33364 2019-01-07 Tom de Vries <tdevries@suse.de>
33366 * omp-offload.c (oacc_get_min_dim): New function.
33367 * omp-offload.h (oacc_get_min_dim): Declare.
33369 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
33372 * config/i386/i386.c (function_value_ms_64): Return small sturct in
33373 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
33375 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33379 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
33381 * ipa-inline.c (edge_badness): Use inlined_time instead of
33382 inline_summaries->get.
33384 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33386 * opts.c (enable_fdo_optimizations): Enable
33387 version-loops-for-strides, loop-interchange, unrol-and-jam
33388 and tree-loop-distribution.
33389 * invoke.texi: Document newly enabled options.
33391 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33393 * doc/invoke.texi (max-inline-insns-small): New parameters.
33394 * ipa-inline.c (want_early_inline_function_p): simplify.
33395 (want_inline_small_function_p): Fix pasto from previous patch;
33396 use max-inline-insns-small bound.
33397 * params.def (max-inline-insns-small): New param.
33398 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
33399 variables correctly.
33401 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33403 * doc/invoke.texi: Document max-inline-insns-size,
33404 uninlined-function-insns, uninlined-function-time,
33405 uninlined-thunk-insns and uninlined-thunk-time.
33406 * params.def: Add max-inline-insns-size,
33407 uninlined-function-insns, uninlined-function-time,
33408 uninlined-thunk-insns and uninlined-thunk-time.
33409 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
33411 * ipa-inline.c (can_inline_edge_by_limits_p,
33412 want_inline_small_function_p): Use new parameters.
33414 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33416 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
33418 2019-01-05 Jakub Jelinek <jakub@redhat.com>
33420 PR middle-end/82564
33422 * expr.c (expand_assignment): For calls returning VLA structures
33423 if to_rtx is not a MEM, force it into a stack temporary.
33426 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
33427 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
33428 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
33429 subexpressions of both operands.
33430 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
33431 subrtxes are CONSTANT_P.
33432 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
33433 2018-11-09 changes.
33435 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
33437 * params.def (hot-bb-count-ws-permille): Set to 990.
33439 2019-01-04 Martin Sebor <msebor@redhat.com>
33442 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
33445 2019-01-04 Martin Sebor <msebor@redhat.com>
33448 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
33450 2019-01-04 Jakub Jelinek <jakub@redhat.com>
33452 * gdbinit.in: Turn off pagination for the skip commands, restore
33453 it to previous state afterwards.
33455 2019-01-04 Jakub Jelinek <jakub@redhat.com>
33458 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
33459 of GET_MODE (opN) as modes of the libcall arguments.
33461 2019-01-04 Jan Beulich <jbeulich@suse.com>
33463 * config/i386/sse.md
33464 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
33465 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
33466 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
33467 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
33468 avx512f_vmcmp<mode>3<round_saeonly_name>,
33469 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
33470 avx512f_maskcmp<mode>3,
33471 <avx512>_cvt<ssemodesuffix>2mask<mode>,
33472 <avx512>_cvt<ssemodesuffix>2mask<mode>,
33473 *<avx512>_cvtmask2<ssemodesuffix><mode>,
33474 *<avx512>_cvtmask2<ssemodesuffix><mode>,
33475 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
33476 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
33477 <avx512>_gt<mode>3<mask_scalar_merge_name>,
33478 <avx512>_gt<mode>3<mask_scalar_merge_name>,
33479 <avx512>_testm<mode>3<mask_scalar_merge_name>,
33480 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
33481 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
33482 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
33483 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
33484 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
33485 avx512cd_maskb_vec_dup<mode>,
33486 avx512cd_maskw_vec_dup<mode>,
33487 avx512dq_fpclass<mode><mask_scalar_merge_name>,
33488 avx512dq_vmfpclass<mode>,
33489 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
33492 2019-01-03 Martin Sebor <msebor@redhat.com>
33494 PR tree-optimization/88659
33495 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
33497 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
33499 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
33500 unaligned vsx and avoid lxvd2x/stxvd2x.
33501 (gen_lvx_v4si_move): New function.
33503 2019-01-03 Tom de Vries <tdevries@suse.de>
33505 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
33506 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
33508 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
33510 2019-01-03 Tom de Vries <tdevries@suse.de>
33512 * config/nvptx/nvptx.c (struct offload_attrs): New.
33513 (populate_offload_attrs): New function. Factor mask extraction out of
33514 nvptx_reorg. Add extraction of dimensions.
33515 (nvptx_reorg): Use populate_offload_attrs.
33517 2019-01-03 Tom de Vries <tdevries@suse.de>
33519 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
33520 cases for oacc_min_dims_p and routine_p. Add asserts for
33521 oacc_default_dims_p and offload_region_p.
33523 2019-01-03 Tom de Vries <tdevries@suse.de>
33525 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
33526 factored out of ...
33527 (nvptx_goacc_validate_dims): ... here.
33529 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
33531 PR tree-optimization/85574
33532 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
33534 (struct ssa_equip_hash_traits): Declare.
33535 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
33537 2019-01-03 Jakub Jelinek <jakub@redhat.com>
33540 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
33541 change it to qualified_type.
33543 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
33545 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
33546 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
33548 2019-01-02 Martin Sebor <msebor@redhat.com>
33549 Jeff Law <law@redhat.com>
33551 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
33552 (get_range_strlen_tree): Update appropriately.
33554 * gimple-fold.h (get_range_strlen): Drop unused last argument.
33556 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
33557 rather than set_range_info.
33558 * tree-ssa-strlen.c (set_strlen_range): Extracted from
33559 maybe_set_strlen_range. Handle potentially boundary crossing
33560 cases more conservatively.
33561 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
33562 Call set_strlen_range.
33563 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
33565 PR middle-end/88663
33566 * gimple-fold.c (get_range_strlen): Update prototype to no longer
33567 need the flexp argument.
33568 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
33569 from calls to get_range_strlen. Update comments. Just update
33570 VAL for an unterminated const char array and let the reset of the
33571 code handle it normally. No longer try to set *flexp. Adjust
33573 (get_range_strlen): Update for the new get_range_strlen API.
33574 (get_maxval_strlen): Similarly.
33575 (gimple_fold_builtin_strlen): Handle update meaning of return value
33576 from get_range_strlen.
33577 * gimple-ssa-sprintf.c (get_string_length): Update for the new
33578 get_range_strlen API.
33580 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
33583 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
33584 false at WPA time when body was removed.
33586 2019-01-02 Martin Liska <mliska@suse.cz>
33588 PR tree-optimization/88650
33589 * predict.c (set_even_probabilities): Calculate probability
33590 remainer only when really used.
33592 2019-01-02 Richard Biener <rguenther@suse.de>
33594 PR middle-end/88651
33595 * tree-data-ref.c (analyze_subscript_affine_affine): Use
33596 widest_ints when mangling max_stmt_execution results.
33598 2019-01-02 Richard Biener <rguenther@suse.de>
33600 PR tree-optimization/88621
33601 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
33602 bitfields when canoncalizing.
33604 2019-01-02 Richard Biener <rguenther@suse.de>
33607 * config/i386/x86-tune-costs.h (intel_cost): Adjust
33608 cost of cheap SSE instruction.
33610 2019-01-02 Richard Biener <rguenther@suse.de>
33613 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
33614 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
33616 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
33617 set after UIDs before splitting them.
33619 2019-01-01 Martin Sebor <msebor@redhat.com>
33620 Jeff Law <law@redhat.com>
33622 * gimple-fold.c (get_range_strlen_tree): Record if the computed
33623 length is optimistic. If it is, then arrange to compute the
33624 conservative length as well.
33626 * gimple-fold.h (get_range_strlen): Update prototype.
33627 * builtins.c (check_access): Update call to get_range_strlen to use
33628 c_strlen_data pointer. Change various variable accesses to instead
33629 pull data from the c_strlen_data structure.
33630 (check_strncat_sizes, expand_builtin_strncat): Likewise.
33631 * calls.c (maybe_warn_nonstring_arg): Likewise.
33632 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
33633 minimum length if maximum lengh is unknown.
33634 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
33635 that used c_strlen, it's no longer needed. Restructure slightly.
33636 (format_string): Set unlikely range appropriately.
33637 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
33639 (get_range_strlen): Accept c_strlen_data pointer for external
33640 call sites as well. Pass through to call to internal get_range_strlen.
33641 Adjust minlen, maxlen and maxbound as needed.
33642 (get_maxval_strlen): Update comments.
33643 (gimple_fold_builtin_strlen): Update call to get_range_strlen
33644 to use c_strlen_data pointer. Change variable accesses to instead
33645 use c_strlen_data data members.
33647 * gimple-fold.c (get_range_strlen): Update prototype.
33648 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
33649 local variables. Use pdata to return information to caller.
33650 Update calls to get_range_strlen. Update pdata->maxbound.
33651 (get_range_strlen -- static version): Similarly.
33652 (get_range_strlen -- extern version): Update for internal
33653 get_range_strlen API change. Convert to external data format.
33654 (get_maxval_strlen): Similarly.
33656 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
33658 * coverage.c (get_coverage_counts): Use current_function_decl.
33659 * profile.c (read_thunk_profile): New function.
33660 (branch_prob): Add THUNK parameter.
33661 * tree-profile.c (tree_profiling): Handle thunks.
33662 * value-prof.c (init_node_map): Handle thunks.
33663 * value-prof.h (branch_prob): Upate prototype.
33664 (read_thunk_profile): Declare.
33666 2019-01-01 Jakub Jelinek <jakub@redhat.com>
33668 Update copyright years.
33670 * gcc.c (process_command): Update copyright notice dates.
33671 * gcov-dump.c (print_version): Ditto.
33672 * gcov.c (print_version): Ditto.
33673 * gcov-tool.c (print_version): Ditto.
33674 * gengtype.c (create_file): Ditto.
33675 * doc/cpp.texi: Bump @copying's copyright year.
33676 * doc/cppinternals.texi: Ditto.
33677 * doc/gcc.texi: Ditto.
33678 * doc/gccint.texi: Ditto.
33679 * doc/gcov.texi: Ditto.
33680 * doc/install.texi: Ditto.
33681 * doc/invoke.texi: Ditto.
33683 Copyright (C) 2019 Free Software Foundation, Inc.
33685 Copying and distribution of this file, with or without modification,
33686 are permitted in any medium without royalty provided the copyright
33687 notice and this notice are preserved.