1 2019-12-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3 * config.gcc: s/msp430*-*-*/msp430-*-*.
4 Handle msp430-*-elfbare.
5 * config/msp430/msp430-devices.c (TARGET_SUBDIR): Define.
8 (rest_of_devices_path): Use TARGET_SUBDIR value in string.
9 * config/msp430/msp430.c (msp430_option_override): Error if
10 -fuse-cxa-atexit is used when it has been disabled at configure time.
11 * config/msp430/t-msp430: Define TARGET_SUBDIR when building
13 * doc/install.texi: Document msp430-*-elf and msp430-*-elfbare.
14 * doc/invoke.texi: Update documentation about which path devices.csv is
17 2019-12-16 Andreas Krebbel <krebbel@linux.ibm.com>
20 * config/s390/vector.md ("mov<mode>" for V_8): Replace lh, lhy,
23 2019-12-14 Martin Sebor <msebor@redhat.com>
25 * doc/extend.texi (attribute access): Correct typos.
27 2019-12-14 Jakub Jelinek <jakub@redhat.com>
30 * ipa-fnsummary.c (ipa_fn_summary_write): Use
31 lto_symtab_encoder_iterator with lsei_start_function_in_partition and
32 lsei_next_function_in_partition instead of walking all cgraph nodes
35 PR tree-optimization/92930
36 * ipa-pure-const.c (special_builtin_state): Don't handle
37 BUILT_IN_APPLY. Formatting fixes.
38 (check_call): Formatting fixes.
40 2019-12-14 Iain Sandoe <iain@sandoe.co.uk>
42 * config/darwin.h (DARWIN_EXTRA_SPECS): Add new
43 bundle spec. (DARWIN_BUNDLE1_SPEC): New.
44 (STARTFILE_SPEC): Use darwin bundle spec.
45 * config/rs6000/darwin.h (DARWIN_BUNDLE1_SPEC): New.
46 (DARWIN_DYLIB1_SPEC): Delete duplicate.
48 2019-12-13 Martin Sebor <msebor@redhat.com>
52 * builtins.c (addr_decl_size): New function.
53 (gimple_call_alloc_size): Add arguments.
54 (compute_objsize): Add an argument. Set *PDECL even for allocated
56 Correct checking for negative wide_int.
57 Correct handling of negative outer offsets into unknown regions
58 or with unknown inner offsets.
59 Extend offsets to at most sizetype precision.
60 Only handle constant subobject sizes.
61 * builtins.h (gimple_call_alloc_size): Add arguments.
62 * tree.c (component_ref_size): Always return sizetype.
63 * tree-ssa-strlen.c (strinfo::alloc): New member.
64 (get_addr_stridx): Add argument.
65 (get_stridx): Use ptrdiff_t. Add argument.
66 (new_strinfo): Set new member.
67 (get_string_length): Handle alloca and VLA.
68 (dump_strlen_info): Dump more state.
69 (maybe_invalidate): Print more info. Decrease indentation.
70 (unshare_strinfo): Set new member.
71 (valid_builtin_call): Handle alloca and VLA.
72 (maybe_warn_overflow): Check and set no-warning bit. Improve
73 handling of offsets. Print allocated objects.
74 (handle_builtin_strlen): Handle strinfo records with null lengths.
75 (handle_builtin_strcpy): Add argument. Call maybe_warn_overflow.
76 (is_strlen_related_p): Handle dynamically allocated objects.
77 (get_range): Add argument.
78 (handle_builtin_malloc): Rename...
79 (handle_alloc): ...to this and handle all allocation functions.
80 (handle_builtin_memset): Call maybe_warn_overflow.
81 (count_nonzero_bytes): Handle more MEM_REF forms.
82 (strlen_check_and_optimize_call): Call handle_alloc_call. Pass
83 arguments to more callees.
84 (handle_integral_assign): Add argument. Create strinfo entries
85 for MEM_REF assignments.
86 (check_and_optimize_stmt): Handle more MEM_REF forms.
88 2019-12-13 Iain Sandoe <iain@sandoe.co.uk>
90 * config/rs6000/darwin.h (DARWIN_DYLIB1_SPEC): New.
92 2019-12-13 Jan Hubicka <hubicka@ucw.cz>
94 * lto-streamer-in.c (input_function): Add node parameter.
95 (lto_read_body_or_constructor): Use it.
97 2019-12-13 Roman Zhuykov <zhroma@ispras.ru>
99 PR rtl-optimization/92591
100 * modulo-sched.c (ps_add_node_check_conflicts): Improve checking
101 for history > 0 case.
103 2019-12-13 Roman Zhuykov <zhroma@ispras.ru>
105 * modulo-sched.c (sms_schedule): Use param_sms_max_ii_factor
106 value instead of macro. Adjust comment.
107 (sms_schedule_by_order): Use parameter value without macro.
108 * params.opt: Add ranges for modulo scheduler parameters,
109 set param_sms_max_ii_factor = 2 by default.
111 2019-12-13 Roman Zhuykov <zhroma@ispras.ru>
113 PR rtl-optimization/90001
114 * ddg.c (create_ddg): Init max_dist array for each node.
115 (free_ddg): Free max_dist array.
116 (create_ddg_edge): Use bool field instead of aux union.
117 (set_recurrence_length): Use prepared max_dist information instead
118 of calling longest_simple_path.
119 (create_scc): Remove graph argument, fill node's aux.count with
120 SCC id, and move set_recurrence_length call to...
121 (create_ddg_all_sccs): ...here, after filling all max_dist arrays
122 using Floyd–Warshall-like algorithm.
123 (update_dist_to_successors): Remove the whole function.
124 (longest_simple_path): Likewise.
125 * ddg.h (struct ddg_node): Add max_dist pointer.
126 (struct ddg_edge): Use bool field instead of unused aux union.
128 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
130 * config/gcn/gcn-valu.md (mulv64si3<exec>): Rename to ...
131 (mul<mode>3<exec>): ... this, and implement sub-dword patterns.
132 (mulv64si3_dup<exec>): Rename to ...
133 (mul<mode>3_dup<exec>): ... this, and implement sub-dword patterns.
135 2019-12-13 Jan Hubicka <hubicka@ucw.cz>
137 * ipa-utils.c (ipa_merge_profiles): Improve dumping; merge common
140 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
142 * config/gcn/gcn-valu.md (sdwa): New mode attribute.
143 (VCVT_FROM_MODE): Rename to ...
144 (VCVT_MODE): ... this.
145 (VCVT_TO_MODE): Delete mode iterator.
146 (VCVT_FMODE): New mode iterator.
147 (VCVT_IMODE): Likewise.
148 (<cvt_name><VCVT_FROM_MODE:mode><VCVT_TO_MODE:mode>2<exec>): Change ...
149 (<cvt_name><VCVT_MODE:mode><VCVT_FMODE:mode>2<exec>): ... to this.
150 (<cvt_name><VCVT_FMODE:mode><VCVT_IMODE:mode>2<exec>): New.
151 (zero_convert): New code iterator.
152 (convop): New code attribute.
153 (<convop><VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
155 (extend<VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
157 (vec_truncatev64div64si): Rename to ...
158 (truncv64di<mode>2): ... this and implement sub-dword patterns.
159 (vec_truncatev64div64si_exec): Rename to ...
160 (truncv64di<mode>2_exec): ... this and implement sub-dword patterns.
161 (<convop><mode>v64di2): New insn_and_split.
162 (<convop><mode>v64di2_exec): Likewise.
163 (mask_gather_load<mode>): Update truncate names.
164 (mask_scatter_store<mode>): Likewise.
165 * config/gcn/gcn.c (gcn_expand_scaled_offsets): Update truncate names.
167 2019-12-13 Dennis Zhang <dennis.zhang@arm.com>
169 * config/aarch64/aarch64-arches.def (armv8.6-a): New.
170 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
171 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC and
172 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC when enabled.
173 * config/aarch64/aarch64-option-extensions.def (i8mm, bf16): New.
174 (fp): Disabling fp also disables i8mm and bf16.
175 (simd): Disabling simd also disables i8mm.
176 * config/aarch64/aarch64.h (AARCH64_FL_V8_6): New macro.
177 (AARCH64_FL_I8MM, AARCH64_FL_BF16, AARCH64_FL_FOR_ARCH8_6): Likewise.
178 (AARCH64_ISA_V8_6, AARCH64_ISA_I8MM, AARCH64_ISA_BF16): Likewise.
179 (TARGET_I8MM, TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
180 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options
181 and add a new table to list permissible values for ARCH.
183 2019-12-13 Jakub Jelinek <jakub@redhat.com>
186 * simplify-rtx.c (simplify_relational_operation): Punt for vector
187 cmp_mode and scalar mode, if simplify_relational_operation returned
189 (simplify_const_relational_operation): Change VOID_mode in function
192 2019-12-13 Kewen Lin <linkw@gcc.gnu.org>
194 * config/rs6000/rs6000.c (adjust_vectorization_cost): New function.
195 (rs6000_add_stmt_cost): Call adjust_vectorization_cost and update
198 2019-12-12 Jakub Jelinek <jakub@redhat.com>
201 * config/i386/i386.c (ix86_gimplify_va_arg): If need_intregs and
202 not need_temp, decrease alignment of the read because the GPR save
203 area only guarantees 8-byte alignment.
205 2019-12-12 Georg-Johann Lay <avr@gjlay.de>
207 Add support for some more AVR devices from avrxmega3 family.
209 * config/avr/avr-mcus.def (attiny1604, attiny1606, attiny1607)
210 (attiny402, attiny404, attiny406)
211 (attiny804, attiny806, attiny807)
212 (attiny202, attiny204): Add AVR_MCU lines to support them.
213 * doc/avr-mmcu.texi: Regenerate.
215 2019-12-12 Jan Hubicka <hubicka@ucw.cz>
217 * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
218 of execution of function call parameters.
220 2019-12-12 Vineet Gupta <vgupta@synopsys.com>
222 * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
223 helps codegen generate exceptions even for quiet NaN.
224 * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
225 (get_arc_condition_code): Likewise.
226 (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
227 * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
228 * config/arc/predicates.md (proper_comparison_operator): Likewise.
229 * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
230 (cmpdf_fpu_trap): Likewise.
232 2019-12-12 Claudiu Zissulescu <claziss@synopsys.com>
234 * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
235 (cstoredi4): Use TARGET_HARD_FLOAT.
237 2019-12-11 Jakub Jelinek <jakub@redhat.com>
239 * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
240 entry from -O3 or later section to -O2 or later section.
241 * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
242 option is enabled by default at -O2+ rather than just at -O3.
245 * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
246 vect_internal_def, use oprnd1 as is, without trying to cast it.
249 2019-12-11 Martin Sebor <msebor@redhat.com>
251 * builtins.c (compute_objsize): Add an argument and set it to offset
253 * builtins.h (compute_objsize): Add an argument.
254 * tree-object-size.c (addr_object_size): Add an argument and set it
255 to offset into destination.
256 (compute_builtin_object_size): Same.
257 * tree-object-size.h (compute_builtin_object_size): Add an argument.
258 * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
259 to offset into destination.
260 (maybe_warn_overflow): New function.
261 (handle_store): Call maybe_warn_overflow to issue warnings.
263 2019-12-11 Jozef Lawrynowicz <jozef.l@mittosystems.com>
265 * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
266 crtbegin_no_eh.o if building for the C language.
267 [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
269 (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for
271 [fno-exceptions]: Use crtend_no_eh.o if building for any language
273 * config/msp430/t-msp430: Add -fno-exceptions multilib.
274 * doc/install.texi: Document --disable-no-exceptions multilib configure
276 * doc/sourcebuild.texi: Document exceptions_enabled effective target.
278 2019-12-11 David Malcolm <dmalcolm@redhat.com>
280 * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
281 (pretty_printer::clone): New vfunc implementation.
282 * pretty-print.h (format_postprocessor::clone): New pure vfunc
284 (pretty_printer::pretty_printer): New copy-ctor decl.
285 (pretty_printer::clone): New vfunc decl.
287 2019-12-11 David Malcolm <dmalcolm@redhat.com>
289 * function-tests.c (selftest::make_fndecl): Make non-static.
290 * selftest.h (selftest::make_fndecl): New decl.
292 2019-12-11 Lewis Hyatt <lhyatt@gmail.com>
295 * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
296 multibyte input. Fix off-by-one-bug printing the last byte before a
298 (pp_character): Don't apply line wrapping in the middle of multibyte
300 (test_utf8): New test.
301 (pretty_print_c_tests): Call the new test.
303 2019-12-11 Richard Earnshaw <rearnsha@arm.com>
305 * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
307 (ALL_FPU_EXTERNAL): New fgroup.
309 (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
310 +simd from architecture specification.
311 (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
312 * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
313 (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
314 (isa_all_fpbits): New bitmap.
315 (arm_option_override): Initialize it.
316 (arm_configure_build_target): If the target isa does not have any
317 FP enabled, do not warn about mismatches in FP-related feature bits.
319 2019-12-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
321 * real.c (struct arm_bfloat_half_format,
322 encode_arm_bfloat_half, decode_arm_bfloat_half): New.
323 * real.h (arm_bfloat_half_format): New.
325 2019-12-11 Hongtao Liu <hongtao.liu@intel.com>
328 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
329 integer mask cmov when available even with TARGET_XOP.
331 2019-12-10 Jakub Jelinek <jakub@redhat.com>
333 PR tree-optimization/92891
334 * builtins.c (gimple_call_alloc_size): Convert size to sizetype
337 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
339 PR rtl-optimization/92796
340 * lra-int.h (lra_risky_transformations_p): Rename to
341 check_and_force_assignment_correctness_p.
342 * lra-assigns.c: Ditto.
343 (lra_assign): Reset check_and_force_assignment_correctness_p.
344 * lra-constraints.c (lra_risky_transformations_p): Rename to
345 check_and_force_assignment_correctness_p.
346 (lra_constraints): Set up check_and_force_assignment_correctness_p
347 only for the 1st sub-pass.
348 * lra-eliminations.c (process_insn_for_elimination): Set up
349 check_and_force_assignment_correctness_p if the insn chnaged its
352 2019-12-10 Jakub Jelinek <jakub@redhat.com>
354 PR rtl-optimization/92882
355 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
356 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
360 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
361 than *jfunc->m_vr to intersect. Formatting fix.
364 * cfgexpand.c (add_stack_protection_conflicts): Change return type
365 from void to bool, return true if at least one stack_vars[i].decl
367 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
368 (expand_used_vars): Don't call stack_protect_decl_p, instead for
369 -fstack-protector-strong set gen_stack_protect_signal to true
370 if add_stack_protection_conflicts returned true. Formatting fixes.
371 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
372 out variables or variables not living on the stack don't count.
373 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
374 rather than > 8 byte.
376 * ipa-param-manipulation.c
377 (ipa_param_body_adjustments::register_replacement): Fix comment typo
379 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
381 (param_splitting_across_edge): Fix typo in dump message - accross
384 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
386 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
387 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
388 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
389 (expand_all_functions): First expand ordered section and then
391 * profile.c (compute_value_histograms): Error on out of range
394 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
396 * predict.c (compute_function_frequency): Check for presence of IPA
399 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
401 * varasm.c (default_function_section): Fix confused tests for
402 tp_first_run reordering.
404 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
406 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
407 allow SVE modes in GPRs.
409 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
411 * config/aarch64/iterators.md (vccore): New iterator.
412 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
414 (*vec_series<mode>_plus): Likewise.
416 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
418 * omp-low.c (scan_omp_for): Use clause location in warning.
420 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
422 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
423 (add_const_value_attribute): Likewise.
425 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
427 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
428 handling direct_slp_reduc, allow the PHI arguments to have
429 a different type from the vector elements.
431 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
433 * tree-vect-stmts.c (vectorizable_condition): Record the loop
434 masks required for extract-last reductions.
436 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
438 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
439 original scalar statement rather than a pattern statement.
440 (vectorizable_condition): Likewise, in the handling of extract-last
443 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
445 * tree-vect-loop.c (vectorizable_reduction): Don't use
446 EXTRACT_LAST_REDUCTION for chained reductions.
448 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
450 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
451 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
452 second demangled name.
454 2019-12-10 Jakub Jelinek <jakub@redhat.com>
456 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
458 2019-12-10 Martin Liska <mliska@suse.cz>
460 PR tree-optimization/92862
461 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
462 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
465 2019-12-09 David Malcolm <dmalcolm@redhat.com>
467 * gcc-rich-location.c
468 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
469 label_text ctor call with label_text::borrow.
470 * gcc-rich-location.h (text_range_label::get_text): Replace
471 label_text ctor called with false with label_text::borrow.
473 2019-12-09 David Malcolm <dmalcolm@redhat.com>
475 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
477 (selftest::test_diagnostic_show_locus_unknown_location): Remove
478 initial newline from expected outputs.
479 (selftest::test_one_liner_simple_caret): Likewise.
480 (selftest::test_one_liner_caret_and_range): Likewise.
481 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
482 (selftest::test_one_liner_fixit_insert_before): Likewise.
483 (selftest::test_one_liner_fixit_insert_after): Likewise.
484 (selftest::test_one_liner_fixit_remove): Likewise.
485 (selftest::test_one_liner_fixit_replace): Likewise.
486 (selftest::test_one_liner_fixit_replace_non_equal_range):
488 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
490 (selftest::test_one_liner_fixit_validation_adhoc_locations):
492 (selftest::test_one_liner_many_fixits_1): Likewise.
493 (selftest::test_one_liner_many_fixits_2): Likewise.
494 (selftest::test_one_liner_labels): Likewise.
495 (selftest::test_one_liner_simple_caret_utf8): Likewise.
496 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
497 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
499 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
500 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
501 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
502 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
503 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
505 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
507 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
509 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
510 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
511 (selftest::test_one_liner_labels_utf8): Likewise.
512 (selftest::test_add_location_if_nearby): Likewise.
513 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
514 (selftest::test_overlapped_fixit_printing): Likewise.
515 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
516 (selftest::test_overlapped_fixit_printing_2): Likewise.
517 (selftest::test_fixit_insert_containing_newline): Likewise.
518 (selftest::test_fixit_insert_containing_newline_2): Likewise.
519 (selftest::test_fixit_replace_containing_newline): Likewise.
520 (selftest::test_fixit_deletion_affecting_newline): Likewise.
521 (selftest::test_line_numbers_multiline_range): Likewise.
522 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
523 before call to diagnostic_show_locus.
524 (diagnostic_append_note): Likewise.
526 2019-12-09 Martin Sebor <msebor@redhat.com>
530 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
532 * hash-table.h (hash_table::expand): Use placement new to copy
533 construct objects in uninitialized storage.
534 (hash_table::empty_slow): Avoid invoking copy assignment on
535 uninitialized objects.
537 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
539 PR preprocessor/49973
540 * input.c (location_compute_display_column): New function to help with
541 multibyte awareness in diagnostics.
542 (test_cpp_utf8): New self-test.
543 (input_c_tests): Call the new test.
544 * input.h (location_compute_display_column): Declare.
545 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
546 to all classes and functions.
547 (enum column_unit): New enum.
548 (class exploc_with_display_col): New class.
549 (class layout_point): Convert m_column member to array m_columns[2].
550 (layout_range::contains_point): Add col_unit argument.
551 (test_layout_range_for_single_point): Pass new argument.
552 (test_layout_range_for_single_line): Likewise.
553 (test_layout_range_for_multiple_lines): Likewise.
554 (line_bounds::convert_to_display_cols): New function.
555 (layout::get_state_at_point): Add col_unit argument.
556 (make_range): Use empty filename rather than dummy filename.
557 (get_line_width_without_trailing_whitespace): Rename to...
558 (get_line_bytes_without_trailing_whitespace): ...this.
559 (test_get_line_width_without_trailing_whitespace): Rename to...
560 (test_get_line_bytes_without_trailing_whitespace): ...this.
561 (class layout): m_exploc changed to exploc_with_display_col from
562 plain expanded_location.
563 (layout::get_linenum_width): New accessor member function.
564 (layout::get_x_offset_display): Likewise.
565 (layout::calculate_linenum_width): New subroutine for the constuctor.
566 (layout::calculate_x_offset_display): Likewise.
567 (layout::layout): Use the new subroutines. Add multibyte awareness.
568 (layout::print_source_line): Add multibyte awareness.
569 (layout::print_line): Likewise.
570 (layout::print_annotation_line): Likewise.
571 (line_label::line_label): Likewise.
572 (layout::print_any_labels): Likewise.
573 (layout::annotation_line_showed_range_p): Likewise.
574 (get_printed_columns): Likewise.
575 (class line_label): Rename m_length to m_display_width.
576 (get_affected_columns): Rename to...
577 (get_affected_range): ...this; add col_unit argument and multibyte
579 (class correction): Add m_affected_bytes and m_display_cols
580 members. Rename m_len to m_byte_length for clarity. Add multibyte
581 awareness throughout.
582 (correction::insertion_p): Add multibyte awareness.
583 (correction::compute_display_cols): New function.
584 (correction::ensure_terminated): Use new member name m_byte_length.
585 (line_corrections::add_hint): Add multibyte awareness.
586 (layout::print_trailing_fixits): Likewise.
587 (layout::get_x_bound_for_row): Likewise.
588 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
589 with _utf8 suffix removed, testing multibyte awareness.
590 (test_one_liner_caret_and_range_utf8): Likewise.
591 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
592 (test_one_liner_fixit_insert_before_utf8): Likewise.
593 (test_one_liner_fixit_insert_after_utf8): Likewise.
594 (test_one_liner_fixit_remove_utf8): Likewise.
595 (test_one_liner_fixit_replace_utf8): Likewise.
596 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
597 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
598 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
599 (test_one_liner_many_fixits_1_utf8): Likewise.
600 (test_one_liner_many_fixits_2_utf8): Likewise.
601 (test_one_liner_labels_utf8): Likewise.
602 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
603 (test_overlapped_fixit_printing_utf8): Likewise.
604 (test_overlapped_fixit_printing): Adapt for changes to
605 get_affected_columns, get_printed_columns and class corrections.
606 (test_overlapped_fixit_printing_2): Likewise.
607 (test_linenum_sep): New constant.
608 (test_left_margin): Likewise.
609 (test_offset_impl): Helper function for new test.
610 (test_layout_x_offset_display_utf8): New test.
611 (diagnostic_show_locus_c_tests): Call new tests.
613 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
615 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
616 TYPE_CANONICAL from the element type only if it is true. Remove a few
617 obsolete lines and adjust recursive call.
618 (fld_process_array_type): Adjust call to build_array_type_1.
619 (build_array_type): Likewise.
620 (build_nonshared_array_type): Likewise.
622 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
624 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
625 %s to %o in asm output.
626 (gather<mode>_insn_2offsets<exec>): Likewise.
628 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
630 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
633 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
635 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
637 (unnamed define_insn_and_split): Delete.
638 (unnamed define_insn): Delete.
639 (unnamed define_insn): Delete.
640 (unnamed define_split): Delete.
642 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
644 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
647 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
650 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
651 dataflow luids once basic blocks have been reordered.
652 * haifa-sched.c (reemit_notes): Create df insn record for each
654 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
655 insn has an insn record before trying to use it.
657 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
659 * common/config/i386/i386-common.c
660 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
661 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
662 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
663 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
664 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
665 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
666 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
667 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
668 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
669 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
670 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
671 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
672 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
673 OPTION_MASK_ISA_AVX512BF16_UNSET,
674 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
675 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
676 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
677 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
678 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
679 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
680 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
681 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
682 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
683 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
684 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
685 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
686 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
687 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
688 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
689 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
690 OPTION_MASK_ISA_ENQCMD): Ditto.
691 * config/i386/i386-builtin.def
692 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
693 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
694 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
695 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
696 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
697 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
698 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
699 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
700 * config/i386/i386-c.c
701 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
702 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
703 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
704 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
705 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
706 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
707 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
708 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
709 OPTION_MASK_ISA_ENQCMD): Ditto.
710 * config/i386/i386-option.c: Ditto
711 * config/i386/i386.opt: Ditto..
712 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
713 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
714 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
715 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
716 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
717 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
718 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
719 TARGET_ISA_ENQCMD): Ditto.
721 2019-12-09 Sudakshina Das <sudi.das@arm.com>
722 Richard Sandiford <richard.sandiford@arm.com>
724 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
725 vect_model_simple_cost call on scalar_shift_arg.
727 2019-12-09 Jakub Jelinek <jakub@redhat.com>
729 PR tree-optimization/92834
730 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
731 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
733 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
735 PR tree-optimization/89007
736 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
737 target support available, generate code to distribute rshift over plus
740 2019-12-09 Martin Liska <mliska@suse.cz>
743 * cgraph.c (symbol_table_test::symbol_table_test): Fix
745 * cgraph.h (symtab_node::symtab_node): New constructor.
746 (cgraph_node::cgraph_node): Likewise.
747 (varpool_node::varpool_node): Likewise.
748 (symbol_table::allocate_cgraph_symbol): Use newly
750 (symbol_table::allocate_cgraph_symbol): Remove.
751 * cgraphunit.c (symtab_terminator): Likewise.
752 * varpool.c (varpool_node::create_empty): Use newly
755 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
759 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
760 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
761 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
762 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
763 * config/i386/i386.c (ix86_print_operand): New operand substitution.
764 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
766 (ix86_expand_sse_cmp): Relax condition for integer mask from
767 512-bit vector to all 128/256/512-bit vector. Delete code gen
768 for avx512f compare patterns since we have generic pattern now.
769 (ix86_expand_sse_movcc): Adjust condition and codegen for
771 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
772 when corresponding vector compare is available.
774 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
777 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
779 * config/nios2/linux.h (LINK_EH_SPEC): Define.
781 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
783 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
784 * cgraph.h (cgrpah_node): Likewise.
785 (tp_first_run_node_cmp): Deeclare.
786 * cgraphunit.c (node_cmp): Rename to ...
787 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
788 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
789 (expand_all_functions): Collect tp_first_run and normal functions to
790 two vectors so the other functions remain sorted. Do not check for
791 flag_profile_reorder_functions it is function local flag.
792 * profile.c (compute_value_histograms): Update tp_first_run printing.
794 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
796 * opts.c (common_handle_option): Do not clear ipa_reference for
799 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
801 * ipa-split.c (split_function): Preserve 0 tp_first_run.
803 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
805 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
808 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
810 PR tree-optimization/92860
811 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
814 2019-12-07 Marek Polacek <polacek@redhat.com>
816 PR c++/91678 - wrong error with decltype and location wrapper.
817 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
819 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
822 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
823 sure to pass a valid inner mode in calls to simplify_gen_subreg.
825 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
826 David Malcolm <dmalcolm@redhat.com>
827 Jakub Jelinek <jakub@redhat.com>
830 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
831 instead of ST sequence to terminate OSC 8 strings.
833 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
834 Vladimir Makarov <vmakarov@redhat.com>
836 PR rtl-optimization/92176
837 * lra.c (simplify_subreg_regno): Don't permit unconditional
838 changing mode for LRA too.
840 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
842 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
843 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
844 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
847 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
849 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
852 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
854 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
855 (VEC_1REG_ALT): Likewise.
856 (VEC_ALL1REG_MODE): New mode iterator.
857 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
858 (VEC_1REG_INT_ALT): Likewise.
859 (VEC_ALL1REG_INT_MODE): New mode interator.
860 (VEC_ALL1REG_INT_ALT): Likewise.
861 (VEC_REG_MODE): Remove V64QI and V64HI.
862 (VEC_ALLREG_MODE): New mode interator.
863 (vec_merge): Change to VEC_ALLREG_MODE.
864 (vec_merge_with_clobber): Likewise.
865 (vec_merge_with_vcc): Likewise.
866 (mov<mode>): Likewise.
867 (mov<mode>_unspec): Likewise.
868 (*mov<mode>): Change to VEC_ALL1REG_MODE.
869 (mov<mode>_exec): Likewise.
870 (*mov<mode>_exec_match): Likewise.
871 (mov<mode>_sgprbase): Likewise.
872 (reload_in<mode>): Change to VEC_ALLREG_MODE.
873 (reload_out<mode>): Likewise.
874 (scalar address splits): Likewise.
875 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
876 (vec_set<mode>): Change to VEC_ALLREG_MODE.
877 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
878 (vec_duplicate<mode><exec>): Likewise.
879 (vec_extract<mode><scalar_mode>): Likewise.
880 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
881 (gather_load<mode>): Likewise.
882 (gather<mode>_exec): Likewise.
883 (gather<mode>_expr<exec>): Likewise.
884 (gather<mode>_insn_1offset<exec>): Likewise.
885 (gather<mode>_insn_1offset_ds<exec>): Likewise.
886 (gather<mode>_insn_2offsets<exec>): Likewise.
887 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
888 (VEC_INT_MODE): Remove V64QI and V64HI.
889 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
890 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
892 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
893 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
894 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
895 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
896 (maskstore<mode>di): Likewise.
897 (mask_gather_load<mode>): Likewise.
898 (mov_from_lane63_<mode>): Likewise.
899 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
900 and V64HImode vectorization.
901 (gcn_related_vector_mode): New function.
902 (TARGET_VECTORIZE_RELATED_MODE): New define.
904 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
905 Kwok Cheung Yeung <kcy@codesourcery.com>
907 * omp-low.c (lower_omp_target): For optional arguments, deref once
908 more to obtain the type.
910 2019-12-06 Richard Biener <rguenther@suse.de>
912 * match.pd (nop_convert): Remove empty match. Use nop_convert?
915 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
917 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
918 for empty vectors. Avoid using ordered_remove and instead
919 shuffle the vector as we go.
921 2019-12-06 Richard Biener <rguenther@suse.de>
923 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
925 (expr::opt_grp): Add and initialize.
926 (lower_opt_convert): Rename to ...
927 (lower_opt): ... and work on opt_grp, simply switching operations
928 from being optional to being present or not.
929 (has_opt_convert): Rename to ...
930 (has_opt): ... and adjust.
931 (parser::parse_operation): Return the optional opt_grp,
932 remove special-casing of conditional operations and more generally
934 (parser::parse_expr): Stick on the parsed opt_grp and perform
936 (parser::parse_for): Remove now unnecessary code.
938 * doc/match-and-simplify.texi: Mention ? now works on all
939 unary operations and also match predicates.
941 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
943 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
944 functions, not inline clones.
946 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
948 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
950 2019-12-06 Richard Biener <rguenther@suse.de>
952 * genmatch.c (c_expr::gen_transform): Emit newlines from line
953 number changes rather than after every semicolon.
955 2019-12-06 Richard Biener <rguenther@suse.de>
957 PR tree-optimization/92819
958 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
959 into the last lane. For two-element vectors try inserting
960 into the last lane when inserting into the first fails.
962 2019-12-06 Jakub Jelinek <jakub@redhat.com>
964 * common.opt (fprofile-partial-training): Terminate description with
967 2019-12-05 Martin Sebor <msebor@redhat.com>
970 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
971 left uninitialized by get_addr_base_and_unit_offset on failure.
973 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
975 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
976 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
977 (detect_type_change): Likewise.
978 (detect_type_change_ssa): Likewise.
979 (ipa_analyze_virtual_call_uses): Update.
981 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
983 * config/nios2/linux.h (LINK_EH_SPEC): Define.
985 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
987 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
989 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
991 * cgraphclones.c (localize_profile): New function.
992 (cgraph_node::create_clone): Use it for partial profiles.
993 * common.opt (fprofile-partial-training): New flag.
994 * doc/invoke.texi (-fprofile-partial-training): Document.
995 * ipa-cp.c (update_profiling_info): For partial profiles do not
996 set function profile to zero.
997 * profile.c (compute_branch_probabilities): With partial profile
998 watch if edge count is zero and turn all probabilities to guessed.
999 (compute_branch_probabilities): For partial profiles do not apply
1000 profile when entry count is zero.
1001 * tree-profile.c (tree_profiling): Only do value_profile_transformations
1002 when profile is read.
1004 2019-12-05 Sudakshina Das <sudi.das@arm.com>
1006 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
1007 check from if condition.
1009 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1011 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
1012 and Fortran's optional arguments, unconditionally add the is-present
1013 condition before the libgomp call.
1015 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
1018 * tree-core.h (OEP_BITWISE): New flag.
1019 * fold-const.c (operand_compare::operand_equal_p): Handle it.
1020 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
1022 2019-12-05 Richard Biener <rguenther@suse.de>
1025 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
1026 heuristics on what don't care element to choose.
1027 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
1029 2019-12-05 Martin Liska <mliska@suse.cz>
1031 PR gcov-profile/92817
1032 * coverage.c (build_gcov_exit_decl): Remove superfluous
1035 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1037 * config/msp430/msp430.md (cbranch<mode>4): Use
1038 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
1039 dest operand of CMP instruction.
1040 (cbranchpsi4_real): Likewise.
1041 (cbranchqi4_real): Likewise.
1042 (cbranchhi4_real): Likewise.
1043 (cbranchpsi4_reversed): Likewise.
1044 (cbranchqi4_reversed): Likewise.
1045 (cbranchhi4_reversed): Likewise.
1047 2019-12-05 Richard Biener <rguenther@suse.de>
1049 PR tree-optimization/92803
1050 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1051 invariant vector construction.
1053 2019-12-05 Martin Liska <mliska@suse.cz>
1055 PR gcov-profile/91971
1056 * coverage.c (coverage_init): Mangle full path
1057 only when -fprofile-dir is used.
1059 2019-12-05 Jakub Jelinek <jakub@redhat.com>
1062 * config/i386/i386.md (movstrict<mode>): Move test for
1063 TARGET_PARTIAL_REG_STALL and not optimizing for size from
1064 expander's condition to the body - FAIL; in that case.
1066 2019-12-03 Martin Sebor <msebor@redhat.com>
1069 * builtins.c (gimple_call_alloc_size): New function.
1070 (compute_objsize): Add argument. Call gimple_call_alloc_size.
1071 Handle variable offsets and indices.
1072 * builtins.h (gimple_call_alloc_size): Declare.
1073 (compute_objsize): Add argument.
1074 * gimple-ssa-warn-restrict.c: Remove assertions.
1075 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
1077 2019-12-04 Julian Brown <julian@codesourcery.com>
1079 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
1081 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
1084 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
1086 (altivec_overloaded_builtins): Move to rs6000-call.c.
1087 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
1089 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
1090 (altivec_overloaded_builtins): Moved from rs6000-c.c.
1091 (rs6000_common_init_builtins): Do no define builtins that overload
1092 builtins that have been disabled.
1094 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
1096 * config/arm/arm.c (arm_option_override_internal):
1097 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
1099 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
1101 * config/aarch64/aarch64.c
1102 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
1103 (thunderx_tunings): Likewise.
1104 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
1105 (thunderx2t99_tunings): Likewise.
1106 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
1107 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
1109 2019-12-04 Richard Biener <rguenther@suse.de>
1111 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
1112 empty CTOR and memset partial-def registering. Take advantage
1113 of fancy offset analysis in memset handling.
1115 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
1117 * fold-const.c (native_encode_vector_part): Handle
1118 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
1119 (native_decode_vector_tree): Delete, moving the bulk of the code to...
1120 (native_interpret_vector_part): ...this new function. Use a pointer
1121 and length instead of a vec<> and start index.
1122 (native_interpret_vector): Use native_interpret_vector_part.
1123 (fold_view_convert_vector_encoding): Likewise.
1125 2019-12-04 Richard Biener <rguenther@suse.de>
1127 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
1128 non-constant defs in the most trivial way.
1129 (vn_reference_lookup_3): Also push down SSA partial defs.
1131 2019-12-04 Martin Liska <mliska@suse.cz>
1133 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
1134 Initialize count of newly created BB.
1136 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1138 PR tree-optimization/92734
1139 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
1140 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
1142 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
1145 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
1146 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
1148 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
1150 * ipa-fnsummary.c: Include tree-into-ssa.h.
1151 (compute_fn_summary): Call update_ssa.
1153 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
1155 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
1156 is set only for symbol in comdat group.
1157 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
1159 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
1161 * cgraph.c: Include tree-into-ssa.h
1162 (cgraph_node::get_body): Call update_ssa.
1163 * cgraphunit.c (cgraph_node::expand): Likewise.
1164 * lto-streamer-in.c (input_function): Do not call update_ssa.
1166 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
1168 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
1169 an array element size if array_element_size is already an invariant.
1170 Similarly don't gimplify and install a field offset if
1171 component_ref_field_offset is already an invariant.
1173 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
1175 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
1176 with POLY_INT_CST size is made to a fixed-size object, force the
1177 object to live in memory.
1179 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1181 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
1184 2019-12-03 Richard Biener <rguenther@suse.de>
1186 PR tree-optimization/92758
1187 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
1188 operation on uniform vectors.
1190 2019-12-03 Richard Biener <rguenther@suse.de>
1192 PR tree-optimization/92645
1193 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
1194 from or to a properly aligned register variable.
1196 2019-12-03 Matthias Klose <doko@ubuntu.com>
1198 * Makefile.in (SOURCES): Add doc/lto-dump.1.
1199 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
1200 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
1202 2019-12-03 Richard Biener <rguenther@suse.de>
1204 PR tree-optimization/92751
1205 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
1206 when a clobber ends up in the partial-def vector.
1207 (vn_reference_lookup_3): Let clobbers be handled by the
1208 assignment from CTOR handling.
1210 2019-12-03 Jakub Jelinek <jakub@redhat.com>
1212 PR tree-optimization/92734
1213 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1214 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1217 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
1218 Jakub Jelinek <jakub@redhat.com>
1221 * config/i386/i386.md (peephole2 for *swap<mode>): Use
1222 general_reg_operand predicates instead of register_operand.
1224 2019-12-03 Richard Biener <rguenther@suse.de>
1226 PR tree-optimization/92645
1227 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1228 a full def of a vector via a BIT_INSERT_EXPR.
1230 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
1232 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1234 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1237 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1240 * fold-const.c (fold_convertible_p): Check vector types more
1243 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1245 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1246 (aarch64_expand_mov_immediate): Use it when attempting to measure
1247 the length of an SVE vector.
1248 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1251 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1253 * config/aarch64/aarch64-sve-builtins.h
1254 (gimple_folder::force_vector): Declare.
1255 * config/aarch64/aarch64-sve-builtins.cc
1256 (gimple_folder::force_vector): New function.
1257 * config/aarch64/aarch64-sve-builtins-base.cc
1258 (svcmp_impl::fold): Likewise.
1259 (svdup_impl::fold): Handle svdup_z too.
1261 2019-12-02 Martin Liska <mliska@suse.cz>
1263 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1265 (debug_tree_odr_name): New.
1266 * ipa-utils.h (get_odr_name_for_type): New.
1268 2019-12-02 Richard Biener <rguenther@suse.de>
1270 PR tree-optimization/92742
1271 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1272 touch the def-type but verify it is consistent with the
1275 2019-12-02 Jakub Jelinek <jakub@redhat.com>
1277 PR tree-optimization/92712
1278 * match.pd ((A * B) +- A -> (B +- 1) * A,
1279 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1280 even when we don't know anything about range of A, but do know
1281 something about range of B and the simplification won't introduce
1284 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
1287 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1288 (ipa-cp-min-recursive-probability): Likewise.
1289 * params.opt (ipa-cp-max-recursive-depth): New.
1290 (ipa-cp-min-recursive-probability): Likewise.
1291 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1292 val_p and unlimited.
1293 (self_recursively_generated_p): New function.
1294 (get_val_across_arith_op): Likewise.
1295 (propagate_vals_across_arith_jfunc): Add constant propagation for
1296 self-recursive function.
1297 (incorporate_penalties): Do not penalize pure self-recursive function.
1298 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1299 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1300 (get_info_about_necessary_edges): Relax hotness check for edge to
1301 self-recursive function.
1302 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1304 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
1308 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1309 objects of flexible types to be small if they have internal linkage
1310 or are declared extern.
1311 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1312 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
1313 instead of the size of the object initializer.
1314 * tree.c (flexible_array_type_p): Move from C front end, and
1315 generalize to handle fields in non-C structures.
1316 * tree.h (flexible_array_type_p): Declare.
1318 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1320 * profile-count.h (profile_count::operator<): Use IPA value for
1322 (profile_count::operator>): Likewise.
1323 (profile_count::operator<=): Likewise.
1324 (profile_count::operator>=): Likewise.
1325 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1327 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1329 * ipa-inline.c (compute_max_insns): Return int64_t.
1330 (inline_small_functions): Simplify.
1332 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1334 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1337 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1339 * cgraph.h (symtab_node): Add symver flag.
1340 * cgraphunit.c (process_symver_attribute): New.
1341 (process_common_attributes): Use process_symver_attribute.
1342 * lto-cgraph.c (lto_output_node): Stream symver.
1343 (lto_output_varpool_node): Stream symver.
1344 (input_overwrite_node): Stream symver.
1345 (input_varpool_node): Stream symver.
1346 * output.h (do_assemble_symver): Decalre.
1347 * symtab.c (symtab_node::dump_base): Dump symver.
1348 (symtab_node::verify_base): Verify symver.
1349 (symtab_node::resolve_alias): Handle symver.
1350 * varasm.c (do_assemble_symver): New function.
1351 * varpool.c (varpool_node::assemble_aliases): Use it.
1352 * doc/extend.texi: (symver attribute): Document.
1353 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1355 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1357 * target.h (type_context_kind): New enum.
1358 (verify_type_context): Declare.
1359 * target.def (verify_type_context): New target hook.
1360 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1361 * doc/tm.texi: Regenerate.
1362 * tree.c (verify_type_context): New function.
1363 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1365 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1367 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1368 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1370 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1372 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1373 * cgraph.h (cgraph_node): Add unit_id and
1374 merged_extern_inline.
1375 (symbol_table): Add max_unit.
1376 (symbol_table::symbol_table): Initialize it.
1377 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1378 merged_comdat, merged_extern_inline.
1379 (cgraph_node::create_clone): Likewise.
1380 (cgraph_node::create_version_clone): Likewise.
1381 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1383 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1384 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1385 * ipa-inline.c (inline_small_functions): Likewise.
1386 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1387 copy merged_comdat and merged_extern_inline.
1388 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1389 merged_extern_inline and unit_id.
1390 (input_overwrite_node): Stream in these.
1391 (input_cgraph_1): Set unit_base.
1392 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1393 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1395 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1397 * gcc.c (process_command): Only warn about an ineffective `-x'
1398 option if any input files have actually been supplied.
1400 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1402 * doc/install.texi (Options specification): Remove the list of
1403 target library subdirectories supporting
1404 `--enable-version-specific-runtime-libs'. Document defaults for
1407 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1409 PR rtl-optimization/92283
1410 * lra.c (lra): Update reg notes after inheritance sub-pass and
1411 before constraint sub-pass.
1413 2019-11-29 Richard Biener <rguenther@suse.de>
1415 PR tree-optimization/91003
1416 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1417 operand number, avoid handling the non-condition operands of
1418 COND_EXPRs as comparisons.
1419 (vect_get_constant_vectors): Pass down the operand number.
1420 (vect_get_slp_defs): Likewise.
1422 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1424 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1425 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1426 VEC_COND_EXPR can trap.
1428 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1430 PR tree-optimization/92677
1431 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1432 to zero when dissolving a group of strided accesses.
1434 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1436 PR tree-optimization/92596
1437 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1439 (vectorizable_operation): Likewise, instead of relying on
1440 vect_get_mask_type_for_stmt to do this.
1441 (vect_get_vector_types_for_stmt): Always return a vector type
1442 immediately, rather than deferring the choice for boolean results.
1443 Use a vector mask type instead of a normal vector if
1444 vect_use_mask_type_p.
1445 (vect_get_mask_type_for_stmt): Delete.
1446 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1447 mask_producers argument and special boolean_type_node handling.
1448 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1449 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1450 (vect_determine_vectorization_factor): Update call accordingly.
1451 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1452 boolean_type_node handling.
1453 (vect_slp_analyze_node_operations_1): Likewise.
1455 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1457 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1458 (vect_use_mask_type_p): New function.
1459 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1460 mask precision to the pattern statement.
1461 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1462 and use it to initialize the new stmt's mask precision.
1463 (search_type_for_mask_1): Delete.
1464 (search_type_for_mask): Replace with...
1465 (integer_type_for_mask): ...this new function. Use the information
1466 cached in the stmt_vec_info.
1467 (vect_recog_bool_pattern): Update accordingly.
1468 (build_mask_conversion): Pass the scalar type associated with the
1469 mask type to append_pattern_def_seq.
1470 (vect_recog_mask_conversion_pattern): Likewise. Call
1471 integer_type_for_mask instead of search_type_for_mask.
1472 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1473 of search_type_for_mask.
1474 (possible_vector_mask_operation_p): New function.
1475 (vect_determine_mask_precision): Likewise.
1476 (vect_determine_stmt_precisions): Call it.
1478 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1480 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1481 the slp_tree parameter with a group size parameter.
1482 (vect_get_mask_type_for_stmt): Likewise.
1483 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1484 (vect_get_mask_type_for_stmt): Likewise.
1485 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1488 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1490 * tree-vect-stmts.c (vectorizable_operation): Punt early
1491 on codes that are handled elsewhere.
1493 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1495 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1496 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1497 operand to a boolean comparison is a natural vector mask,
1498 handle both operands like normal integers instead.
1500 2019-11-29 Richard Biener <rguenther@suse.de>
1502 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1503 out early for too large objects.
1505 2019-11-29 Martin Jambor <mjambor@suse.cz>
1508 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1509 the summary only if the summary exists.
1510 (find_more_scalar_values_for_callers_subset): Check node_dead in
1511 the summary only if the summary exists.
1512 (ipcp_store_bits_results): Ignore nodes without lattices.
1513 (ipcp_store_vr_results): Likewise.
1514 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1515 header files required by them.
1516 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1518 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1520 PR tree-optimization/92710
1521 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1522 vector mask arguments.
1524 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1526 * profile-count.c (profile_count::to_cgraph_frequency,
1527 profile_count::to_sreal_scale): Check for compaibility of counts.
1528 * profile-count.h (compatible_p): Make public; add checking for
1529 global0 versus global types.
1530 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1532 2019-11-29 Richard Biener <rguenther@suse.de>
1534 PR tree-optimization/92715
1535 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1536 out for uniform vectors and source vectors with less elements
1537 than the destination.
1539 2019-11-29 Martin Liska <mliska@suse.cz>
1542 * ipa-devirt.c (types_same_for_odr): Check for existence
1543 of TYPE_NAMEs first.
1545 2019-11-29 Richard Biener <rguenther@suse.de>
1547 PR tree-optimization/92704
1548 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1549 in loops performing only loads.
1551 2019-11-29 Julian Brown <julian@codesourcery.com>
1553 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1554 BT_DFLOAT128_PTR) Remove.
1555 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1556 TI_DFLOAT128_PTR_TYPE): Remove.
1557 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1558 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1559 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1560 dfloat128_ptr_type_node): Remove macros.
1562 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1564 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1566 (*movdi_internal64): Ditto.
1568 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1571 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1572 indexed_or_indirect_operand to be memory_operand.
1573 (bswap<mode>2_store for HSI): Ditto.
1574 (bswapdi2_load): Ditto.
1575 (bswapdi2_store): Ditto.
1577 2019-11-28 Martin Liska <mliska@suse.cz>
1580 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1581 headers for translation.
1583 2019-11-28 Martin Liska <mliska@suse.cz>
1586 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1589 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1591 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1594 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1596 * profile-count.c (profile_count::combine_with_ipa_count): Return
1597 uninitialized count if called on ininitialized count.
1599 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1601 * ipa-inline-transform.c (inline_transform): Scale profile before
1604 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1606 * profile-count.h (profile_count::max): Work on profiles of different
1608 (profile_count::apply_scale): Be sure that ret is not local or global0
1609 type if num is global.
1611 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1613 * profile-count.h (profile_count::max): Work on profiles of different
1615 (profile_count::apply_scale): Be sure that ret is not local or global0
1616 type if num is global.
1618 2019-11-28 Martin Jambor <mjambor@suse.cz>
1621 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1623 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1624 Removed trailig whitespace.
1626 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1628 * profile-count.h (profile_count::combine_with_ipa_count_within):
1630 * profile-count.c (profile_count::combine_with_ipa_count_within):
1632 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1635 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1637 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1638 of counters are done same way.
1640 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1642 * ipa-cp.c (update_profiling_info): Fix scaling.
1644 2019-11-28 Richard Biener <rguenther@suse.de>
1646 PR tree-optimization/92645
1647 * tree-inline.c (remap_gimple_stmt): When the return value
1648 is not wanted, elide GIMPLE_RETURN.
1650 2019-11-28 Richard Biener <rguenther@suse.de>
1652 PR tree-optimization/92645
1653 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1654 conversions inside a mode class. Remove restriction on
1655 preserving the element size.
1656 (simplify_vector_constructor): Deal with the above and for
1657 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1658 and VEC_PACK_TRUNC_EXPR.
1660 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1662 Must use push insn to pass varargs arguments of DFmode because
1663 otherwise the middle-end generates wrong code.
1666 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1668 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1670 PR tree-optimization/92691
1671 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1672 in function comment.
1673 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1674 calls, return !handle_printf_call rather than always returning true.
1675 (check_and_optimize_stmt): Describe return value meaning in function
1676 comment. Formatting fix.
1678 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1680 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1681 combination of globa0 and global counters..
1683 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1686 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1687 by VECTOR_UNIT_NONE_P instead.
1689 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1691 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1692 Refine VF to VF_AVX512VL.
1694 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1696 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1697 (movdi_internal64): Reformat.
1699 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1702 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1703 builtin if we don't have an actual type.
1704 (builtin_function_type): If the builtin function uses a DFP type
1705 and decimal float has been disabled, then return NULL_TREE.
1707 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1709 PR rtl-optimization/92510
1710 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1711 of comparison into a comparison with different mode if both imode and
1712 omode are scalar integral modes.
1714 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1716 PR rtl-optimization/90007
1717 * recog.c (constrain_operands): Permit hard registers too for
1718 memory when LRA is used.
1720 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1722 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1723 between Coldfire and regular m68k.
1724 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1726 2019-11-27 Richard Biener <rguenther@suse.de>
1728 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1729 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1730 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1731 * optabs-tree.c (supportable_convert_operation): Do not call
1732 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1733 * optabs-tree.h (supportable_convert_operation): Adjust.
1734 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1735 * doc/tm.texi: Regenerate.
1736 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1737 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1738 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1739 unused decl parameter and adjust.
1740 (vect_create_vectorized_promotion_stmts): Likewise.
1741 (vectorizable_conversion): Adjust.
1743 2019-11-27 Richard Biener <rguenther@suse.de>
1745 PR tree-optimization/92690
1746 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1747 converting elements not originally converted.
1749 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1752 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1753 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1754 mpfr_rnd_t instead of mp_rnd_t.
1755 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1756 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1757 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1758 Use mpfr_exp_t instead of mp_exp_t.
1759 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1760 MPFR_RNDx instead of GMP_RNDx.
1761 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1762 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1763 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1764 of mp_rnd_t and remove MPFR_RNDx poisoning.
1765 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1767 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1769 PR tree-optimization/91790
1770 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1771 DR for vect_setup_realignment when first_stmt_info is different
1772 from first_stmt_info_for_drptr.
1774 2019-11-27 Richard Biener <rguenther@suse.de>
1776 PR tree-optimization/92645
1777 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1778 CTORs with just a subset of the original vectors.
1780 2019-11-27 Richard Biener <rguenther@suse.de>
1783 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1784 edges and instead record blocks in bitmap.
1785 (gimple_expand_calls_inline): Adjust.
1786 (fold_marked_statements): Delay EH cleanup until all folding is
1788 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1791 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1793 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1795 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1798 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1801 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1803 2019-11-26 Martin Sebor <msebor@redhat.com>
1805 PR tree-optimization/92683
1806 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1807 inadvertently removed in a previous change. Rename local variable
1810 2019-11-26 Richard Biener <rguenther@suse.de>
1813 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1816 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1818 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1820 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1822 PR tree-optimization/92644
1823 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1824 next to INTEGER_CST checks.
1826 2019-11-26 Richard Biener <rguenther@suse.de>
1828 PR tree-optimization/92645
1829 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1830 do not build the operation from scalars if the operand is.
1832 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1834 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1835 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1838 2019-11-25 Martin Liska <mliska@suse.cz>
1840 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1841 up used dump message.
1843 2019-11-25 Martin Liska <mliska@suse.cz>
1846 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1847 too strict checking assert.
1849 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1852 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1853 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1854 error_mark_node if corresponding global tree node is NULL.
1855 * tree.c (build_common_tree_nodes): Do not initialize
1856 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1857 decimal floating-point not supported.
1859 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1861 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1864 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1866 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1867 Replace code for non-CONST_INT constants with gcc_unreachable.
1868 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1870 (CMPMODE): New mode_iterator.
1871 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1873 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1875 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1877 (bit test insns patterns): Use nonimmediate_operand, not
1878 register_operand, for source operands that allow memory in
1880 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1881 Use register_operand, not nonimmediate_operand, for the
1883 (DBCC): New mode_iterator.
1884 (dbcc peepholes): Use it to reduce duplication.
1885 (trap): Use const_true_rtx, not const1_rtx.
1886 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1887 from m68k_subword_comparison_operand and changed to handle
1891 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1893 (m68k_init_cc): New declaration.
1894 (m68k_output_compare_di, m68k_output_compare_si)
1895 (m68k_output_compare_hi, m68k_output_compare_qi)
1896 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1897 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1898 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1899 m68k_output_branch_float, m68k_output_branch_float_rev):
1901 (valid_dbcc_comparison_p_2, flags_in_68881)
1902 (output_btst): Remove declaration.
1903 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1904 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1905 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1906 (flags_compare_op0, flags_compare_op1, flags_operand1,
1907 flags_operand2, flags_valid): New static variables.
1908 (m68k_find_flags_value, m68k_init_cc): New functions.
1909 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1910 remember_compare_flags): New static functions.
1911 (output_dbcc_and_branch): New argument CODE. Use it, and add
1912 PLUS and MINUS to the possible codes. All callers changed.
1913 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1914 and INSN arguments, add CODE arg. Return the comparison code
1915 to use. All callers changed. Use CODE instead of
1916 next_insn_tests_no_inequality, and replace cc_status management
1917 with changing the return code.
1918 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1919 RTX_COMPARE or RTX_COMM_COMPARE.
1920 (output_move_simode, output_move_qimode): Call
1921 handle_flags_for_move.
1922 (notice_update_cc): Delete function.
1923 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1924 m68k_output_compare_hi, m68k_output_compare_qi,
1925 m68k_output_compare_fp, m68k_output_branch_integer,
1926 m68k_output_branch_integer_rev, m68k_output_scc,
1927 m68k_output_branch_float, m68k_output_branch_float_rev,
1928 m68k_output_scc_float): New functions.
1929 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1930 once at the start, and set flags_valid and flags_operand1 if the
1932 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1933 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1935 (CC_STATUS_INIT): Define.
1936 * config/m68k/m68k.md (flags_valid): New define_attr.
1937 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1938 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1939 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1940 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1941 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1942 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1943 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1944 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1945 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1946 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1947 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1948 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1949 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1950 ctrapqi4, conditional_trap): Delete patterns.
1951 (cbranchdi4_insn): New pattern.
1952 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1953 test high part only. When testing EQ or NE, generate beq0_di
1954 and bne0_di patterns directly.
1955 (cstoredi4): When testing LT or GE, test high part only.
1956 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1958 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1959 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1960 cmp2_cf_predicate): New define_mode_attrs.
1961 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1962 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1963 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1965 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1966 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1967 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1969 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1970 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1972 (BTST): New define_mode_iterator.
1973 (btst_predicate, btst_constraint, btst_range): New
1975 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1977 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1978 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1979 patterns): Set attr "flags_valid".
1980 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1981 management. Set attr "flags_valid".
1982 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1983 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1984 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1985 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1986 manual CC_STATUS management.
1987 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1988 unnamed strict_lowpart subhi and subqi patterns): Set attr
1990 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1991 Remove code to operate on address regs and assert the case
1993 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1994 manual CC_STATUS_INIT.
1995 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1996 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1997 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1998 one_cmplqi2, unnamed strict_lowpart patterns
1999 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
2000 one_cmplhi and one_cmplqi): Set attr "flags_valid".
2001 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
2002 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
2004 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
2005 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
2006 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
2007 unnamed strict_low_part patterns for HI and
2008 QI versions): Set attr "flags_valid".
2009 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
2010 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
2011 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
2012 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
2013 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
2014 (various unnamed peepholes): Adjust compare/branch sequences
2015 for new cbranch patterns.
2016 (dbcc peepholes): Likewise, and output the comparison here
2018 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
2019 (fp_src_operand): Allow constant zero.
2020 (address_reg_operand): New predicate.
2022 * rtl.h (inequality_comparisons_p): Remove declaration.
2023 * recog.h (next_insn_tests_no_inequality): Likewise.
2024 * rtlanal.c (inequality_comparisons_p): Delete function.
2025 * recog.c (next_insn_tests_no_inequality): Likewise.
2027 2019-11-25 Richard Biener <rguenther@suse.de>
2029 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
2030 (vect_detect_hybrid_slp): Swap lane and instance iteration,
2031 properly re-building the visited hash-map for each lane.
2033 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
2035 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
2036 gcn_md_reorg): Remove unused variables.
2037 (gcn_emutls_var_init): Add missing (but unreachable) return
2039 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
2040 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
2041 an uninitialized variable.
2043 2019-11-25 Martin Jambor <mjambor@suse.cz>
2046 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
2047 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
2048 (cgraph_materialize_clone): Move removel from clone tree to the
2049 the new method and use it instead.
2050 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
2051 bodies of clones, also remove it from the clone tree.
2053 2019-11-25 Martin Jambor <mjambor@suse.cz>
2056 * ipa-sra.c (process_isra_node_results): Put the new node to the
2057 same comdat group as the original node.
2059 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
2061 Build double32 / long-double32 multilibs if needed.
2065 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
2066 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
2067 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
2068 tm_defines and pass to genmultilib.awk.
2069 * config/avr/genmultilib.awk: Use these variables to add double32
2070 and / or long-double32 multilib(s) as needed.
2071 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
2073 2019-11-25 Richard Biener <rguenther@suse.de>
2075 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
2076 loop body, defaulted to NULL.
2077 (single_likely_exit): Add exit vector argument
2078 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
2079 (number_of_iterations_exit): Likewise.
2080 (number_of_iterations_exit_assumptions): Likewise.
2081 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
2083 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
2084 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
2085 Compute exit vector around call to single_likely_exit.
2086 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
2087 loop body to loop_only_exit_p.
2088 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
2090 (number_of_iterations_exit_assumptions): Get loop body from caller
2092 (number_of_iterations_exit): Pass through new loop body arg.
2093 (infer_loop_bounds_from_undefined): Get loop body from caller.
2094 (estimate_numbers_of_iterations): Compute loop body once.
2096 2019-11-25 Richard Biener <rguenther@suse.de>
2098 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
2099 auto_bb_flag instead of an sbitmap for visited handling.
2101 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
2103 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
2105 (vector_fp_comparison_complex): Likewise.
2106 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
2108 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
2110 (vector_lt<mode> for VEC_F): Refactor with
2111 vector_fp_comparison_simple.
2112 (vector_le<mode> for VEC_F): Likewise.
2113 (vector_unge<mode> for VEC_F): Likewise.
2114 (vector_unle<mode> for VEC_F): Likewise.
2115 (vector_ne<mode> for VEC_F): Likewise.
2116 (vector_ungt<mode> for VEC_F): Likewise.
2117 (vector_unlt<mode> for VEC_F): Likewise.
2118 (vector_ltgt<mode> for VEC_F): Refactor with
2119 vector_fp_comparison_complex.
2120 (vector_ordered<mode> for VEC_F): Likewise.
2121 (vector_uneq<mode> for VEC_F): Likewise.
2122 (vector_unordered<mode> for VEC_F): Likewise.
2124 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
2126 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
2127 COMPARE, representing an overflow detection.
2129 * combine.c (combine_instructions): Record costs for jumps.
2131 * combine.c (can_combine_p): Allow autoinc in jumps.
2133 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
2135 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
2136 * doc/invoke.texi (max-inline-insns-single-O2,
2137 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
2138 early-inlining-insns-O2): Remove documentation.
2139 * ipa-fnsummary.c (analyze_function_body,
2140 compute_fn_summary): Use opt_for_fn when accessing parameters.
2141 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2142 inline_insns_auto, can_inline_edge_by_limits_p,
2143 want_early_inline_function_p, big_speedup_p,
2144 want_inline_small_function_p, want_inline_self_recursive_call_p,
2145 recursive_inlining, compute_max_insns, inline_small_functions):
2147 * opts.c (default_options): Add -O3 defaults for
2148 OPT__param_early_inlining_insns_,
2149 OPT__param_inline_heuristics_hint_percent_,
2150 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
2151 * params.opt (-param=early-inlining-insns-O2=,
2152 -param=inline-heuristics-hint-percent-O2=,
2153 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
2154 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
2155 -param=inline-min-speedup=, -param=inline-unit-growth=,
2156 -param=large-function-growth=, -param=large-stack-frame=,
2157 -param=large-stack-frame-growth=, -param=large-unit-insns=,
2158 -param=max-inline-insns-recursive=,
2159 -param=max-inline-insns-recursive-auto=,
2160 -param=max-inline-insns-single=,
2161 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
2162 -param=max-inline-recursive-depth=,
2163 -param=max-inline-recursive-depth-auto=,
2164 -param=min-inline-recursive-probability=,
2165 -param=partial-inlining-entry-probability=,
2166 -param=uninlined-function-insns=, -param=uninlined-function-time=,
2167 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
2170 2019-11-23 Jakub Jelinek <jakub@redhat.com>
2172 * ipa-fnsummary.c: Fix comment typos.
2173 * ipa-ref.h: Likewise.
2174 * ipa-predicate.h: Likewise.
2175 * ipa-split.c: Likewise.
2176 * ipa-inline-analysis.c: Likewise.
2177 * ipa-predicate.c: Likewise.
2178 * ipa-devirt.c: Likewise.
2179 * ipa-icf.h: Likewise.
2180 * profile-count.c: Likewise.
2181 * ipa-icf.c: Likewise.
2182 (sem_function::equals_wpa): Fix typos in dump messages.
2183 * ipa-icf-gimple.h: Fix comment typos.
2184 * ipa-inline-transform.c: Likewise.
2185 * ipa-polymorphic-call.c: Likewise.
2186 * ipa-fnsummary.h: Likewise.
2187 * ipa-inline.c: Likewise.
2188 (dump_inline_stats): Fix typo in debug dump message.
2189 * profile-count.h: Fix comment typos.
2192 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
2193 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
2194 register_operand, force x into register before storing it into dest.
2198 * doc/extend.texi (attribute access): Fix a typo.
2200 PR rtl-optimization/92610
2201 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
2202 cse_cfg_altered is set, even when tem is 0.
2203 (rest_of_handle_cse_after_global_opts): Likewise.
2205 2019-11-22 Jakub Jelinek <jakub@redhat.com>
2208 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
2209 tree_hash): Move to ...
2210 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
2211 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
2213 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2215 PR tree-optimization/92618
2216 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2217 containing the auto_vec and a tree.
2218 (undistribute_bitref_for_vector): Handle the case when element type
2219 of vec is not the same as type of the BIT_FIELD_REF. Formatting
2222 2019-11-22 Martin Sebor <msebor@redhat.com>
2225 * attribs.h (struct attr_access): New.
2226 * attribs.c (decl_attributes): Add an informational note.
2227 * builtins.c (check_access): Make extern. Consistently set no-warning
2228 after issuing a warning. Handle calls through function pointers. Set
2230 * builtins.h (check_access): Declare.
2231 * calls.c (rdwr_access_hash): New type.
2233 (init_attr_rdwr_indices): New function.
2234 (maybe_warn_rdwr_sizes): Same.
2235 (initialize_argument_information): Call init_attr_rdwr_indices.
2236 Call maybe_warn_rdwr_sizes.
2237 (get_size_range): Avoid null argument.
2238 * doc/extend.texi (attribute access): Document new attribute.
2240 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2242 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2243 (ACC_LDS_SIZE): Define.
2244 (OTHER_LDS_SIZE): Define.
2245 (LDS_SIZE): Redefine using above.
2246 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2248 2019-11-22 Martin Sebor <msebor@redhat.com>
2251 * builtins.c (check_nul_terminated_array): New function.
2252 (fold_builtin_0): Remove declaration.
2253 (fold_builtin_1): Same.
2254 (fold_builtin_2): Same.
2255 (fold_builtin_3): Same.
2256 (fold_builtin_strpbrk): Add argument.
2257 (fold_builtin_strspn): Same.
2258 (fold_builtin_strcspn): Same.
2259 (expand_builtin_strcat): Call it. Remove unused argument.
2260 (expand_builtin_stpncpy): Same.
2261 (expand_builtin_strncat): Same.
2262 (expand_builtin_strncpy): Same. Adjust indentation.
2263 (expand_builtin_strcmp): Same.
2264 (expand_builtin_strncmp): Same.
2265 (expand_builtin_fork_or_exec): Same.
2266 (expand_builtin): Handle more built-ins.
2267 (fold_builtin_2): Add argument.
2268 (fold_builtin_n): Make static. Add argument.
2269 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2270 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2271 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
2272 (fold_call_stmt): Pass new argument to fold_builtin_n.
2273 * builtins.h: Correct a comment.
2274 * gimple-fold.c (gimple_fold_builtin_strchr): Call
2275 check_nul_terminated_array.
2276 * tree-ssa-strlen.c (handle_builtin_strlen): Call
2277 check_nul_terminated_array.
2278 (handle_builtin_strchr): Same.
2279 (handle_builtin_string_cmp): Same.
2281 2019-11-22 Martin Sebor <msebor@redhat.com>
2283 PR tree-optimization/92501
2284 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2285 handle unterminated arrays. Rename local variables for clarity.
2287 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2289 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2290 granulated_sgprs according to architecture.
2292 2019-11-22 Jan Hubicka <jh@suse.cz>
2294 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2295 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2296 (memory_block_pool::reduce_free_list): ... this one.
2297 (memory_block_pool::trim): New static function.
2298 * memory-block.h (memory_block_pool::freelist_size): New constant
2299 (memory_block_pool::clear_free_list): Rename to ...
2300 (memory_block_pool::reduce_free_list): ... this one.
2301 (memory_block_pool::trim): Declare.
2303 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
2305 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2307 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2309 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2311 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
2313 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2314 (bic_cmp0_noout): New pattern.
2315 (bic_cmp0): Likewise.
2316 (neg_scc_insn): Remove pattern.
2317 (not_scc_insn): Likewise.
2319 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
2321 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2323 2019-11-21 Joseph Myers <joseph@codesourcery.com>
2325 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2326 pedwarn instead of warning_at for fallthrough not preceding a case
2329 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2331 PR tree-optimization/92608
2332 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2335 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2337 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2339 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2340 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2341 special for FP comparisons that need a cror instruction eventually.
2342 (rs6000_emit_fp_cror): New function.
2343 (rs6000_emit_sCOND): Expand all floating point comparisons to one
2344 instruction, for normal FP modes, with HONOR_NANS.
2345 (rs6000_emit_cbranch): Reformat.
2346 * config/rs6000/rs6000.md (fp_rev): New iterator.
2347 (fp_two): New iterator.
2348 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2349 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2350 *cbranch_2insn: New define_insn_and_split.
2352 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2354 PR tree-optimization/92526
2355 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2356 versioning for alignment if the accesses do not have a consistent
2357 mask, rather than asserting that the masks are consistent.
2359 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2361 PR tree-optimization/92595
2362 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2364 (vectorizable_store, vectorizable_load): Likewise.
2366 2019-11-21 Jan Hubicka <jh@suse.cz>
2368 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2369 (resolve_noninline_speculation, inline_small_functions): Avoid
2372 2019-11-21 Richard Biener <rguenther@suse.de>
2374 * lra.c (lra_insn_recog_data_pool): New.
2375 (free_insn_recog_data): Adjust.
2376 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2377 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2379 2019-11-21 Richard Biener <rguenther@suse.de>
2381 PR tree-optimization/92596
2382 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2384 2019-11-21 Jan Hubicka <jh@suse.cz>
2386 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2387 ready for some vectors to not be allocated.
2388 (evaluate_properties_for_edge): Document better; make
2389 known_vals and known_aggs caller allocated; avoid determining
2390 values of parameters which are not used.
2391 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2393 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2394 (do_estimate_edge_size): Likewise.
2395 (do_estimate_edge_hints): Likewise.
2396 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2397 values are not known.
2398 (ipa_release_agg_values): Add option to not release vector itself.
2399 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2401 2019-11-21 Richard Biener <rguenther@suse.de>
2403 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2404 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2405 (loop_iterator::loop_iterator): Adjust.
2406 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2407 (compute_dominance_frontiers): ... this. Hoist invariant
2408 get_immediate_dominator call.
2409 (compute_idf): Use a work-set instead of a work-list for more
2410 optimal iteration order and duplicate avoidance.
2411 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2412 the vector all the time, instead pre-allocate the vector only
2414 (delete_update_ssa): Simplify.
2415 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2417 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2419 PR tree-optimization/91355
2420 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2421 for early_bb scaled count with best_bb count comparison.
2423 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2425 * ipa-inline.c (edge_badness): Likewise.
2426 * lto-streamer.h (class lto_location_cache): Likewise.
2427 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2428 gratutious -> gratuitous.
2430 2019-11-21 Richard Biener <rguenther@suse.de>
2433 2019-09-17 Richard Biener <rguenther@suse.de>
2435 PR tree-optimization/91790
2436 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2437 use the correct DR for setting up realignment.
2439 2019-11-21 Richard Biener <rguenther@suse.de>
2441 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2442 (equiv_class_obstack): New.
2443 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2444 (perform_var_substitution): Initialize equiv_class_obstack.
2445 (free_var_substitution_info): Free equiv_class_obstack.
2447 2019-11-20 Jan Hubicka <jh@suse.cz>
2449 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2450 edge growth when callee function is very large.
2451 * ipa-inline.h (estimate_min_edge_growth): New.
2453 2019-11-20 Jan Hubicka <jh@suse.cz>
2455 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2456 negative time in calls summary; correct roundoff errors
2457 leading to negative times.
2458 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2460 (ipa_update_overall_fn_summary): Add RESET parameter.
2461 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2462 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2464 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2466 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2467 def types for two-operation SLP.
2469 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2472 * doc/sourcebuild.texi (vect_char_add): Document.
2474 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2476 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2477 * function.c (record_final_call): Record even calls that might
2478 have been in the cgraph.
2479 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2482 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2484 * configure.ac: Use https for gcc.gnu.org
2485 * configure: Regenerated.
2486 * doc/install.texi: Use https for gcc.gnu.org.
2487 * doc/sourcebuild.texi: Likewise.
2489 2019-11-20 Julian Brown <julian@codesourcery.com>
2491 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2493 2019-11-20 Jan Hubicka <jh@suse.cz>
2495 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2496 parameter and update call_size_time_table.
2497 (ipa_fn_summary::max_size_time_table_size): New constant.
2498 (estimate_calls_size_and_time_1): Break out from ...
2499 (estimate_calls_size_and_time): ... here; implement summary production.
2500 (summarize_calls_size_and_time): New function.
2501 (ipa_call_context::estimate_size_and_time): Bypass
2502 estimate_calls_size_and_time for leaf functions.
2503 (ipa_update_overall_fn_summary): Likewise.
2504 * ipa-fnsummary.h (call_size_time_table): New.
2505 (ipa_fn_summary::account_size_time): Update prototype.
2507 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2509 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2511 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2514 * common.opt (fcommon): Change init to 1.
2515 * doc/invoke.texi (-fcommon): Update documentation.
2517 2019-11-20 Jan Hubicka <jh@suse.cz>
2519 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2522 2019-11-20 Jan Hubicka <jh@suse.cz>
2524 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2525 Add allocator parameter.
2526 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2527 (fibonacci_heap<K,V>::m_allocator): New.
2528 (fibonacci_heap<K,V>::m_own_allocator): New.
2529 (fibonacci_heap<K,V>::insert): Use allocator.
2530 (fibonacci_heap<K,V>::extract_min): Likewise.
2531 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2533 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2535 * fibonacci_heap.c: Include alloc-pool
2536 (test_empty_heap): Initialize allocator.
2537 (test_union): Likewise.
2538 * bb-reorder.c: Include alloc-pool.h.
2539 * tracer.c: Inlclude alloc-pool.h.
2541 2019-11-20 Jan Hubicka <jh@suse.cz>
2543 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2544 Preallocate for 32 entries.
2545 (DFS::worklist): Likewise.
2546 (DFS::DFS): Do not initialize sccstack and worklist.
2547 (DFS::~DFS): Do not release sccstack.
2549 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2552 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2553 Handle UNORDERED if !HONOR_NANS.
2555 2019-11-20 Jan Hubicka <jh@suse.cz>
2557 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2558 (edge_badness): ... here.
2559 (inline_small_functions): Use monotonicity of badness calculation
2560 to avoid redundant updates.
2562 2019-11-20 Richard Biener <rguenther@suse.de>
2564 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2565 constructors we are actually analyzing.
2566 (vect_slp_check_for_constructors): Do not vectorize uniform
2567 constuctors, do not dump here.
2569 2019-11-20 Richard Biener <rguenther@suse.de>
2571 PR tree-optimization/92537
2572 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2573 vectorization validity check...
2574 (vect_slp_analyze_operations): ... here.
2576 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2578 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2579 (make_pass_arc_predicate_delay_insns): Likewise.
2580 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2581 method, remove clone.
2582 (class pass_arc_predicate_delay_insns): Likewise.
2583 (arc_init): Remove registering of ARC specific passes.
2584 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2585 * config/arc/arc-passes.def: New file.
2587 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2590 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2591 and has a mode that doesn't have corresponding integral type.
2594 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2595 clear opts->x_ix86_isa_flags{,2} here...
2596 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2597 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2600 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2602 (insert_clobbers_for_var): Fix a typo in function comment.
2604 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2605 Jakub Jelinek <jakub@redhat.com>
2608 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2609 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2612 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2614 Make 0-series device specs work with older versions of avr-gcc.
2617 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2618 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2619 <*link_pm_base_address>: Don't write spec.
2620 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2622 2019-11-20 Richard Biener <rguenther@suse.de>
2625 * builtins.c (compute_objsize): Deal with VLAs.
2627 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2629 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2631 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2633 (power9_sched_reorder2): Call new function.
2634 (rs6000_sched_reorder2): Likewise.
2636 2019-11-18 Jan Hubicka <jh@suse.cz>
2638 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2639 (estimate_calls_size_and_time): Update.
2641 2019-11-18 Jan Hubicka <jh@suse.cz>
2643 * ipa-inline.c (inlining_speedup): New function.
2644 (edge_badness): Use it.
2646 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2647 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2649 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2650 Mark as not having "likely" version.
2651 * config/mips/mips.md (insn_count): The simd_div instruction with
2652 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2653 (can_delay): Exclude simd_branch.
2654 (defile_delay *): Add simd_branch instructions.
2655 They have one regular delay slot.
2657 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2660 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2662 * cse.c (cse_insn): Delete no-op register moves too.
2663 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2664 Take a second comparison to control the value for NE.
2665 (mask_to_comparison): Handle unsigned comparisons.
2666 (simplify_logical_relational_operation): Likewise. Update call
2667 to comparison_to_mask. Handle AND if !HONOR_NANs.
2668 (simplify_binary_operation_1): Call the above for AND too.
2670 2019-11-19 Martin Liska <mliska@suse.cz>
2672 * toplev.c (general_init): Move the call...
2673 (toplev::main): ... here as we need init_options_struct
2676 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2679 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2682 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2684 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2685 (armv7-a): Likewise.
2686 (armv7ve): Likewise.
2688 2019-11-19 Richard Biener <rguenther@suse.de>
2690 PR tree-optimization/92581
2691 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2692 condition reduction chains gather all conditions involved
2693 for computing the index reduction vector.
2695 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2697 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2698 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2699 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2700 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2701 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2702 (aarch64_init_memtag_builtins): New.
2703 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2704 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2705 (aarch64_expand_builtin_memtag): New.
2706 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2707 (AARCH64_BUILTIN_SUBCODE): New macro.
2708 (aarch64_resolve_overloaded_memtag): New.
2709 (aarch64_resolve_overloaded_builtin_general): New. Call
2710 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2711 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2712 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2713 (aarch64_resolve_overloaded_builtin): Call
2714 aarch64_resolve_overloaded_builtin_general.
2715 * config/aarch64/aarch64-protos.h
2716 (aarch64_resolve_overloaded_builtin_general): New declaration.
2717 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2718 (TARGET_MEMTAG): Likewise.
2719 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2720 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2721 (irg, gmi, subp, addg, ldg, stg): New instructions.
2722 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2723 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2724 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2725 (__arm_mte_get_tag): Likewise.
2726 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2727 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2728 * config/arm/types.md (memtag): New.
2729 * doc/invoke.texi (-memtag): Update description.
2731 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2733 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2734 to define __GCC_ASM_FLAG_OUTPUTS__.
2735 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2736 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2737 depending on TARGET_THUMB1.
2738 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2740 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2743 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2746 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2747 operand is negative and one non-negative, compare the non-negative
2748 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2749 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2750 and s2 == 0, unless one of them is known to be negative. Remove
2751 tem2 variable, use tem where tem2 has been used before.
2753 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2755 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2757 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2759 PR tree-optimization/92557
2760 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2761 vmode rather than asserting it always is.
2763 2019-11-19 Richard Biener <rguenther@suse.de>
2765 PR tree-optimization/92554
2766 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2767 for the actual condition stmt and deal with sign-changes.
2769 2019-11-19 Richard Biener <rguenther@suse.de>
2771 PR tree-optimization/92555
2772 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2775 2019-11-19 Martin Liska <mliska@suse.cz>
2778 * config/riscv/riscv.c (riscv_address_insns): Initialize
2779 addr in order to remove boostrap -Wmaybe-uninitialized
2782 2019-11-18 Martin Sebor <msebor@redhat.com>
2784 PR tree-optimization/92493
2785 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2788 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2790 * cfgloop.c (get_loop_body_in_custom_order): New.
2791 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2792 * tree-loop-distribution.c (class loop_distribution): New.
2793 (bb_top_order_cmp): Remove.
2794 (bb_top_order_cmp_r): New.
2795 (create_rdg_vertices): Move into class loop_distribution.
2796 (stmts_from_loop): Same as above.
2797 (update_for_merge): Same as above.
2798 (partition_merge_into): Same as above.
2799 (get_data_dependence): Same as above.
2800 (data_dep_in_cycle_p): Same as above.
2801 (update_type_for_merge): Same as above.
2802 (build_rdg_partition_for-vertex): Same as above.
2803 (classify_builtin_ldst): Same as above.
2804 (classify_partition): Same as above.
2805 (share_memory_accesses): Same as above.
2806 (rdg_build_partitions): Same as above.
2807 (pg_add_dependence_edges): Same as above.
2808 (build_partition_graph): Same as above.
2809 (merge_dep_scc_partitions): Same as above.
2810 (break_alias_scc_partitions): Same as above.
2811 (finalize_partitions): Same as above.
2812 (distribute_loop): Same as above.
2813 (bb_top_order_init): New method
2814 (bb_top_order_destroy): New method.
2815 (get_bb_top_order_index_size): New method.
2816 (get_bb_top_order_index_index): New method.
2817 (get_bb_top_order_index_index): New method.
2818 (loop_distribution::execute): New method.
2819 (pass_loop_distribution::execute): Instantiate loop_distribution.
2821 2019-11-18 Jan Hubicka <jh@suse.cz>
2824 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2826 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2828 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2830 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2831 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2832 * doc/md.texi: Document them.
2833 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2835 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2836 * internal-fn.c (check_ptrs_direct): New macro.
2837 (expand_check_ptrs_optab_fn): Likewise.
2838 (direct_check_ptrs_optab_supported_p): Likewise.
2839 (internal_check_ptrs_fn_supported_p): New fuction.
2840 * tree-data-ref.c: Include internal-fn.h.
2841 (create_ifn_alias_checks): New function.
2842 (create_intersect_range_checks): Use it.
2843 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2844 (optab, cmp_op): Handle it.
2845 (raw_war, unspec): New int attributes.
2846 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2848 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2850 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2852 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2855 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2857 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2860 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2862 * cse.c (cse_insn): Delete no-op register moves too.
2863 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2864 Take a second comparison to control the value for NE.
2865 (mask_to_comparison): Handle unsigned comparisons.
2866 (simplify_logical_relational_operation): Likewise. Update call
2867 to comparison_to_mask. Handle AND if !HONOR_NANs.
2868 (simplify_binary_operation_1): Call the above for AND too.
2870 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2872 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2873 splitting the main code out into...
2874 (native_encode_vector_part): ...this new function.
2875 (native_decode_vector_tree): New function.
2876 (fold_view_convert_vector_encoding): Likewise.
2877 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2880 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2882 * tree-data-ref.c (create_intersect_range_checks_index): If the
2883 alias pair describes simple WAW and WAR dependencies, just check
2884 whether the first B access overlaps later A accesses.
2885 (create_waw_or_war_checks): New function that performs the same
2886 optimization on addresses.
2887 (create_intersect_range_checks): Call it.
2889 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2891 * lra-constraints.c (valid_address_p): Take the operand and a
2892 constraint as argument. If the operand is a MEM and the constraint
2893 is a memory constraint, check whether the eliminated form of the
2894 MEM already satisfies the constraint.
2895 (process_address_1): Update calls accordingly.
2897 2019-11-18 Tom Tromey <tromey@adacore.com>
2899 * doc/tm.texi: Rebuild.
2900 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2901 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2903 2019-11-18 Richard Biener <rguenther@suse.de>
2905 PR tree-optimization/92516
2906 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2907 argument, hoist bst_map creation/destruction to ...
2908 (vect_analyze_slp): ... here, forming a true graph with
2909 SLP instances being the entries.
2910 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2911 (vect_detect_hybrid_slp): Use one visited set for all
2913 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2914 to hash-sets of slp_tree.
2915 (vect_slp_analyze_operations): Likewise.
2916 (vect_bb_slp_scalar_cost): Remove wrapper.
2917 (vect_bb_vectorization_profitable_p): Use one visited set for
2919 (vect_schedule_slp_instance): Elide bst_map use.
2920 (vect_schedule_slp): Likewise.
2922 2019-11-18 Richard Biener <rguenther@suse.de>
2924 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2925 was vectorized with just external refs fail.
2927 2019-11-18 Martin Liska <mliska@suse.cz>
2930 * ipa-icf.c (sem_function::init): Unset m_checker
2931 at the end of the function.
2933 2019-11-18 Richard Biener <rguenther@suse.de>
2935 PR tree-optimization/92558
2936 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2937 reducting the width of a reduction vector def update new_phis.
2939 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2941 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2942 and s390*-*-linux-musl* targets.
2943 * configure: Regenerate.
2945 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2947 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2948 (MUSL_DYNAMIC_LINKER64): Define.
2950 2019-11-18 Martin Liska <mliska@suse.cz>
2952 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2953 message for an unknown counter.
2954 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2955 (dbg_cnt_process_opt): Remove unreachable code.
2957 2019-11-18 Martin Liska <mliska@suse.cz>
2960 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2961 Compare LHS types of NOP_EXPR.
2963 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2965 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2966 "initial_pass_name" argument -- by running "*clean_state" pass.
2967 Also free the "initial_pass_name" when done.
2969 2019-11-18 Richard Biener <rguenther@suse.de>
2971 PR rtl-optimization/92462
2972 * alias.c (find_base_term): Restrict the look through ANDs.
2973 (find_base_value): Likewise.
2975 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2977 Add support for AVR devices from the 0-series.
2980 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2981 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2982 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2983 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2984 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2985 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2986 for spec definitions.
2987 * doc/avr-mmcu.texi: Regenerate.
2989 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2992 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2993 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2994 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2995 (ix86_reassociation_width): Ditto.
2996 * config/i386/i386-options.c (ix86_option_override_internal):
2997 Replace TARGET_AVX128_OPTIAML with
2998 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2999 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
3000 (TARGET_AVX128_OPTIMAL): Deleted.
3001 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
3004 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3006 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
3007 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
3009 (cceq_rev_compare): Rename to...
3010 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
3012 (define_split for <bd>tf_<mode>): Add SImode first argument to
3013 gen_cceq_ior_compare.
3015 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3017 * common/config/powerpcspe: Delete.
3019 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3021 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
3022 output in UNSPEC_WRFFR.
3024 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3026 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
3027 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
3029 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3031 * tree-data-ref.c (create_intersect_range_checks_index)
3032 (create_intersect_range_checks): Print dump messages.
3034 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3036 * tree-data-ref.c (dump_alias_pair): New function.
3037 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
3039 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3041 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
3042 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
3043 merging data references with different steps.
3044 (create_intersect_range_checks_index): Take a
3045 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
3046 Bail out if DR_ALIAS_MIXED_STEPS is set.
3047 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
3048 instead of two dr_with_seg_lens. Update call to
3049 create_intersect_range_checks_index.
3050 (create_runtime_alias_checks): Update call accordingly.
3052 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3054 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
3055 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
3056 (dr_with_seg_len_pair_t::sequencing): New enum.
3057 (dr_with_seg_len_pair_t::flags): New member variable.
3058 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
3059 parameter and initialize the flags member variable.
3060 * tree-loop-distribution.c (compute_alias_check_pairs): Update
3062 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3063 Ensure the two data references in an alias pair are in statement
3064 order, if there is a defined order.
3065 * tree-data-ref.c (prune_runtime_alias_test_list): Use
3066 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
3067 swapped the references in a dr_with_seg_len_pair_t. OR together
3068 the flags when merging two dr_with_seg_len_pair_ts. After merging,
3069 try to restore the original dr_with_seg_len order, updating the
3070 flags if that fails.
3072 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3074 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
3075 swapping the dr_as based on init values until we've decided
3076 whether to merge them.
3078 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3080 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
3081 two accesses in each dr_with_seg_len_pair_t before trying to
3082 combine separate dr_with_seg_len_pair_ts.
3083 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
3085 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3087 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3089 * config/aarch64/aarch64-sve.md
3090 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3091 (scatter_store<SVE_24:mode><v_int_container>): ...this.
3092 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3093 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
3094 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3095 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
3096 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
3098 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3099 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3100 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3101 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3103 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3105 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
3106 (SVE_4HSI): New mode iterators.
3107 (ANY_EXTEND2): New code iterator.
3108 * config/aarch64/aarch64-sve.md
3109 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
3111 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
3112 ...this, handling extension to partial modes as well as full modes.
3113 Describe the extension as a predicated rather than unpredicated
3115 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3116 Likewise extend to...
3117 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
3118 ...this, making the same adjustments.
3119 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3120 Likewise extend to...
3121 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
3122 ...this, making the same adjustments.
3123 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3124 Likewise extend to...
3125 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
3126 ...this, making the same adjustments.
3127 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
3129 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
3130 extension predicate.
3131 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3132 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3133 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3134 Describe the extension as a predicated rather than unpredicated
3136 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3137 Likewise. Canonicalize to a constant extension predicate.
3138 * config/aarch64/aarch64-sve-builtins-base.cc
3139 (svld1_gather_extend_impl::expand): Add an extra predicate for
3141 (svldff1_gather_extend_impl::expand): Likewise.
3143 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3145 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
3147 * config/aarch64/aarch64-sve.md
3148 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3149 (gather_load<SVE_24:mode><v_int_container>): ...this.
3150 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3151 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
3152 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3153 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
3154 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
3156 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3157 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3158 Allow the nominal extension predicate to be different from the
3160 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3161 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3163 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3165 * config/aarch64/aarch64-sve.md
3166 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
3167 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
3169 (aarch64_sve_adjust_stmt_cost): Call it.
3171 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3173 * config/aarch64/aarch64-sve.md
3174 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
3175 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3176 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3178 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3179 ...this new pattern, handling extension to partial modes as well
3180 as full modes. Describe the extension as a predicated rather than
3181 unpredicated extension.
3182 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3183 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3184 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3186 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3187 ...this new pattern, handling extension to partial modes as well
3188 as full modes. Describe the extension as a predicated rather than
3189 unpredicated extension.
3190 * config/aarch64/aarch64-sve-builtins.cc
3191 (function_expander::use_contiguous_load_insn): Add an extra
3192 predicate for extending loads.
3193 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
3194 (aarch64_sve_adjust_stmt_cost): Likewise.
3195 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
3196 the cost of SVE vector stmts.
3198 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3200 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
3201 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
3202 * config/aarch64/aarch64-sve.md
3203 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
3204 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
3205 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
3206 comment. Avoid new narrower_mask ambiguity.
3207 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3208 (*cond_uxt<mode>_2): Update comment.
3209 (*cond_uxt<mode>_any): Likewise.
3211 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3213 * config/aarch64/aarch64-modes.def: Define partial SVE vector
3215 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3217 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3218 new vector float modes.
3219 (aarch64_sve_container_bits): New function.
3220 (aarch64_sve_pred_mode): Likewise.
3221 (aarch64_get_mask_mode): Use it.
3222 (aarch64_sve_element_int_mode): Handle structure modes and partial
3224 (aarch64_sve_container_int_mode): New function.
3225 (aarch64_vectorize_related_mode): Return SVE modes when given
3226 SVE modes. Handle partial modes, taking the preferred number
3227 of units from the size of the given mode.
3228 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3230 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3231 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3232 (aarch64_split_sve_subreg_move): Use the mode form of
3233 aarch64_sve_pred_mode.
3234 (aarch64_secondary_reload): Handle partial modes in the same way
3235 as full big-endian vectors.
3236 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3237 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3238 merging with the Advanced SIMD modes. If two modes have the
3239 same size, try the Advanced SIMD mode first.
3240 (aarch64_simd_valid_immediate): Use the container rather than
3241 the element mode for INDEX constants.
3242 (aarch64_simd_vector_alignment): Make the alignment of partial
3243 SVE vector modes the same as their minimum size.
3244 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3245 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3246 (mov<SVE_ALL:mode>): ...this.
3247 (movmisalign<SVE_FULL:mode>): Extend to...
3248 (movmisalign<SVE_ALL:mode>): ...this.
3249 (*aarch64_sve_mov<mode>_le): Rename to...
3250 (*aarch64_sve_mov<mode>_ldr_str): ...this.
3251 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3252 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
3253 partial modes regardless of endianness.
3254 (aarch64_sve_reload_be): Rename to...
3255 (aarch64_sve_reload_mem): ...this and enable for little-endian.
3256 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3257 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3258 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3259 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3260 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3261 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3262 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3263 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3264 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3265 (maskload<SVE_FULL:mode><vpred>): Extend to...
3266 (maskload<SVE_ALL:mode><vpred>): ...this.
3267 (maskstore<SVE_FULL:mode><vpred>): Extend to...
3268 (maskstore<SVE_ALL:mode><vpred>): ...this.
3269 (vec_duplicate<SVE_FULL:mode>): Extend to...
3270 (vec_duplicate<SVE_ALL:mode>): ...this.
3271 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3272 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3273 (sve_ld1r<SVE_FULL:mode>): Extend to...
3274 (sve_ld1r<SVE_ALL:mode>): ...this.
3275 (vec_series<SVE_FULL_I:mode>): Extend to...
3276 (vec_series<SVE_I:mode>): ...this.
3277 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3278 (*vec_series<SVE_I:mode>_plus): ...this.
3279 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3280 new VPRED ambiguity.
3281 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3282 (add<SVE_FULL_I:mode>3): Extend to...
3283 (add<SVE_I:mode>3): ...this.
3284 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3285 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3286 (VPRED, vpred): Likewise.
3287 (Vctype): New iterator.
3288 (vw): Remove SVE modes.
3290 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3292 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3293 (SVE_PARTIAL_I): ...this.
3294 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3296 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3298 * config/aarch64/iterators.md (SVE_ALL): Rename to...
3299 (SVE_FULL): ...this.
3300 (SVE_I): Rename to...
3301 (SVE_FULL_I): ...this.
3302 (SVE_F): Rename to...
3303 (SVE_FULL_F): ...this.
3304 (SVE_BHSI): Rename to...
3305 (SVE_FULL_BHSI): ...this.
3306 (SVE_HSD): Rename to...
3307 (SVE_FULL_HSD): ...this.
3308 (SVE_HSDI): Rename to...
3309 (SVE_FULL_HSDI): ...this.
3310 (SVE_HSF): Rename to...
3311 (SVE_FULL_HSF): ...this.
3312 (SVE_SD): Rename to...
3313 (SVE_FULL_SD): ...this.
3314 (SVE_SDI): Rename to...
3315 (SVE_FULL_SDI): ...this.
3316 (SVE_SDF): Rename to...
3317 (SVE_FULL_SDF): ...this.
3318 (SVE_S): Rename to...
3319 (SVE_FULL_S): ...this.
3320 (SVE_D): Rename to...
3321 (SVE_FULL_D): ...this.
3322 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3323 * config/aarch64/aarch64-sve2.md: Likewise.
3325 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3327 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3329 * doc/invoke.texi: Document it.
3330 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3331 By default, return VECT_COMPARE_COSTS for SVE.
3333 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3335 * target.h (VECT_COMPARE_COSTS): New constant.
3336 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3337 * doc/tm.texi: Regenerate.
3338 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3339 * targhooks.c (default_autovectorize_vector_modes): Likewise.
3340 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3342 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3343 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3344 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3345 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3346 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3347 (_loop_vec_info::vec_inside_cost): New member variables.
3348 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3349 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3350 (vect_analyze_loop): When autovectorize_vector_modes returns
3351 VECT_COMPARE_COSTS, try vectorizing the loop with each available
3352 vector mode and picking the one with the lowest cost.
3353 (vect_estimate_min_profitable_iters): Record the computed costs
3354 in the loop_vec_info.
3356 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3358 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3359 element type rather than an element mode.
3360 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3361 Use get_vectype_for_scalar_type to query the natural types
3362 for a given element type rather than basing everything on
3363 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3364 query to MAX_FIXED_MODE_SIZE.
3365 (duplicate_and_interleave): Update call accordingly.
3366 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3368 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3370 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3371 optional maximum nunits.
3372 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3374 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3375 (vect_get_mask_type_for_stmt): Likewise.
3376 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3377 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3378 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3379 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3380 to get an assumed vector type for data references.
3381 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3382 (vect_update_all_shared_vectypes): Likewise.
3383 (vect_build_slp_tree_1): Pass the group size to
3384 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3385 for BB vectorization.
3386 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3387 before building the vectof from scalars.
3388 (vect_analyze_slp_instance): Pass the group size to
3389 get_vectype_for_scalar_type.
3390 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3391 types for BB vectorization here; just handle the case in which
3392 we deferred the choice for booleans.
3393 (vect_get_constant_vectors): Pass the slp_tree to
3394 get_vectype_for_scalar_type.
3395 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3396 (vectorizable_call): Likewise.
3397 (vectorizable_simd_clone_call): Likewise.
3398 (vectorizable_conversion): Likewise.
3399 (vectorizable_shift): Likewise.
3400 (vectorizable_operation): Likewise.
3401 (vectorizable_comparison): Likewise.
3402 (vect_is_simple_cond): Take the slp_tree as argument and
3403 pass it to get_vectype_for_scalar_type.
3404 (vectorizable_condition): Update call accordingly.
3405 (get_vectype_for_scalar_type): Take a group_size argument.
3406 For BB vectorization, limit the the vector to that number
3407 of elements. Also define an overload that takes an slp_tree.
3408 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3409 pass it to get_vectype_for_scalar_type.
3410 (vect_get_vector_types_for_stmt): Add a group_size argument
3411 and pass it to get_vectype_for_scalar_type. Don't use the
3412 cached vector type for BB vectorization if a group size is given.
3413 Handle data references in that case.
3414 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3415 pass it to get_mask_type_for_scalar_type.
3417 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3419 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3421 (estimate_edge_time): Use it.
3422 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3423 ret_nonspec_time parameter.
3425 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3427 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3429 2019-11-15 Nick Clifton <nickc@redhat.com>
3430 Szabolcs Nagy <szabolcs.nagy@arm.com>
3433 * config/microblaze/microblaze.c (print_operand): Print value as long.
3435 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3437 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3440 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3442 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3443 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3445 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3447 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3448 (gcn_conditional_register_usage): Use constants in place of hard-coded
3450 (gcn_hsa_declare_function_name): Set lower bound for number of
3451 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3452 MAX_NORMAL_VGPR_COUNT.
3454 2019-11-15 Martin Jambor <mjambor@suse.cz>
3456 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3459 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3461 * config/gcn/gcn.c (default_requested_args): New.
3462 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3463 set with default_requested_args.
3464 (gcn_conditional_register_usage): Limit register usage of non-kernel
3465 functions. Reassign fixed registers if a non-standard set of args is
3467 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3469 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3472 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3473 aggregate jump function when inlined-to caller has no edge summary.
3475 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3477 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3479 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3481 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3483 (print_operand_address): Use v1 for zero vector offset.
3485 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3487 PR tree-optimization/92515
3488 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3489 types when converting a vector/scalar shift into a vector/vector one,
3490 using tree_nop_conversion_p instead of useless_type_conversion_p.
3491 Move the conversion code to the transform block.
3493 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3495 * read-rtl-function.c
3496 (function_reader::add_fixup_source_location): Take additional
3497 parameter of a column.
3498 (function_reader::maybe_read_location): Optionally parse column
3499 information and pass to add_fixup_source_location.
3501 2019-11-15 Richard Biener <rguenther@suse.de>
3503 PR tree-optimization/92512
3504 * tree-vect-loop.c (check_reduction_path): Fix operand index
3505 computability check. Add check for second use in COND_EXPRs.
3507 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3510 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3511 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3513 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3515 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3516 register class for VCC_LO and VCC_HI.
3517 (gcn_spill_class): Use SGPR_REGS to spill registers in
3518 VCC_CONDITIONAL_REG.
3520 2019-11-15 Richard Biener <rguenther@suse.de>
3522 PR tree-optimization/92324
3523 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3524 singedness of SLP reduction epilouge operations. Also reduce
3525 the vector width for SLP reductions before doing elementwise
3526 operations if possible.
3528 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3530 * passes.c (skip_pass): Set epilogue_completed if skipping the
3531 pro_and_epilogue pass.
3533 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3535 * passes.c (should_skip_pass_p): Always run "dfinish".
3537 2019-11-15 Richard Biener <rguenther@suse.de>
3539 * ipa-inline.c (inline_small_functions): Move assignment
3540 to next before call destroying edge.
3542 2019-11-15 Richard Biener <rguenther@suse.de>
3544 PR tree-optimization/92039
3545 PR tree-optimization/91975
3546 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3547 previous change, treat invariants consistently as non-constant.
3548 (tree_estimate_loop_size): Ternary ops with just the first op
3549 constant are not optimized away.
3551 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3553 * gimplify.c (gimplify_call_expr): Don't call
3554 omp_resolve_declare_variant after gimplification.
3555 * omp-general.c (omp_context_selector_matches): For isa that might
3556 match in some other function, defer if in declare simd function.
3557 (omp_context_compute_score): Don't look for " score" in construct
3558 trait set. Set *score to -1 if it can't ever match.
3559 (omp_resolve_declare_variant): If any variants need to be deferred,
3560 don't punt immediately, but compute scores of all variants and if
3561 ther eis a score winner that doesn't need to be deferred, return that.
3563 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3565 * ipa-comdats.c: Fix comments typo.
3566 * ipa-profile.c: Fix comments typo.
3567 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3568 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3569 (gimple_gen_ic_func_profiler): Likewise.
3570 (pass_ipa_tree_profile::gate): Fix comments typo.
3572 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3574 * ipa-inline.c (inline_small_functions): Update iterator of next.
3576 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3578 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3579 register is suitable for the mode.
3581 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3583 * range-op.h (range_operator::fold_range): Return a bool.
3584 * range-op.cc (range_operator::wi_fold): Assert supported type.
3585 (range_operator::fold_range): Assert supported type and return true.
3586 (operator_equal::fold_range): Return true.
3587 (operator_not_equal::fold_range): Same.
3588 (operator_lt::fold_range): Same.
3589 (operator_le::fold_range): Same.
3590 (operator_gt::fold_range): Same.
3591 (operator_ge::fold_range): Same.
3592 (operator_plus::op1_range): Adjust call to fold_range.
3593 (operator_plus::op2_range): Same.
3594 (operator_minus::op1_range): Same.
3595 (operator_minus::op2_range): Same.
3596 (operator_exact_divide::op1_range): Same.
3597 (operator_lshift::fold_range): Return true and adjust fold_range call.
3598 (operator_rshift::fold_range): Same.
3599 (operator_cast::fold_range): Return true.
3600 (operator_logical_and::fold_range): Same.
3601 (operator_logical_or::fold_range): Same.
3602 (operator_logical_not::fold_range): Same.
3603 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3604 (operator_bitwise_not::op1_range): Same.
3605 (operator_cst::fold_range): Return true.
3606 (operator_identity::fold_range): Return true.
3607 (operator_negate::fold_range): Return true and adjust fold_range call.
3608 (operator_addr_expr::fold_range): Return true.
3609 (operator_addr_expr::op1_range): Adjust call to fold_range.
3611 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3612 (range_fold_unary_symbolics_p): Same.
3614 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3616 PR tree-optimization/92506
3617 * range-op.cc (range_operator::fold_range): Start with range undefined.
3618 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3619 overflow is varying.
3621 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3623 * range-op.cc (*operator*::*range): Remove calls to
3624 range_intersect, range_invert, and range_union in favor of calling
3625 the in-place API methods.
3626 (range_tests): Same.
3627 * range.cc (range_intersect): Remove.
3628 (range_union): Remove.
3629 (range_invert): Remove.
3630 * range.h (range_intersect): Remove.
3631 (range_union): Remove.
3632 (range_intersect): Remove.
3634 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3636 PR rtl-optimization/92430
3637 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3638 (pass_jump_after_combine::execute): Perform jump threading
3641 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3642 Doug Rupp <rupp@adacore.com>
3643 Olivier Hainque <hainque@adacore.com>
3645 * config.gcc: Collapse the arm-vxworks entries into
3646 a single arm-wrs-vxworks7* one, bpabi based. Update
3647 the default cpu from arm8 to armv7-a
3648 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3649 we always use ARM_UNWIND_INFO.
3650 (DWARF2_UNWIND_INFO): Remove redefinition.
3651 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3652 (VXWORKS_PERSONALITY): Define, to "llvm".
3653 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3655 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3657 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3658 _VX_CPU instead of CPU and handle arm_arch8.
3660 2019-11-14 Doug Rupp <rupp@adacore.com>
3661 Olivier Hainque <hainque@adacore.com>
3662 Jerome Lambourg <lambourg@adacore.com>
3664 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3665 * config/aarch64/aarch64-vxworks.h: New file.
3666 * config/aarch64/t-aarch64-vxworks: New file.
3668 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3669 Olivier Hainque <hainque@adacore.com>
3671 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3672 definition, pointless with a VxWorks specific version
3674 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3675 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3676 New local macros, controlling the addition of vxworks specific
3677 crtstuff objects depending on the EH mechanism and kind of
3678 module being linked.
3679 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3681 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3682 Jerome Lambourg <lambourg@adacore.com>
3683 Olivier Hainque <hainque@adacore.com>
3685 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3686 common macro definitions, conveying VXWORKS7 or 64bit general
3687 variations. Add a block to set gcc_cv_initfini_array
3688 unconditionally to "yes" for VxWorks7.
3689 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3690 by default. Update some comments.
3691 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3692 default, to be added the end of VXWORKS_LIBS_RTP.
3693 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3694 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3696 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3697 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3698 to account for the now available TLS abilities.
3699 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3700 (VXWORKS_HAVE_TLS): Likewise.
3702 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3704 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3705 (vect_slp_convert_to_external): Likewise.
3706 (vect_slp_analyze_node_operations): If analysis fails, try building
3707 the node from scalars instead.
3709 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3711 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3712 between vector types.
3713 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3714 non-widening and non-narrowing path to handle standard
3715 conversion codes, if the target supports them.
3716 * expr.c (convert_move): Try using the extend and truncate optabs
3718 * optabs-tree.c (supportable_convert_operation): Likewise.
3719 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3720 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3721 (trunc<mode><Vnarrowq>2): New patterns.
3723 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3725 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3726 require vectype and nunits_vectype to have the same size;
3727 instead assert that nunits_vectype has at least as many
3728 elements as vectype. Don't compute a separate nunits_vectype
3729 if the scalar type is obviously the same as vectype's.
3730 Tweak dump messages.
3732 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3734 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3736 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3737 (TARGET_VECTORIZE_RELATED_MODE): Define.
3739 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3741 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3742 (vec_info::used_vector_mode): New member variable.
3743 (vect_chooses_same_modes_p): Declare.
3744 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3745 chosen vector mode in vec_info::used_vector_mode.
3746 (vect_chooses_same_modes_p): New function.
3747 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3748 the same vector statements multiple times.
3749 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3751 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3753 * machmode.h (opt_machine_mode::operator==): New function.
3754 (opt_machine_mode::operator!=): Likewise.
3755 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3756 (get_related_vectype_for_scalar_type): Delete.
3757 (get_vectype_for_scalar_type_and_size): Declare.
3758 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3759 whether analysis passed or failed, and with what vector modes.
3760 Use related_vector_mode to check whether trying a particular
3761 vector mode would be redundant with the autodetected mode,
3762 and print a dump message if we decide to skip it.
3763 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3764 (vect_create_epilog_for_reduction): Use
3765 get_related_vectype_for_scalar_type instead of
3766 get_vectype_for_scalar_type_and_size.
3767 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3769 (get_related_vectype_for_scalar_type): ...this new function.
3770 Take a starting/"prevailing" vector mode rather than a vector size.
3771 Take an optional nunits argument, with the same meaning as for
3772 related_vector_mode. Use related_vector_mode when not
3773 auto-detecting a mode, falling back to mode_for_vector if no
3775 (get_vectype_for_scalar_type): Update accordingly.
3776 (get_same_sized_vectype): Likewise.
3777 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3779 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3781 * tree-vect-stmts.c (vectorizable_call): Require the types
3782 to have the same size.
3784 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3786 * tree-vect-stmts.c (vectorizable_call): If an operand is
3787 constant or external, use get_vectype_for_scalar_type
3788 rather than get_same_sized_vectype to get its vector type.
3789 (vectorizable_conversion, vectorizable_shift): Likewise.
3790 (vectorizable_operation): Likewise.
3792 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3794 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3795 (vec_info::vector_mode): ...this new field.
3796 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3797 (vect_analyze_loop, vect_transform_loop): Likewise.
3798 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3799 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3800 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3801 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3802 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3804 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3806 * target.h (vector_sizes, auto_vector_sizes): Delete.
3807 (vector_modes, auto_vector_modes): New typedefs.
3808 * target.def (autovectorize_vector_sizes): Replace with...
3809 (autovectorize_vector_modes): ...this new hook.
3810 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3812 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3813 * doc/tm.texi: Regenerate.
3814 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3815 (default_autovectorize_vector_modes): New function.
3816 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3817 (default_autovectorize_vector_modes): New function.
3818 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3819 of autovectorize_vector_sizes. Use the number of units in the mode
3820 to calculate the maximum VF.
3821 * omp-low.c (omp_clause_aligned_alignment): Use
3822 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3823 Use a loop based on related_mode to iterate through all supported
3824 vector modes for a given scalar mode.
3825 * optabs-query.c (can_vec_mask_load_store_p): Use
3826 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3827 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3828 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3829 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3831 (aarch64_autovectorize_vector_modes): ...this new function.
3832 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3833 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3834 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3835 (arc_autovectorize_vector_modes): ...this new function.
3836 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3837 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3838 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3839 (arm_autovectorize_vector_modes): ...this new function.
3840 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3841 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3842 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3843 (ix86_autovectorize_vector_modes): ...this new function.
3844 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3845 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3846 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3847 (mips_autovectorize_vector_modes): ...this new function.
3848 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3849 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3851 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3853 * tree-vect-stmts.c (vectorizable_shift): Check the number
3854 of vector elements as well as the type mode when deciding
3855 whether an op1_vectype is compatible. Reuse the result of
3856 this check when generating vector statements.
3858 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3860 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3861 targetm.vectorize.preferred_simd_mode returns an integer mode,
3862 use mode_for_vector to decide what the vector type's mode
3863 should actually be. Use build_vector_type_for_mode instead
3864 of build_vector_type.
3866 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3868 * target.def (get_mask_mode): Take a vector mode itself as argument,
3869 instead of properties about the vector mode.
3870 * doc/tm.texi: Regenerate.
3871 * targhooks.h (default_get_mask_mode): Update to reflect new
3872 get_mode_mask interface.
3873 * targhooks.c (default_get_mask_mode): Likewise. Use
3874 related_int_vector_mode.
3875 * optabs-query.c (can_vec_mask_load_store_p): Update call
3877 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3878 first that the original mode really is a vector.
3879 * tree.c (build_truth_vector_type_for): Likewise.
3880 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3881 get_mode_mask interface.
3882 (aarch64_expand_sve_vcond): Update call accordingly.
3883 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3884 get_mode_mask interface.
3885 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3887 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3889 * tree.h (build_truth_vector_type): Delete.
3890 (build_same_sized_truth_vector_type): Likewise.
3891 * tree.c (build_truth_vector_type): Rename to...
3892 (build_truth_vector_type_for): ...this. Make static and take
3893 a vector type as argument.
3894 (truth_type_for): Update accordingly.
3895 (build_same_sized_truth_vector_type): Delete.
3896 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3897 instead of build_same_sized_truth_vector_type.
3898 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3899 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3900 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3901 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3902 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3903 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3904 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3905 (vectorizable_store, vectorizable_condition): Likewise.
3906 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3907 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3908 build_truth_vector_type.
3909 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3910 Use truth_type_for instead of build_same_sized_truth_vector_type.
3911 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3913 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3915 * tree.h (build_truth_vector_type_for_mode): Declare.
3916 * tree.c (build_truth_vector_type_for_mode): New function,
3918 (build_truth_vector_type): ...here.
3919 (build_opaque_vector_type): Fix head comment.
3920 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3922 (vect_halve_mask_nunits): Replace vec_info parameter with the
3923 mode of the new vector.
3924 (vect_double_mask_nunits): Likewise.
3925 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3926 (vect_double_mask_nunits): Likewise.
3927 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3928 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3929 to vect_halve_mask_nunits, getting the required mode from the unpack
3931 (vect_set_loop_condition_masked): Update call accordingly.
3932 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3933 parameter and update call to vect_double_mask_nunits.
3934 (vectorizable_conversion): Update call accordingly.
3935 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3936 (vectorizable_call): Update call accordingly.
3937 (supportable_widening_operation): Update call to
3938 vect_halve_mask_nunits.
3939 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3940 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3942 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3944 * machmode.h (mode_for_int_vector): Delete.
3945 (related_int_vector_mode): Declare.
3946 * stor-layout.c (mode_for_int_vector): Delete.
3947 (related_int_vector_mode): New function.
3948 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3949 instead of mode_for_int_vector.
3950 (expand_vec_perm_const): Likewise.
3951 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3952 (aarch64_evpc_sve_tbl): Likewise.
3953 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3954 (s390_expand_vcond): Likewise.
3956 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3958 * target.def (related_mode): New hook.
3959 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3960 * doc/tm.texi: Regenerate.
3961 * targhooks.h (default_vectorize_related_mode): Declare.
3962 * targhooks.c (default_vectorize_related_mode): New function.
3963 * machmode.h (related_vector_mode): Declare.
3964 * stor-layout.c (related_vector_mode): New function.
3965 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3966 * optabs-query.c (qimode_for_vec_perm): Likewise.
3967 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3968 (vectorizable_store, vectorizable_load): Likewise
3970 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3972 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3973 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3974 * config/arm/arm-c.c (arm_cpu_builtins): Define
3975 __GCC_ASM_FLAG_OUTPUTS__.
3976 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3977 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3978 Define __GCC_ASM_FLAG_OUTPUTS__.
3979 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3980 * doc/extend.texi (FlagOutputOperands): Add documentation
3981 for ARM and AArch64.
3983 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3984 * config/arm/predicates.md (nz_comparison_operator): Rename
3985 from noov_comparison_operator.
3986 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3987 (arm_gen_dicompare_reg): Likewise.
3988 (maybe_get_arm_condition_code): Likewise.
3989 (thumb1_final_prescan_insn): Likewise.
3990 (arm_emit_coreregs_64bit_shift): Likewise.
3991 * config/arm/arm.md (addsi3_compare0): Likewise.
3992 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3993 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3994 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3995 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3996 (*mulsi3addsi_compare0_scratch): Likewise.
3997 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3998 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3999 (*zeroextractsi_compare0_scratch): Likewise.
4000 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
4001 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
4002 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4003 (andsi_not_shiftsi_si_scc): Likewise.
4004 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
4005 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
4006 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
4007 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
4008 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
4009 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
4010 (return_addr_mask, *check_arch2): Likewise.
4011 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
4012 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
4013 (compare_scc splitters): Likewise.
4014 (movcond_addsi): Likewise.
4015 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
4016 (*thumb2_addsi3_compare0_scratch): Likewise.
4017 (*thumb2_mulsi_short_compare0): Likewise.
4018 (*thumb2_mulsi_short_compare0_scratch): Likewise.
4019 (compare peephole2s): Likewise.
4020 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
4021 nz_comparison_operator names.
4022 (cbranchsi4_insn): Likewise.
4024 * config/arm/constraints.md (c): Use cc_register predicate.
4026 * config/aarch64/constraints.md (c): New constraint.
4028 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
4030 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
4031 ipa_merge_fn_summary_after_inlining): Micro optimize.
4033 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
4035 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
4037 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
4039 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
4040 (ipa_value_range_from_jfunc): New function.
4041 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
4042 known_value_ranges parameter; use it to evalulate conditions.
4043 (evaluate_properties_for_edge): Compute known value ranges.
4044 (ipa_fn_summary_t::duplicate): Update use of
4045 evaluate_conditions_for_known_args.
4046 (estimate_ipcp_clone_size_and_time): Likewise.
4047 (ipa_merge_fn_summary_after_inlining): Likewise.
4048 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
4050 2019-11-14 Martin Liska <mliska@suse.cz>
4052 * ipa-inline.c (want_inline_small_function_p): Use
4053 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
4054 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
4056 2019-11-14 Martin Liska <mliska@suse.cz>
4058 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
4059 of a callee to get value of the param.
4060 * ipa-inline.c (inline_insns_auto): Use proper
4062 * opts.c (maybe_default_option): Do not overwrite param
4063 value if optimization level does not match. Note that
4064 params usually have default value set via Init() keyword.
4065 * params.opt: Remove -param=max-inline-insns-auto-O2.
4066 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
4067 * doc/invoke.texi: Remove documentation of
4068 max-inline-insns-auto-O2.
4070 2019-11-14 Martin Liska <mliska@suse.cz>
4072 * tree-switch-conversion.c (switch_conversion::switch_conversion):
4073 Do not initialize m_other_count.
4074 (switch_conversion::collect): Do not count m_default_count and
4075 m_other_count as we use frequencies for edges.
4076 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
4078 2019-11-14 Martin Liska <mliska@suse.cz>
4081 * doc/invoke.texi: Document -fallocation-dce.
4083 2019-11-14 Martin Liska <mliska@suse.cz>
4086 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
4087 PTA_ICELAKE_CLIENT which is later interited by
4088 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
4090 2019-11-14 Martin Liska <mliska@suse.cz>
4092 * ipa-icf.c (sem_item_optimizer::execute): Save
4094 (sem_item_optimizer::parse_nonsingleton_classes):
4095 Return number of loaded symbols.
4096 (sem_item_optimizer::merge_classes): Print
4097 statistics about totally needed symbols.
4098 * ipa-icf.h (parse_nonsingleton_classes): Change return
4100 (merge_classes): Add one argument.
4102 2019-11-14 Martin Liska <mliska@suse.cz>
4104 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
4105 func_checker::hash_operand by handling of FIELD_DECLs.
4107 2019-11-14 Martin Liska <mliska@suse.cz>
4109 * ipa-icf-gimple.h (func_checker::func_checker): Add
4110 default constructor.
4111 * ipa-icf.c (sem_function::init): Make operand_equal_p
4112 and hash_operand public.
4113 (sem_item::add_expr): Remove.
4114 (sem_item::add_type): Remove.
4115 (sem_function::hash_stmt): Use m_checker for hashing
4116 of GIMPLE statements.
4117 (sem_function::parse): Init with checker.
4118 (sem_variable::parse): Pass NULL as checker.
4119 (sem_item_optimizer::parse_funcs_and_vars):
4120 Pass checker to ::parse function.
4121 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
4122 (sem_variable::parse): New function.
4123 (sem_variable::get_hash): Only return computed hash value.
4124 (sem_variable::init): Initialize hash of a variable.
4125 * ipa-icf.h: Remove add_expr, add_type and add func_checker
4126 to couple of functions as a new argument.
4128 2019-11-14 Martin Liska <mliska@suse.cz>
4130 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
4132 (func_checker::compare_gimple_assign): Likewise.
4134 2019-11-14 Jakub Jelinek <jakub@redhat.com>
4136 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
4137 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
4138 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
4140 * omp-general.c (omp_context_name_list_prop): New function.
4141 (omp_context_selector_matches): Use it. Return 0 if it returns
4143 (omp_context_selector_props_compare): Allow equivalency of an
4144 identifier and a string literal containing no embedded zeros.
4146 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
4148 * range-op.cc (RANGE3): Remove.
4149 (range_tests): Remove all selftest that check for multi-ranges.
4150 Put tests in namespace selftest.
4151 * selftest.h: Move range_tests into namespace selftest.
4152 * value-range.h (class value_range): Unfriend range_tests.
4154 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
4156 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
4157 normalize_symbolics and normalize_addresses working in place.
4158 (range_fold_unary_symbolics_p): Same.
4159 (range_fold_unary_symbolics_p): Same.
4160 * value-range.cc (num_pairs): Same.
4161 (lower_bound): Same.
4162 (upper_bound): Same.
4164 (normalize_addresses): Same.
4165 (normalize_symbolics): Same.
4166 * value-range.h (normalize_symbolics): Same.
4167 (normalize_addresses): Same.
4169 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
4172 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
4173 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
4174 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
4175 (ipa_agg_jump_function): Remove member function equal_to.
4176 (ipa_agg_jump_function_p): Remove typedef.
4177 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
4178 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
4179 information for aggregate jump function.
4180 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
4181 record last definition statement.
4182 (load_from_unmodified_param_or_agg): New function.
4183 (ipa_known_agg_contents_list): Add new field type and value, remove
4185 (build_agg_jump_func_from_list): Rename parameter const_count to
4186 value_count, build aggregate jump function from ipa_load_agg_data.
4187 (analyze_agg_content_value): New function.
4188 (extract_mem_content): Analyze memory store assignment to prepare
4189 information for aggregate jump function generation.
4190 (determine_known_aggregate_parts): Add new parameter fbi, remove
4191 parameter aa_walk_budeget_p.
4192 (update_jump_functions_after_inlining): Update aggregate jump function.
4193 (ipa_find_agg_cst_for_param): Change type of parameter agg.
4194 (try_make_edge_direct_simple_call): Add new parameter new_root.
4195 (try_make_edge_direct_virtual_call): Add new parameter new_root and
4197 (update_indirect_edges_after_inlining): Pass new argument to
4198 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
4199 (ipa_write_jump_function): Write aggregate jump function to file.
4200 (ipa_read_jump_function): Read aggregate jump function from file.
4201 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
4202 * ipa-cp.c (ipa_get_jf_arith_result): New function.
4203 (ipa_agg_value_from_node): Likewise.
4204 (ipa_agg_value_set_from_jfunc): Likewise.
4205 (propagate_vals_across_arith_jfunc): Likewise.
4206 (propagate_aggregate_lattice): Likewise.
4207 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
4208 (propagate_vals_across_pass_through): Call
4209 propagate_vals_across_arith_jfunc.
4210 (get_clone_agg_value): Move forward.
4211 (propagate_aggs_across_jump_function): Handle value propagation for
4212 aggregate jump function.
4213 (agg_jmp_p_vec_for_t_vec): Remove.
4214 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4215 with vec<ipa_agg_value>.
4216 (copy_plats_to_inter, intersect_with_plats): Likewise.
4217 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4218 (intersect_aggregate_with_edge): Likewise.
4219 (find_aggregate_values_for_callers_subset): Likewise.
4220 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4221 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4222 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4223 (gather_context_independent_values): Likewise.
4224 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4225 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4226 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4227 (evaluate_properties_for_edge): Likewise.
4228 (estimate_edge_devirt_benefit): Likewise.
4229 (estimate_edge_size_and_time): Likewise.
4230 (estimate_calls_size_and_time): Likewise.
4231 (ipa_call_context::ipa_call_context): Likewise.
4232 (estimate_ipcp_clone_size_and_time): Likewise.
4233 * ipa-fnsummary.h (ipa_call_context): Replace
4234 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4235 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4236 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4237 (do_estimate_edge_size): Likewise.
4238 (do_estimate_edge_hints): Likewise.
4240 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4242 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4245 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4247 * ipa-profile.c (check_argument_count): Check properly that e_info
4248 is non-NULL; do not check descriptors.
4250 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4252 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4253 check for ipa profiles.
4255 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4258 * ipa-prop.c (update_indirect_edges_after_inlining):
4259 Mark parameter as used.
4260 * ipa-inline.c (recursive_inlining): Reset node cache
4262 (inline_small_functions): Remove checking ifdef.
4263 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4266 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4269 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4271 (ipa_profile): Fix reversed test.
4273 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4275 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4276 (propagate_constants_topo): Fix typo.
4278 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4280 * Makefile.in (OBJS): Add value-range.o.
4281 (GTFILES): Add value-range.h.
4282 * gengtype.c (open_base_files): Add value-range.h to list of
4284 * tree-vrp.c: Move the following value_range related functions:
4285 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4286 constant_p, set_undefined, set_varying, may_contain_p,
4287 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4288 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4289 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4290 value_inside_range, ranges_from_anti_range, union_ranges,
4291 intersect_ranges, intersect_helper, union_helper, union_,
4292 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4293 upper_bound, contains_p, invert, intersect...
4294 * value-range.cc: ...to here.
4295 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4296 associated inline methods from here...
4297 * value-range.h: ...to here.
4299 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4301 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4302 instead of asserting its value.
4304 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4306 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4307 constructors and set methods so value_range_kind is the last
4308 argument and defaults to VR_RANGE.
4309 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4310 * ipa-cp.c (propagate_vr_across_jump_function): Same.
4311 * ipa-prop.c (ipa_get_value_range): Same.
4312 (ipa_compute_jump_functions_for_edge): Same.
4313 * range-op.cc (value_range_from_overflowed_bounds): Same.
4314 (operator_cast::op1_range): Same.
4315 (range_tests): Same.
4316 * range.cc (range_nonzero): Same.
4317 * tree-ssanames.c (get_range_info): Same.
4318 * tree-vrp.c (value_range_equiv::set): Same.
4319 (value_range::value_range): Same.
4320 (value_range_equiv::value_range_equiv): Same.
4321 (value_range_equiv::update): Same.
4322 (value_range_equiv::deep_copy): Same.
4323 (value_range_equiv::move): Same.
4324 (value_range_equiv::set_undefined): Same.
4325 (value_range::set): Same.
4326 (value_range::set_nonzero): Same.
4327 (ranges_from_anti_range): Same.
4328 (extract_range_from_plus_minus_expr): Same.
4329 (value_range::intersect_helper): Same.
4330 (value_range_equiv::intersect): Same.
4331 (value_range::union_helper): Same.
4332 (value_range_equiv::union_): Same.
4333 (value_range::normalize_symbolics): Same.
4334 (value_range::invert): Same.
4335 (determine_value_range_1): Same.
4336 * tree-vrp.h (class value_range): Same.
4337 (class value_range_equiv): Same.
4338 * vr-values.c (set_value_range_to_nonnegative): Same.
4339 (set_value_range_to_truthvalue): Same.
4340 (vr_values::update_value_range): Same.
4341 (vr_values::extract_range_for_var_from_comparison_expr): Same.
4342 (vr_values::extract_range_from_binary_expr): Same.
4343 (vr_values::extract_range_from_comparison): Same.
4344 (vr_values::extract_range_basic): Same.
4345 (vr_values::adjust_range_with_scev): Same.
4346 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4347 (vr_values::extract_range_from_phi_node): Same.
4349 2019-11-13 Ulrich Drepper <drepper@redhat.com>
4351 * tree-dump.c (dequeue_and_dump): Print first tree operand
4352 for VIEW_CONVERT_EXPR.
4354 2019-11-13 Joseph Myers <joseph@codesourcery.com>
4356 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4357 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4358 * real.c (get_max_float): Add norm_max argument.
4359 * real.h (get_max_float): Update prototype.
4360 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4363 2019-11-13 Martin Liska <mliska@suse.cz>
4365 * dbgcnt.c (test_sorted_dbg_counters): New.
4366 (dbgcnt_c_tests): Likewise.
4367 * selftest-run-tests.c (selftest::run_tests): Likewise.
4368 * selftest.h (dbgcnt_c_tests): Likewise.
4370 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4371 Martin Jambor <mjambor@suse.cz>
4374 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4375 (identify_dead_nodes): Likewise.
4377 2019-11-13 Martin Liska <mliska@suse.cz>
4379 * ipa-icf.c (sem_function::equals_private): Do not overuse
4380 push/pop_cfun functions.
4382 2019-11-13 Martin Liska <mliska@suse.cz>
4384 * common.opt: Document change of -fdbg-cnt option.
4385 * dbgcnt.c (DEBUG_COUNTER): Remove.
4386 (dbg_cnt_is_enabled): Remove.
4387 (dbg_cnt): Work with new intervals.
4388 (dbg_cnt_set_limit_by_index): Set to new
4390 (dbg_cnt_set_limit_by_name): Likewise.
4391 (dbg_cnt_process_single_pair): Process new format.
4392 (dbg_cnt_process_opt): Likewise.
4393 (dbg_cnt_list_all_counters): Likewise.
4394 * doc/invoke.texi: Document change of -fdbg-cnt option.
4397 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4399 * ipa-inline.c (ipa_inline): Check that function is defined before
4402 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4403 Julian Brown <julian@codesourcery.com>
4405 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4406 flag_worker_partitioning is not set.
4407 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4408 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4410 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4412 * config/gcn/gcn-run.c (heap_region): New global variable.
4413 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4414 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4415 (get_kernarg_region): Move contents to ....
4416 (get_memory_region): .... here.
4417 (get_heap_region): New function.
4418 (init_device): Initialize the heap_region.
4419 (device_malloc): Add region parameter.
4420 (struct kernargs): Move heap ....
4421 (heap): ... to global scope.
4422 (main): Allocate heap separate to kernargs.
4424 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4426 * ipa-prop.c (ipa_print_node_jump_functions,
4427 ipa_print_node_params): Print info about missing summaries.
4429 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4431 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4432 the cost of generating loop masks.
4434 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4436 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4438 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4439 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4440 (vect_transform_loop): Likewise.
4441 (vect_analyze_loop_costing): Don't take the cost of versioning
4442 into account for the static profitability threshold if it turns
4443 out that no versioning is needed.
4445 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4447 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4448 and target_option_default_node to get -fprofile-generate ctors working
4451 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4453 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4454 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4455 (vectorizable_assignment): Don't add a cost for nop conversions.
4456 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4458 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4460 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4462 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4463 number of ncopies as an additional argument.
4464 (vectorizable_conversion): Update call accordingly. Use "modifier"
4465 to check whether a conversion is between vectors with the same
4468 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4470 * config/aarch64/aarch64-sve-builtins-functions.h
4471 (unary_count::expand): Use aarch64_sve_int_mode instead of
4472 mode_for_int_vector.
4474 2019-11-13 Martin Liska <mliska@suse.cz>
4476 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4478 2019-11-13 Martin Liska <mliska@suse.cz>
4480 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4481 Remove call to finalize_options_struct.
4483 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4486 * config/avr/t-avr (avr-mcus): Do not depend on
4487 $(srcdir)/config/avr/t-multilib.
4489 2019-11-13 Richard Biener <rguenther@suse.de>
4491 PR tree-optimization/92473
4492 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4493 direct optab reduction in the correct type.
4495 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4497 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4498 hexadecimal literal.
4500 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4502 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4503 UNORDERED if !HONOR_NANS (DFmode).
4504 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4505 if !HONOR_NANS (<MODE>mode).
4507 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4509 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4510 (ipcp_verify_propagated_values): Likewise.
4511 (propagate_constants_across_call): Likewise.
4512 (propagate_constants_topo): Likewise.
4513 (ipcp_propagate_stage): Likewise.
4515 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4518 * ipa-profile.c (check_argument_count): Break out from ...;
4519 watch for missing summaries.
4520 (ipa_profile): Here.
4522 2019-11-12 Martin Sebor <msebor@redhat.com>
4524 PR tree-optimization/92412
4525 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4528 2019-11-12 Martin Sebor <msebor@redhat.com>
4531 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4532 (directive::argno): New member.
4533 (format_result::aliases, format_result::alias_count): New data members.
4534 (format_result::append_alias): New member function.
4535 (fmtresult::dst_offset): New data member.
4536 (pass_sprintf_length::call_info::dst_origin): New data member.
4537 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4538 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4539 (get_origin_and_offset): Same.
4540 (format_string): Call it.
4541 (format_directive): Call append_alias and set directive argument
4543 (maybe_warn_overlap): New function.
4544 (pass_sprintf_length::compute_format_length): Call it.
4545 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4546 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4548 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4550 PR rtl-optimization/92430
4551 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4552 dominance info at the beginning.
4554 2019-11-12 Richard Biener <rguenther@suse.de>
4556 PR tree-optimization/92460
4557 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4558 expression before gimplifying.
4560 2019-11-12 Richard Biener <rguenther@suse.de>
4562 PR tree-optimization/92461
4563 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4564 stmt after propagation.
4566 2019-11-12 Martin Liska <mliska@suse.cz>
4568 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4569 Use SET_OPTION_IF_UNSET.
4570 (ix86_option_override_internal): Likewise.
4571 * opts.c (default_options_optimization): Likewise.
4572 (finish_options): Likewise.
4573 (enable_fdo_optimizations): Likewise.
4574 (common_handle_option): Likewise.
4576 2019-11-12 Martin Liska <mliska@suse.cz>
4578 * common/common-target.def: Remove option_validate_param and
4579 option_default_params.
4580 * common/common-targhooks.c (default_option_validate_param):
4582 * common/common-targhooks.h (default_option_validate_param):
4584 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4585 Remove usage of this.
4586 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4587 (aarch64_option_validate_param): Likewise.
4588 (aarch64_option_default_params): Likewise
4589 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4590 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4591 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4592 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4593 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4594 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4595 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4596 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4597 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4598 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4599 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4601 * doc/tm.texi: Remove option_default_params and option_validate_param.
4602 * doc/tm.texi.in: Likewise.
4604 2019-11-12 Martin Liska <mliska@suse.cz>
4606 * common/common-target.def:
4607 Do not mention set_default_param_value
4608 and set_param_value.
4609 * doc/tm.texi: Likewise.
4611 2019-11-12 Martin Liska <mliska@suse.cz>
4613 * common.opt: Remove param_values.
4614 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4615 Remove finalize_options_struct.
4616 * gcc.c (driver::decode_argv): Do not call global_init_params
4618 (driver::finalize): Do not call params_c_finalize
4619 and finalize_options_struct.
4620 * opt-suggestions.c (option_proposer::get_completions): Remove
4621 special casing of params.
4622 (option_proposer::find_param_completions): Remove.
4623 (test_completion_partial_match): Update expected output.
4624 * opt-suggestions.h: Remove find_param_completions.
4625 * opts-common.c (add_misspelling_candidates): Add
4626 --param with a space.
4627 * opts.c (handle_param): Remove.
4628 (init_options_struct):. Remove init_options_struct and
4630 (finalize_options_struct): Remove.
4631 (common_handle_option): Use SET_OPTION_IF_UNSET.
4632 * opts.h (finalize_options_struct): Remove.
4633 * toplev.c (general_init): Do not call global_init_params.
4634 (toplev::finalize): Do not call params_c_finalize and
4635 finalize_options_struct.
4637 2019-11-12 Martin Liska <mliska@suse.cz>
4639 * Makefile.in: Remove PARAMS_H and params.list
4641 * params-enum.h: Remove.
4642 * params-list.h: Remove.
4643 * params-options.h: Remove.
4645 * params.def: Remove.
4647 * asan.c: Do not include params.h.
4648 * auto-profile.c: Likewise.
4649 * bb-reorder.c: Likewise.
4650 * builtins.c: Likewise.
4651 * cfgcleanup.c: Likewise.
4652 * cfgexpand.c: Likewise.
4653 * cfgloopanal.c: Likewise.
4654 * cgraph.c: Likewise.
4655 * combine.c: Likewise.
4656 * common/config/aarch64/aarch64-common.c: Likewise.
4657 * common/config/gcn/gcn-common.c: Likewise.
4658 * common/config/ia64/ia64-common.c: Likewise.
4659 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4660 * common/config/rs6000/rs6000-common.c: Likewise.
4661 * common/config/sh/sh-common.c: Likewise.
4662 * config/aarch64/aarch64.c: Likewise.
4663 * config/alpha/alpha.c: Likewise.
4664 * config/arm/arm.c: Likewise.
4665 * config/avr/avr.c: Likewise.
4666 * config/csky/csky.c: Likewise.
4667 * config/i386/i386-builtins.c: Likewise.
4668 * config/i386/i386-expand.c: Likewise.
4669 * config/i386/i386-features.c: Likewise.
4670 * config/i386/i386-options.c: Likewise.
4671 * config/i386/i386.c: Likewise.
4672 * config/ia64/ia64.c: Likewise.
4673 * config/rs6000/rs6000-logue.c: Likewise.
4674 * config/rs6000/rs6000.c: Likewise.
4675 * config/s390/s390.c: Likewise.
4676 * config/sparc/sparc.c: Likewise.
4677 * config/visium/visium.c: Likewise.
4678 * coverage.c: Likewise.
4679 * cprop.c: Likewise.
4681 * cselib.c: Likewise.
4683 * emit-rtl.c: Likewise.
4684 * explow.c: Likewise.
4685 * final.c: Likewise.
4686 * fold-const.c: Likewise.
4689 * ggc-common.c: Likewise.
4690 * ggc-page.c: Likewise.
4691 * gimple-loop-interchange.cc: Likewise.
4692 * gimple-loop-jam.c: Likewise.
4693 * gimple-loop-versioning.cc: Likewise.
4694 * gimple-ssa-split-paths.c: Likewise.
4695 * gimple-ssa-sprintf.c: Likewise.
4696 * gimple-ssa-store-merging.c: Likewise.
4697 * gimple-ssa-strength-reduction.c: Likewise.
4698 * gimple-ssa-warn-alloca.c: Likewise.
4699 * gimple-ssa-warn-restrict.c: Likewise.
4700 * graphite-isl-ast-to-gimple.c: Likewise.
4701 * graphite-optimize-isl.c: Likewise.
4702 * graphite-scop-detection.c: Likewise.
4703 * graphite-sese-to-poly.c: Likewise.
4704 * graphite.c: Likewise.
4705 * haifa-sched.c: Likewise.
4706 * hsa-gen.c: Likewise.
4707 * ifcvt.c: Likewise.
4708 * ipa-cp.c: Likewise.
4709 * ipa-fnsummary.c: Likewise.
4710 * ipa-inline-analysis.c: Likewise.
4711 * ipa-inline.c: Likewise.
4712 * ipa-polymorphic-call.c: Likewise.
4713 * ipa-profile.c: Likewise.
4714 * ipa-prop.c: Likewise.
4715 * ipa-split.c: Likewise.
4716 * ipa-sra.c: Likewise.
4717 * ira-build.c: Likewise.
4718 * ira-conflicts.c: Likewise.
4719 * loop-doloop.c: Likewise.
4720 * loop-invariant.c: Likewise.
4721 * loop-unroll.c: Likewise.
4722 * lra-assigns.c: Likewise.
4723 * lra-constraints.c: Likewise.
4724 * modulo-sched.c: Likewise.
4725 * opt-suggestions.c: Likewise.
4727 * postreload-gcse.c: Likewise.
4728 * predict.c: Likewise.
4729 * reload.c: Likewise.
4730 * reorg.c: Likewise.
4731 * resource.c: Likewise.
4732 * sanopt.c: Likewise.
4733 * sched-deps.c: Likewise.
4734 * sched-ebb.c: Likewise.
4735 * sched-rgn.c: Likewise.
4736 * sel-sched-ir.c: Likewise.
4737 * sel-sched.c: Likewise.
4738 * shrink-wrap.c: Likewise.
4740 * targhooks.c: Likewise.
4741 * toplev.c: Likewise.
4742 * tracer.c: Likewise.
4743 * trans-mem.c: Likewise.
4744 * tree-chrec.c: Likewise.
4745 * tree-data-ref.c: Likewise.
4746 * tree-if-conv.c: Likewise.
4747 * tree-inline.c: Likewise.
4748 * tree-loop-distribution.c: Likewise.
4749 * tree-parloops.c: Likewise.
4750 * tree-predcom.c: Likewise.
4751 * tree-profile.c: Likewise.
4752 * tree-scalar-evolution.c: Likewise.
4753 * tree-sra.c: Likewise.
4754 * tree-ssa-ccp.c: Likewise.
4755 * tree-ssa-dom.c: Likewise.
4756 * tree-ssa-dse.c: Likewise.
4757 * tree-ssa-ifcombine.c: Likewise.
4758 * tree-ssa-loop-ch.c: Likewise.
4759 * tree-ssa-loop-im.c: Likewise.
4760 * tree-ssa-loop-ivcanon.c: Likewise.
4761 * tree-ssa-loop-ivopts.c: Likewise.
4762 * tree-ssa-loop-manip.c: Likewise.
4763 * tree-ssa-loop-niter.c: Likewise.
4764 * tree-ssa-loop-prefetch.c: Likewise.
4765 * tree-ssa-loop-unswitch.c: Likewise.
4766 * tree-ssa-math-opts.c: Likewise.
4767 * tree-ssa-phiopt.c: Likewise.
4768 * tree-ssa-pre.c: Likewise.
4769 * tree-ssa-reassoc.c: Likewise.
4770 * tree-ssa-sccvn.c: Likewise.
4771 * tree-ssa-scopedtables.c: Likewise.
4772 * tree-ssa-sink.c: Likewise.
4773 * tree-ssa-strlen.c: Likewise.
4774 * tree-ssa-structalias.c: Likewise.
4775 * tree-ssa-tail-merge.c: Likewise.
4776 * tree-ssa-threadbackward.c: Likewise.
4777 * tree-ssa-threadedge.c: Likewise.
4778 * tree-ssa-uninit.c: Likewise.
4779 * tree-switch-conversion.c: Likewise.
4780 * tree-vect-data-refs.c: Likewise.
4781 * tree-vect-loop.c: Likewise.
4782 * tree-vect-slp.c: Likewise.
4783 * tree-vrp.c: Likewise.
4785 * value-prof.c: Likewise.
4786 * var-tracking.c: Likewise.
4788 2019-11-12 Martin Liska <mliska@suse.cz>
4790 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4791 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4793 (asan_sanitize_allocas_p): Likewise.
4794 (asan_emit_stack_protection): Likewise.
4795 (asan_protect_global): Likewise.
4796 (instrument_derefs): Likewise.
4797 (instrument_builtin_call): Likewise.
4798 (asan_expand_mark_ifn): Likewise.
4799 * auto-profile.c (auto_profile): Likewise.
4800 * bb-reorder.c (copy_bb_p): Likewise.
4801 (duplicate_computed_gotos): Likewise.
4802 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4803 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4804 (try_crossjump_bb): Likewise.
4805 * cfgexpand.c (defer_stack_allocation): Likewise.
4806 (stack_protect_classify_type): Likewise.
4807 (pass_expand::execute): Likewise.
4808 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4809 (estimate_reg_pressure_cost): Likewise.
4810 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4811 * combine.c (combine_instructions): Likewise.
4812 (record_value_for_reg): Likewise.
4813 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4814 (aarch64_option_default_params): Likewise.
4815 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4816 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4817 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4818 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4819 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4820 (aarch64_allocate_and_probe_stack_space): Likewise.
4821 (aarch64_expand_epilogue): Likewise.
4822 (aarch64_override_options_internal): Likewise.
4823 * config/alpha/alpha.c (alpha_option_override): Likewise.
4824 * config/arm/arm.c (arm_option_override): Likewise.
4825 (arm_valid_target_attribute_p): Likewise.
4826 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4827 * config/i386/i386.c (get_probe_interval): Likewise.
4828 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4829 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4830 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4831 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4832 (get_stack_clash_protection_guard_size): Likewise.
4833 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4834 * config/s390/s390.c (allocate_stack_space): Likewise.
4835 (s390_emit_prologue): Likewise.
4836 (s390_option_override_internal): Likewise.
4837 * config/sparc/sparc.c (sparc_option_override): Likewise.
4838 * config/visium/visium.c (visium_option_override): Likewise.
4839 * coverage.c (get_coverage_counts): Likewise.
4840 (coverage_compute_profile_id): Likewise.
4841 (coverage_begin_function): Likewise.
4842 (coverage_end_function): Likewise.
4843 * cse.c (cse_find_path): Likewise.
4844 (cse_extended_basic_block): Likewise.
4845 (cse_main): Likewise.
4846 * cselib.c (cselib_invalidate_mem): Likewise.
4847 * dse.c (dse_step1): Likewise.
4848 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4849 (get_max_insn_count): Likewise.
4850 (make_debug_insn_raw): Likewise.
4851 (init_emit): Likewise.
4852 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4853 * final.c (compute_alignments): Likewise.
4854 * fold-const.c (fold_range_test): Likewise.
4855 (fold_truth_andor): Likewise.
4856 (tree_single_nonnegative_warnv_p): Likewise.
4857 (integer_valued_real_single_p): Likewise.
4858 * gcse.c (want_to_gcse_p): Likewise.
4859 (prune_insertions_deletions): Likewise.
4860 (hoist_code): Likewise.
4861 (gcse_or_cprop_is_too_expensive): Likewise.
4862 * ggc-common.c: Likewise.
4863 * ggc-page.c (ggc_collect): Likewise.
4864 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4865 (MAX_DATAREFS): Likewise.
4866 (OUTER_STRIDE_RATIO): Likewise.
4867 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4868 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4869 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4870 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4871 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4872 (imm_store_chain_info::output_merged_store): Likewise.
4873 (pass_store_merging::process_store): Likewise.
4874 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4875 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4876 (scop_to_isl_ast): Likewise.
4877 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4878 (optimize_isl): Likewise.
4879 * graphite-scop-detection.c (build_scops): Likewise.
4880 * haifa-sched.c (set_modulo_params): Likewise.
4881 (rank_for_schedule): Likewise.
4882 (model_add_to_worklist): Likewise.
4883 (model_promote_insn): Likewise.
4884 (model_choose_insn): Likewise.
4885 (queue_to_ready): Likewise.
4886 (autopref_multipass_dfa_lookahead_guard): Likewise.
4887 (schedule_block): Likewise.
4888 (sched_init): Likewise.
4889 * hsa-gen.c (init_prologue): Likewise.
4890 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4891 (cond_move_process_if_block): Likewise.
4892 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4893 (merge_agg_lats_step): Likewise.
4894 (devirtualization_time_bonus): Likewise.
4895 (hint_time_bonus): Likewise.
4896 (incorporate_penalties): Likewise.
4897 (good_cloning_opportunity_p): Likewise.
4898 (ipcp_propagate_stage): Likewise.
4899 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4900 (set_switch_stmt_execution_predicate): Likewise.
4901 (analyze_function_body): Likewise.
4902 (compute_fn_summary): Likewise.
4903 * ipa-inline-analysis.c (estimate_growth): Likewise.
4904 * ipa-inline.c (caller_growth_limits): Likewise.
4905 (inline_insns_single): Likewise.
4906 (inline_insns_auto): Likewise.
4907 (can_inline_edge_by_limits_p): Likewise.
4908 (want_early_inline_function_p): Likewise.
4909 (big_speedup_p): Likewise.
4910 (want_inline_small_function_p): Likewise.
4911 (want_inline_self_recursive_call_p): Likewise.
4912 (edge_badness): Likewise.
4913 (recursive_inlining): Likewise.
4914 (compute_max_insns): Likewise.
4915 (early_inliner): Likewise.
4916 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4917 * ipa-profile.c (ipa_profile): Likewise.
4918 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4919 (ipa_analyze_node): Likewise.
4920 (ipcp_transform_function): Likewise.
4921 * ipa-split.c (consider_split): Likewise.
4922 * ipa-sra.c (allocate_access): Likewise.
4923 (process_scan_results): Likewise.
4924 (ipa_sra_summarize_function): Likewise.
4925 (pull_accesses_from_callee): Likewise.
4926 * ira-build.c (loop_compare_func): Likewise.
4927 (mark_loops_for_removal): Likewise.
4928 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4929 * loop-doloop.c (doloop_optimize): Likewise.
4930 * loop-invariant.c (gain_for_invariant): Likewise.
4931 (move_loop_invariants): Likewise.
4932 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4933 (decide_unroll_runtime_iterations): Likewise.
4934 (decide_unroll_stupid): Likewise.
4935 (expand_var_during_unrolling): Likewise.
4936 * lra-assigns.c (spill_for): Likewise.
4937 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4938 * modulo-sched.c (sms_schedule): Likewise.
4939 (DFA_HISTORY): Likewise.
4940 * opts.c (default_options_optimization): Likewise.
4941 (finish_options): Likewise.
4942 (common_handle_option): Likewise.
4943 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4945 * predict.c (get_hot_bb_threshold): Likewise.
4946 (maybe_hot_count_p): Likewise.
4947 (probably_never_executed): Likewise.
4948 (predictable_edge_p): Likewise.
4949 (predict_loops): Likewise.
4950 (expr_expected_value_1): Likewise.
4951 (tree_predict_by_opcode): Likewise.
4952 (handle_missing_profiles): Likewise.
4953 * reload.c (find_equiv_reg): Likewise.
4954 * reorg.c (redundant_insn): Likewise.
4955 * resource.c (mark_target_live_regs): Likewise.
4956 (incr_ticks_for_insn): Likewise.
4957 * sanopt.c (pass_sanopt::execute): Likewise.
4958 * sched-deps.c (sched_analyze_1): Likewise.
4959 (sched_analyze_2): Likewise.
4960 (sched_analyze_insn): Likewise.
4961 (deps_analyze_insn): Likewise.
4962 * sched-ebb.c (schedule_ebbs): Likewise.
4963 * sched-rgn.c (find_single_block_region): Likewise.
4964 (too_large): Likewise.
4965 (haifa_find_rgns): Likewise.
4966 (extend_rgns): Likewise.
4967 (new_ready): Likewise.
4968 (schedule_region): Likewise.
4969 (sched_rgn_init): Likewise.
4970 * sel-sched-ir.c (make_region_from_loop): Likewise.
4971 * sel-sched-ir.h (MAX_WS): Likewise.
4972 * sel-sched.c (process_pipelined_exprs): Likewise.
4973 (sel_setup_region_sched_flags): Likewise.
4974 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4975 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4976 * toplev.c (print_version): Likewise.
4977 (process_options): Likewise.
4978 * tracer.c (tail_duplicate): Likewise.
4979 * trans-mem.c (tm_log_add): Likewise.
4980 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4981 * tree-data-ref.c (split_constant_offset): Likewise.
4982 (compute_all_dependences): Likewise.
4983 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4984 * tree-inline.c (remap_gimple_stmt): Likewise.
4985 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4986 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4987 (create_parallel_loop): Likewise.
4988 * tree-predcom.c (determine_unroll_factor): Likewise.
4989 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4990 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4991 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4992 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4993 (dse_optimize_redundant_stores): Likewise.
4994 (dse_classify_store): Likewise.
4995 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4996 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4997 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4998 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4999 (try_peel_loop): Likewise.
5000 (tree_unroll_loops_completely): Likewise.
5001 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5002 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
5003 (MAX_CONSIDERED_GROUPS): Likewise.
5004 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
5005 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
5006 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
5007 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
5008 (L1_CACHE_SIZE_BYTES): Likewise.
5009 (L2_CACHE_SIZE_BYTES): Likewise.
5010 (should_issue_prefetch_p): Likewise.
5011 (schedule_prefetches): Likewise.
5012 (determine_unroll_factor): Likewise.
5013 (volume_of_references): Likewise.
5014 (add_subscript_strides): Likewise.
5015 (self_reuse_distance): Likewise.
5016 (mem_ref_count_reasonable_p): Likewise.
5017 (insn_to_prefetch_ratio_too_small_p): Likewise.
5018 (loop_prefetch_arrays): Likewise.
5019 (tree_ssa_prefetch_arrays): Likewise.
5020 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
5021 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5022 (convert_mult_to_fma): Likewise.
5023 (math_opts_dom_walker::after_dom_children): Likewise.
5024 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5025 (hoist_adjacent_loads): Likewise.
5026 (gate_hoist_loads): Likewise.
5027 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5028 (compute_partial_antic_aux): Likewise.
5029 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
5030 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
5031 (vn_reference_lookup): Likewise.
5032 (do_rpo_vn): Likewise.
5033 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
5034 * tree-ssa-sink.c (select_best_block): Likewise.
5035 * tree-ssa-strlen.c (new_stridx): Likewise.
5036 (new_addr_stridx): Likewise.
5037 (get_range_strlen_dynamic): Likewise.
5038 (class ssa_name_limit_t): Likewise.
5039 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
5040 (create_variable_info_for_1): Likewise.
5041 (init_alias_vars): Likewise.
5042 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
5043 (tail_merge_optimize): Likewise.
5044 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
5045 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
5046 (thread_jumps::find_jump_threads_backwards): Likewise.
5047 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
5048 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
5049 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
5050 (jump_table_cluster::can_be_handled): Likewise.
5051 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
5052 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
5053 (param_switch_conversion_branch_ratio): Likewise.
5054 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
5055 (vect_enhance_data_refs_alignment): Likewise.
5056 (vect_prune_runtime_alias_test_list): Likewise.
5057 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
5058 (vect_get_datarefs_in_loop): Likewise.
5059 (vect_analyze_loop): Likewise.
5060 * tree-vect-slp.c (vect_slp_bb): Likewise.
5061 * tree-vectorizer.h: Likewise.
5062 * tree-vrp.c (find_switch_asserts): Likewise.
5063 (vrp_prop::check_mem_ref): Likewise.
5064 * tree.c (wide_int_to_tree_1): Likewise.
5065 (cache_integer_cst): Likewise.
5066 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
5067 (reverse_op): Likewise.
5068 (vt_find_locations): Likewise.
5070 2019-11-12 Martin Liska <mliska@suse.cz>
5072 * Makefile.in: Include params.opt.
5073 * flag-types.h (enum parloops_schedule_type): Add
5074 parloops_schedule_type used in params.opt.
5075 * params.opt: New file.
5077 2019-11-12 Martin Liska <mliska@suse.cz>
5079 * common.opt: Remove --param and --param= options.
5080 * opt-functions.awk: Mark CL_PARAMS for options
5081 that have Param keyword.
5082 * opts-common.c (decode_cmdline_options_to_array):
5083 Replace --param key=value with --param=key=value.
5084 * opts.c (print_filtered_help): Remove special
5086 (print_specific_help): Update title for params.
5087 (common_handle_option): Do not handle OPT__param.
5088 opts.h (SET_OPTION_IF_UNSET): New macro.
5089 * doc/options.texi: Document Param keyword.
5091 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
5092 Frederik Harwath <frederik@codesourcery.com>
5093 Thomas Schwinge <thomas@codesourcery.com>
5095 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
5096 enumeration constant.
5097 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5098 (is_gimple_omp_offloaded): Likewise.
5099 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
5100 constant. Adjust the value of ORT_NONE accordingly.
5101 (is_gimple_stmt): Handle OACC_SERIAL.
5102 (oacc_default_clause): Handle ORT_ACC_SERIAL.
5103 (gomp_needs_data_present): Likewise.
5104 (gimplify_adjust_omp_clauses): Likewise.
5105 (gimplify_omp_workshare): Handle OACC_SERIAL.
5106 (gimplify_expr): Likewise.
5107 * omp-expand.c (expand_omp_target):
5108 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5109 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
5110 * omp-low.c (is_oacc_parallel): Rename function to...
5111 (is_oacc_parallel_or_serial): ... this.
5112 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5113 (scan_sharing_clauses): Adjust accordingly.
5114 (scan_omp_for): Likewise.
5115 (lower_oacc_head_mark): Likewise.
5116 (convert_from_firstprivate_int): Likewise.
5117 (lower_omp_target): Likewise.
5118 (check_omp_nesting_restrictions): Handle
5119 GF_OMP_TARGET_KIND_OACC_SERIAL.
5120 (lower_oacc_reductions): Likewise.
5121 (lower_omp_target): Likewise.
5122 * tree.def (OACC_SERIAL): New tree code.
5123 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
5125 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
5127 2019-11-12 Jakub Jelinek <jakub@redhat.com>
5130 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
5131 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
5133 PR tree-optimization/92452
5134 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
5135 into NULL_TREE, set up_bound to NULL_TREE instead of computing
5138 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
5140 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
5143 2019-11-12 Alan Modra <amodra@gmail.com>
5145 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
5146 element of unspec vec.
5147 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
5149 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
5150 (tls_gd_pcrel, tls_ld_pcrel): New insns.
5151 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
5152 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
5154 2019-11-12 Alan Modra <amodra@gmail.com>
5156 * config/rs6000/rs6000.opt (mtls-markers): Delete.
5157 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
5158 (IS_NOMARK_TLSGETADDR): Likewise.
5159 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
5160 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
5161 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
5162 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
5163 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
5164 (rs6000_indirect_call_template_1): Likewise.
5165 (rs6000_pltseq_template): Likewise.
5166 (rs6000_opt_vars): Remove "tls-markers" entry.
5167 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
5169 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
5170 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
5171 (pltseq_plt_pcrel<mode>): Likewise.
5172 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
5173 (call_value_local64): Likewise.
5174 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
5175 output and length attribute sub-expression.
5176 (call_value_nonlocal_sysv<mode>),
5177 (call_value_nonlocal_sysv_secure<mode>),
5178 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
5179 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
5180 (call_value_indirect_pcrel<mode>): Likewise.
5181 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
5182 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
5183 * configure: Regenerate.
5184 * config.in: Regenerate.
5186 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
5188 * config/rs6000/predicates.md (prefixed_memory): New predicate.
5189 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
5190 address being a prefixed load/store.
5191 (stack_protect_testdi): Deal with either address being a prefixed
5194 2019-11-11 Jakub Jelinek <jakub@redhat.com>
5197 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
5198 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
5201 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
5203 PR tree-optimization/92420
5204 * tree-vect-stmts.c (get_negative_load_store_type): Move further
5206 (get_group_load_store_type): Use it for reversed SLP accesses.
5208 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
5210 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
5212 (ipcp_transformation_t::duplicate): Break out from ...
5213 (ipa_node_params_t::duplicate): ... here; add copying of agg
5215 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5216 (ipcp_transformation_t): Add duplicate.
5218 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
5221 * doc/install.texi: Document that the minimum MPFR version is
5224 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5226 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5227 use new register constraint letters.
5229 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5231 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5232 as well, if interesting recover the symbol and re-legitimize the
5235 2019-11-11 Martin Liska <mliska@suse.cz>
5237 * dbgcnt.def (DEBUG_COUNTER): Sort counters
5240 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
5242 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5243 account when checking if there are enough iterations to vectorize
5246 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5247 Kwok Cheung Yeung <kcy@codesourcery.com>
5249 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5250 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5251 (LANG_HOOKS_DECLS): Rename also here.
5252 * langhooks.h (lang_hooks_for_decls): Rename
5253 omp_is_optional_argument to omp_check_optional_argument; take
5254 additional bool argument.
5255 * omp-general.h (omp_check_optional_argument): Likewise.
5256 * omp-general.h (omp_check_optional_argument): Likewise.
5257 * omp-low.c (lower_omp_target): Update calls; handle absent
5258 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5260 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
5263 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5264 -fPIC and -shared the last to create offload image.
5266 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5268 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5271 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5272 (config.status): Use/depend on it.
5273 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5274 * configure: Regenerate.
5276 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
5278 PR tree-optimization/88760
5279 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5280 * common/config/rs6000/rs6000-common.c
5281 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5282 Turn on -funroll-loops and -munroll-only-small-loops.
5283 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5284 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5285 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5286 Turn off -munroll-only-small-loops for explicit -funroll-loops.
5287 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5288 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
5290 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
5292 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5293 Make scalar_load, vector_load, unaligned_load and
5294 vector_gather_load cost more to conform hardware latency and
5297 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
5299 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5300 (MACHO_SYMBOL_LINKER_VIS_P): New.
5302 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
5304 * lra-spills.c (assign_spill_hard_regs): Do not spill into
5305 registers in eliminable_regset.
5307 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5309 * ipa-inline.c (compute_uninlined_call_time,
5310 compute_inlined_call_time): Take edge frequency as
5311 parameter rather than computing it by itself.
5312 (big_speedup_p, edge_badness): Manually CSE sreal
5313 frequency calculations.
5315 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5317 * profile-count.c (profile_count::to_sreal_scale): Short circuit
5318 case where profiles are same.
5320 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5322 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5324 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5326 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5327 args summaries of inlined edge unless it holds info about
5328 described reference.
5330 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5332 * config/rs6000/rs6000.md (CC_any): New mode iterator.
5333 (*movcc_internal1): Rename to...
5334 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
5336 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5338 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5339 (cgraph_node::create_virtual_clone): Copy it.
5340 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5342 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5343 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5345 (propagate_constants_across_call): If callee is not analyzed, give up.
5346 (propagate_constants_topo): Lower to bottom latties of all callees of
5347 functions with ipa-cp disabled.
5348 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5349 (cgraph_edge_brings_value_p): Check for availability first.
5350 (create_specialized_node): Set ipcp_clone.
5351 (ipcp_store_bits_results): Check that info is present.
5352 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5354 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5355 conservative when callee summary is missing.
5356 (remap_edge_summaries): Lookup call summary only when needed.
5357 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5358 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5360 (ipa_analyze_node): Use get_create.
5361 (propagate_controlled_uses): Do not propagate when function is not
5363 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5364 (ipa_read_node_info): Use get_create.
5365 * ipa-prop.h (IPA_NODE_REF): Use get.
5366 (IPA_NODE_REF_GET_CREATE): New.
5368 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5370 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5373 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5375 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5376 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5377 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5378 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5380 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5382 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5383 capping the growth cumulated.
5384 (offline_size): Break out from ...
5385 (estimate_growth): ... here.
5386 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5388 (growth_likely_positive): Turn to ...
5389 (growth_positive_p): Re-implement.
5390 * ipa-inline.h (growth_likely_positive): Remove.
5391 (growth_positive_p): Declare.
5392 * ipa-inline.c (want_inline_small_function_p): Use
5394 (want_inline_function_to_all_callers_p): Likewise.
5396 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5398 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5399 calculation of min_size.
5400 (ipa_update_overall_fn_summary): Likewise.
5402 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5404 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5405 estimate_edge_devirt_benefit when not computing hints;
5406 do not compute time when not asked for.
5407 (estimate_calls_size_and_time): Pass NULL hints and time when
5408 these are not computed; do not evaluate hint predicates when these are
5410 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5413 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5415 PR tree-optimization/92401
5416 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5417 if res_op->code is an expression with code length 1.
5418 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5419 if res_op->code is an expression with code length 2.
5420 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5421 if res_op->code is an expression with code length 3.
5423 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5425 * config/darwin.c (machopic_mcount_stub_name): Validate the
5426 symbol stub name when it is created.
5427 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5430 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5432 * symtab.c: Fix comment typos.
5433 * cgraphunit.c: Likewise.
5434 * cgraph.h: Likewise.
5435 * cgraphclones.c: Likewise.
5436 * cgraph.c: Likewise.
5437 * varpool.c: Likewise.
5438 * tree-ssa-strlen.c: Likewise.
5439 * ipa-sra.c: Likewise.
5440 (scan_expr_access, check_all_callers_for_issues): Fix typo
5443 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5445 * config/darwin-protos.h: Add include quard.
5447 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5449 * range-op.h (range_operator::fold_range): Return result in a
5450 reference parameter instead of by value.
5451 (range_operator::wi_fold): Same.
5452 * range-op.cc (range_operator::wi_fold): Return result in a reference
5453 parameter instead of by value.
5454 (range_operator::fold_range): Same.
5455 (value_range_from_overflowed_bounds): Same.
5456 (value_range_with_overflow): Same
5457 (create_possibly_reversed_range): Same.
5458 (operator_equal::fold_range): Same.
5459 (operator_not_equal::fold_range): Same.
5460 (operator_lt::fold_range): Same.
5461 (operator_le::fold_range): Same.
5462 (operator_gt::fold_range): Same.
5463 (operator_ge::fold_range): Same.
5464 (operator_plus::wi_fold): Same.
5465 (operator_plus::op1_range): Change call to fold_range.
5466 (operator_plus::op2_range): Change call to fold_range.
5467 (operator_minus::wi_fold): Return result via reference parameter.
5468 (operator_minus::op1_range): Change call to fold_range.
5469 (operator_minus::op2_range): Change call to fold_range.
5470 (operator_min::wi_fold): Return result via reference parameter.
5471 (operator_max::wi_fold): Same.
5472 (cross_product_operator::wi_cross_product): Same.
5473 (operator_mult::wi_fold): Same.
5474 (operator_div::wi_fold): Same.
5475 (operator_div op_floor_div): Fix whitespace.
5476 (operator_exact_divide::op1_range): Change call to fold_range.
5477 (operator_lshift::fold_range): Return result via reference parameter.
5478 (operator_lshift::wi_fold): Same.
5479 (operator_rshift::fold_range): Same.
5480 (operator_rshift::wi_fold): Same.
5481 (operator_cast::fold_range): Same.
5482 (operator_cast::op1_range): Change calls to fold_range.
5483 (operator_logical_and::fold_range): Return result via reference.
5484 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5485 (operator_bitwise_and::wi_fold): Return result via reference.
5486 (operator_logical_or::fold_range): Same.
5487 (operator_bitwise_or::wi_fold): Same.
5488 (operator_bitwise_xor::wi_fold): Same.
5489 (operator_trunc_mod::wi_fold): Same.
5490 (operator_logical_not::fold_range): Same.
5491 (operator_bitwise_not::fold_range): Same.
5492 (operator_bitwise_not::op1_range): Change call to fold_range.
5493 (operator_cst::fold_range): Return result via reference.
5494 (operator_identity::fold_range): Same.
5495 (operator_abs::wi_fold): Same.
5496 (operator_absu::wi_fold): Same.
5497 (operator_negate::fold_range): Same.
5498 (operator_negate::op1_range): Change call to fold_range.
5499 (operator_addr_expr::fold_range): Return result via reference.
5500 (operator_addr_expr::op1_range): Change call to fold_range.
5501 (operator_pointer_plus::wi_fold): Return result via reference.
5502 (operator_pointer_min_max::wi_fold): Same.
5503 (operator_pointer_and::wi_fold): Same.
5504 (operator_pointer_or::wi_fold): Same.
5505 (range_op_handler): Change call to fold_range.
5507 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5509 (range_fold_unary_symbolics_p): Same.
5510 (range_fold_binary_expr): Same.
5511 (range_fold_unary_expr): Same.
5513 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5515 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5516 vector type as an argument rather than reading it from the
5518 (vect_create_epilog_for_reduction): Update accordingly.
5519 (vectorizable_reduction): Likewise.
5520 (vect_transform_cycle_phi): Likewise.
5522 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5524 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5525 the comparison codes that make sense for the mode used, and only the
5526 codes that can be done with a single branch instruction.
5528 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5530 PR tree-optimization/92351
5531 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5532 peeling the main loop for alignment, make sure to set the misalignment
5533 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5535 2019-11-08 Richard Biener <rguenther@suse.de>
5537 * dbgcnt.def (ivopts_loop): Add.
5538 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5539 ivopts_loop before optimizing a loop.
5541 2019-11-08 Richard Biener <rguenther@suse.de>
5544 * tree-inline.c (declare_return_variable): Properly handle
5545 type mismatches for the return slot.
5547 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5550 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5551 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5553 (got_helper_needed): New static variable.
5554 (output_load_pcrel_sym): New function.
5555 (get_pc_thunk_name): Remove after inlining...
5556 (load_got_register): ...here. Rework the initialization of the GOT
5557 register and of the GOT helper.
5558 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5559 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5560 helper must be emitted. Use output_asm_insn instead of fprintf.
5561 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5562 if optimization is enabled.
5563 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5564 by calling output_load_pcrel_sym.
5566 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5568 * tree-sra.c (create_access): Delay disqualifying the base
5569 for poly_int values until we know we have a base.
5571 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5573 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5574 for loops with SIMDUID set. Enable epilogue vectorization for loops
5575 with SIMDLEN set after finding a main loop with a VF that matches it.
5577 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5580 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5581 value only, return non-NULL if there is a single non-clobber
5582 constituent store even if there are constituent clobbers and return
5583 one of clobber constituent stores if all constituent stores are
5585 (split_group): Handle clobbers.
5586 (imm_store_chain_info::output_merged_store): When computing
5587 bzero_first, look after all clobbers at the start. Don't count
5588 clobber stmts in orig_num_stmts, except if the first orig store is
5589 a clobber covering the whole area and split_stores cover the whole
5590 area, consider equal number of stmts ok. Punt if split_stores
5591 contains only ->orig stores and their number plus number of original
5592 clobbers is equal to original number of stmts. For ->orig, look past
5593 clobbers in the constituent stores.
5594 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5596 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5598 (store_valid_for_store_merging_p): Allow clobber stmts.
5599 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5602 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5603 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5605 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5606 force creation of a unique data.stack_parm slot.
5608 2019-11-08 Richard Biener <rguenther@suse.de>
5610 * genmatch.c (expr::gen_transform): Use the resimplify
5611 member function instead of hard-coding the gimple_resimplifyN variant.
5612 (dt_simplify::gen_1): Likewise.
5614 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5616 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5619 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5621 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5622 instead of INTEGER_CST.
5624 2019-11-08 Richard Biener <rguenther@suse.de>
5626 PR tree-optimization/92324
5627 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5628 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5629 sign-conversions as necessary.
5630 (vectorizable_reduction): Reject conversions in the chain
5631 that are not sign-conversions, base analysis on a non-converting
5632 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5633 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5635 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5636 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5638 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5641 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5642 Fix a missing '-' when displaying these options in the
5645 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5647 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5649 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5651 * config/aarch64/aarch64-builtins.c
5652 (aarch64_builtin_vectorized_function): Remove bswap handling.
5654 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5656 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5657 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5658 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5659 Treat the vector types as indivisible.
5661 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5663 * optabs.def (gather_load_optab, mask_gather_load_optab)
5664 (scatter_store_optab, mask_scatter_store_optab): Turn into
5665 conversion optabs, with the offset mode given explicitly.
5666 * doc/md.texi: Update accordingly.
5667 * config/aarch64/aarch64-sve-builtins-base.cc
5668 (svld1_gather_impl::expand): Likewise.
5669 (svst1_scatter_impl::expand): Likewise.
5670 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5671 (expand_scatter_store_optab_fn): Likewise.
5672 (direct_gather_load_optab_supported_p): Likewise.
5673 (direct_scatter_store_optab_supported_p): Likewise.
5674 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5676 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5677 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5678 argument with the offset vector type. Require the two vector
5679 types to have the same number of elements but allow their element
5680 sizes to be different. Treat the optabs as conversion optabs.
5681 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5682 prototype accordingly.
5683 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5684 (supports_vec_convert_optab_p): ...this new function.
5685 (supports_vec_gather_load_p): Update accordingly.
5686 (supports_vec_scatter_store_p): Likewise.
5687 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5688 Replace the offset sign and bits parameters with a scalar type tree.
5689 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5690 Pass back the offset vector type instead of the scalar element type.
5691 Allow the offset to be wider than the memory elements. Search for
5692 an offset type that the target supports, stopping once we've
5693 reached the maximum of the element size and pointer size.
5694 Update call to internal_gather_scatter_fn_supported_p.
5695 (vect_check_gather_scatter): Update calls accordingly.
5696 When testing a new scale before knowing the final offset type,
5697 check whether the scale is supported for any signed or unsigned
5698 offset type. Check whether the target supports the source and
5699 target types of a conversion before deciding whether to look
5700 through the conversion. Record the chosen offset_vectype.
5701 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5702 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5703 directly from the gs_info's offset_vectype instead. Pass a zero
5704 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5705 * tree-vect-stmts.c (check_load_store_masking): Update call to
5706 internal_gather_scatter_fn_supported_p, passing the offset vector
5707 type recorded in the gs_info.
5708 (vect_truncate_gather_scatter_offset): Update call to
5709 vect_check_gather_scatter, leaving it to search for a valid
5711 (vect_use_strided_gather_scatters_p): Convert the offset to the
5712 element type of the gs_info's offset_vectype.
5713 (vect_get_gather_scatter_ops): Get the offset vector type directly
5715 (vect_get_strided_load_store_ops): Likewise.
5716 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5717 and IFN_MASK_GATHER_LOAD.
5718 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5719 (gather_load<mode><v_int_equiv>): ...this.
5720 (mask_gather_load<mode>): Rename to...
5721 (mask_gather_load<mode><v_int_equiv>): ...this.
5722 (scatter_store<mode>): Rename to...
5723 (scatter_store<mode><v_int_equiv>): ...this.
5724 (mask_scatter_store<mode>): Rename to...
5725 (mask_scatter_store<mode><v_int_equiv>): ...this.
5727 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5730 * config/rs6000/predicates.md
5731 (signed_or_equality_comparison_operator): New predicate.
5732 (unsigned_or_equality_comparison_operator): Likewise.
5733 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5734 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5735 * config/rs6000/vector.md
5736 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5737 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5738 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5739 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5740 vector modes and same-size integer vector modes.
5741 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5742 (vector_lt<mode> for VEC_F): New expand.
5743 (vector_le<mode> for VEC_F): Likewise.
5744 (vector_ne<mode> for VEC_F): Likewise.
5745 (vector_unge<mode> for VEC_F): Likewise.
5746 (vector_ungt<mode> for VEC_F): Likewise.
5747 (vector_unle<mode> for VEC_F): Likewise.
5748 (vector_unlt<mode> for VEC_F): Likewise.
5749 (vector_uneq<mode>): Expose name.
5750 (vector_ltgt<mode>): Likewise.
5751 (vector_unordered<mode>): Likewise.
5752 (vector_ordered<mode>): Likewise.
5754 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5757 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5758 Enhance ix86_expand_vector_init_concat.
5760 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5762 * doc/invoke.texi (-Wold-style-definition): Document () not being
5763 considered an old-style definition for C2x.
5765 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5767 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5769 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5770 insn patterns using ldcw instruction.
5771 (memory_barrier): Remove insn pattern using sync instruction.
5772 * config/pa/pa.opt (coherent-ldcw): New option.
5773 (ordered): New option.
5775 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5777 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5780 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5782 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5783 typo - mistmatch -> mismatch.
5784 * ipa-profile.c (ipa_profile): Likewise.
5785 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5786 - mistmatch -> mismatch.
5788 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5790 * simplify-rtx.c (comparison_to_mask): New function.
5791 (mask_to_comparison): New function.
5792 (simplify_logical_relational_operation): New function.
5793 (simplify_binary_operation_1): Call
5794 simplify_logical_relational_operation.
5796 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5799 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5800 modes for integer constants.
5802 2019-11-07 Jan Hubicka <jh@suse.cz>
5805 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5808 2019-11-07 Jan Hubicka <jh@suse.cz>
5810 * optc-save-gen.awk: Generate cl_target_option_free
5811 and cl_optimization_option_free.
5812 * opth-en.awk: Declare cl_target_option_free
5813 and cl_optimization_option_free.
5814 * tree.c (free_node): Use it.
5816 2019-11-06 Jan Hubicka <jh@suse.cz>
5818 * lto-streamer-in.c: Include alloc-pool.h.
5819 (freeing_string_slot_hasher): Remove.
5820 (string_slot_allocator): New object allocator.
5821 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5822 (file_name_obstack): New obstack.
5823 (canon_file_name): Allocate in obstack and allocator.
5824 (lto_reader_init): Initialize obstack and allocator.
5825 (lto_free_file_name_hash): New function.
5826 * lto-streamer.h (lto_free_file_name_hash): New.
5828 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5830 PR tree-optimization/89134
5831 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5832 * params.def: Add min-loop-cond-split-prob.
5833 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5834 outside checks on loop into the function.
5835 (split_info): New class.
5836 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5837 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5838 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5839 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5840 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5841 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5842 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5843 (split_loop_on_cond): Likewise.
5844 (tree_ssa_split_loops): Add loop split on conditional statement.
5846 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5848 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5851 2019-11-07 Richard Biener <rguenther@suse.de>
5853 PR tree-optimization/92405
5854 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5855 restrict lane-reducing ops to single stmt chains.
5857 2019-11-07 Martin Jambor <mjambor@suse.cz>
5860 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5861 * cgraph.h (gimple_check_call_matching_types): Remove
5862 * cgraph.c (gimple_check_call_args): Likewise.
5863 (gimple_check_call_matching_types): Likewise.
5864 (symbol_table::create_edge): Do not call
5865 gimple_check_call_matching_types.
5866 (cgraph_edge::make_direct): Likewise.
5867 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5868 * value-prof.h (check_ic_target): Remove.
5869 * value-prof.c (check_ic_target): Remove.
5870 (gimple_ic_transform): Do nat call check_ic_target.
5871 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5872 (afdo_indirect_call): Likewise.
5873 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5874 gimple_check_call_matching_types.
5875 * ipa-inline.c (early_inliner): Likewise.
5877 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5879 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5880 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5881 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5882 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5883 * config/arm/iterators.md (USSAT16): New int_iterator.
5884 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5886 * config/arm/predicates.md (ssat16_imm): New predicate.
5887 (usat16_imm): Likewise.
5888 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5890 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5892 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5894 (arm_<simd32_op>): New define_expands.
5895 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5896 __smuad, __smuadx): Define.
5897 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5898 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5899 (SIMD32_BINOP_Q): Likewise.
5900 (simd32_op): Handle the above.
5901 * config/arm/unspecs.md: Define unspecs for the above.
5903 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5905 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5906 * config/arm/arm.md (APSRGE_REGNUM): Define.
5907 (arm_<simd32_op>): New define_insn.
5908 (arm_sel): Likewise.
5909 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5910 (CALL_USED_REGISTERS): Likewise.
5911 (REG_ALLOC_ORDER): Likewise.
5912 (FIRST_PSEUDO_REGISTER): Update value.
5913 (ARM_GE_BITS_READ): Define.
5914 * config/arm/arm.c (arm_conditional_register_usage): Clear
5915 APSRGE_REGNUM from operand_reg_set.
5916 (arm_ge_bits_access): Define.
5917 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5919 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5920 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5921 FAIL if ARM_GE_BITS_READ.
5922 (*arm_add<mode>3): New define_insn.
5923 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5924 (*arm_sub<mode>3): New define_insn.
5925 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5926 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5928 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5929 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5930 (simd32_op): Handle the above.
5931 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5932 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5933 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5934 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5936 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5938 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5939 (arm_smlabb): New define_expand.
5940 (*maddhisi4tb): Rename to...
5941 (maddhisi4tb): ... This.
5942 (*maddhisi4tt): Rename to...
5943 (maddhisi4tt): ... This.
5944 (arm_smlatb_setq): New define_insn.
5945 (arm_smlatb): New define_expand.
5946 (arm_smlatt_setq): New define_insn.
5947 (arm_smlatt): New define_expand.
5948 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5949 (arm_<smlaw_op>): New define_expand.
5950 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5951 __smlawb, __smlawt): Define.
5952 * config/arm_acle_builtins.def: Define builtins for the above.
5953 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5954 (slaw_op): New int_attribute.
5955 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5957 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5959 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5960 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5961 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5962 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5963 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5964 (ss_op): New code_attr.
5966 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5968 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5969 * config/arm/arm.md (APSRQ_REGNUM): Define.
5970 (add_setq): New define_subst.
5971 (add_clobber_q_name): New define_subst_attr.
5972 (add_clobber_q_pred): Likewise.
5973 (maddhisi4): Change to define_expand. Split into mult and add if
5975 (arm_maddhisi4): New define_insn.
5976 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5977 (*maddhisi4tt): Likewise.
5978 (arm_ssat): New define_expand.
5979 (arm_usat): Likewise.
5980 (arm_get_apsr): New define_insn.
5981 (arm_set_apsr): Likewise.
5982 (arm_saturation_occurred): New define_expand.
5983 (arm_set_saturation): Likewise.
5984 (*satsi_<SAT:code>): Rename to...
5985 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5986 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5987 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5988 (CALL_USED_REGISTERS): Mark apsrq.
5989 (FIRST_PSEUDO_REGISTER): Update value.
5990 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5991 (machine_function): Add q_bit_access.
5992 (ARM_Q_BIT_READ): Define.
5993 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5994 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5996 (arm_q_bit_access): Define.
5997 * config/arm/arm-builtins.c: Include stringpool.h.
5998 (arm_sat_binop_imm_qualifiers,
5999 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
6000 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
6001 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
6002 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
6003 SET_SAT_QUALIFIERS): Likewise.
6004 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
6005 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
6006 Handle 0 argument expander.
6007 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
6008 (arm_check_builtin_call): Define.
6009 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
6010 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
6011 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
6012 (arm_q_bit_access): Likewise.
6013 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
6014 __saturation_occurred, __set_saturation_occurred): Define.
6015 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
6016 saturation_occurred, set_saturation_occurred.
6017 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
6018 (UNSPEC_APSR_READ): Likewise.
6019 (VUNSPEC_APSR_WRITE): Likewise.
6020 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
6021 (*arm_ssadd<mode>3): New define_insn.
6022 (sssub<mode>3): Convert to define_expand.
6023 (*arm_sssub<mode>3): New define_insn.
6024 (ssmulsa3): Convert to define_expand.
6025 (*arm_ssmulsa3): New define_insn.
6026 (usmulusa3): Convert to define_expand.
6027 (*arm_usmulusa3): New define_insn.
6028 (ssmulha3): FAIL if ARM_Q_BIT_READ.
6029 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
6030 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
6032 2019-11-07 Martin Liska <mliska@suse.cz>
6035 * cgraph.c (delete_function_version): Clear global
6036 variable version_info_node if equal to deleted
6039 2019-11-07 Martin Liska <mliska@suse.cz>
6041 * fold-const.c (operand_compare::operand_equal_p): Add comparison
6042 of CONSTRUCTOR_NO_CLEARING.
6043 (operand_compare::hash_operand): Likewise.
6045 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
6047 Support 64-bit double and 64-bit long double configurations.
6050 * config.gcc (tm_defines) [avr]: Set from --with-double=,
6051 --with-long-double=.
6052 * config/avr/t-multilib: Remove.
6053 * config/avr/t-avr: Output of genmultilib.awk is now fully
6054 dynamically generated and no more part of the repo.
6055 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
6056 Pass them down to...
6057 * config/avr/genmultilib.awk: ...here and handle them.
6058 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
6059 (-mlong-double=, avr_long_double). New option and var.
6060 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
6061 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
6062 Set default as requested by --with-double=
6063 (TARGET_HANDLE_OPTION): Define to this...
6064 (avr_handle_option): ...new hook worker.
6065 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
6066 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
6067 (avr_double_lib): New proto for spec function.
6068 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
6069 (DRIVER_SELF_SPECS): Call %:double-lib.
6070 * config/avr/avr.c (avr_option_override): Assert
6071 sizeof(long double) >= sizeof(double) for the target.
6072 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
6073 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
6074 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
6075 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
6076 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
6077 New built-in define depending on --with-double=, --with-long-double=.
6078 * config/avr/driver-avr.c (avr_double_lib): New spec function.
6079 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
6080 * doc/install.texi (Cross-Compiler-Specific Options)
6081 <--with-double=, --with-long-double=>: Doc.
6083 2019-11-07 Richard Biener <rguenther@suse.de>
6085 * dbgcnt.def (gimple_unroll): New.
6086 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
6087 gimple_unroll debug counter before applying transform.
6088 (try_peel_loop): Likewise.
6090 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
6092 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
6093 frame pointer in multiple registers.
6094 (ira_setup_eliminable_regset): Setup eliminable_regset,
6095 ira_no_alloc_regs and regs_ever_live for frame pointer in
6098 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
6100 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
6103 2019-11-06 Jan Hubicka <jh@suse.cz>
6105 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
6107 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
6108 Do not silently ignore summary corruptions.
6110 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
6112 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
6113 the epilogue if there are peeled iterations for it to handle.
6115 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
6117 * config/arc/arc.c (arc_split_ior): Add asserts.
6118 (arc_split_mov_const): Likewise.
6119 (arc_check_ior_const): Do not match known short immediate values.
6120 * config/arc/arc.md (movsi): Don't split predicated instructions
6123 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
6125 * config/arc/arc.opt (mea): Update help string.
6126 * doc/invoke.texi(ARC): Update mea option info.
6128 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
6130 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
6131 (zero_extendqisi2_ac): Likewise.
6132 (zero_extendhisi2_i): Likewise.
6133 (extendqihi2_i): Likewise.
6134 (extendqisi2_ac): Likewise.
6135 (extendhisi2_i): Likewise.
6137 2019-11-06 Richard Biener <rguenther@suse.de>
6139 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
6140 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
6141 Simplify single_defuse_cycle condition.
6143 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
6145 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
6146 epilogue loop, make sure that the VF is small enough or that
6147 the epilogue loop can be fully-masked.
6149 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
6151 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
6152 loop when we've finished, rather than returning directly from
6153 the loop. Use a local variable to track whether we're still
6154 searching for the preferred simdlen. Make vect_epilogues
6155 record whether the next iteration should try to treat the
6156 loop as an epilogue.
6158 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
6160 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
6161 __arc_hard_float__, __ARC_HARD_FLOAT__,
6162 __arc_soft_float__, __ARC_SOFT_FLOAT__
6164 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6166 PR tree-optimization/92317
6167 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
6168 update phi's with constant phi arguments.
6170 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
6171 Alexandre Oliva <oliva@adacore.com>
6173 * common.opt (-fcallgraph-info[=]): New option.
6174 * doc/invoke.texi (Developer options): Document it.
6175 * opts.c (common_handle_option): Handle it.
6176 * builtins.c (expand_builtin_alloca): Record allocation if
6177 -fcallgraph-info=da.
6178 * calls.c (expand_call): If -fcallgraph-info, record the call.
6179 (emit_library_call_value_1): Likewise.
6180 * flag-types.h (enum callgraph_info_type): New type.
6181 * explow.c: Include stringpool.h.
6182 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
6183 * function.c (allocate_stack_usage_info): New.
6184 (allocate_struct_function): Call it for -fcallgraph-info.
6185 (prepare_function_start): Call it otherwise.
6186 (record_final_call, record_dynamic_alloc): New.
6187 * function.h (struct callinfo_callee): New.
6188 (CALLEE_FROM_CGRAPH_P): New.
6189 (struct callinfo_dalloc): New.
6190 (struct stack_usage): Add callees and dallocs.
6191 (record_final_call, record_dynamic_alloc): Declare.
6192 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
6193 object if -fcallgraph-info=da.
6194 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
6195 * print-tree.h (print_decl_identifier): Declare.
6196 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
6197 * print-tree.c: Include print-tree.h.
6198 (print_decl_identifier): New function.
6199 * toplev.c: Include print-tree.h.
6200 (callgraph_info_file): New global variable.
6201 (callgraph_info_external_printed): Likewise.
6202 (output_stack_usage): Rename to...
6203 (output_stack_usage_1): ... this. Make it static, add cf
6204 parameter. If -fcallgraph-info=su, print stack usage to cf.
6205 If -fstack-usage, use print_decl_identifier for
6207 (INDIRECT_CALL_NAME): New.
6208 (dump_final_node_vcg_start): New.
6209 (dump_final_callee_vcg, dump_final_node_vcg): New.
6210 (output_stack_usage): New.
6211 (lang_dependent_init): Open and start file if
6212 -fcallgraph-info. Allocated callgraph_info_external_printed.
6213 (finalize): If callgraph_info_file is not null, finish it,
6214 close it, and release callgraph_info_external_printed.
6216 2019-11-06 Gergö Barany <gergo@codesourcery.com>
6217 Frederik Harwath <frederik@codesourcery.com>
6218 Thomas Schwinge <thomas@codesourcery.com>
6220 * omp-low.c (struct omp_context): New fields
6221 local_reduction_clauses, outer_reduction_clauses.
6222 (new_omp_context): Initialize these.
6223 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6224 (scan_omp_for): Check reduction clauses for incorrect nesting.
6226 2019-11-06 Jakub Jelinek <jakub@redhat.com>
6229 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6230 operands with non-memory constraints.
6232 2019-11-05 Martin Sebor <msebor@redhat.com>
6234 PR tree-optimization/92373
6235 * tree.c (component_ref_size): Only consider initializers of objects
6236 of matching struct types.
6237 Return null for instances of interior zero-length arrays.
6239 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
6241 * doc/md.texi (Insn Splitting): Fix combiner documentation.
6243 2019-11-05 Jason Merrill <jason@redhat.com>
6245 PR tree-optimization/91825
6246 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6248 2019-11-05 Jim Wilson <jimw@sifive.com>
6251 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6252 optimize_insn_for_speed_p is true.
6254 2019-11-05 Martin Sebor <msebor@redhat.com>
6258 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6260 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6261 name and location for a temporary variable.
6263 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6265 * tree-vrp.c (value_range::value_range): Fix whitespace.
6266 (defined_ranges_p): Same.
6267 (range_fold_binary_symbolics_p): Same.
6268 (value_range::intersect_helper): Same.
6269 (value_range::union_helper): Same.
6270 * tree-vrp.h (range_fold_binary_expr): Same.
6272 2019-11-04 Martin Sebor <msebor@redhat.com>
6276 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6277 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6278 of message printed in a warning for empty arrays.
6279 (vrp_prop::check_mem_ref): Also handle function parameters and
6282 2019-11-05 Richard Biener <rguenther@suse.de>
6284 PR tree-optimization/92371
6285 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6286 on the original stmt of live stmts in the chain.
6287 (vectorizable_live_operation): Look at the original stmt when
6288 checking STMT_VINFO_REDUC_DEF.
6290 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6292 * gimple-fold.c, gimple-loop-versioning.cc,
6293 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6294 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6295 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6296 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6297 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6298 value_range_equiv, and value_range_base to value_range.
6300 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6302 * expr.c (build_personality_function): Fix generated type to
6303 match actual personality functions.
6305 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6307 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6308 enough bytes for the NULL character.
6310 2019-11-05 Richard Biener <rguenther@suse.de>
6312 PR tree-optimization/92280
6313 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6314 had a single use do not create a new CTOR.
6315 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6316 BIT_FIELD_REF of a CTOR via GENERIC.
6318 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
6320 * config/s390/s390.c (s390_vector_alignment): Check if the value
6321 fits into uhwi before using it.
6323 2019-11-05 Martin Liska <mliska@suse.cz>
6325 * symbol-summary.h: Use ggc_delete.
6327 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6329 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6330 Change vec_perm field to 10.
6332 2019-11-05 Arnaud Charlet <charlet@adacore.com>
6334 * doc/install.texi: Further fix syntax for html generation.
6336 2019-11-05 Martin Liska <mliska@suse.cz>
6338 * symbol-summary.h: Rename allocator to m_allocator and
6341 2019-11-05 Richard Biener <rguenther@suse.de>
6343 PR tree-optimization/92324
6344 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6345 all signed or unsigned operations.
6347 2019-11-05 Jan Hubicka <jh@suse.cz>
6349 * hsa-brig.c: Include alloc-pool.h
6350 * hsa-dump.c: Likewise.
6351 * hsa-gen.c: Likewise.
6352 * hse-regalloc.c: Likewise.
6353 * ipa-hsa.c: Likewise.
6354 * ipa-predicate.c: Likewise.
6355 * ipa-reference.c: Likewise.
6356 * ipa-sra.c: Likewise.
6357 * omp-expand.c: Likewise.
6358 * omp-general.c: Likewise.
6359 * omp-low.c: Likewise.
6360 * sumbol-summary.h (function_summary_base): Add allocator.
6361 (function_summary<T *>::function_summary): Update construction.
6362 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6363 (call_summary_base): Add allcator.
6364 (call_summary<T *>::call_summary): Update construction.
6365 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6367 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6369 PR tree-optimization/91945
6370 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6371 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6374 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6376 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6377 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6378 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6379 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6380 (vrp_set_zero_nonzero_bits): Move to...
6381 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6382 (vr_values::simplify_bit_ops_using_ranges): Rename
6383 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6385 2019-11-05 Martin Liska <mliska@suse.cz>
6388 * fold-const.c (operand_compare::hash_operand): Remove
6389 FIELD_DECL handling.
6391 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6393 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6394 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6397 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6399 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6400 properly handle symbolics.
6401 (range_compatible_p): Remove.
6403 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6405 * common.opt (-fabi-version): Document =14.
6406 * doc/invoke.texi (C++ Dialect Options): Likewise.
6408 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6410 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6412 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6414 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6415 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6416 gcn_omp_device_kind_arch_isa.
6417 * config/gcn/t-omp-device: New file.
6418 * configure.ac: Support gcn for omp_device_property.
6419 * configure: Regenerate.
6421 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6423 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6424 (vrp_val_max): Same.
6425 (vrp_val_is_min): Same.
6426 (vrp_val_is_max): Same.
6427 (value_range_base::nonzero_p): Remove last argument to
6429 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6430 (vrp_val_max): Same.
6431 (vrp_val_is_min): Same.
6432 (vrp_val_is_max): Same.
6433 (value_range_base::set_varying): Remove last argument to vrp_val*.
6434 (value_range_base::dump): Same.
6435 (value_range_base::set): Same.
6436 (value_range_base::normalize_symbolics): Same.
6437 (value_range_base::num_pairs): Same.
6438 (value_range_base::lower_bound): Same.
6439 (value_range_base::upper_bound): Same.
6440 (ranges_from_anti_range): Remove handle_pointers argument.
6441 (value_range_base::singleton_p): Remove last argument to
6442 ranges_from_anti_range.
6444 2019-11-04 Jan Hubicka <jh@suse.cz>
6446 * ipa-reference.c (init_function_info): Initialize
6447 info->global.statics_read.
6449 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6451 * tree-vrp.c (value_range_base::invert): Use constructors to build
6454 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6456 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6457 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6459 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6461 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6464 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6466 * tree-vrp.c (dump_assert_info): New.
6467 (dump_asserts_info): New.
6469 2019-11-04 Jan Hubicka <jh@suse.cz>
6471 * ipa-inline-transform.c: Include ipa-utils.h
6472 (inline_call): Set thunk_expansion flag.
6473 * ipa-utils.h (thunk_expansion): Declare.
6474 * ipa-devirt.c (thunk_expansion): New global var.
6475 (devirt_node_removal_hook): Do not invalidate cache while
6476 doing thunk expansion.
6478 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6480 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6482 2019-11-04 Martin Sebor <msebor@redhat.com>
6484 PR tree-optimization/92349
6485 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6486 memebers have constant sizes.
6488 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6490 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6492 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6493 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6496 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6498 * expr.c (store_constructor): Modify to handle single element vectors.
6499 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6501 (vect_slp_check_for_constructors): New function.
6502 (vect_slp_analyze_bb_1): Call new function to check for vector
6504 (vectorize_slp_instance_root_stmt): New function.
6505 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6507 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6509 2019-11-04 Richard Biener <rguenther@suse.de>
6511 PR tree-optimization/92345
6512 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6513 we produced a reduction chain.
6514 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6515 LOOP_VINFO_REDUCTIONS.
6517 2019-11-04 Jan Hubicka <jh@suse.cz>
6519 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6520 duplicate summaries.
6521 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6523 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6524 access call summaries.
6525 (dump_ipa_call_summary): Be ready for missing edge summaries.
6526 (analyze_function_body): Use get instead of get_create to access
6528 (estimate_calls_size_and_time): Do not access summaries of
6529 inlined edges; sanity check they are missing.
6530 (ipa_call_context::estimate_size_and_time): Use get instead
6531 of get_create to access node summary.
6532 (inline_update_callee_summaries): Do not update depth of
6534 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6536 (ipa_merge_fn_summary_after_inlining): Use get instead
6538 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6539 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6541 (initialize_growth_caches): Update.
6542 (do_estimate_edge_time): Remove redundant copy of context.
6543 (ipa_remove_from_growth_caches): New function.
6544 * ipa-inline.c (flatten_function): Update overall summary
6545 only when optimizing.
6546 (inline_to_all_callers): Update overall summary of function
6548 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6549 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6552 2019-11-04 Richard Biener <rguenther@suse.de>
6554 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6555 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6557 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6559 * ggc-common.c: Include system.h before malloc.h.
6561 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6563 * configure.ac: Pass --enable-obsolete=* and
6564 --enable-option-checking=* down to build configure, and fail
6565 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6566 * configure: Rebuild.
6567 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6568 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6570 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6572 * config.in: Regenerate.
6573 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6574 -mtiny-printf is used without GCC being configured with
6575 --enable-newlib-nano-formatted-io.
6576 * config/msp430/msp430.h (LINK_SPEC): Pass
6577 "--wrap puts --wrap printf" when -mtiny-printf is used.
6578 * config/msp430/msp430.opt: Document -mtiny-printf.
6579 * configure: Regenerate.
6580 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6581 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6582 --enable-newlib-nano-formatted-io is passed.
6583 * doc/invoke.texi: Document -mtiny-printf.
6585 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6587 * configure: Regenerate.
6589 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6591 * config/msp430/driver-msp430.c
6592 (msp430_get_linker_devices_include_path): New spec function.
6593 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6594 (extract_devices_dir_from_exec_prefix): New function.
6595 (extract_devices_dir_from_collect_gcc): New function.
6596 (msp430_check_env_var_for_devices): New function.
6597 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6598 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6599 devices.csv was not found using other methods.
6600 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6602 (msp430_dirname): Likewise.
6603 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6604 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6605 msp430_get_linker_devices_include_path.
6606 (TARGET_EXTRA_PRE_INCLUDES): Define.
6607 * doc/invoke.texi: Document new ways of searching for support files.
6609 2019-11-04 Richard Biener <rguenther@suse.de>
6611 PR tree-optimization/92301
6612 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6613 as required by epilogue generation
6615 2019-11-04 Martin Liska <mliska@suse.cz>
6618 * fold-const.c (operand_compare::hash_operand): Fix field
6619 hashing of CONSTRUCTOR.
6621 2019-11-04 Martin Liska <mliska@suse.cz>
6623 * ggc.h (ggc_delete): New function.
6624 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6625 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6626 (ipa_free_all_node_params): Likewise.
6627 * ipa-sra.c (ipa_sra_analysis): Likewise.
6629 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6631 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6632 set_switch_stmt_execution_predicate, compute_bb_predicates,
6633 will_be_nonconstant_expr_predicate,
6634 phi_result_unknown_predicate,
6635 analyze_function_body): Pass arround params summary.
6636 (ipa_call_context::duplicate_from): New comment;
6637 only duplicate useful values.
6638 (ipa_call_context::equal_to): Only compare useful values.
6639 (remap_edge_summaries): Pass params_summary.
6640 (remap_hint_predicate): Likewise.
6641 (ipa_merge_fn_summary_after_inlining): Likewise.
6642 (inline_read_section): Initialize params summary used flags.
6643 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6644 around param_summary.
6645 (add_condition): Initialized used params summary flags.
6646 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6647 (inline_param_summary::useless_p): New predicate.
6648 (remap_after_inlining, add_condition): Update prototype
6649 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6651 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6653 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6654 (ipa_analyze_virtual_call_uses): Likewise.
6655 (update_indirect_edges_after_inlining): Update param summaries.
6656 (ipa_print_node_params): Print used flags.
6657 (ipa_read_indirect_edge_info): Update param summareis.
6658 * ipa-prop.h (ipa_param_descriptor): Add
6659 used_by_ipa_predicates, used_by_indirect_call
6660 and used_by_polymorphic_call.
6661 (ipa_set_param_used_by_ipa_predicates,
6662 ipa_set_param_used_by_indirect_call,
6663 ipa_set_param_used_by_polymorphic_call,
6664 ipa_is_param_used_by_ipa_predicates,
6665 ipa_is_param_used_by_indirect_call,
6666 ipa_is_param_used_by_polymorphic_call): New inline functions.
6668 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6670 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6672 (ipa_call_context::release): Add ALL parameter.
6673 (ipa_call_context::equal_to): New member function.
6674 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6675 duplicate_form, release, equal_to and exists_p member functoins.
6676 * ipa-inline-analysis.c (node_context_cache_entry): New
6678 (node_context_summary): Likewise.
6679 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6680 node_context_clear): New static vars.
6681 (initialize_growth_caches): New function.
6682 (free_growth_caches): Also delete node_context_cache; output stats.
6683 (do_estimate_edge_time): Cache contexts.
6684 (reset_node_cache): New function.
6685 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6686 (inline_small_functions): Initialize growth caches.
6687 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6689 * ipa-predicate.h (inline_param_summary::equal_to): New.
6690 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6691 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6692 (ipa_agg_jump_function): Implement equal_to member function.
6694 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6696 * ipa-fnsummary.c (inline_read_section): Set vector size
6699 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6701 * ipa-fnsummary.c (ipa_call_context): New constructor.
6702 (estimate_node_size_and_time): Turn to ...
6703 (ipa_call_context::estimate_size_and_time): ... this one.
6704 (ipa_call_context::release): New.
6705 * ipa-fnsummary.h (ipa_call_context): New class.
6706 (estimate_node_size_and_time): Remove.
6707 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6708 do_estimate_edge_hints): Update.
6710 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6712 * config.in: Regenerate.
6713 * configure: Regenerate.
6714 * configure.ac: Check for mallinfo.
6715 * ggc-common.c: Include malloc.h if available;
6717 (report_heap_memory_use): New functoin.
6718 * ggc-page.c (ggc_grow): Do not print "start".
6719 * ggc.h (report_heap_memory_use): Declare.
6720 * pases.c (execute_one_pass): Report memory after IPA passes.
6721 (ipa_read_summaries_1): Likewise.
6722 (ipa_read_optimization_summaries_1): Likewise.
6724 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6726 * gimplify.h (omp_construct_selector_matches): Change return
6727 type to int, add a new SCORES argument.
6728 * gimplify.c (omp_construct_selector_matches): Likewise. If
6729 SCORES is non-NULL, compute scores of each construct.
6730 * omp-general.h (omp_get_context_selector): Declare.
6731 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6732 Adjust omp_construct_selector_matches callers.
6733 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6734 (omp_context_compute_score): New function.
6735 (omp_resolve_declare_variant): Compute scores and decide based on
6739 * configure.ac: Don't look for omp-device-properties files from
6740 installed offloading compilers. Instead add tmake_file snippets
6741 for configured offloading targets and use files they generate.
6742 * Makefile.in (install): Don't depend on
6743 install-omp-device-properties.
6744 (install-omp-device-properties): Remove goal.
6745 * config/i386/t-omp-device: New file.
6746 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6747 * config/nvptx/t-omp-device: New file.
6748 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6749 * configure: Regenerated.
6751 * omp-general.h (omp_context_selector_set_compare): Declare.
6752 * omp-general.c (omp_construct_simd_compare,
6753 omp_context_selector_props_compare, omp_context_selector_set_compare,
6754 omp_context_selector_compare): New functions.
6755 (omp_resolve_declare_variant): Prune variants that are strict subset
6758 2019-11-01 Martin Sebor <msebor@redhat.com>
6764 * doc/invoke.texi (-Wzero-length-bounds): Document.
6765 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6766 instead of a hand-rolled loop to avoid PR 92323.
6767 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6769 (vrp_prop::check_mem_ref): Handle declared struct objects.
6770 * tree.c (last_field): New function.
6771 (array_at_struct_end_p): Handle MEM_REF.
6772 (get_initializer_for): New helper.
6773 (component_ref_size): Add argument. Rename locals. Call
6774 get_initializer_for instead of fold_ctor_reference. Correct handling
6775 of flexible array members.
6776 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6778 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6780 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6781 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6782 UNSPEC_VSX_CVSPUXDS): Remove.
6783 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6784 (vsx_xvcvspdp_be): ... this. New. And...
6785 (vsx_xvcvspdp_le): ... this. New.
6786 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6787 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6788 (vsx_xvcv<su>xwdp_le): ... this. New.
6789 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6790 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6791 (vsx_xvcvsp<su>xds_le): ... this. New.
6793 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6795 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6796 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6797 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6798 UNSPEC_VSX_XVCVSPSXWS): Remove.
6799 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6800 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6802 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6804 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6805 (UNSPEC_VSX_XVCDPSP): Remove.
6806 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6807 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6809 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6811 * hooks.c (hook_tree_tree_bool_null): New.
6812 * hooks.h (hook_tree_tree_bool_null): Declare.
6813 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6814 (LANG_HOOKS_DECLS): Add it.
6815 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6816 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6817 (lower_omp_target): Handle Fortran array with descriptor in
6818 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6820 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6822 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6823 Assert that the type we store in abi_vector_types is its own
6825 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6827 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6829 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6830 from a CONST_INT address when TARGET_THUMB2.
6832 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6834 * config/arm/arm.md (add_not_cin): New insn.
6835 (add_not_shift_cin): Likewise.
6837 2019-10-31 Martin Liska <mliska@suse.cz>
6839 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6840 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6841 and compare_memory_operand.
6843 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6845 * configure.ac: Compute and substitute omp_device_properties and
6846 omp_device_property_deps.
6847 * Makefile.in (generated_files): Add omp-device-properties.h.
6848 (omp-general.o): Depend on omp-device-properties.h.
6849 (omp_device_properties): New make variable.
6850 (omp-device-properties.h, s-omp-device-properties-h,
6851 install-omp-device-properties): New goals.
6852 (install): Depend on install-omp-device-properties for accelerators.
6853 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6854 * target.h (enum omp_device_kind_arch_isa): New enum.
6855 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6857 * omp-general.c: Include omp-device-properties.h.
6858 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6859 colon instead of comma.
6860 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6862 (omp_context_selector_matches): Implement device set arch/isa
6863 selectors, improve device set kind selector handling.
6864 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6865 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6866 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6867 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6868 ix86_omp_device_kind_arch_isa.
6869 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6870 definition from ix86_target_string to file scope.
6871 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6873 (ix86_omp_device_kind_arch_isa): New function.
6874 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6875 isa_opts definitions to file scope.
6876 * config/i386/t-intelmic (omp-device-properties): New goal.
6877 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6878 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6879 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6880 nvptx_omp_device_kind_arch_isa.
6881 * configure: Regenerate.
6882 * doc/tm.texi: Regenerate.
6885 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6886 DECL_BUILT_IN in comment. Remove redundant ()s around return
6888 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6889 before calling fndecl_built_in_p.
6890 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6891 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6892 fndecl_built_in_p on it.
6894 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6896 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6898 2019-10-31 Martin Liska <mliska@suse.cz>
6900 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6901 of cgraph_local_info and use local_info_node instead.
6902 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6903 (bfin_function_ok_for_sibcall): Likewise.
6904 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6905 (must_reload_pic_reg_p): Likewise.
6907 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6910 * tree.h (type_initializer_zero_p): Remove.
6911 * tree.c (type_initializer_zero_p): Remove.
6913 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6915 * doc/invoke.texi (-Wshadow, -Wshadow=global
6916 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6918 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6920 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6921 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6922 and 'target exit data'.
6924 2019-10-30 Martin Jambor <mjambor@suse.cz>
6927 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6928 availability comparison.
6930 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6932 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6933 calls to __mspabi_mpy* functions.
6934 * config/msp430/msp430.md (mulhisi3): New define_expand.
6935 (umulhisi3): New define_expand.
6936 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6937 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6939 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6941 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6942 (msp430_check_plus_not_high_mem): New.
6943 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6944 might be in low memory.
6945 Indicate that a 16-bit absolute address is in lower memory.
6947 2019-10-30 Martin Jambor <mjambor@suse.cz>
6949 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6950 ultimate_alias_target.
6952 2019-10-30 Richard Biener <rguenther@suse.de>
6954 PR tree-optimization/92275
6955 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6956 Copy all loop-closed PHIs.
6958 2019-10-30 Martin Liska <mliska@suse.cz>
6960 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6961 const_tree as function argument.
6962 (func_checker::compare_decl): Likewise.
6963 (func_checker::operand_equal_p): Likewise.
6964 (func_checker::compare_variable_decl): Likewise.
6965 (func_checker::parse_labels): Likewise.
6966 * ipa-icf-gimple.h: Likewise.
6968 2019-10-30 Martin Liska <mliska@suse.cz>
6970 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6971 Do not compare alias sets. It's handled by operand_equal_p.
6973 2019-10-30 Martin Liska <mliska@suse.cz>
6975 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6976 initialize m_compare_polymorphic.
6977 (func_checker::compare_decl): Do not compare polymorphic types.
6978 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6979 * ipa-icf.c (sem_function::equals_private): Do not call
6980 compare_polymorphic_p.
6982 2019-10-30 Martin Liska <mliska@suse.cz>
6984 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6986 (func_checker::compare_memory_operand): Remove.
6987 (func_checker::compare_cst_or_decl): Remove.
6988 (func_checker::operand_equal_valueize): Do not handle
6990 (func_checker::compare_gimple_call): Call compare_operand.
6991 (func_checker::compare_gimple_assign): Likewise.
6992 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6993 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6994 * ipa-icf.h (icf_handled_component_p): Remove.
6996 2019-10-30 Martin Liska <mliska@suse.cz>
6998 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6999 (func_checker::compare_cst_or_decl): Remove handling
7001 (func_checker::compare_operand): Transform to ...
7002 (func_checker::operand_equal_p): ... this.
7003 * ipa-icf-gimple.h (class func_checker): Add
7004 operand_equal_p and hash_operand.
7005 * ipa-icf.c (sem_function::equals_private): Fix
7006 pushing and popping of cfun.
7008 2019-10-30 Martin Liska <mliska@suse.cz>
7010 * fold-const.c (operand_equal_p): Move to ...
7011 (operand_compare::operand_equal_p): ... here.
7012 (operand_compare::verify_hash_value): New.
7013 (add_expr): Move to ...
7014 (operand_compare::hash_operand): ... here.
7015 * fold-const.h (operand_equal_p): Move to the class.
7016 (class operand_compare): New.
7017 * tree.c (add_expr): Remove.
7019 2019-10-30 Martin Liska <mliska@suse.cz>
7021 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
7022 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
7024 2019-10-30 Martin Liska <mliska@suse.cz>
7028 * cgraph.c (cgraph_node::get_create): Overwrite node->order
7029 from a first_clone in order to get proper LTO section
7031 (cgraph_node::get_untransformed_body):
7032 Use lto_get_section_data where symtab_node::order
7034 * cgraphclones.c (cgraph_node::find_replacement):
7035 Update also symbol order.
7036 * ipa-fnsummary.c (ipa_fn_summary_read):
7037 Use new function lto_get_summary_section_data.
7038 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
7039 * ipa-icf.c (sem_item_optimizer::read_summary):
7041 * ipa-prop.c (ipa_prop_read_jump_functions):
7043 (ipcp_read_transformation_summaries): Likewise.
7044 * ipa-sra.c (ipa_sra_read_summary): Likewise.
7045 * lto-cgraph.c (input_node): Add also order_base.
7046 (input_varpool_node): Likewise.
7047 (input_cgraph_1): Assign the order_base.
7048 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
7049 * lto-opts.c (lto_write_options): Pass new argument.
7050 * lto-section-in.c (lto_get_section_data): Add new argumente order.
7051 (lto_get_summary_section_data): New.
7052 (lto_get_raw_section_data): Add order argument.
7053 (lto_create_simple_input_block): Likewise.
7054 * lto-section-out.c (lto_destroy_simple_output_block):
7056 * lto-streamer-in.c (lto_input_toplevel_asms):
7057 Use lto_get_summary_section_data.
7058 (lto_input_mode_table): Likewise.
7059 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
7060 (lto_output_toplevel_asms): Pass new argument.
7061 (copy_function_or_variable): Likewise.
7062 (produce_lto_section):Likewise.
7063 (produce_symtab): Likewise.
7064 (lto_write_mode_table): Likewise.
7065 (produce_asm_for_decls): Likewise.
7066 * lto-streamer.c (lto_get_section_name): Concat symbol name
7068 * lto-streamer.h (lto_get_section_data): Add order argument.
7069 (lto_get_summary_section_data): New.
7070 (lto_get_raw_section_data): Add order argument.
7071 (lto_get_section_name): Likewise.
7072 * varpool.c (varpool_node::get_constructor): Pass order argument.
7074 2019-10-30 Jakub Jelinek <jakub@redhat.com>
7076 PR tree-optimization/92262
7077 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
7078 ubase or cbase here.
7079 (remove_unused_ivs): Unshare comp before using it.
7081 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
7083 * ipa-prop.c (update_jump_functions_after_inlining):
7084 Watch for missing summaries.
7086 2019-10-30 Richard Biener <rguenther@suse.de>
7088 PR tree-optimization/65930
7089 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
7090 chains also allow a leading and trailing conversion.
7091 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7092 intermediate reduction chains.
7093 (vect_analyze_slp_instance): Likewise. Build a SLP
7094 node for a trailing conversion manually.
7096 2019-10-30 Martin Liska <mliska@suse.cz>
7098 * cgraph.c (cgraph_node::local_info): Transform to ...
7099 (cgraph_node::local_info_node): ... this.
7100 (cgraph_node::dump): Remove cgraph_local_info and
7101 put its fields directly into cgraph_node.
7102 (cgraph_node::get_availability): Likewise.
7103 (cgraph_node::make_local): Likewise.
7104 (cgraph_node::verify_node): Likewise.
7105 * cgraph.h (struct GTY): Likewise.
7106 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
7107 (duplicate_thunk_for_node): Likewise.
7108 (cgraph_node::create_clone): Likewise.
7109 (cgraph_node::create_virtual_clone): Likewise.
7110 (cgraph_node::create_version_clone): Likewise.
7111 * cgraphunit.c (cgraph_node::reset): Likewise.
7112 (cgraph_node::finalize_function): Likewise.
7113 (cgraph_node::add_new_function): Likewise.
7114 (analyze_functions): Likewise.
7115 * combine.c (setup_incoming_promotions): Likewise.
7116 * config/i386/i386.c (ix86_function_regparm): Likewise.
7117 (ix86_function_sseregparm): Likewise.
7118 (init_cumulative_args): Likewise.
7119 * ipa-cp.c (determine_versionability): Likewise.
7120 (count_callers): Likewise.
7121 (set_single_call_flag): Likewise.
7122 (initialize_node_lattices): Likewise.
7123 (estimate_local_effects): Likewise.
7124 (create_specialized_node): Likewise.
7125 (identify_dead_nodes): Likewise.
7126 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7127 (ipa_fn_summary_generate): Likewise.
7128 * ipa-hsa.c (check_warn_node_versionable): Likewise.
7129 (process_hsa_functions): Likewise.
7130 * ipa-icf.c (set_local): Likewise.
7131 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
7132 * ipa-inline.c (speculation_useful_p): Likewise.
7133 * ipa-profile.c (ipa_propagate_frequency): Likewise.
7134 (ipa_profile): Likewise.
7135 * ipa-split.c (split_function): Likewise.
7136 (execute_split_functions): Likewise.
7137 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7138 (ipa_sra_ipa_function_checks): Likewise.
7139 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7140 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7141 * lto-cgraph.c (lto_output_node): Likewise.
7142 (input_overwrite_node): Likewise.
7143 * multiple_target.c (expand_target_clones): Likewise.
7144 * omp-simd-clone.c (simd_clone_create): Likewise.
7145 * trans-mem.c (expand_call_tm): Likewise.
7146 (ipa_tm_mayenterirr_function): Likewise.
7147 (ipa_tm_diagnose_tm_safe): Likewise.
7148 (ipa_tm_diagnose_transaction): Likewise.
7149 (ipa_tm_create_version): Likewise.
7150 (ipa_tm_transform_calls_redirect): Likewise.
7151 (ipa_tm_execute): Likewise.
7152 * tree-inline.c (expand_call_inline): Likewise.
7154 2019-10-29 Martin Liska <mliska@suse.cz>
7156 * symbol-summary.h (function_summary): Pass memory location
7157 to underlaying hash_map (or vec).
7158 (V>::fast_function_summary): Likewise.
7160 2019-10-29 Martin Liska <mliska@suse.cz>
7162 * ggc.h (ggc_alloc_no_dtor): New function.
7163 * ipa-fnsummary.c (ipa_free_fn_summary): Call
7164 destructor and ggc_free.
7165 (ipa_free_size_summary): Call delete instead
7167 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
7168 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
7169 (ipa_free_all_edge_args): Call destructor and ggc_free.
7170 (ipa_free_all_node_params): Likewise.
7171 (ipcp_free_transformation_sum): Likewise.
7172 * ipa-prop.h (ipa_check_create_node_params):
7173 Call new ggc_alloc_no_dtor.
7174 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
7175 (ipa_sra_analysis): Call destructor and ggc_free.
7176 Replace release with delete operator.
7177 * symbol-summary.h (release): Remove ..
7178 (V>::~fast_function_summary): and move logic here.
7179 Likewise for other classes.
7181 2019-10-29 Richard Biener <rguenther@suse.de>
7183 PR tree-optimization/92260
7184 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
7187 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
7189 PR tree-optimization/88915
7190 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
7191 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
7192 and make the valueize function pointer also take a void pointer.
7193 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
7194 around vn_valueize, to call it without a context.
7195 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
7196 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
7197 (~_loop_vec_info): Release epilogue_vinfos.
7198 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
7199 number of iterations of epilogue.
7200 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
7201 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
7202 versioning threshold needed for main loop.
7203 (vect_analyze_loop): Likewise.
7204 (find_in_mapping): New helper function.
7205 (update_epilogue_loop_vinfo): New function.
7206 (vect_transform_loop): When vectorizing epilogues re-use analysis done
7207 on main loop and call update_epilogue_loop_vinfo to update it.
7208 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
7209 stmts on loop preheader edge.
7210 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
7211 we decided to vectorize epilogues. Update epilogues NITERS and
7212 construct ADVANCE to update epilogues data references where needed.
7213 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7214 (vect_do_peeling, vect_update_inits_of_drs,
7215 determine_peel_for_niter, vect_analyze_loop): Add or update
7217 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7218 created loop_vec_info's for epilogues when available. Otherwise analyse
7219 epilogue separately.
7221 2019-10-29 Richard Biener <rguenther@suse.de>
7223 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7226 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7228 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7229 index for the COND_EXPR from stmt_info rather than reduc_info.
7231 2019-10-29 Richard Biener <rguenther@suse.de>
7233 PR tree-optimization/65930
7234 * tree-vect-loop.c (check_reduction_path): Relax single-use
7235 check allowing out-of-loop uses.
7236 (vect_is_simple_reduction): SLP reduction chains cannot have
7237 intermediate stmts used outside of the loop.
7238 (vect_create_epilog_for_reduction): The adjustment might need
7240 (vectorizable_reduction): Annotate live stmts of the reduction
7241 chain with STMT_VINFO_REDUC_DEF.
7242 * tree-vect-stms.c (process_use): Remove no longer true asserts.
7244 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7246 * calls.c (pass_by_reference): Leave the target to decide whether
7247 POLY_INT_CST-sized arguments should be passed by value or reference,
7248 rather than forcing them to be passed by reference.
7249 (must_pass_in_stack_var_size): Likewise.
7250 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7251 V31_REGNUM to P15_REGNUM.
7252 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7253 Take an extra "silent_p" parameter, defaulting to false.
7254 (aarch64_sve::svbool_type_p): Declare.
7255 (aarch64_sve::nvectors_if_data_type): Likewise.
7256 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7257 (aarch64_frame::reg_offset): Turn into poly_int64s.
7258 (aarch64_frame::save_regs_size): Likewise.
7259 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7260 (aarch64_frame::sve_callee_adjust): Likewise.
7261 (aarch64_frame::spare_reg_reg): Likewise.
7262 (ARM_PCS_SVE): New arm_pcs value.
7263 (CUMULATIVE_ARGS::aapcs_nprn): New field.
7264 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7265 (CUMULATIVE_ARGS::silent_p): Likewise.
7266 (BITS_PER_SVE_PRED): New macro.
7267 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7268 function. Reject aarch64_vector_pcs attributes on SVE functions.
7269 (aarch64_attribute_table): Use the above handler.
7270 (aarch64_sve_abi): New function.
7271 (aarch64_sve_argument_p): Likewise.
7272 (aarch64_returns_value_in_sve_regs_p): Likewise.
7273 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7274 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7275 descriptor for them.
7276 (aarch64_simd_decl_p): Delete.
7277 (aarch64_emit_cfi_for_reg_p): New function.
7278 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7279 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
7280 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7281 as partly clobbered for the SVE PCS.
7282 (aarch64_function_ok_for_sibcall): Check whether the two functions
7283 use the same ABI, rather than checking specifically for whether
7284 they're aarch64_vector_pcs functions.
7285 (aarch64_pass_by_reference): Raise an error for attempts to pass
7286 SVE arguments when SVE is disabled. Pass SVE arguments by reference
7287 if there are not enough free registers left, or if the argument is
7289 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7290 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7292 (aarch64_layout_arg): Take a function_arg_info rather than
7293 individual properties. Handle SVE predicates, vectors and tuples.
7294 Raise an error if they are passed to unprototyped functions.
7295 (aarch64_function_arg): If the silent_p flag is set, suppress the
7296 usual error about using float registers without TARGET_FLOAT.
7297 (aarch64_init_cumulative_args): Take a silent_p parameter and store
7298 it in the cumulative_args structure. Initialize aapcs_nprn and
7299 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
7300 error about using float registers without TARGET_FLOAT.
7301 If the silent_p flag is not set, also raise an error about
7302 using SVE functions when SVE is disabled.
7303 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7304 and call it for SVE functions too. Update aapcs_nprn similarly
7305 to the other register counts.
7306 (aarch64_layout_frame): If a big-endian function needs to save
7307 and restore Z8-Z15, search for a spare predicate that it can use.
7308 Store SVE predicates at the bottom of the register save area,
7309 followed by SVE vectors, then followed by the normal slots.
7310 Keep pointing the hard frame pointer at the base of the normal slots,
7311 above the SVE vectors. Update the various frame creation and
7312 tear-down strategies for the new layout, initializing the new
7313 sve_callee_adjust field. Add an additional layout for frames
7314 whose saved registers are all SVE registers.
7315 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7316 (aarch64_return_address_signing_enabled): Likewise.
7317 (aarch64_push_regs, aarch64_pop_regs): Update calls to
7318 aarch64_reg_save_mode.
7319 (aarch64_adjust_sve_callee_save_base): New function.
7320 (aarch64_add_cfa_expression): Move earlier in file. Take the
7321 saved register as an rtx rather than a register number and use
7322 its mode for the MEM slot.
7323 (aarch64_save_callee_saves): Remove the mode argument and instead
7324 use aarch64_reg_save_mode to get the mode of each save slot.
7325 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
7326 offsets. Allow GP offsets to be saved at a VL-based offset from
7327 the stack, handling this case using the frame pointer if available
7328 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
7329 big-endian SVE functions; use normal moves for other SVE saves.
7330 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7331 returns true. Add explicit CFA notes when not storing via the
7332 stack pointer. Do not try to pair SVE saves.
7333 (aarch64_restore_callee_saves): Cope with poly_int64 register
7334 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7335 use normal moves for other SVE restores. Only add CFA restore notes
7336 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
7338 (aarch64_get_separate_components): Always keep the first SVE save
7339 in the prologue if we need to use it as a stack probe. Don't allow
7340 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7341 Likewise the spare predicate register that they need. Update the
7342 offset calculation to account for the SVE save area. Use the
7343 appropriate range check for SVE LDR and STR instructions.
7344 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7345 (aarch64_process_components): Likewise. Update the offset
7346 calculation to account for the SVE save area. Only mark the
7347 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7348 Do not try to pair SVE saves.
7349 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7350 reg_offsets. When handling the final allocation, expect the
7351 first SVE register save to be part of the initial allocation
7352 and for it to act as a probe at SP. Account for the SVE callee
7353 save area in the dump information.
7354 (aarch64_expand_prologue): Update the frame diagram. Fold the
7355 SVE callee allocation into the initial allocation if stack clash
7356 protection is enabled. Use new variables to track the offset
7357 of the frame chain (and hard frame pointer) from the current
7358 stack pointer, and likewise the offset of the bottom of the
7359 register save area. Update calls to aarch64_save_callee_saves
7360 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7361 saving the FP&SIMD registers. Save the predicate registers.
7362 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7363 into account when setting the stack pointer from the frame pointer,
7364 and when deciding whether we can inherit the initial adjustment
7365 amount from the prologue. Restore the predicate registers after
7366 the vector registers, then apply sve_callee_adjust, then restore
7367 the general registers.
7368 (aarch64_secondary_reload): Don't use secondary SVE reloads
7370 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7371 (aarch64_short_vector_p): Return false for SVE types.
7372 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7373 at the start of the function. Return false for SVE types.
7374 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7376 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7377 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7378 to big-endian targets for bytewise moves.
7379 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7381 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7382 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7383 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7385 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7386 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7387 aarch64-sve-builtins-base.o to extra_objs. Add
7388 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7389 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7390 (aarch64-sve-builtins-shapes.o): Likewise.
7391 (aarch64-sve-builtins-base.o): New rules.
7392 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7393 (aarch64_resolve_overloaded_builtin): Likewise.
7394 (aarch64_check_builtin_call): Likewise.
7395 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7396 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7398 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7399 (aarch64_svprfop): New enum.
7400 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7401 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7402 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7403 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7404 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7405 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7406 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7407 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7408 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7409 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7410 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7411 (aarch64_sve::mangle_builtin_type): Likewise.
7412 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7413 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7414 (aarch64_sve::expand_builtin): Likewise.
7415 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7416 (aarch64_sve_int_mode): Likewise.
7417 (aarch64_ptrue_all_mode): New function.
7418 (aarch64_convert_sve_data_to_pred): Make public.
7419 (svprfop_token): New function.
7420 (aarch64_output_sve_prefetch): Likewise.
7421 (aarch64_fold_sve_cnt_pat): Likewise.
7422 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7423 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7424 instead of gen_while_ult.
7425 (aarch64_replace_reg_mode): Make public.
7426 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7427 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7428 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7429 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7430 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7431 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7432 (aarch64_sve_ptrue_svpattern_p): Likewise.
7433 (aarch64_sve_pred_valid_immediate): Check
7434 aarch64_sve_ptrue_svpattern_p.
7435 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7436 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7438 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7439 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7440 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7441 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7442 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7443 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7445 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7446 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7447 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7448 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7449 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7450 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7451 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7452 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7453 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7454 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7455 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7456 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7457 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7458 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7459 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7460 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7461 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7462 (Vesize): Handle partial vector modes.
7463 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7465 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7467 (s, paired_extend, inc_dec): New code attributes.
7468 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7469 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7470 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7471 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7472 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7473 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7475 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7476 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7477 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7478 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7479 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7480 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7481 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7482 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7483 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7484 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7485 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7486 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7487 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7488 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7489 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7490 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7492 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7493 (binqops_op, binqops_op_rev, last_op): New int attributes.
7494 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7495 (fn, ab): New int attributes.
7496 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7497 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7498 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7499 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7501 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7502 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7503 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7504 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7505 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7507 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7508 (brk_reg_con, brk_reg_opno): New int attributes.
7509 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7510 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7511 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7513 (max_elem_bits): New int attribute.
7514 (min_elem_bits): Handle UNSPEC_RBIT.
7515 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7516 TRUNCATE as well as SUBREG.
7517 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7518 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7519 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7520 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7521 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7522 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7523 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7524 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7525 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7526 (aarch64_gather_scale_operand_h): New predicates.
7527 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7528 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7529 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7530 (*aarch64_sve_reinterpret<mode>): Allow any source register
7531 instead of requiring an exact match.
7532 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7533 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7534 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7535 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7536 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7537 (aarch64_update_ffrt): New patterns.
7538 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7539 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7540 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7541 (@aarch64_ld<fn>f1<mode>): New patterns.
7542 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7543 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7544 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7545 (@aarch64_ldnt1<mode>): New patterns.
7546 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7547 the scalar part of the address.
7548 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7549 scalar part of the addresse and add an alternative for handling
7551 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7552 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7553 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7554 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7555 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7556 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7557 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7558 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7559 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7560 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7561 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7562 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7563 (@aarch64_sve_prefetch<mode>): New patterns.
7564 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7565 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7566 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7567 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7568 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7569 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7570 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7571 (@aarch64_stnt1<mode>): New patterns.
7572 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7573 the scalar part of the address.
7574 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7575 the scalar part of the addresse and add an alternative for handling
7577 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7578 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7579 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7580 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7581 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7582 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7584 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7585 (extract_last_<mode>): Generalize to...
7586 (@extract_<LAST:last_op>_<mode>): ...this.
7587 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7588 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7589 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7590 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7591 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7592 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7593 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7594 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7595 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7596 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7597 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7598 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7599 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7600 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7601 (*aarch64_adr_uxtw_unspec): Likewise.
7602 (*aarch64_adr_uxtw): Rename to...
7603 (*aarch64_adr_uxtw_and): ...this.
7604 (@aarch64_adr<mode>_shift): New expander.
7605 (*aarch64_adr_shift_sxtw): New pattern.
7606 (aarch64_<su>abd<mode>_3): Rename to...
7607 (@aarch64_pred_<su>abd<mode>): ...this.
7608 (<su>abd<mode>_3): Update accordingly.
7609 (@aarch64_cond_<su>abd<mode>): New expander.
7610 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7611 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7612 (*<su>mul<mode>3_highpart): Rename to...
7613 (@aarch64_pred_<optab><mode>): ...this.
7614 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7615 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7616 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7617 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7618 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7619 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7620 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7621 (*v<ASHIFT:optab><mode>3): Rename to...
7622 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7623 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7624 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7625 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7626 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7627 (@cond_asrd<mode>): New expander.
7628 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7629 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7630 (*sdiv_pow2<mode>3): Delete.
7631 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7632 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7633 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7634 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7635 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7636 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7637 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7638 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7639 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7640 (*add<SVE_F:mode>3): Rename to...
7641 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7643 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7644 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7645 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7646 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7647 (*sub<SVE_F:mode>3): Rename to...
7648 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7650 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7651 (*fabd<SVE_F:mode>3): Rename to...
7652 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7653 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7654 (*mul<SVE_F:mode>3): Rename to...
7655 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7657 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7658 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7660 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7661 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7662 (*<nlogical><PRED_ALL:mode>3): Rename to...
7663 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7664 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7665 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7666 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7667 (aarch64_pred_<logical_nn><mode>_z): ...this.
7668 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7669 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7670 (*fma<SVE_I:mode>4): Rename to...
7671 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7672 (*fnma<SVE_I:mode>4): Rename to...
7673 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7674 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7675 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7676 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7677 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7678 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7679 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7680 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7681 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7682 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7683 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7684 (@aarch64_sve_tmad<mode>): Likewise.
7685 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7686 (*aarch64_sel_dup<mode>): Rename to...
7687 (@aarch64_sel_dup<mode>): ...this.
7688 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7689 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7690 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7691 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7692 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7693 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7694 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7695 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7696 (*fcm<cmp_op><mode>): Rename to...
7697 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7698 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7699 (*fcmuo<mode>): Rename to...
7700 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7701 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7702 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7703 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7704 (fold_extract_last_<mode>): Generalize to...
7705 (@fold_extract_<last_op>_<mode>): ...this.
7706 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7707 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7708 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7709 DImode result explicit.
7710 (reduc_plus_scal_<mode>): Update accordingly.
7711 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7712 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7713 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7714 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7715 (*aarch64_sve_tbl<mode>): Rename to...
7716 (@aarch64_sve_tbl<mode>): ...this.
7717 (@aarch64_sve_compact<mode>): New pattern.
7718 (*aarch64_sve_dup_lane<mode>): Rename to...
7719 (@aarch64_sve_dup_lane<mode>): ...this.
7720 (@aarch64_sve_dupq_lane<mode>): New pattern.
7721 (@aarch64_sve_splice<mode>): Likewise.
7722 (aarch64_sve_<perm_insn><mode>): Rename to...
7723 (@aarch64_sve_<perm_insn><mode>): ...this.
7724 (*aarch64_sve_ext<mode>): Rename to...
7725 (@aarch64_sve_ext<mode>): ...this.
7726 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7727 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7729 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7730 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7732 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7734 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7735 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7736 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7737 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7739 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7740 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7742 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7743 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7744 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7746 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7747 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7748 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7749 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7750 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7752 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7753 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7754 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7755 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7756 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7757 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7758 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7759 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7760 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7761 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7762 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7763 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7764 (aarch64_sve_cnt_pat): Likewise.
7765 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7766 (*aarch64_sve_incsi_pat): Likewise.
7767 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7768 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7769 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7770 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7771 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7772 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7773 (*aarch64_sve_decsi_pat): Likewise.
7774 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7775 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7776 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7777 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7778 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7779 (@aarch64_pred_cntp<mode>): Likewise.
7780 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7782 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7783 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7784 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7786 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7788 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7789 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7790 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7791 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7792 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7793 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7794 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7796 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7797 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7798 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7800 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7802 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7804 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7805 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7807 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7808 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7810 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7811 * config/aarch64/arm_sve.h: New file.
7812 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7813 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7814 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7815 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7816 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7817 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7818 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7819 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7820 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7822 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7824 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7826 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7829 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7831 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7832 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7834 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7835 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7836 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7837 (aarch64_hard_regno_nregs): Handle the new register classes.
7838 (aarch64_hard_regno_mode_ok): Likewise.
7839 (aarch64_regno_regclass): Likewise.
7840 (aarch64_class_max_nregs): Likewise.
7841 (aarch64_register_move_cost): Likewise.
7842 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7843 as general register_operands.
7845 2019-10-29 Martin Liska <mliska@suse.cz>
7847 * ggc-common.c: One can't subtract unsigned types
7848 in compare function.
7850 2019-10-29 Martin Liska <mliska@suse.cz>
7852 * cgraphunit.c (symbol_table::compile): Pass
7853 title as dump_memory_report argument.
7854 * toplev.c (dump_memory_report): New argument.
7855 (finalize): Pass new argument.
7856 * toplev.h (dump_memory_report): Add argument.
7858 2019-10-29 Martin Liska <mliska@suse.cz>
7860 * ggc-common.c: Move Leak to the first column.
7862 2019-10-29 Martin Liska <mliska@suse.cz>
7864 * cgraphunit.c (symbol_table::compile): Remove argument
7865 for dump_memory_report.
7866 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7867 (compare_final): Remove in order to make report
7869 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7870 * mem-stats.h (mem_alloc_description::get_list):
7872 (mem_alloc_description::dump): Likewise here.
7873 * toplev.c (dump_memory_report): Remove final
7875 (finalize): Likewise.
7876 * toplev.h (dump_memory_report): Remove argument.
7878 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7880 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7881 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7882 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7883 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7886 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7888 * coretypes.h (string_int_pair): New typedef.
7889 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7890 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7891 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7893 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7895 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7896 (simulate_builtin_function_decl): Declare.
7897 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7898 (LANG_HOOKS_INITIALIZER): Include it.
7899 * langhooks.c (add_builtin_function_common): Rename to...
7900 (build_builtin_function): ...this. Add a location parameter and use
7901 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7903 (add_builtin_function): Update accordingly, passing the returned
7904 decl to the lang hook.
7905 (add_builtin_function_ext_scope): Likewise
7906 (simulate_builtin_function_decl): New function.
7908 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7910 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7911 example, use actual names of supported offload targets.
7914 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7916 2019-10-28 Martin Sebor <msebor@redhat.com>
7918 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7919 (handle_store): Pass argument to get_addr_stridx.
7921 2019-10-28 Martin Sebor <msebor@redhat.com>
7923 PR tree-optimization/92226
7924 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7925 the offset is in the open range outlined by SI's length.
7927 2019-10-28 Martin Sebor <msebor@redhat.com>
7930 * doc/cpp.texi (__has_builtin): Document.
7931 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7933 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7936 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7937 doubleword and low doubleword result of multiplication on
7940 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7941 pure qualifier to the built-in.
7942 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7944 (struct mips_builtin_description): Add is_pure flag.
7945 (mips_init_builtins): Mark built-in as pure if the flag in the
7946 corresponding mips_builtin_description struct is set.
7948 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7949 alternative which covers the floating-point input value. Also
7950 forbid the split of insert.d pattern for floating-point values.
7952 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7954 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7955 * config/riscv/riscv-sr.c: New file.
7956 * config/riscv/riscv.c (riscv_reorg): New function.
7957 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7958 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7959 (riscv_remove_unneeded_save_restore_calls): Declare.
7960 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7962 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7964 PR tree-optimization/92163
7965 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7966 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7967 before calling bitmap_set_bit.
7968 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7969 delete_dead_or_redundant_assignment.
7970 (dse_dom_walker::dse_optimize_stmt): Likewise.
7971 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7973 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7976 * tree-vect-stmts.c (vectorizable_condition): Support
7977 EXTRACT_LAST_REDUCTION with fully-masked loops.
7979 2019-10-28 Richard Biener <rguenther@suse.de>
7981 PR tree-optimization/92252
7982 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7983 STMT_VINFO_REDUC_IDX when swapping operands.
7985 2019-10-28 Richard Biener <rguenther@suse.de>
7987 PR tree-optimization/92241
7988 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7989 we failed to update the reduction index do not use the pattern
7990 stmts for the reduction chain.
7991 (vectorizable_reduction): When the reduction chain is corrupt,
7993 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7994 fail to update the reduction chain.
7996 2019-10-28 Richard Biener <rguenther@suse.de>
7998 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7999 STMT_VINFO_REDUC_IDX from the actual stmt.
8000 (vect_transform_reduction): Likewise.
8001 (vectorizable_reduction): Compute the reduction chain length,
8002 do not recompute the reduction operand index. Remove no longer
8003 necessary restriction for condition reduction chains.
8005 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
8008 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
8009 condition for V2DImode.
8011 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
8013 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
8014 Remove %k operand modifier.
8015 (*vec_extractv2df_1_sse): Remove %q operand modifier.
8017 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
8019 PR rtl-optimization/92007
8020 * cfgcleanup.c (thread_jump): Add an assertion that we don't
8021 call it after reload if hot/cold partitioning has been done.
8022 (class pass_postreload_jump): Rename to
8023 pass_jump_after_combine.
8024 (make_pass_postreload_jump): Rename to
8025 make_pass_jump_after_combine.
8026 * passes.def(pass_postreload_jump): Move before reload, rename
8027 to pass_jump_after_combine.
8028 * tree-pass.h (make_pass_postreload_jump): Rename to
8029 make_pass_jump_after_combine.
8031 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
8034 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
8035 for missing EDGE_REF
8036 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
8038 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
8040 PR tree-optimization/88760
8041 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
8042 Enable -funroll-loops for -O2 and above.
8043 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
8044 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
8045 do not turn on web and rngreg implicitly, if the unroller is not
8048 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8050 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
8053 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
8055 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
8056 * cgraph.h (cgraph_node::rtl_info): Likewise.
8058 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8060 * ipa-cp.c (propagate_constants_across_call): If args are not available
8061 just drop everything to varying.
8062 (find_aggregate_values_for_callers_subset): Watch for missing
8064 (find_more_scalar_values_for_callers_subs): Likewise.
8065 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
8066 update_jump_functions_after_inlining, propagate_controlled_uses):
8067 Watch for missing summaries.
8068 (ipa_propagate_indirect_call_infos): Remove summary after propagation
8070 (ipa_write_node_info): Watch for missing summaries.
8071 (ipa_read_edge_info): Create new ref.
8072 (ipa_edge_args_sum_t): Add remove.
8073 (IPA_EDGE_REF_GET_CREATE): New macro.
8074 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
8076 (remap_edge_change_prob): Likewise.
8078 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8080 * ipa-inline-transform.c (inline_call): update function summaries
8081 after expanidng thunk.
8083 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8085 * ipa-icf.c (sem_function::merge): Update function summaries.
8086 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
8088 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
8090 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
8091 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
8092 operand already has scalar mode.
8093 (iptr): Remove SF/DF.
8095 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
8098 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
8099 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
8102 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
8104 * config/i386/sse.md
8105 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
8106 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
8107 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
8108 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
8109 <sse>_vmmaskcmp<mode>3):
8110 Change predicates from vector_operand to nonimmediate_operand,
8111 constraints xBm to xm, since scalar operations don't need
8112 memory address alignment.
8113 (avx512f_vmcmp<mode>3<round_saeonly_name>,
8114 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
8115 round_saeonly_nimm_predicate with
8116 round_saeonly_nimm_scalar_predicate.
8117 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
8118 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
8119 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
8120 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
8121 avx512f_vmfmadd_<mode>_mask3<round_name>,
8122 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
8123 *avx512f_vmfmsub_<mode>_mask<round_name>,
8124 avx512f_vmfmsub_<mode>_mask3<round_name>,
8125 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
8126 *avx512f_vmfnmadd_<mode>_mask<round_name>,
8127 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
8128 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
8129 *avx512f_vmfnmsub_<mode>_mask<round_name>,
8130 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
8131 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
8132 cvtusi2<ssescalarmodesuffix>32<round_name>,
8133 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
8134 round_nimm_predicate with round_nimm_scalr_predicate.
8135 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
8136 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
8137 avx512er_vmrcp28<mode><round_saeonly_name>,
8138 avx512er_vmrsqrt28<mode><round_saeonly_name>,
8139 ): Replace round_saeonly_nimm_predicate with
8140 round_saeonly_nimm_scalar_predicate.
8141 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
8142 vector_operand with nonimmediate_operand.
8143 * config/i386/subst.md (round_scalar_nimm_predicate,
8144 round_saeonly_scalar_nimm_predicate): Replace
8145 vector_operand with nonimmediate_operand.
8147 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
8150 * config/i386/i386.md (*rcpsf2_sse): Add
8151 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
8152 (*rsqrtsf2_sse): Ditto.
8153 (*sqrt<mode>2_sse): Ditto.
8154 (sse4_1_round<mode>2): separate constraint vm, add
8155 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
8156 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
8158 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
8160 (*sse_vmrsqrtv4sf2): Ditto.
8161 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8162 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
8163 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
8164 <iptr> pointer size modifier since vround support memory operand.
8166 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8169 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
8172 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8173 Tobias Burnus <tobias@codesourcery.com>
8175 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
8176 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
8179 2019-10-25 Richard Biener <rguenther@suse.de>
8181 PR tree-optimization/92222
8182 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
8183 (_slp_oprnd_info::second_pattern): Likewise.
8184 (_slp_oprnd_info::any_pattern): New.
8185 (vect_create_oprnd_info): Adjust.
8186 (vect_get_and_check_slp_defs): Compute whether any stmt is
8188 (vect_build_slp_tree_2): Avoid building up a node from scalars
8189 if any of the operand defs, not just the first, is in a pattern.
8191 2019-10-25 Richard Biener <rguenther@suse.de>
8193 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
8194 swapping if we actually have to modify the IL on a shared stmt.
8195 (vect_build_slp_tree_2): Never fail swapping on shared stmts
8196 because we no longer modify the IL.
8198 2019-10-25 Martin Liska <mliska@suse.cz>
8200 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
8202 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
8204 * tree-vect-loop.c (vectorizable_reduction): Restrict the
8205 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
8206 handled by vect_transform_reduction. Allow fully-masked loops
8207 to be used with reduction chains.
8208 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
8209 operations in fully-masked loops.
8210 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
8211 operations in fully-masked loops.
8213 2019-10-25 Richard Biener <rguenther@suse.de>
8215 * tree-vect-loop.c (vectorizable_reduction): Verify
8216 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8218 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8219 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8222 2019-10-24 Jakub Jelinek <jakub@redhat.com>
8224 * gimplify.h (omp_construct_selector_matches): Declare.
8225 * gimplify.c (struct gimplify_omp_ctx): Add code member.
8226 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8227 called function if needed for flag_openmp.
8228 (gimplify_scan_omp_clauses): Set ctx->code.
8229 (omp_construct_selector_matches): New function.
8230 * omp-general.h (omp_constructor_traits_to_codes,
8231 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8232 * omp-general.c (omp_constructor_traits_to_codes,
8233 omp_context_selector_matches, omp_resolve_declare_variant): New
8236 * config/arc/arc.c (hwloop_optimize): Add missing space in string
8238 * config/rx/rx.c (rx_print_operand): Likewise.
8239 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8240 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8241 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8243 * genemit.c (emit_c_code): Likewise.
8244 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
8246 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8248 * symbols-summary.h (fast_function_summary<T *, V>::release,
8249 fast_call_summary<T *, V>::release): Free m_vector.
8251 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8253 * cgraphunit.c (symbol_table::process_new_functions): Call
8254 ipa_free_size_summary.
8255 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8256 (devirtualization_time_bonus): Update.
8257 (ipcp_propagate_stage): Update.
8258 * ipa-fnsummary.c (ipa_size_summaries): New.
8259 (ipa_fn_summary_alloc): Alloc size summary.
8260 (dump_ipa_call_summary): Update.
8261 (ipa_dump_fn_summary): Update.
8262 (analyze_function_body): Update.
8263 (compute_fn_summary): Likewise.
8264 (ipa_get_stack_frame_offset): New function.
8265 (inline_update_callee_summaries): Do not update frame offsets.
8266 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8267 remove call and function summary.
8268 (ipa_update_overall_fn_summary): Update.
8269 (inline_read_section): Update.
8270 (ipa_fn_summary_write): Update.
8271 (ipa_free_fn_summary): Do not remove summaries.
8272 (ipa_free_size_summary): New.
8273 (release summary pass): Also run at WPA.
8274 * ipa-fnsummary.h (ipa_size_summary): Declare.
8275 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8276 estimated_self_stack_size.
8277 (ipa_size_summary_t): New type.
8278 (ipa_size_summaries): Declare.
8279 (ipa_free_size_summary): Declare.
8280 (ipa_get_stack_frame_offset): Declare.
8281 * ipa-icf.c (sem_function::merge): Update.
8282 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8283 (estimate_growth): Update.
8284 (growth_likely_positive): Update.
8285 (clone_inlined_nodes): Update.
8286 (inline_call): Update.
8287 * ipa-inline.c (caller_growth_limits): Update.
8288 (edge_badness): Update.
8289 (recursive_inlining): Update.
8290 (inline_small_functions): Update.
8291 (inline_to_all_callers_1): Update.
8292 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8294 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
8296 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8297 (uavg<mode>3_ceil): ... This.
8298 (altivec_vavgs<VI_char>): Rename to...
8299 (avg<mode>3_ceil): ... This.
8300 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8301 VAVGUW, VAVGSW): Adjust.
8303 2019-10-24 Nathan Sidwell <nathan@acm.org>
8305 * dumpfile.c (dump_begin): Reorder decls to use RAII.
8307 2019-10-24 Martin Liska <mliska@suse.cz>
8309 * symbol-summary.h (gt_pch_nx): Mark all functions
8310 with gcc_unreachable as we do not expect to be called.
8312 2019-10-24 Richard Biener <rguenther@suse.de>
8314 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8315 chains try harder with operand swapping and instead of
8316 putting a shifted chain into the reduction operands put
8317 a repetition of the final reduction op there as if we'd
8318 reassociate the expression.
8320 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8322 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8323 statics_not_read and statics_not_written to statics_read and
8324 statics_written respectively.
8325 (no_module_statics): New static var.
8326 (ipa_reference_get_not_read_global): Rename to ...
8327 (ipa_reference_get_read_global): ... this.
8328 (ipa_reference_get_not_written_global): Rename to ...
8329 (ipa_reference_get_written_global): ... this.
8330 (dump_static_vars_set_to_file): Dump no_module_statics.
8331 (copy_static_var_set): Add for propagation parameter.
8332 (ipa_init): Initialize no_module_statics.
8333 (ipa_ref_opt_summary_t::duplicate): Update.
8334 (ipa_ref_opt_summary_t::remove): Update.
8335 (propagate): Update.
8336 (write_node_summary_p): Look correctly for bitmap differences.
8337 (ipa_reference_write_optimization_summary): Update.
8338 (ipa_reference_read_optimization_summary): Update.
8340 (ipa_reference_get_not_read_global): Rename to ...
8341 (ipa_reference_get_read_global): ... this.
8342 (ipa_reference_get_not_written_global): Rename to ...
8343 (ipa_reference_get_written_global): ... this.
8344 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8345 (call_may_clobber_ref_p_1): Update.
8347 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8349 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8351 (msp430_hard_regno_nregs_with_padding): Remove.
8353 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8355 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8356 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8357 shift amount is between 1 and 4.
8358 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8361 2019-10-24 Richard Biener <rguenther@suse.de>
8363 PR tree-optimization/92205
8364 * tree-vect-loop.c (vectorizable_reduction): Restrict
8365 search for alternate vectype_in to lane-reducing patterns
8368 2019-10-24 Richard Biener <rguenther@suse.de>
8370 PR tree-optimization/92203
8371 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8372 Skip eliminating conversion stmts inserted by insertion.
8374 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8376 * config/s390/s390.c (s390_get_thread_pointer): Use
8377 gen_get_thread_pointer.
8378 (s390_expand_split_stack_prologue): Likewise.
8379 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8380 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8381 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8382 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8385 2019-10-24 Richard Biener <rguenther@suse.de>
8387 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8388 SLP discovery fails try to handle the reduction as part
8389 of SLP reduction discovery.
8391 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8393 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8395 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8396 attribute if it exists, rather than the insn size. If we use the
8397 insn size, adjust the size to remove the extra size that prefixed
8399 (rs6000_adjust_insn_length): New function.
8400 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8401 update the instruction sized if prefixed instructions are used.
8402 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8403 (non_prefixed_length attribute): Delete.
8404 (num_insns attribute): New insn attribute to return the number of
8406 (max_prefixed_insns attribute): New insn attribute to return the
8407 maximum number of prefixed instructions in an insn.
8408 (length attribute): Do not adjust for prefix instructions here,
8409 punt to ADJUST_INSN_LENGTH.
8410 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8411 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8412 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8413 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8414 max_prefixed_insns and num_insns.
8416 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8417 (movtd_64bit_nodm): Reformat.
8418 (mov<mode>_32bit): Reformat.
8419 (mov<mode>_softfloat): Reformat.
8420 (FMOVE128_GPR splitter): Reformat.
8421 (DIFD splitter): Reformat.
8422 (TI2 splitter): Reformat.
8423 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8424 bits of the offset for the memory address are non-zero, use PLWA
8425 if prefixed instructions are available.
8427 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8429 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8431 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8433 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8436 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8438 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8439 (cmp_symbol_files): New.
8440 (lto_output): Copy sections in file order.
8441 * lto-streamer.h (lto_file_decl_data): Add field order.
8443 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8445 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8446 * ipa-reference.c (reference_vars_map_t): new type.
8447 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8448 (ipa_reference_var_uid): Implement.
8449 (varpool_node_hooks): New static var.
8450 (varpool_removal_hook): New function.
8451 (is_improper): Do not check bitmap for id==-1
8452 (get_static_name): Update.
8453 (ipa_init): Initialize new datastructures.
8454 (analyze_function): Do not recompute ids.
8455 (propagate): Free reference_vars_to_consider.
8456 (stream_out_bitmap): Update.
8457 (ipa_reference_read_optimization_summary): Update.
8459 2019-10-23 qing zhao <qing.zhao@oracle.com>
8461 PR gcov-profile/91971
8462 * coverage.c (coverage_init): Mangle the full path of filename when
8463 filename is a absolute path.
8465 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8467 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8468 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8469 (msp430_has_hwmult): New.
8470 (msp430_output_labelref):
8471 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8472 * config/msp430/msp430.md (mulhisi3): Likewise.
8473 (umulhisi3): Likewise.
8474 (mulsidi3): Likewise.
8475 (umulsidi3): Likewise.
8477 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8480 * params.def (inline-heuristics-hint-percent): Set to 600.
8482 2019-10-23 Richard Biener <rguenther@suse.de>
8484 PR tree-optimization/65930
8485 * tree-vect-loop.c (check_reduction_path): Allow conversions
8486 that only change the sign.
8487 (vectorizable_reduction): Relax latch def stmts we handle further.
8489 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8492 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8493 (remove_unused_ivs): Use it instead of get_computation_at. When
8494 choosing best candidate, only consider candidates where
8495 get_debug_computation_at actually returns non-NULL.
8497 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8499 PR tree-optimization/92131
8500 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8501 range would be symbolic, drop to varying for any explicit overflow
8502 in the constant part or if neither range is a singleton.
8504 2019-10-23 Martin Liska <mliska@suse.cz>
8507 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8510 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8512 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8513 int_mode_for_mode rather than mode_for_int_vector for scalars.
8515 2019-10-23 Richard Biener <rguenther@suse.de>
8517 PR tree-optimization/92179
8518 * tree-vect-stmts.c (vectorizable_shift): For shift args
8519 that are all the same remove type restriction in the SLP case.
8520 Adjust SLP code to handle converting of the shift arg to
8521 only apply in case the modes are different.
8523 2019-10-23 Martin Liska <mliska@suse.cz>
8526 * ipa-inline.c (recursive_inlining): Do not print
8527 when curr->count is not initialized.
8529 2019-10-23 Richard Biener <rguenther@suse.de>
8531 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8532 op from scalars in case there's a constant operand in its
8535 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8537 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8538 against out of range max skip or log values.
8540 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8542 * cgraph.c (dump_graphviz): Change name to dump_name
8544 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8546 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8547 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8548 subtraction from a carry operation.
8550 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8552 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8554 2019-10-22 Richard Biener <rguenther@suse.de>
8556 PR tree-optimization/92173
8557 * tree-vect-loop.c (vectorizable_reduction): If
8558 vect_transform_reduction cannot handle code-generation try without
8559 the single-def-use-cycle optimization. Pass optab_vector to
8560 optab_for_tree_code to get vector shifts as that's what we'd
8563 2019-10-22 Michael Matz <matz@suse.de>
8566 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8567 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8568 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8570 2019-10-22 Richard Biener <rguenther@suse.de>
8572 PR tree-optimization/92173
8573 * tree-vect-loop.c (vectorizable_reduction): If
8574 vect_transform_reduction cannot handle code-generation try without
8575 the single-def-use-cycle optimization. Pass optab_vector to
8576 optab_for_tree_code to get vector shifts as that's what we'd
8579 2019-10-22 Martin Liska <mliska@suse.cz>
8581 * diagnostic-format-json.cc (json_from_expanded_location):
8582 Use json::integer_number.
8583 * gcov.c (output_intermediate_json_line): Use new
8584 json::integer_number.
8585 (output_json_intermediate_file): Likewise.
8586 * json.cc (number::print): Move to ...
8587 (float_number::print): ... this.
8588 (integer_number::print): New.
8589 (test_writing_numbers): Move to ...
8590 (test_writing_float_numbers): ... this.
8591 (test_writing_integer_numbers): New.
8592 (json_cc_tests): Register test_writing_integer_numbers.
8593 * json.h (class value): Add forward declaration
8594 for float_number and integer_number.
8595 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8596 (class number): Move to ...
8597 (class float_number): ... this.
8598 (class integer_number): New.
8599 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8600 Use json::integer_number.
8601 (optrecord_json_writer::location_to_json): Likewise.
8602 (optrecord_json_writer::profile_count_to_json): Likewise.
8603 (optrecord_json_writer::pass_to_json): Likewise.
8605 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8607 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8608 autodetected_vector_size rather than vector_size is zero.
8609 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8610 Set autodetected_vector_size immediately after calling
8611 vect_analyze_loop_2. Check for a fatal error before advancing
8614 2019-10-21 Jason Merrill <jason@redhat.com>
8616 * lock-and-run.sh: Check for process existence rather than timeout.
8618 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8620 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8621 widening multiplication.
8623 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8625 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8626 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8628 (subsi3_carryin_shift): Separate into register and constant controlled
8629 alternatives. Use shift_amount_operand for operand 4. Set shift
8630 attribute and simplify type attribute.
8631 (subsi3_carryin_shift_alt): Likewise.
8632 (rsbsi3_carryin_shift): Likewise.
8633 (rsbsi3_carryin_shift_alt): Likewise.
8634 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8635 and register controlled shifts into distinct alternatives.
8636 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8637 (andsi_not_shiftsi_si_scc): Likewise.
8638 (arm_cmpsi_negshiftsi_si): Likewise.
8639 (not_shiftsi): Remove redundant M constraint from alternative 1.
8640 (not_shiftsi_compare0): Likewise.
8641 (arm_cmpsi_insn): Remove redundant alternative 2.
8642 (cmpsi_shift_swp): Likewise.
8643 (sub_shiftsi): Likewise.
8644 (sub_shiftsi_compare0_scratch): Likewise.
8645 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8646 (thumb2_cmpsi_neg_shiftsi): Likewise.
8648 2019-10-21 Richard Biener <rguenther@suse.de>
8650 PR tree-optimization/92162
8651 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8652 STMT_VINFO_REDUC_IDX in reduc_info.
8653 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8655 2019-10-21 Richard Biener <rguenther@suse.de>
8657 * tree-vectorizer.h (_slp_tree::ops): New member.
8658 (SLP_TREE_SCALAR_OPS): New.
8659 (vect_get_slp_defs): Adjust prototype.
8660 * tree-vect-slp.c (vect_free_slp_tree): Release
8661 SLP_TREE_SCALAR_OPS.
8662 (vect_create_new_slp_node): Initialize it. New overload for
8663 initializing by an operands array.
8664 (_slp_oprnd_info::ops): New member.
8665 (vect_create_oprnd_info): Initialize it.
8666 (vect_free_oprnd_info): Release it.
8667 (vect_get_and_check_slp_defs): Populate the operands array.
8668 Do not swap operands in the IL when not necessary.
8669 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8670 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8671 swap operands in the operands array. Do not swap operands in
8673 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8674 (vect_gather_slp_loads): Fix.
8675 (vect_detect_hybrid_slp_stmts): Likewise.
8676 (vect_slp_analyze_node_operations_1): Search for a internal
8677 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8678 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8679 the def-type push/pop dance.
8680 (vect_get_constant_vectors): Compute number_of_vectors here.
8681 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8682 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8683 (vect_get_slp_defs): Simplify greatly.
8684 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8685 (vect_transform_reduction): Likewise.
8686 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8687 (vectorizable_call): Likewise.
8688 (vectorizable_operation): Likewise.
8689 (vectorizable_load): Likewise.
8690 (vectorizable_condition): Likewise.
8691 (vectorizable_comparison): Likewise.
8693 2019-10-21 Richard Biener <rguenther@suse.de>
8695 PR tree-optimization/92161
8696 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8699 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8701 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8702 (aarch64_rndr): New define_insn.
8703 (aarch64_rndrrs): Likewise.
8704 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8705 (TARGET_RNG): Likewise.
8706 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8708 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8709 Add fourth argument in prototype.
8710 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8711 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8712 (aarch64_init_rng_builtins): Define.
8713 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8714 (aarch64_expand_rng_builtin): Define.
8715 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8717 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8718 __ARM_FEATURE_RNG when TARGET_RNG.
8719 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8721 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8723 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8724 alignment is more restrictive.
8726 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8728 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8729 (vect_update_max_nunits): Update comment.
8730 (current_vector_size): Delete.
8731 * tree-vect-stmts.c (current_vector_size): Likewise.
8732 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8733 of current_vector_size.
8734 (get_mask_type_for_scalar_type): Likewise.
8735 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8736 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8737 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8738 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8739 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8740 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8742 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8744 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8745 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8746 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8749 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8751 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8752 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8753 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8755 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8757 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8759 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8761 (vect_set_loop_condition_masked): Update call accordingly.
8763 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8765 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8766 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8767 (simple_integer_narrowing): Update call accordingly.
8768 (vectorizable_conversion): Likewise.
8770 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8772 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8773 (vectorizable_call): Update call accordingly.
8775 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8777 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8778 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8779 (duplicate_and_interleave): Update call accordingly.
8780 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8782 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8784 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8785 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8786 (vect_get_constant_vectors): Update call accordingly.
8787 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8789 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8791 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8792 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8793 (vect_prologue_cost_for_slp_op): Update call accordingly.
8794 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8795 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8796 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8797 (get_mask_type_for_scalar_type): Likewise.
8798 (vect_get_vector_types_for_stmt): Likewise.
8799 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8800 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8801 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8802 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8803 (vect_split_statement, vect_convert_input): Likewise.
8804 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8805 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8806 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8807 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8808 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8809 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8810 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8811 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8812 (vect_recog_mask_conversion_pattern): Likewise.
8813 (vect_add_conversion_to_pattern): Likewise.
8814 (vect_recog_gather_scatter_pattern): Likewise.
8815 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8816 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8818 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8820 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8821 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8822 (vect_check_load_store_mask): Update call accordingly.
8823 (vect_get_mask_type_for_stmt): Likewise.
8824 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8825 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8826 (vect_convert_mask_for_vectype): Likewise.
8828 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8830 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8832 (vect_recog_dot_prod_pattern): Update call accordingly.
8833 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8834 (vect_recog_widen_sum_pattern): Likewise.
8836 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8838 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8839 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8840 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8843 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8845 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8846 get_vectype_for_scalar_type_and_size instead of
8847 get_vectype_for_scalar_type.
8849 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8851 * common.opt (-fcommon): Fix description.
8853 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8855 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8856 * config/i386/i386.c (ix86_pre_reload_split): New function.
8857 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8858 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8859 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8860 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8861 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8862 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8863 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8864 *<shift_insn><dwi>3_doubleword_mask,
8865 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8866 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8867 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8868 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8869 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8870 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8871 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8872 *avx2_<code>v8qiv8si2<mask_name>_2,
8873 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8874 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8875 *avx512f_<code>v8qiv8di2<mask_name>_2,
8876 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8877 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8878 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8879 sse4_2_pcmpistr): Likewise.
8881 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8883 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8884 now defaults to https.
8886 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8888 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8889 skip non-zero array accesses.
8891 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8893 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8894 and return a boolean success value. Move the allocation and
8895 initialization of the bb_vec_info to...
8896 (vect_slp_bb_region): ...here. Update call accordingly.
8897 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8898 than in vect_slp_analyze_bb_1.
8900 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8902 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8903 when processing the given datarefs for the first time and
8904 check_datarefs subsequently.
8905 (vect_slp_bb_region): New function, split out of...
8906 (vect_slp_bb): ...here. Don't recompute the region bounds and
8907 dataref sets when retrying with a different vector size.
8909 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8910 Uroš Bizjak <ubizjak@gmail.com>
8913 * config/i386/predicates.md (int_nonimmediate_operand): New special
8915 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8916 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8917 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8918 define_insn_and_split patterns.
8920 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8922 * config/rs6000/rs6000.md: Delete out--of-date comment about
8923 special-casing integer loads.
8925 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8927 * escaped_string.h (escaped_string): New header.
8928 * tree.c (escaped_string): Remove escaped_string class.
8930 2019-10-18 Martin Sebor <msebor@redhat.com>
8932 PR tree-optimization/92157
8933 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8934 compute_string_length to return a negative result.
8936 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8938 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8939 (negvsi3, negvdi3): Delete.
8940 (negdi2_compare): Delete.
8942 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8944 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8946 (subdi3_compare1): Delete pattern.
8947 (subvsi3_borrow): New insn pattern.
8948 (subvsi3_borrow_imm): Likewise.
8950 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8952 * config/arm/arm.md (subv<mode>4): Delete.
8953 (subvdi4): New expander pattern.
8954 (subvsi4): Likewise. Handle some immediate values.
8955 (subvsi3_intmin): New insn pattern.
8956 (subvsi3): Likewise.
8957 (subvsi3_imm1): Likewise.
8958 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8961 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8963 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8964 incoming operands. Early split the calculation into SImode
8966 (usubvsi3_borrow): New insn pattern.
8967 (usubvsi3_borrow_imm): Likewise.
8969 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8971 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8972 (usubvsi4): New pattern. Allow some immediate values for inputs.
8973 (usubvdi4): New pattern.
8975 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8977 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8978 or second operand of the PLUS inside a DImode equality test to be
8979 sign-extend when selecting CC_Vmode.
8980 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8982 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8984 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8985 (addsi3_cin_vout_0): Likewise.
8986 (adddi3_compareV): Delete.
8988 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8990 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8991 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8992 to transform this back into the summation version when that leads
8995 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8997 * config/arm/arm.md (addv<mode>4): Delete.
8998 (addvsi4): New pattern. Handle immediate values that the architecture
9000 (addvdi4): New pattern.
9001 (addsi3_compareV): Rename to ...
9002 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
9003 and use COMPARE rather than NE.
9004 (addsi3_compareV_imm): New pattern.
9005 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
9006 a signed-overflow check.
9008 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9010 * config/arm/arm-modes.def (CC_ADC): New CC mode.
9011 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
9013 (maybe_get_arm_condition_code): Handle CC_ADCmode.
9014 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
9016 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
9018 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
9019 (addsi3_cin_cout_imm_insn): Likewise.
9020 (adddi3_compareC): Delete insn.
9021 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
9023 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9025 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
9026 * (uaddv<mode>4): Delete expansion pattern.
9027 (uaddvsi4): New pattern.
9028 (uaddvdi4): Likewise.
9029 (addsi3_compareC): Delete pattern, change callers to use
9031 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
9032 reduce the number of alternatives and re-work type attribute handling.
9033 (addsi3_compare_op2): Clean up constraints to reduce the number of
9034 alternatives and re-work type attribute handling.
9035 (compare_addsi2_op0): Likewise.
9036 (compare_addsi2_op1): Likewise.
9038 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9040 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
9041 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
9042 for DImode operands.
9043 (arm_gen_dicompare_reg): Remove unreachable expansion code.
9044 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
9046 * config/arm/arm.md (arm_cmpdi_insn): Delete.
9047 (arm_cmpdi_unsigned): Delete.
9049 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9051 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
9052 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
9053 unchanged only if that will be cheaper.
9054 (arm_select_cc_mode): Recognize a swapped comparison that will
9055 be regenerated using RSBS or RSCS. Relax restriction on selecting
9057 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
9059 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
9061 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
9063 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
9064 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
9066 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9068 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
9069 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
9071 (arm_gen_dicompare_reg): New code to early expand the sub-operations
9072 of EQ, NE, LT, GE, LTU and GEU.
9073 * config/arm/iterators.md (CC_EXTEND): New code attribute.
9074 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
9075 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
9076 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
9077 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
9079 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9081 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
9083 (cstoredi4): Similarly, but for operand 3.
9084 * config/arm/arm.c (arm_canoncialize_comparison): Allow
9085 canonicalization of unsigned compares with a constant on Arm.
9086 Prefer using const+1 and adjusting the comparison over swapping the
9087 operands whenever the original constant was not valid.
9088 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
9090 (arm_validize_comparison): Do not force invalid DImode operands to
9093 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9095 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
9096 return CC_Zmode if comparing against a constant where one word is
9098 (arm_gen_compare_reg): Split DImode handling to ...
9099 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
9100 against simple constants.
9101 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
9103 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9105 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
9106 (rsbsi3_carryin_shift_alt): Likewise.
9108 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9110 * config/arm/arm.md (negscc_borrow): New pattern.
9111 (mov_negscc): Don't split if the insn would match negscc_borrow.
9112 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
9113 (thumb2_mov_negscc_strict_it): Likewise.
9115 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9117 * config/arm/arm.c (arm_insn_cost): New function.
9118 (TARGET_INSN_COST): Override default definition.
9120 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9122 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
9125 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9127 * config/arm/arm.c (strip_carry_operation): New function.
9128 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
9131 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9133 * config/arm/predicates.md (arm_carry_operation): New special
9135 * config/arm/iterators.md (LTUGEU): Delete iterator.
9136 (cnb): Delete code attribute.
9137 (optab): Delete ltu and geu elements.
9138 * config/arm/arm.md (addsi3_carryin): Renamed from
9139 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
9140 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
9141 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
9142 (addsi3_carryin_clobercc): Similarly.
9143 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
9146 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9148 * config/arm/arm.md (arm_subdi3): Delete insn.
9149 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
9151 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9153 * config/arm/arm-modes.def (CC_RSB): New CC mode.
9154 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
9155 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
9157 (maybe_get_arm_condition_code): Handle CC_RSBmode.
9158 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
9160 (subdi3): Rewrite to early-expand the sub-operations.
9161 (rsb_im_compare): New pattern.
9163 (negdi2_insn): Delete.
9164 (arm_negsi2): Correct type attribute to alu_imm.
9165 (negsi2_0compare): New insn pattern.
9166 (negsi2_carryin): New insn pattern.
9168 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9170 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
9173 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9175 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
9176 to match canonical form.
9178 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9180 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
9181 (extend<mode>di2): Likewise.
9183 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9185 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
9186 * config/arm/arm.c (arm_decompose_di_binop): New function.
9187 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
9188 If not generating Thumb-1 code, decompose the operation into 32-bit
9190 * add0si_carryin_<optab>: New pattern.
9192 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9194 * arm.md (adddi3): Only accept register operands.
9195 (arm_adddi3): Convert to simple insn with no split. Do not accept
9197 (adddi_sesidi_di): Delete patern.
9198 (adddi_zesidi_di): Likewise.
9199 (uaddv<mode>4): Use LTU as condition for branch.
9200 (adddi3_compareV): Convert to simple insn with no split.
9201 (addsi3_compareV_upper): Delete pattern.
9202 (adddi3_compareC): Convert to simple insn with no split. Correct
9203 flags setting expression.
9204 (addsi3_compareC_upper): Delete pattern.
9205 (addsi3_compareC): Correct flags setting expression.
9206 (subdi3_compare1): Convert to simple insn with no split.
9207 (subsi3_carryin_compare): Delete pattern.
9208 (arm_subdi3): Convert to simple insn with no split.
9209 (subdi_zesidi): Delete pattern.
9210 (subdi_di_sesidi): Delete pattern.
9211 (subdi_zesidi_di): Delete pattern.
9212 (subdi_sesidi_di): Delete pattern.
9213 (subdi_zesidi_zesidi): Delete pattern.
9214 (negvdi3): Use s_register_operand.
9215 (negdi2_compare): Convert to simple insn with no split.
9216 (negdi2_insn): Likewise.
9217 (negsi2_carryin_compare): Delete pattern.
9218 (negdi_zero_extendsidi): Delete pattern.
9219 (arm_cmpdi_insn): Convert to simple insn with no split.
9220 (negdi2): Don't call gen_negdi2_neon.
9221 * config/arm/neon.md (adddi3_neon): Delete pattern.
9222 (subdi3_neon): Delete pattern.
9223 (negdi2_neon): Delete pattern.
9224 (splits for negdi2_neon): Delete splits.
9226 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9229 * ggc-page.c (release_pages): Read g->alloc_size before free rather
9232 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
9234 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9235 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
9236 new multilib variants and new mappings.
9238 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
9241 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9243 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9244 Richard Sandiford <richard.sandiford@arm.com>
9247 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9248 and define hashmap traits for it.
9249 (loop_vec_info::scalar_cond_masked_set): New member.
9250 (vect_record_loop_mask): Adjust prototype.
9251 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9253 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9254 vect_record_loop_mask.
9255 (vectorizable_live_operation): Likewise.
9256 (vect_record_loop_mask): New param scalar_mask. Add entry
9257 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9258 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9259 Pass it as last arg to vect_record_loop_mask.
9260 (vectorizable_call): Pass scalar_mask as last arg to
9261 vect_record_loop_mask.
9262 (vectorizable_store): Likewise.
9263 (vectorizable_load): Likewise.
9264 (vectorizable_condition): Check if another part of vectorized code
9265 applies loop_mask to condition or to it's inverse, and if yes,
9266 apply loop_mask to result of vector comparison.
9268 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
9270 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9272 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9274 PR tree-optimization/92056
9275 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9276 before calling compute_builtin_object_size.
9278 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
9281 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9282 (movdi_low_st): Delete.
9283 * config/rs6000/rs6000.c
9284 (darwin_rs6000_legitimate_lo_sum_const_p): New.
9285 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9286 * config/rs6000/rs6000.md (movsi_low): Delete.
9288 2019-10-17 Jason Merrill <jason@redhat.com>
9290 * gimplify.h (get_initialized_tmp_var): Add default argument to
9292 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9293 NULL post_p argument.
9294 * targhooks (std_gimplify_va_arg_expr): Likewise.
9296 2019-10-17 Richard Biener <rguenther@suse.de>
9298 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9299 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9300 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9301 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9302 * tree-vect-loop.c (vect_is_simple_reduction): Set
9303 STMT_VINFO_REDUC_CODE.
9304 (vectorizable_reduction): Remove dead and redundant code, use
9305 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9307 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
9309 Fix breakage introduced by r276985.
9311 * config/avr/avr.c (avr_option_override): Remove set of
9312 PARAM_ALLOW_STORE_DATA_RACES.
9313 * common/config/avr/avr-common.c (avr_option_optimization_table)
9314 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9316 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
9318 * config/i386/i386.h (processor_costs): Add clear_ratio.
9319 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9320 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9321 of 6 and move_ratio in all cost models.
9323 2019-10-17 Richard Biener <rguenther@suse.de>
9325 * tree-vect-loop.c (check_reduction_path): Compute reduction
9327 (vect_is_simple_reduction): Remove special-case of single-stmt
9328 reduction path detection.
9330 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
9332 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9334 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
9336 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9337 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9338 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9339 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9340 New combine patterns.
9341 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9343 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9345 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
9347 * tree-vrp.c (value_range_base::dump): Display +INF for both
9348 pointers and integers when appropriate.
9350 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9352 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9353 when to use versioning threshold.
9355 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9357 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9358 outlined code from ...
9359 (vect_analyze_loop_2): ... here.
9361 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9363 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9364 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9365 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9367 2019-10-17 Richard Biener <rguenther@suse.de>
9369 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9370 (vect_is_simple_reduction): Move all validity checks ...
9371 (vectorizable_reduction): ... here. Compute whether we
9372 need a fold-left reduction here.
9373 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9374 both overloads, check needs_fold_left_reduction_p directly.
9375 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9377 2019-10-17 Richard Biener <rguenther@suse.de>
9379 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9380 TARGET_MEM_REF creation.
9382 2019-10-17 Richard Biener <rguenther@suse.de>
9384 PR tree-optimization/92129
9385 * tree-vect-loop.c (vectorizable_reduction): Also fail
9386 on GIMPLE_SINGLE_RHS.
9388 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9390 PR tree-optimization/92056
9391 * tree-object-size.c (cond_expr_object_size): Return early if then_
9392 processing resulted in unknown size.
9394 PR tree-optimization/92115
9395 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9396 temporary if it could trap.
9398 2019-10-17 Richard Biener <rguenther@suse.de>
9401 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9402 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9404 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9406 * tree-ssa-strlen.c (maybe_invalidate): Use
9407 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9409 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9410 Jim Wilson <jimw@sifive.com>
9412 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9413 regs to SIBCALL_REGS.
9414 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9415 passing regs to SIBCALL_REGS.
9417 2019-10-16 Martin Sebor <msebor@redhat.com>
9419 PR tree-optimization/83821
9420 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9421 the length of a string when available.
9422 (handle_builtin_memset) Add argument.
9423 (handle_store, strlen_check_and_optimize_call): Same.
9424 (check_and_optimize_stmt): Same. Pass it to callees.
9426 2019-10-16 Martin Sebor <msebor@redhat.com>
9428 PR tree-optimization/91996
9429 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9431 (compare_nonzero_chars): Add an overload.
9432 (count_nonzero_bytes): Add an argument. Call overload above.
9433 Handle non-constant lengths in some range.
9434 (handle_store): Add an argument.
9435 (check_and_optimize_stmt): Pass an argument to handle_store.
9437 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9439 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9441 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9443 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9444 operands which correspond to the same input-output register to
9445 have the same pseudo assigned to them.
9447 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9449 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9451 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9453 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9454 Apply reasonable limit to symbol offsets.
9456 2019-10-16 Richard Biener <rguenther@suse.de>
9458 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9459 (vect_is_simple_reduction): Delay checking to
9460 vectorizable_reduction and relax the checking.
9461 (vectorizable_reduction): Check we have a simple use. Check
9462 for bogus condition reductions.
9463 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9464 are looking at the last stmt in a pattern sequence when
9465 filling in backedge PHI values.
9467 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9468 Jiufu Guo <guojiufu@linux.ibm.com>
9471 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9472 the callee explicitly disables some isa_flags the caller is using.
9474 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9476 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9478 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9480 * genmodes.c (mode_data::order): New field.
9481 (blank_mode): Update accordingly.
9482 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9483 (make_vector_modes): Likewise.
9484 (VECTOR_MODES): Update use accordingly.
9485 (cmp_modes): Sort by the new order field ahead of sorting by size.
9486 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9487 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9488 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9489 (aarch64_classify_vector_mode): Handle the new partial modes.
9490 (aarch64_vl_bytes): New function.
9491 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9492 when counting the number of registers in an SVE mode.
9493 (aarch64_class_max_nregs): Likewise.
9494 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9496 (aarch64_classify_address): Treat partial vectors analogously
9498 (aarch64_print_address_internal): Consolidate the printing of
9499 MUL VL addresses, using aarch64_vl_bytes as the number of
9500 bytes represented by "VL".
9501 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9503 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9505 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9506 rather than known_lt when choosing frame layouts.
9508 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9510 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9511 that all the adjustments add up to the full frame size.
9512 Use crtl->outgoing_args_size directly as the final adjustment
9515 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9517 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9518 "frame" reference instead of always referring directly to
9519 "cfun->machine->frame".
9521 2019-10-16 Richard Biener <rguenther@suse.de>
9523 PR tree-optimization/92119
9524 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9525 against missing bswap lhs.
9527 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9530 * poly-int.h (constant_lower_bound_with_limit): New function.
9531 (constant_upper_bound_with_limit): Likewise.
9532 * doc/poly-int.texi: Document them.
9533 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9534 into the worst-case INTEGER_CST bounds.
9536 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9539 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9540 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9541 * ipa-predicat.h (struct expr_eval_op): New struct.
9542 (expr_eval_ops): New typedef.
9543 (struct condition): Add type and param_ops fields, remove size field.
9544 (add_condition): Replace size parameter with type parameter, add
9545 param_ops parameter.
9546 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9547 (predicate::add_clause): Add comparisons on type and param_ops.
9548 (dump_condition): Add debug dump for param_ops.
9549 (remap_after_inlining): Adjust call arguments to add_condition.
9550 (add_condition): Replace size parameter with type parameter, add
9551 param_ops parameter. Unshare constant value used in conditions.
9552 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9553 parameter expressions using param_ops.
9554 (decompose_param_expr): New function.
9555 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9556 to replace call to unmodified_parm_or_parm_agg_item.
9557 (set_switch_stmt_execution_predicate): Likewise.
9558 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9560 (inline_read_section): Read param_ops from summary stream.
9561 (ipa_fn_summary_write): Write param_ops to summary stream.
9563 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9565 PR rtl-optimization/92107
9566 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9569 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9571 * config/darwin.c: Update description of fix and continue.
9573 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9575 * config/darwin.c (darwin_binds_local_p): Update to call
9576 default_binds_local_p_3 () directly. amend comments.
9578 2019-10-15 Richard Biener <rguenther@suse.de>
9580 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9581 (tree_is_indexable): Use it.
9582 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9583 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9584 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9586 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9588 * config/msp430/msp430.md (zero_extendqipsi2): New.
9589 (zero_extendqisi2): Optimize case where src register and base dst
9590 register are the same.
9591 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9592 (zero_extendpsisi2): Optimize r->m case.
9593 Add unnamed insn patterns to catch insns combine searches for when
9594 optimizing pointer manipulation.
9596 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9598 * config/msp430/msp430.md: Group zero_extend* insns together.
9600 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9602 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9604 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9606 (msp430_subreg): Likewise.
9607 (msp430_split_addsi): Likewise.
9608 (msp430_print_operand_addr): Likewise.
9609 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9610 (USE_STORE_POST_INCREMENT): Define.
9611 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9612 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9613 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9614 (msp430_general_dst_operand): New.
9615 (msp430_general_dst_nonv_operand): New.
9616 (msp430_nonsubreg_operand): Remove.
9617 (msp430_nonsubreg_dst_operand): New.
9618 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9619 of defunct msp430_nonsubreg_operand.
9620 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9622 2019-10-15 Richard Biener <rguenther@suse.de>
9624 PR tree-optimization/91929
9625 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9626 (get_or_alloc_expr_for_name): Initialize it.
9627 (get_or_alloc_expr_for_constant): Likewise.
9628 (phi_translate_1): Copy it.
9629 (create_expression_by_pieces): Use the original location
9630 of the expression for the inserted stmt.
9631 (compute_avail): Record the location of the stmt for the
9632 expressions created.
9634 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9636 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9637 before using tree_to_uhwi.
9639 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9641 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9643 2019-10-15 Richard Biener <rguenther@suse.de>
9645 PR tree-optimization/92094
9646 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9647 do not adjust the reduction definition def type.
9648 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9649 defines the latch argument of the PHI.
9651 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9654 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9655 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9656 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9657 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9658 _mm_maskz_roundscale_round_sd): New intrinsics.
9659 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9660 __builtin_ia32_rndscales?_mask_round builtins instead of
9661 __builtin_ia32_rndscales?_round.
9662 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9663 __builtin_ia32_rndscalesd_round): Remove.
9664 (__builtin_ia32_rndscaless_mask_round,
9665 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9666 * config/i386/sse.md
9667 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9668 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9669 ... this, adjust and add subst atrributes to make it maskable.
9671 2019-10-15 Richard Biener <rguenther@suse.de>
9674 * common.opt (fallow-store-data-races): New.
9675 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9676 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9677 * doc/invoke.texi (fallow-store-data-races): Document.
9678 (--param allow-store-data-races): Remove docs.
9679 * opts.c (default_options_table): Enable -fallow-store-data-races
9681 (default_options_optimization): Do not enable --param
9682 allow-store-data-races at -Ofast.
9683 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9684 instead of PARAM_ALLOW_STORE_DATA_RACES.
9685 * tree-ssa-loop-im.c (execute_sm): Likewise.
9687 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9689 PR tree-optimization/92085
9690 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9691 instead of calling it unconditionally after
9692 delete_dead_or_redundant_assignment and fix indentation.
9694 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9696 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9698 (*fmsub<SDF:mode>4): Likewise.
9699 *fnmsub<SDF:mode>4): Likewise.
9700 (*fnmadd<SDF:mode>4): Likewise.
9702 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9704 * doc/tree-ssa.texi: Update renamed macro name.
9706 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9708 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9711 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9713 * config/darwin.c: Use unsigned ints for the picbase label
9714 counters, initialise the vars explicitly.
9715 (update_pic_label_number_if_needed): Move a variable declaration
9716 to where it's needed.
9717 (machopic_output_function_base_name): Use a more strict checking
9718 assert, and and unsigned int for the picbase label counter.
9719 (machopic_get_function_picbase): Likewise.
9721 2019-10-14 Richard Biener <rguenther@suse.de>
9724 * dse.c (scan_insn): Use param max_active_local_stores.
9725 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9726 based on optimization level.
9727 * loop-invariant.c (move_loop_invariants): Adjust
9728 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9729 * opts.c (default_options_optimization): Do not adjust
9730 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9731 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9733 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9735 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9737 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9739 * config/arm/arm.c (arm_option_override): Don't override sched
9742 2019-10-14 Richard Biener <rguenther@suse.de>
9744 PR tree-optimization/92069
9745 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9746 cycles do not set vect_nested_cycle on the latch definition.
9748 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9750 * function-abi.h (expr_callee_abi): Declare.
9751 * function-abi.cc (expr_callee_abi): New function.
9753 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9755 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9757 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9758 non-zero being represented as [1,MAX].
9760 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9762 * tree-sra.c (dump_access): Add missing braces.
9764 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9766 * config/darwin.c (machopic_indirection_name): Rework the
9767 function to emit linker-visible symbols only for indirections
9768 in the data section. Clean up the code and update comments.
9770 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9772 * config/darwin.c (machopic_indirect_data_reference): Remove
9775 2019-10-13 Nathan Sidwell <nathan@acm.org>
9777 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9779 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9781 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9784 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9786 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9787 so non-virutal are before virutals.
9788 (output_function): Avoid body modifications.
9790 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9792 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9793 %r22. Load function address before global pointer.
9794 (pa_attr_length_indirect_call): Adjust length of inline versions of
9796 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9797 before normal cases. Update inline $$dyncall sequences to preserve
9798 function descriptor address in register %r22.
9799 (TRAMPOLINE_CODE_SIZE): Adjust.
9800 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9801 register %r22 contains trampoline address.
9802 (pa_trampoline_init): Adjust offsets.
9803 (pa_trampoline_adjust_address): Likewise.
9804 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9806 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9809 * config/darwin.c (machopic_indirection): New field to flag
9810 non-lazy-symbol-pointers in the data section.
9811 (machopic_indirection_name): Compute if an indirection should
9812 appear in the data section.
9813 (machopic_output_data_section_indirection): New callback split
9814 from machopic_output_indirection.
9815 (machopic_output_stub_indirection): Likewise.
9816 (machopic_output_indirection): Retain the code for non-lazy
9817 symbol pointers in their regular section.
9818 (machopic_finish): Use the new callbacks to order the indirection
9821 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9823 * config/darwin-protos.h (machopic_finish): Delete.
9824 * config/darwin.c (machopic_finish): Make static.
9826 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9828 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9829 sections when building kernel extension code.
9831 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9833 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9836 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9838 * config/pa/pa.c (pa_option_override): Remove trailing comma
9841 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9844 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9845 <case VEC_COND_EXPR>: Return false with *handled = false.
9846 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9847 recursing on the first operand.
9848 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9849 instead of tree_could_trap_p.
9850 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9852 2019-10-11 Jim Wilson <jimw@sifive.com>
9854 PR rtl-optimization/91860
9855 * combine.c (subst): If new_rtx is a constant, also check for
9856 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9858 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9860 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9861 INTVAL when calling store_bit_field.
9863 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9865 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9868 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9870 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9871 vectorizable_live_operation.
9872 (vectorizable_live_operation): Adjust parameters.
9873 * tree-vect-stmts.c (vect_init_vector,
9874 vect_gen_widened_results_half): Fix typo in function comment.
9875 (can_vectorize_live_stmts): Adjust function comment.
9876 Adjust parameters. Adjust call to vectorizable_live_operation.
9877 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9878 (vect_transform_stmt): Adjust function comment. Adjust call to
9879 can_vectorize_live_stmts.
9880 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9882 2019-10-11 Richard Biener <rguenther@suse.de>
9884 PR tree-optimization/90883
9885 PR tree-optimization/91091
9886 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9887 alias-sets both for recording VN table entries and continuing
9888 walking after translating through copies. Handle same-sized
9889 reads from SSA names by returning the plain SSA name.
9890 (eliminate_dom_walker::eliminate_stmt): Properly handle
9891 non-size precision stores in redundant store elimination.
9893 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9895 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9896 (ggc_collect): Dump later to not interfere with release_page dump.
9897 (ggc_trim): New function.
9898 * ggc-none.c (ggc_trim): New.
9899 * ggc.h (ggc_trim): Declare.
9901 2019-10-11 Richard Biener <rguenther@suse.de>
9903 PR tree-optimization/92066
9904 PR tree-optimization/92046
9905 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9906 Fix bogus cost model check.
9908 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9910 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9911 (LANG_HOOKS_DECLS): Add it.
9912 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9913 update comment for omp_is_optional_argument.
9914 * omp-general.c (omp_is_allocatable_or_ptr): New.
9915 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9916 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9917 Fortran's optional arguments and allocatable/pointer scalars
9918 with use_device_addr.
9920 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9923 * config/s390/2827.md: Add new opcodes.
9924 * config/s390/2964.md: Likewise.
9925 * config/s390/3906.md: Likewise.
9926 * config/s390/8561.md: Likewise.
9927 * config/s390/s390-builtins.def (s390_vfchesb): Use
9928 the new vec_cmpgev4sf_quiet_nocc.
9929 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9930 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9931 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9932 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9933 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9934 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9935 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9936 * config/s390/s390-modes.def (CCSFPS): New mode.
9937 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9938 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9939 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9940 (s390_expand_vec_compare): Use non-signaling patterns where
9942 (s390_reverse_condition): Support CCSFPS.
9943 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9944 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9945 (asm_fcmp_op): Likewise.
9946 (*smaxv2df3_vx): Use pattern for quiet comparison.
9947 (*sminv2df3_vx): Likewise.
9948 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9949 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9950 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9951 (vec_cmplt<mode>_quiet_nocc): New expander.
9952 (vec_cmpge<mode>_quiet_nocc): New pattern.
9953 (vec_cmple<mode>_quiet_nocc): New expander.
9954 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9955 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9956 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9957 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9958 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9959 (vec_cmpungt<mode>): New expander.
9960 (vec_cmpunge<mode>): Likewise.
9961 (vec_cmpuneq<mode>): Use quiet patterns.
9962 (vec_cmpltgt<mode>): Allow only on z14+.
9963 (vec_cmpordered<mode>): Use quiet patterns.
9964 (vec_cmpunordered<mode>): Likewise.
9965 (VEC_CMP_EXPAND): Add ungt and unge.
9967 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9969 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9971 * lto-streamer-out.c: Include tree-dfa.h.
9972 (output_cfg): Do not use cfun.
9973 (lto_prepare_function_for_streaming): New.
9974 (output_function): Do not push cfun; do not initialize loop optimizer.
9975 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9976 * passes.c (ipa_write_summaries): Use it.
9977 (ipa_write_optimization_summaries): Do not modify bodies.
9978 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9979 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9980 * tree-ssa-dse.c (pass_dse::execute): Update use of
9981 renumber_gimple_stmt_uids.
9982 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9984 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9986 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9987 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9989 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9991 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9993 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9994 Also define DFP macros for these conditions.
9995 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9996 DEC128_SUBNORMAL_MIN): Do not define.
9997 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9998 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
10000 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
10001 Sandra Loosemore <sandra@codesourcery.com>
10003 PR middle-end/26241
10004 * doc/lto.texi (IPA): Reference to the IPA passes.
10005 * doc/passes.texi (Pass manager): Add node IPA passes and
10006 description for each IPA pass.
10008 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
10010 * ipa-reference.c: Do not include splay-tree.h
10011 (reference_vars_to_consider): Turn to hash map.
10012 (get_static_name, ipa_init, analyze_function, propagate,
10013 stream_out_bitmap, ipa_reference_write_optimization_summary,
10014 ipa_reference_write_optimization_summary): Update.
10016 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
10018 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
10020 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
10022 * config/darwin.c: Lookup Objective C metadata and force indirection
10025 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
10027 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
10029 (mem_operand_gpr): Add check for prefixed addresses.
10030 (mem_operand_ds_form): Add check for prefixed addresses.
10031 (rs6000_legitimate_offset_address_p): If we support prefixed
10032 addresses, check for a 34-bit offset instead of 16-bit.
10033 (rs6000_legitimate_address_p): Add check for prefixed addresses.
10034 Do not allow load/store with update if the address is prefixed.
10035 (rs6000_mode_dependent_address): If we support prefixed
10036 addresses, check for a 34-bit offset instead of 16-bit.
10038 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
10041 * config/s390/vector.md (vcond_comparison_operator): New
10043 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
10045 2019-10-10 David Malcolm <dmalcolm@redhat.com>
10048 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
10050 * configure.ac (--with-documentation-root-url): New option.
10051 * configure: Regenerate.
10052 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
10053 option URL, add it as a new string field of the diagnostic option.
10054 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
10055 (print_option_information): If get_option_url is non-NULL, call
10056 it, and if the result is non-NULL, potentially emit an escape
10057 sequence to markup the option text with the resulting URL.
10058 * diagnostic.h (diagnostic_context::get_option_url): New callback.
10059 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
10060 example of JSON output.
10061 * opts-diagnostic.h (get_option_url): New decl.
10062 * opts.c (get_option_url): New function.
10063 * toplev.c (general_init): Initialize the get_option_url callback.
10065 2019-10-10 David Malcolm <dmalcolm@redhat.com>
10068 * common.opt (fdiagnostics-urls=): New option.
10069 (diagnostic-url.h): Add SourceInclude.
10070 (diagnostic_url_rule): New enum.
10071 * diagnostic-color.c: Include "diagnostic-url.h".
10072 (diagnostic_urls_enabled_p): New function.
10073 * diagnostic-url.h: New file.
10074 * diagnostic.c: Include "diagnostic-url.h".
10075 (diagnostic_urls_init): New function.
10076 * diagnostic.h (diagnostic_urls_init): New decl.
10077 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10078 -fdiagnostics-urls to the list.
10079 (-fdiagnostics-urls): New option.
10080 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
10081 (driver::global_initializations): Call diagnostic_urls_init.
10082 * opts-global.c (init_options_once): Likewise.
10083 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
10084 * pretty-print.c (pretty_printer::pretty_printer): Initialize
10086 (pp_begin_url): New function.
10087 (pp_end_url): New function.
10088 (selftest::test_urls): New selftest.
10089 (selftest::pretty_print_c_tests): Call it.
10090 * pretty-print.h (pretty_printer::show_urls): New field.
10091 (pp_begin_url): New decl.
10092 (pp_end_url): New decl.
10094 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
10097 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
10099 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
10102 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
10103 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
10104 also for TARGET_FPU_SH4_300.
10105 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
10107 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
10108 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
10109 (*negsf2_i): Split into ...
10110 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
10111 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
10112 (**abssf2_i): Split into ...
10113 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
10114 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
10115 (*negdf2_i): Split into ...
10116 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
10117 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
10118 (**abssf2_i): Split into ...
10119 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
10121 2019-10-10 Richard Biener <rguenther@suse.de>
10123 PR middle-end/92046
10124 * opts.c (finish_options): Do not influence global --params
10125 from options that are adjustable per function.
10126 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10127 Apply --param adjustment based on active cost-model.
10128 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
10129 further store-sinking when vectorization or if-conversion
10132 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
10134 PR middle-end/92037
10135 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
10136 rather than ggc_alloc_cleared to alloc symbol table.
10137 * toplev.c (general_init): Likewise.
10138 * cgraph.h (symbol_table): Explicitly construct every field.
10140 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
10142 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
10143 (PF_Z15): ... this.
10144 * config.gcc: Add z15 as option for --with-arch and --with-tune
10145 configure switches.
10146 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
10147 error reporting for unsupported builtins.
10148 * config/s390/s390-opts.h (enum processor_type): Rename
10149 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
10150 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
10151 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10153 * config/s390/s390-builtins.def: Likewise.
10154 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
10155 (s390_expand_builtin): Add missing check for unsupported builtins.
10156 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
10157 (s390_rtx_costs): Likewise.
10158 (s390_get_sched_attrmask): Rename arch13 to z15.
10159 (s390_get_unit_mask): Likewise.
10160 (s390_is_fpd): Likewise.
10161 (s390_is_fxd): Likewise.
10162 * config/s390/s390.h (enum processor_flags): Likewise.
10163 * config/s390/s390.md: Likewise.
10164 * config/s390/vector.md: Likewise.
10165 * config/s390/vx-builtins.md: Likewise.
10166 * config/s390/s390.opt: Add z15 to processor_type value.
10168 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
10171 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
10173 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
10174 ("split_stack_data", "split_stack_call")
10175 ("split_stack_call_<mode>", "split_stack_cond_call")
10176 ("split_stack_cond_call_<mode>"): Remove.
10177 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
10179 * config/s390/s390.c (s390_output_split_stack_data): New function.
10180 (s390_expand_split_stack_prologue): Use the merged expander.
10182 2019-10-09 Martin Sebor <msebor@redhat.com>
10184 PR tree-optimization/90879
10185 * builtins.c (check_access): Avoid using maxbound when null.
10186 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
10187 * doc/invoke.texi (-Wstring-compare): Document new warning option.
10188 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
10190 (get_range_strlen): Overwrite initial maxbound when non-null.
10191 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
10193 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
10194 (used_only_for_zero_equality): New function.
10195 (handle_builtin_memcmp): Call it.
10196 (determine_min_objsize): Return an integer instead of tree.
10197 (get_len_or_size, strxcmp_eqz_result): New functions.
10198 (maybe_warn_pointless_strcmp): New function.
10199 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
10200 between a longer string and a smaller array.
10201 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
10203 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10205 * config/darwin.c (darwin_override_options): Make the check for
10206 Objective-C ABI version more specific for 64bit code.
10208 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10210 * config/darwin.c (machopic_indirect_data_reference): Set flag to
10211 indicate that the new symbol is an indirection.
10212 (machopic_indirect_call_target): Likewise.
10213 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10214 (MACHO_SYMBOL_INDIRECTION_P): New.
10215 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10217 2019-10-08 Jason Merrill <jason@redhat.com>
10219 * doc/invoke.texi: Document -fconcepts-ts.
10221 2019-10-09 Richard Biener <rguenther@suse.de>
10223 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10224 allow stmts other than GIMPLE_ASSIGN in nested cycles.
10226 2019-10-08 Richard Biener <rguenther@suse.de>
10228 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10229 (_stmt_vec_info::force_single_cycle): Likewise.
10230 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10231 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10232 * tree-vect-loop.c (vectorizable_reduction): Set
10233 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10234 (vect_transform_reduction): Use them to remove redundant code.
10235 (vect_transform_cycle_phi): Likewise.
10237 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10239 PR tree-optimization/90836
10240 * match.pd (popcount): New pattern.
10242 2019-10-08 Martin Sebor <msebor@redhat.com>
10244 PR middle-end/92026
10245 PR middle-end/92014
10246 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10247 again once nbytes has been set. Set the access size when not yet set.
10249 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10251 * config/darwin.c (machopic_select_section): Remove dead code for
10252 old Objective-C section selection method, replace with unreachable.
10254 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10256 * config/darwin.c (machopic_indirect_data_reference): Check for
10257 required indirections before making direct access to defined
10259 (machopic_output_indirection): Place the indirected pointes for
10260 required indirections into the non-lazy symbol pointers section.
10261 (darwin_encode_section_info):
10262 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10263 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10265 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
10268 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10269 instead of ALL_SSE_REG to check if function call preserves some
10270 256-bit SSE registers.
10272 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10274 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10275 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10276 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10278 2019-10-08 Richard Biener <rguenther@suse.de>
10280 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10281 (_stmt_vec_info::is_reduc_info): Add.
10282 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10283 (vectorizable_condition): Remove.
10284 (vectorizable_shift): Likewise.
10285 (vectorizable_reduction): Adjust.
10286 (info_for_reduction): New.
10287 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10288 (vect_analyze_scalar_cycles_1): ... here.
10289 (vect_analyze_loop_operations): Adjust.
10290 (needs_fold_left_reduction_p): Simplify for single caller.
10291 (vect_is_simple_reduction): Likewise. Remove stmt restriction
10292 for nested cycles not part of double reductions.
10293 (vect_model_reduction_cost): Pass in the reduction type.
10294 (info_for_reduction): New function.
10295 (vect_create_epilog_for_reduction): Use it, access reduction
10296 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
10297 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10298 (vectorize_fold_left_reduction): Remove pointless assert.
10299 (vectorizable_reduction): Analyze the full reduction when
10300 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
10301 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
10302 stmt code-generation to vectorizable_* in most cases. Verify
10303 code-generation only for cases handled by
10304 vect_transform_reductuon.
10305 (vect_transform_reduction): Use info_for_reduction to get at
10306 reduction meta. Simplify.
10307 (vect_transform_cycle_phi): Likewise.
10308 (vectorizable_live_operation): Likewise.
10309 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10310 at the PHI node for STMT_VINFO_REDUC_TYPE.
10311 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10312 longer necessary code.
10313 * tree-vect-stmts.c (vectorizable_shift): Make static again.
10314 (vectorizable_condition): Likewise. Get at reduction related
10315 info via info_for_reduction.
10316 (vect_analyze_stmt): Adjust.
10317 (vect_transform_stmt): Likewise.
10318 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10319 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10321 2019-10-08 Joseph Myers <joseph@codesourcery.com>
10323 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10324 -fno-fp-int-builtin-inexact default for C2X.
10326 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10327 Richard Biener <rguenther@suse.de>
10329 PR tree-optimization/91532
10330 * tree-if-conv.c: Include tree-ssa-dse.h.
10331 (ifcvt_local_dce): Change param from bb to loop,
10332 and call dse_classify_store.
10333 (tree_if_conversion): Pass loop instead of loop->header as arg
10334 to ifcvt_local_dce.
10335 * tree-ssa-dse.c: Include tree-ssa-dse.h.
10336 (delete_dead_or_redundant_assignment): Remove static qualifier from
10337 declaration, and add prototype in tree-ssa-dse.h.
10338 (dse_store_status): Move to tree-ssa-dse.h.
10339 (dse_classify_store): Remove static qualifier and add new tree param
10340 stop_at_vuse, and add prototype in tree-ssa-dse.h.
10341 * tree-ssa-dse.h: New header.
10343 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10345 * config/darwin.c (machopic_output_indirection): Don't put
10346 hidden symbol indirections into the .data section, use the
10347 non-lazy symbol pointers section as normal.
10348 (darwin_encode_section_info): Record if a symbol is hidden.
10349 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10350 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10352 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10354 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10355 predicates instead of accessing bits directly.
10356 (machopic_indirect_call_target): Likewise.
10357 (machopic_output_indirection): Likewise.
10358 (darwin_encode_section_info): Improve description. Use renamed
10359 symbol flags. Use predicate macros for variables and functions.
10361 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10362 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10363 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10364 (MACHO_SYMBOL_VARIABLE_P): New.
10365 (MACHO_SYMBOL_DEFINED_P):New.
10366 (MACHO_SYMBOL_STATIC_P): New.
10367 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10368 (SYMBOL_FLAG_SUBT_DEP): New.
10369 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10371 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10373 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10374 (msp430_expand_epilogue): Likewise.
10375 * config/msp430/predicates.md: Likewise.
10376 * config/msp430/msp430.md: Likewise.
10377 Replace blocks of 8 spaces with tabs.
10379 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10381 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10382 * config/msp430/msp430.c (msp430_split_addsi): New.
10383 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10384 a block of C code for splitting addsi.
10386 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10388 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10389 ix86_expand_rounddf_32): Reorder functions.
10390 * config/i386/i386-protos.h: Update.
10392 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10394 * config.in: Regenerate.
10395 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10396 Add new "Yx" constraint.
10397 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10399 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10401 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10402 code/data region to be selected in the small memory model.
10403 (msp430_section_attr): Don't warn if the "section" and "lower"
10404 attributes are used together.
10405 (msp430_handle_generic_attribute): Likewise.
10406 (msp430_var_in_low_mem): New function.
10407 (TARGET_ENCODE_SECTION_INFO): Define.
10408 (msp430_encode_section_info): New function.
10409 (gen_prefix): Return early in the small memory model.
10410 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10411 ".lower" prefix if -m{code,data}-region=lower have been passed.
10412 (msp430_output_aligned_decl_common): Emit common symbols when
10413 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10415 (TARGET_ASM_FILE_END): Define.
10416 (msp430_file_end): New function.
10417 (msp430_do_not_relax_short_jumps): Allow relaxation when
10418 function will be in the lower region.
10419 (msp430_op_not_in_high_mem): New function.
10420 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10421 the 'X' operand selector.
10422 Clarify comment for 'x' operand selector.
10423 * config/msp430/msp430.h (LINK_SPEC): Propagate
10424 -m{code,data}-region to the linker via spec function
10425 msp430_propagate_region_opt.
10426 (msp430_propagate_region_opt): New prototype.
10427 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10428 (SYMBOL_FLAG_LOW_MEM): Define.
10429 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10431 (zero_extendqihi2): Fix operand number used by "%X" selector.
10432 (zero_extendqisi2): Likewise.
10433 (zero_extendhisi2): Likewise.
10434 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10436 (addqi3): Likewise.
10437 (addhi3): Likewise.
10438 (addsi3): Likewise.
10439 (addhi3_cy): Likewise.
10440 (addchi4_cy): Likewise.
10441 (subqi3): Likewise.
10442 (subhi3): Likewise.
10443 (subsi3): Likewise.
10444 (bic<mode>3): Likewise.
10445 (and<mode>3): Likewise.
10446 (ior<mode>3): Likewise.
10447 (xor<mode>3): Likewise.
10448 (slli_1): Add missing "%X" operand selector.
10449 (slll_1): Likewise.
10450 (slll_2): Likewise.
10451 (srai_1): Likewise.
10452 (sral_1): Likewise.
10453 (sral_2): Likewise.
10454 (srli_1): Likewise.
10455 (srll_1): Likewise.
10456 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10458 (cbranchhi4_real): Likewise.
10459 (cbranchqi4_reversed): Likewise.
10460 (cbranchhi4_reversed): Likewise.
10461 (*bitbranch<mode>4): Likewise.
10462 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10463 * config/msp430/msp430.opt (mcode-region=): Set default to
10464 MSP430_REGION_LOWER. Improve docstring.
10465 (mdata-region=): Likewise.
10466 (muse-lower-region-prefix): New option.
10467 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10468 mdata-region=none multilib.
10469 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10470 mdata-region=none multilib.
10471 MULTILIB_EXCEPTIONS: Remove.
10472 MULTILIB_REQUIRED: Define.
10473 * configure: Regenerate.
10474 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10475 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10476 * doc/extend.texi: Clarify comment for {upper,lower,either}
10477 function attributes.
10478 Add separate description for "lower" variable attribute.
10480 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10483 * optabs-tree.c (vcond_icode_p): New function.
10484 (vcond_eq_icode_p): Likewise.
10485 (expand_vec_cond_expr_p): Use vcond_icode_p and
10487 * optabs.c (can_vcond_compare_p): New function.
10488 * optabs.h (can_vcond_compare_p): Likewise.
10490 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10493 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10494 caller passes a non-trapping condition.
10495 (is_gimple_condexpr): Allow trapping conditions.
10496 (is_gimple_condexpr_1): New helper function.
10497 (is_gimple_condexpr_for_cond): New function, acts like old
10498 is_gimple_condexpr.
10499 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10500 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10501 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10502 * gimplify.c (gimplify_cond_expr): Use
10503 is_gimple_condexpr_for_cond.
10504 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10505 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10507 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10508 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10509 is_gimple_condexpr_for_cond, remove pointless tmp check
10510 (forward_propagate_into_cond): Remove pointless tmp check.
10512 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10514 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10515 match that of other gsi_next_* functions. Adjust the comment.
10516 (gsi_start_nonvirtual_phis): New function.
10517 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10518 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10520 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10522 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10523 setjmp situation here. Fix a verb's ending: "the exact variables or
10524 elements for which there are warnings depends" -> "... depend".
10526 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10528 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10530 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10532 * ipa-prop.c (ipa_vr::nonzero_p): New.
10533 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10535 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10536 * tree-vrp.c (range_has_numeric_bounds_p): New.
10537 (range_int_cst_p): Use range_has_numeric_bounds_p.
10538 (get_range_op_handler): New.
10539 (supported_types_p): New.
10540 (defined_ranges_p): New.
10541 (drop_undefines_to_varying): New.
10542 (range_fold_binary_symbolics_p): New.
10543 (range_fold_unary_symbolics_p): New.
10544 (range_fold_unary_expr): Extract out into above functions.
10545 (range_fold_binary_expr): Same.
10546 (value_range_base::normalize_addresses): New.
10547 (value_range_base::normalize_symbolics): Normalize addresses.
10548 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10550 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10552 * tree-vrp.c (value_range_base::singleton_p): Use
10553 value_range_base::num_pairs instead of vrp_val_is* to check
10554 if a range has one sub-range.
10556 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10558 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10559 DEF is not a true earlyclobber but is tied to a specific input
10560 operand, and so is effectively earlyclobber wrt inputs that have
10562 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10564 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10566 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10567 (pod_mode): Mark operators likewise.
10568 (scalar_int_mode): Mark non-default constructors and
10569 operators with CONSTEXPR.
10570 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10571 (fixed_size_mode): Likewise.
10573 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10576 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10577 and wrap the unspec_volatile in a parallel.
10578 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10579 the unspec_volatile.
10580 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10581 unspec_volatile to be wrapped in a parallel.
10582 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10583 (ix86_add_reg_usage_to_vzerouppers): New functions.
10584 (rest_of_handle_insert_vzeroupper): Use them to add register
10585 usage information to the vzeroupper instructions.
10587 2019-10-07 Richard Biener <rguenther@suse.de>
10589 PR tree-optimization/91975
10590 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10593 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10595 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10596 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10598 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10600 * config/darwin.c (darwin_override_options): Adjust objective-c
10601 ABI version error messages to avoid punctuation and contracted
10604 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10606 * ipa-inline.c: Fix type; compute size rather than self_size
10607 for size of caller function.
10609 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10612 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10613 choose const_data section for constants with relocations.
10614 (machopic_select_section): Pass relocation flag to
10615 darwin_rodata_section ().
10617 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10619 PR tree-optimization/91734
10620 * generic-match-head.c: Include fold-const-call.h.
10621 * match.pd (sqrt(x) cmp c): Check the boundary value and
10622 in case inexact computation of c*c affects comparison of the boundary,
10623 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10624 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10625 for -frounding-math. For c2, try the next smaller or larger floating
10626 point constant depending on comparison code and if it has the same
10627 sqrt as c2, use it instead of c2.
10629 2019-10-04 Martin Sebor <msebor@redhat.com>
10631 PR middle-end/91977
10632 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10633 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10634 uninitialized objects.
10636 2019-10-04 Martin Sebor <msebor@redhat.com>
10638 * builtins.c (compute_objsize): Add an argument.
10639 * tree-object-size.c (addr_object_size): Same.
10640 (compute_builtin_object_size): Same.
10641 * tree-object-size.h (compute_builtin_object): Same.
10643 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10645 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10647 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10649 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10651 2019-10-04 Martin Jambor <mjambor@suse.cz>
10653 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10654 fntype when switching to calling memcpy instead of memset.
10656 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10658 * hash-table.h (hash_table::empty_slow): Don't assign
10659 size_t values to int variables.
10661 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10663 * expr.c (convert_mode_scalar): Remove shadowing local var.
10664 (emit_block_move): Rename local vars.
10665 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10666 (emit_push_insn): Rename local vars.
10667 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10668 shadowing local vars.
10669 (store_constructor): Remove shadowing local vars. Rename local var.
10670 (store_field, expand_cond_expr_using_cmove,
10671 expand_expr_real_2): Remove shadowing local vars.
10672 (expand_expr_real_1,
10673 do_store_flag): Remove shadowing local vars. Rename local vars.
10675 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10677 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10679 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10681 * genmatch.c (commutate): Rename local var.
10682 (lower_cond): Reuse local var.
10683 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10684 dt_operand::gen, dt_operand::gen_gimple_expr,
10685 dt_simplify::gen): Add a param. Rename generated vars.
10686 (decision_tree::insert_operand,
10687 (capture_info::walk_match, capture_info::walk_result,
10688 capture_info::walk_c_expr): Rename local vars.
10689 (expr::gen_transform): Rename generated vars.
10690 Use snprintf. Rename local vars.
10691 (capture::gen_transform, dt_operand::get_name,
10692 dt_operand::gen_opname): Rename generated vars.
10693 (write_predicate): Adjust call to gen_kids.
10694 (parser::get_internal_capture_id): Rename generated vars.
10695 (parser::parse_expr): Rename local vars.
10696 (parser::parse_if): Remove local var.
10697 (parser::parse_pattern, add_operator): Rename local vars.
10699 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10701 * builtins.def (DEF_C2X_BUILTIN): New macro.
10702 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10703 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10704 (strndup): Use DEF_C2X_BUILTIN.
10705 * coretypes.h (enum function_class): Add function_c2x_misc.
10707 2019-10-04 Maya Rashish <coypu@sdf.org>
10709 * ira-color.c (update_costs_from_allocno): Call
10710 ira_init_register_move_cost_if_necessary.
10712 2019-10-04 Jeff Law <law@redhat.com>
10714 * config/h8300/h8300.md (cpymemsi): Disable.
10715 (movmd, movmd_internal_<mode>, movstr, movsd):
10716 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10717 (movmd splitter, movsd splitter): Likewise.
10719 * range-op.cc (range_tests): Avoid two tests when ints and
10720 shorts are the same size.
10722 2019-10-04 Richard Biener <rguenther@suse.de>
10725 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10728 2019-10-04 Richard Biener <rguenther@suse.de>
10730 PR tree-optimization/91982
10731 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10732 against EXTRACT_LAST_REDUCTION.
10733 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10735 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10737 * range-op.o (value_range_from_overflowed_bounds): Rename from
10738 adjust_overflow_bound.
10739 (value_range_with_overflow): Rename from
10740 create_range_with_overflow.
10741 (create_possibly_reversed_range): Adjusted for above renames.
10742 (operator_*::wi_fold): Same.
10743 (cross_product_operator::wi_cross_productor): Same.
10745 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10747 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10748 -Wshadow=compatible-local): Fix description.
10749 Add an example where -Wshadow=compatible-local does not
10752 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10754 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10756 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10757 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10759 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10761 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10762 can_move_by_pieces issue.
10764 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10767 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10768 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10769 is available and the user has not set one on the command line.
10771 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10774 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10775 instead of REGNO equality check on addr.reg.
10777 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10779 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10780 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10781 * doc/invoke.texi (inline-heuristics-hint-percent,
10782 inline-heuristics-hint-percent-O2): Document.
10783 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10785 (can_inline_edge_by_limits_p): Use it.
10787 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10789 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10790 to print CONST_DOUBLEs.
10792 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10794 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10795 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10796 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10798 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10800 * Makefile.in (OBJS): Add range.o and range-op.o.
10801 Remove wide-int-range.o.
10802 * function-tests.c (test_ranges): New.
10803 (function_tests_c_tests): Call test_ranges.
10804 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10805 range_fold_unary_expr instead of extract_range_from_unary_expr.
10806 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10807 * range-op.cc: New file.
10808 * range-op.h: New file.
10809 * range.cc: New file.
10810 * range.h: New file.
10811 * selftest.h (range_tests): New prototype.
10812 * ssa.h: Include range.h.
10813 * tree-vrp.c (value_range_base::value_range_base): New
10815 (value_range_base::singleton_p): Do not call
10816 ranges_from_anti_range until sure we will need to.
10817 (value_range_base::type): Rename gcc_assert to
10818 gcc_checking_assert.
10819 (vrp_val_is_max): New argument.
10820 (vrp_val_is_min): Same.
10821 (wide_int_range_set_zero_nonzero_bits): Move from
10823 (extract_range_into_wide_ints): Remove.
10824 (extract_range_from_multiplicative_op): Remove.
10825 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10826 from extract_range_from_binary_expr.
10827 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10828 from extract_range_from_binary_expr.
10829 (extract_range_from_binary_expr): Remove.
10830 (normalize_for_range_ops): New.
10831 (range_fold_binary_expr): New.
10832 (range_fold_unary_expr): New.
10833 (value_range_base::num_pairs): New.
10834 (value_range_base::lower_bound): New.
10835 (value_range_base::upper_bound): New.
10836 (value_range_base::upper_bound): New.
10837 (value_range_base::contains_p): New.
10838 (value_range_base::invert): New.
10839 (value_range_base::union_): New.
10840 (value_range_base::intersect): New.
10841 (range_compatible_p): New.
10842 (value_range_base::operator==): New.
10843 (determine_value_range_1): Call range_fold_*expr instead of
10844 extract_range_from_*expr.
10845 * tree-vrp.h (class value_range_base): Add new constructors.
10846 Add methods for union_, intersect, operator==, contains_p,
10847 num_pairs, lower_bound, upper_bound, invert.
10848 (vrp_val_is_min): Add handle_pointers argument.
10849 (vrp_val_is_max): Same.
10850 (extract_range_from_unary_expr): Remove.
10851 (extract_range_from_binary_expr): Remove.
10852 (range_fold_unary_expr): New.
10853 (range_fold_binary_expr): New.
10854 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10855 range_fold_binary_expr instead of extract_range_from_binary_expr.
10856 (vr_values::extract_range_basic): Same.
10857 (vr_values::extract_range_from_unary_expr): Call
10858 range_fold_unary_expr instead of extract_range_from_unary_expr.
10859 * wide-int-range.cc: Remove.
10860 * wide-int-range.h: Remove.
10862 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10864 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10865 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10866 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10867 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10870 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10872 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10873 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10874 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10875 * glimits.h: Likewise.
10877 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10879 PR rtl-optimization/91976
10880 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10881 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10882 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10884 2019-10-02 Martin Sebor <msebor@redhat.com>
10886 PR tree-optimization/80936
10887 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10889 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10891 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10892 instead of reg_class_contents[ALL_REGS].
10894 2019-09-30 Jason Merrill <jason@redhat.com>
10896 Add some hash_map_safe_* functions like vec_safe_*.
10897 * hash-map.h (default_hash_map_size): New variable.
10898 (create_ggc): Use it as default argument.
10899 (hash_map_maybe_create, hash_map_safe_get)
10900 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10902 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10904 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10905 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10906 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10907 (can_inline_edge_by_limits_p): Use it.
10908 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10909 (want_inline_small_function_p): Use O2 bounds.
10910 (edge_badness): LIkewise.
10911 * opts.c (default_options): Add OPT_finline_functions.
10912 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10913 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10915 * doc/invoke.texi (-finline-functions): Update documentation.
10916 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10917 inline-min-speedup-O2): Document.
10918 (early-inlining-insns-O2): Simplify docs.
10920 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10922 PR rtl-optimization/87047
10923 * ifcvt.c (average_cost): New static function. Use it...
10924 (noce_process_if_block): ... here.
10926 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10928 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10929 * config/rs6000/rs6000-string.c (expand_block_move): Add
10930 might_overlap parm.
10931 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10932 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10934 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10936 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10937 (expand_builtin_memcpy): Use might_overlap parm.
10938 (expand_builtin_mempcpy_args): Use might_overlap parm.
10939 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10940 (expand_builtin_memory_copy_args): Add might_overlap parm.
10941 * expr.c (emit_block_move_via_cpymem): Rename to
10942 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10943 or movmem optab as appropriate.
10944 (emit_block_move_hints): Add might_overlap parm, do the right
10945 thing for might_overlap==true.
10946 * expr.h (emit_block_move_hints): Update prototype.
10948 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10950 * tree-eh.h (unsplit_eh_edges): Declare.
10951 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10952 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10953 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10954 (struct store_immediate_info): Add lp_nr field.
10955 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10956 initialize lp_nr with it.
10957 (struct merged_store_group): Add lp_nr and only_constants fields.
10958 (merged_store_group::merged_store_group): Initialize them.
10959 (merged_store_group::can_be_merged_into): Deal with them.
10960 (pass_store_merging): Rename terminate_and_release_chain into
10961 terminate_and_process_chain.
10962 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10963 renaming and remove useless assertions.
10964 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10965 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10966 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10967 instead of always recomputing it and compare lp_nr.
10968 (imm_store_chain_info::output_merged_store): If the group is in an
10969 active EH region, register new stores if they can throw. Moreover,
10970 if the insertion has created new basic blocks, adjust the PHI nodes
10971 of the post landing pad.
10972 (imm_store_chain_info::output_merged_stores): If the original stores
10973 are in an active EH region, deregister them.
10974 (lhs_valid_for_store_merging_p): Prettify.
10975 (adjust_bit_pos): New function extracted from...
10976 (mem_valid_for_store_merging): ...here. Use it for the base address
10977 and also for the offset if it is the addition of a constant.
10978 (lp_nr_for_store): New function.
10979 (pass_store_merging::process_store): Change return type to bool.
10980 Call lp_nr_for_store to initialize the store info. Propagate the
10981 return status of various called functions to the return value.
10982 (store_valid_for_store_merging_p): New predicate.
10983 (enum basic_block_status): New enumeration.
10984 (get_status_for_store_merging): New function.
10985 (pass_store_merging::execute): If the function can throw and catch
10986 non-call exceptions, unsplit the EH edges on entry and clean up the
10987 CFG on exit if something changed. Call get_status_for_store_merging
10988 for every basic block and keep the chains open across basic blocks
10989 when possible. Terminate and process open chains at the end, if any.
10991 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10993 * reginfo.c (globalize_reg): Fix shadowed variable in
10994 function_abis walk.
10996 2019-10-02 Martin Jambor <mjambor@suse.cz>
10998 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10999 do not compute some stuff when set.
11000 (cgraph_node::create_edge): Likewise.
11001 (cgraph_node::create_indirect_edge): Renamed last parameter to
11002 coning_p and flipped its meaning, don't even calculate
11003 inline_failed when set.
11004 * cgraph.h (cgraph_node::create_edge): Add new parameter.
11005 (symbol_table::::create_edge): Likewise.
11006 (cgraph_node::create_indirect_edge): Rename last parameter, flip
11008 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
11009 call graph edge creating functions.
11011 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11014 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
11017 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
11019 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
11021 2019-10-02 Richard Biener <rguenther@suse.de>
11023 * tree-vectorizer.h (vect_transform_reduction): Declare.
11024 * tree-vect-stmts.c (vect_transform_stmt): Use it.
11025 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
11026 stmt transform to ...
11027 (vect_transform_reduction): ... this.
11029 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
11031 * omp-low.c (lower_omp_target): Dereference optional argument
11032 to work with the right pointer.
11034 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
11036 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
11038 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
11039 * langhooks.h (omp_is_optional_argument): New hook.
11040 * omp-general.c (omp_is_optional_argument): New.
11041 * omp-general.h (omp_is_optional_argument): New declaration.
11042 * omp-low.c (lower_omp_target): Create temporary for received value
11043 and take the address for new_var if the original variable was a
11044 DECL_BY_REFERENCE. Use size of referenced object when a
11045 pass-by-reference optional argument used as argument to firstprivate.
11047 2019-10-02 Jakub Jelinek <jakub@redhat.com>
11049 PR tree-optimization/91940
11050 * tree-vect-patterns.c: Include tree-vector-builder.h and
11051 vec-perm-indices.h.
11052 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
11053 unpromoting the argument back to uint16_t, or by converting into a
11054 rotate, or into shifts plus ior.
11056 2019-10-02 Richard Biener <rguenther@suse.de>
11058 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
11060 (vect_transform_cycle_phi): Declare.
11061 * tree-vect-stmts.c (vect_transform_stmt): Call
11062 vect_transform_cycle_phi.
11063 * tree-vect-loop.c (vectorizable_reduction): Split out
11064 PHI transformation stage to ...
11065 (vect_transform_cycle_phi): ... here.
11067 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
11069 PR middle-end/91957
11070 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
11071 eliminable registers.
11072 (make_hard_regno_live): Likewise, and don't make them live.
11074 2019-10-01 David Malcolm <dmalcolm@redhat.com>
11076 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
11077 Call pp_emit_prefix.
11078 (layout::print_source_line): Likewise.
11079 (layout::start_annotation_line): Likewise.
11080 (diagnostic_show_locus): Remove call to temporarily clear the
11082 (selftest::test_one_liner_fixit_remove): Add test coverage for the
11083 interaction of pp_set_prefix with rulers and fix-it hints.
11084 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
11085 prefix when calling diagnostic_show_locus, rather than destroying
11087 (print_parseable_fixits): Temporarily clear prefix.
11088 * pretty-print.c (pp_format): Save and restore line_length, rather
11089 than assuming it is zero.
11090 (pp_output_formatted_text): Remove assertion that line_length is
11093 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11095 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11097 (nonoverlapping_refs_since_match_p): ... this; handle also
11099 (alias_stats): Update stats.
11100 (dump_alias_stats): Likewise.
11101 (cheap_array_ref_low_bound): New function.
11102 (aliasing_matching_component_refs_p): Add partial_overlap
11104 pass it to nonoverlapping_refs_since_match_p.
11105 (aliasing_component_refs_walk): Update call of
11106 aliasing_matching_component_refs_p
11107 (nonoverlapping_array_refs_p): New function.
11108 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
11109 indirect_refs_may_alias_p): Update calls of
11110 nonoverlapping_refs_since_match_p.
11112 2019-10-01 Maya Rashish <coypu@sdf.org>
11115 * ira-color.c (allocno_copy_cost_saving): Call
11116 ira_init_register_move_cost_if_necessary.
11118 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
11120 * Makefile.in (gnat_install_lib): New variable.
11121 * configure.ac: Substitute it.
11122 * configure: Regenerate.
11124 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11127 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
11128 is matched with non-C++ type
11130 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11132 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
11135 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11137 * doc/invoke.texi (early-inlining-insns-O2): Document.
11138 (early-inlining-insns): Update.
11139 * params.def (early-inlining-insns-O2): New bound.
11140 (early-inlining-insns): Update docs.
11141 * ipa-inline.c (want_early_inline_function_p): Use new bound.
11143 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
11146 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
11147 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
11148 a memory access insn.
11150 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
11152 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
11155 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
11158 * config/s390/s390.c (s390_expand_vec_compare): Use
11159 gen_vec_cmpordered and gen_vec_cmpunordered.
11160 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
11161 vec_unordered): Delete.
11162 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
11163 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
11164 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
11165 (vec_cmp<code>): Generic dispatcher.
11167 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
11170 * config/s390/vector.md (V_HW): Add V1TI in order to make
11171 vcond$a$b generate vcondv1tiv1tf.
11173 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11175 PR rtl-optimization/91948
11176 * ira-build.c (ira_create_allocno): Initialize
11177 ALLOCNO_CROSSED_CALLS_ABIS.
11178 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
11179 than regno to ira_need_caller_save_p.
11181 2019-10-01 Alexandre Oliva <oliva@adacore.com>
11183 * config/i386/i386-options.c
11184 (ix86_recompute_optlev_based_flags): New, moved out of...
11185 (ix86_option_override_internal): ... this. Call it.
11186 (ix86_override_options_after_change): Call it here too.
11189 * dwarf2out.c (override_type_for_decl_p): New.
11190 (gen_variable_die): Use it.
11192 2019-10-01 Richard Biener <rguenther@suse.de>
11194 * tree-vect-loop.c (vectorizable_reduction): Move variables
11195 to where they are used.
11197 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11199 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
11200 (build_def_use): Use PC instead of CC0 in a comment.
11202 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11204 * rtl.def (CLOBBER_HIGH): Delete.
11205 * doc/rtl.texi (clobber_high): Remove documentation.
11206 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
11207 (reg_is_clobbered_by_clobber_high): Delete.
11208 (gen_hard_reg_clobber_high): Likewise.
11209 * alias.c (record_set): Remove CLOBBER_HIGH handling.
11210 * cfgexpand.c (expand_gimple_stmt): Likewise.
11211 * combine-stack-adj.c (single_set_for_csa): Likewise.
11212 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
11213 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11214 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11215 * cse.c (invalidate_reg): Remove clobber_high parameter.
11216 (invalidate): Update call accordingly.
11217 (canonicalize_insn): Remove CLOBBER_HIGH handling.
11218 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11219 (count_reg_usage, insn_live_p): Likewise.
11220 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11221 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11222 (cselib_invalidate_rtx_note_stores): Update call accordingly.
11223 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11224 (cselib_invalidate_regno, cselib_process_insn): Likewise.
11225 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11226 (mark_nonreg_stores_2): Likewise.
11227 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11228 (df_get_call_refs): Likewise.
11229 * dwarf2out.c (mem_loc_descriptor): Likewise.
11230 * emit-rtl.c (verify_rtx_sharing): Likewise.
11231 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11232 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11233 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11234 * genemit.c (gen_exp, gen_insn): Likewise.
11235 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11236 * haifa-sched.c (haifa_classify_rtx): Likewise.
11237 * ira-build.c (create_insn_allocnos): Likewise.
11238 * ira-costs.c (scan_one_insn): Likewise.
11239 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11240 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11241 * jump.c (mark_jump_label_1): Likewise.
11242 * lra-int.h (lra_insn_reg::clobber_high): Delete.
11243 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11245 (mark_not_eliminable): Likewise.
11246 * lra-lives.c (process_bb_lives): Likewise.
11247 * lra.c (new_insn_reg): Remove clobber_high parameter.
11248 (collect_non_operand_hard_regs): Likewise. Update call to new
11249 insn_reg. Remove CLOBBER_HIGH handling.
11250 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
11251 to collect_non_operand_hard_regs.
11252 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11253 Update call to new_insn_reg.
11254 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11255 * postreload.c (reload_cse_simplify, reload_combine_note_use)
11256 (move2add_note_store): Likewise.
11257 * print-rtl.c (print_pattern): Likewise.
11258 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11259 (if_test_bypass_p): Likewise.
11260 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11261 * reginfo.c (reg_scan_mark_refs): Likewise.
11262 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11263 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11264 (forget_old_reloads_1): Likewise.
11265 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11266 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11267 (dbr_schedule): Likewise.
11268 * resource.c (update_live_status, mark_referenced_resources)
11269 (mark_set_resources): Likewise.
11270 * rtl.c (copy_rtx): Likewise.
11271 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11272 (note_pattern_stores): Likewise.
11273 (reg_is_clobbered_by_clobber_high): Delete.
11274 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11275 CLOBBER_HIGH handling.
11277 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11280 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11281 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11282 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11283 Handle ARM_PCS_TLSDESC.
11284 (aarch64_tlsdesc_abi_id): New function.
11285 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11286 rtx instead of a list of clobbers and clobber_highs.
11287 (tlsdesc_small_<mode>): Update accordingly.
11289 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11291 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11292 extra callee_abi argument.
11293 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11294 Insert a CALLEE_ABI unspec into the call pattern as the second
11295 element in the PARALLEL.
11296 (aarch64_simd_call_p): Delete.
11297 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11298 the new CALLEE_ABI element of the PARALLEL.
11299 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11300 from the function type, if given.
11301 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11302 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
11303 when passed the function_arg_info end marker.
11304 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11305 final argument of gen_sibcall.
11306 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11307 (call): Make operand 2 a const_int_operand and pass it to expand_call.
11308 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11310 (call_value): Likewise operand 3.
11311 (sibcall): Likewise operand 2. Place the unspec before rather than
11313 (sibcall_value): Likewise operand 3.
11314 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11315 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11316 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
11317 constraint strings.
11318 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11320 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11322 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11323 choose_hard_reg_mode.
11324 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11326 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11328 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11329 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11330 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11332 2019-09-30 David Malcolm <dmalcolm@redhat.com>
11334 * diagnostic-show-locus.c (line_label::line_label): Initialize
11336 (line_label::comparator): Reverse the sort order by m_state_idx,
11337 so that when the list is walked backwards the labels appear in
11338 order of insertion into the rich_location.
11339 (line_label::m_has_vbar): New field.
11340 (layout::print_any_labels): When dealing with multiple labels at
11341 the same line and column, only print vertical bars for the one
11342 with the highest label_line.
11343 (selftest::test_one_liner_labels): Update test for multiple labels
11344 to expect the labels to be in the order of insertion into the
11345 rich_location. Add a test for many such labels, where the column
11346 numbers are out-of-order relative to the insertion order.
11348 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11350 * config/i386/i386.h (ix86_frame::expensive_p): New field.
11351 (ix86_frame::expensive_count): Likewise.
11352 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11353 of use_fast_prologue_epilogue robust against incidental changes
11356 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11359 * config/s390/vector.md (vec_unordered<mode>): Call
11360 gen_vec_ordered<mode>.
11362 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11364 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11365 New pattern for ASRD.
11366 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11367 * internal-fn.def (IFN_DIV_POW2): New internal function.
11368 * optabs.def (sdiv_pow2_optab): New optab.
11369 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11370 Modify pattern to support new operation.
11371 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11372 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11373 Document new target selector.
11375 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11377 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11378 to test whether we're compiling a vector PCS function and to test
11379 whether the function needs to save a particular register.
11380 Remove the vector PCS handling of df_set_regs_ever_live.
11381 (aarch64_components_for_bb): Use crtl->abi to test whether
11382 the function needs to save a particular register.
11383 (aarch64_process_components): Use crtl->abi to test whether
11384 we're compiling a vector PCS function.
11385 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11386 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11390 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11392 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11393 whether the block calls a function that clobbers more registers
11394 than the current function is allowed to.
11395 (aarch64_use_simple_return_insn_p): Delete.
11396 * config/aarch64/aarch64.md (simple_return): Remove condition.
11398 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11400 * function-abi.h (function_abi_aggregator): New class.
11401 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11403 * ira.c (update_equiv_regs_prescan): New function. Call
11404 set_paradoxical_subreg here rather than...
11405 (update_equiv_regs): ...here.
11406 (ira): Call update_equiv_regs_prescan.
11408 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11410 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11412 (call_used_or_fixed_regs): Likewise.
11413 (call_used_or_fixed_reg_p): Likewise.
11414 * reginfo.c (regs_invalidated_by_call): New macro.
11416 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11418 * shrink-wrap.c: Include function-abi.h.
11419 (requires_stack_frame_p): Use crtl->abi to test whether the
11420 current function can use a register without saving it first.
11422 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11424 * sel-sched-ir.h (_def::crosses_call): Replace with...
11425 (_def::crossed_call_abis): ..this new field.
11426 (def_list_add): Take a mask of ABIs instead of a crosses_call
11428 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11429 of _def accordingly.
11430 * sel-sched.c: Include function-abi.h.
11431 (hard_regs_data::regs_for_call_clobbered): Delete.
11432 (reg_rename::crosses_call): Replace with...
11433 (reg_rename::crossed_call_abis): ...this new field.
11434 (fur_static_params::crosses_call): Replace with...
11435 (fur_static_params::crossed_call_abis): ...this new field.
11436 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11437 (init_hard_regs_data): Use crtl->abi to test which registers the
11438 current function would need to save before it uses them.
11439 (mark_unavailable_hard_regs): Update handling of call-clobbered
11440 registers, using call_clobbers_in_region to find out which registers
11441 might be call-clobbered (but without taking -fipa-ra into account
11442 for now). Remove separate handling of partially call-clobbered
11444 (verify_target_availability): Use crossed_call_abis instead of
11446 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11447 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11449 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11451 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11452 function to test whether a register is fully or partly clobbered.
11454 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11456 * rtlanal.c: Include function-abi.h.
11457 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11458 function and clobbers_reg_p to test whether the register
11460 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11461 to get the ABI of the called function and full_reg_clobbers to
11462 get the set of fully call-clobbered registers. Warn about the
11463 pitfalls of using this mode.
11465 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11467 * reload.c: Include function-abi.h.
11468 (find_equiv_reg): Use clobbers_reg_p to test whether either
11469 of the equivalent registers is clobbered by a call.
11470 * reload1.c: Include function-abi.h.
11471 (reg_reloaded_call_part_clobbered): Delete.
11472 (reload): Use crtl->abi to test which registers would need
11473 saving in the prologue before use.
11474 (find_reg): Likewise.
11475 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11476 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11477 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11479 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11481 * regrename.h (du_head::call_clobber_mask): New field.
11482 (du_head::need_caller_save_reg): Replace with...
11483 (du_head::call_abis): ...this new field.
11484 * regrename.c: Include function-abi.h.
11485 (call_clobbered_in_chain_p): New function.
11486 (check_new_reg_p): Use crtl->abi when deciding whether a register
11487 is free for use after RA. Use call_clobbered_in_chain_p to test
11488 whether a candidate register would be clobbered by a call.
11489 (find_rename_reg): Don't add call-clobber conflicts here.
11490 (rename_chains): Check call_abis instead of need_caller_save_reg.
11491 (merge_chains): Update for changes to du_head.
11492 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11493 target. Record the ABI identifier in call_abis and the set of
11494 fully or partially clobbered registers in call_clobber_mask.
11495 Add fully-clobbered registers to hard_conflicts here rather
11496 than in find_rename_reg.
11497 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11498 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11499 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11501 * config/c6x/c6x.c: Likewise.
11503 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11505 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11506 mode of the register when deciding whether it is no longer
11507 available after a call.
11509 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11511 * recog.c: Include function-abi.h.
11512 (peep2_find_free_register): Use crtl->abi when deciding whether
11513 a register is free for use after RA.
11515 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11517 * postreload-gcse.c: Include regs.h and function-abi.h.
11518 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11519 call insn target. Conservatively assume that partially-clobbered
11520 registers are altered.
11522 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11524 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11525 when deciding whether a register is free for use after RA.
11526 (reload_combine): Remove unnecessary use of fixed_reg_set.
11527 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11528 call insn target. Use reg_mode when testing whether a register
11529 is no longer available.
11531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11533 * target.def (return_call_with_max_clobbers): Delete.
11534 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11535 * doc/tm.texi: Regenerate.
11536 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11537 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11538 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11539 (lra_reg::call_insn): Delete.
11540 * lra.c: Include function-abi.h.
11541 (initialize_lra_reg_info_element): Don't initialize the fields above.
11542 (lra): Use crtl->abi to test whether the current function needs to
11543 save a register in the prologue. Remove special pre-inheritance
11544 lra_create_live_ranges pass for flag_ipa_ra.
11545 * lra-assigns.c: Include function-abi.h
11546 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11547 function needs to save a register in the prologue.
11548 (lra_assign): Assert that registers aren't allocated to a
11549 conflicting register, rather than checking only for overlaps
11550 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11551 and for registers that are not live across a call.
11552 * lra-constraints.c (last_call_for_abi): New variable.
11553 (full_and_partial_call_clobbers): Likewise.
11554 (setup_next_usage_insn): Remove the register from
11555 full_and_partial_call_clobbers.
11556 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11557 whether the register needs a caller save.
11558 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11559 of call_used_or_fixed_regs.
11560 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11561 full_and_partial_call_clobbers.
11562 * lra-lives.c (check_pseudos_live_through_calls): Replace
11563 last_call_used_reg_set and call_insn arguments with an abi argument.
11564 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11565 as the set of conflicting registers.
11566 (calls_have_same_clobbers_p): Delete.
11567 (process_bb_lives): Track the ABI of the last call instead of an
11568 insn/HARD_REG_SET pair. Update calls to
11569 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11570 the set of registers that could be clobbered by an EH edge.
11571 Include partially-clobbered as well as fully-clobbered registers.
11572 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11573 * lra-remat.c: Include function-abi.h.
11574 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11575 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11576 registers and bitmap_view to combine them into dead_regs.
11577 (call_used_input_regno_present_p): Take a function_abi argument
11578 and use it to test whether a register is call-clobbered.
11579 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11580 call insn target. Update tje call to call_used_input_regno_present_p.
11581 (do_remat): Likewise.
11582 (lra_remat): Remove the initialization of call_used_regs_arr_len
11583 and call_used_regs_arr.
11585 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11587 * loop-iv.c: Include regs.h and function-abi.h.
11588 (simplify_using_initial_values): Use insn_callee_abi to get the
11589 ABI of the call insn target. Conservatively assume that
11590 partially-clobbered registers are altered.
11592 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11594 * function-abi.h (call_clobbers_in_region): Declare.
11595 (call_clobbered_in_region_p): New function.
11596 * function-abi.cc (call_clobbers_in_region): Likewise.
11597 * ira-int.h: Include function-abi.h.
11598 (ira_allocno::crossed_calls_abis): New field.
11599 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11600 (ira_need_caller_save_regs): New function.
11601 (ira_need_caller_save_p): Likewise.
11602 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11603 of call_used_or_fixed_regs.
11604 (do_reload): Use crtl->abi to test whether the current function
11605 needs to save a register in the prologue. Count registers that
11606 need to be saved rather than registers that don't.
11607 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11608 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11609 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11610 (propagate_some_info_from_allocno): Likewise.
11611 (copy_info_to_removed_store_destinations): Likewise.
11612 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11613 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11614 (ira_build): Use ira_need_caller_save_regs instead of
11615 call_used_or_fixed_regs.
11616 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11617 whether the current function would need to save a register
11619 (calculate_spill_cost): Likewise.
11620 (allocno_reload_assign): Use ira_need_caller_save_regs and
11621 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11622 * ira-conflicts.c (ira_build_conflicts): Use
11623 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11624 as the set of call-clobbered registers. Remove the
11625 call_used_or_fixed_regs mask from the calculation of
11626 temp_hard_reg_set and mask its use instead. Remove special
11627 handling of partially-clobbered registers.
11628 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11629 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11630 calculate the set of conflicting registers for calls that
11631 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11632 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11633 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11634 Use eh_edge_abi to calculate the set of registers that could
11635 be clobbered by an EH edge. Include partially-clobbered as
11636 well as fully-clobbered registers.
11638 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11640 * haifa-sched.c: Include function-abi.h.
11641 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11642 the function would need to save a register before using it.
11644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11646 * gcse.c: Include function-abi.h.
11647 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11648 the call insn target. Invalidate partially call-clobbered
11649 registers as well as fully call-clobbered ones.
11651 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11653 * function.c (aggregate_value_p): Work out which ABI the
11654 function is using before testing which registers are at least
11655 partly preserved by a call.
11657 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11659 * early-remat.c: Include regs.h and function-abi.h.
11660 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11662 (early_remat::restrict_remat_for_unavail_regs): New function.
11663 (early_remat::restrict_remat_for_call): Likewise.
11664 (early_remat::process_block): Before calling emit_remat_insns
11665 for a previous call in the block, invalidate any candidates
11666 that would clobber call-preserved registers.
11667 (early_remat::emit_remat_insns_for_block): Likewise for the
11668 final call in a block. Do the same thing for live-in registers
11669 when calling emit_remat_insns at the head of a block.
11671 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11673 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11674 whether the current function needs to save at least part of a
11675 register before using it.
11676 (df_get_exit_block_use_set): Likewise for epilogue restores.
11678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11680 * df-problems.c: Include regs.h and function-abi.h.
11681 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11682 sparse_invalidated_by_eh and dense_invalidated_by_call to
11683 dense_invalidated_by_eh.
11684 (df_print_bb_index): Update accordingly.
11685 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11686 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11687 that are clobbered by an EH edge. Clobber partially-clobbered
11688 registers as well as fully-clobbered ones.
11689 (df_md_confluence_n): Likewise.
11690 (df_rd_local_compute): Likewise. Update for changes to
11691 df_rd_problem_data.
11692 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11693 of registers that are clobbered by an EH edge. Includde partially-
11694 clobbered registers as well as fully-clobbered ones.
11696 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11698 * cselib.c (cselib_process_insn): If we know what mode a
11699 register was set in, check whether it is clobbered in that
11700 mode by a call. Only fall back to reg_raw_mode if that fails.
11702 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11704 * cse.c: Include regs.h and function-abi.h.
11705 (invalidate_for_call): Take the call insn as an argument.
11706 Use insn_callee_abi to get the ABI of the call and invalidate
11707 partially clobbered registers as well as fully clobbered ones.
11708 (cse_insn): Update call accordingly.
11710 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11712 * combine.c: Include function-abi.h.
11713 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11714 of the target of call insns. Invalidate partially-clobbered
11715 registers as well as fully-clobbered ones.
11717 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11719 * cfgloopanal.c: Include regs.h and function-abi.h.
11720 (init_set_costs): Use default_function_abi to test whether
11721 a general register is call-clobbered.
11723 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11725 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11726 instead of the call-clobbered sets.
11728 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11730 * caller-save.c (setup_save_areas): Remove redundant |s of
11732 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11733 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11738 * rtl.h (predefined_function_abi): Declare.
11739 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11740 instead of a boolean call_save flag.
11741 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11743 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11744 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11745 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11746 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11747 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11748 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11749 * reginfo.c (init_reg_modes_target): Likewise.
11750 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11751 instead of a boolean call_save flag.
11752 * targhooks.c: Include function-abi.h.
11753 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11754 using eh_edge_abi to choose the mode.
11756 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11758 * target.def (hard_regno_call_part_clobbered): Take an ABI
11759 identifier instead of an rtx_insn.
11760 * doc/tm.texi: Regenerate.
11761 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11762 (hook_bool_uint_uint_mode_false): New function.
11763 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11764 (hook_bool_uint_uint_mode_false): New function.
11765 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11766 Take an ABI identifier instead of an rtx_insn.
11767 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11768 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11769 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11770 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11771 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11773 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11774 * cselib.c: Include function-abi.h.
11775 (cselib_process_insn): Update call to
11776 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11777 to get the appropriate ABI identifier.
11778 * function-abi.cc (predefined_function_abi::initialize): Update call
11779 to targetm.hard_regno_call_part_clobbered.
11780 * ira-conflicts.c (ira_build_conflicts): Likewise.
11781 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11782 * lra-constraints.c: Include function-abi.h.
11783 (need_for_call_save_p): Update call to
11784 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11785 to get the appropriate ABI identifier.
11786 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11787 * regcprop.c (copyprop_hardreg_forward_1): Update call
11788 to targetm.hard_regno_call_part_clobbered.
11789 * reginfo.c (choose_hard_reg_mode): Likewise.
11790 * regrename.c (check_new_reg_p): Likewise.
11791 * reload.c (find_equiv_reg): Likewise.
11792 * reload1.c (emit_reload_insns): Likewise.
11793 * sched-deps.c: Include function-abi.h.
11794 (deps_analyze_insn): Update call to
11795 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11796 to get the appropriate ABI identifier.
11797 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11798 call to targetm.hard_regno_call_part_clobbered.
11799 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11801 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11803 * config/i386/i386.c: Include function-abi.h.
11804 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11805 if they preserve some 256-bit or 512-bit SSE registers.
11807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11809 * target.def (insn_callee_abi): New hook.
11810 (remove_extra_call_preserved_regs): Delete.
11811 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11812 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11813 * doc/tm.texi: Regenerate.
11814 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11815 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11816 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11818 (aarch64_remove_extra_call_preserved_regs): Delete.
11819 (aarch64_insn_callee_abi): New function.
11820 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11821 (TARGET_INSN_CALLEE_ABI): New macro.
11822 * rtl.h (get_call_fndecl): Declare.
11823 (cgraph_rtl_info): Fix formatting. Tweak comment for
11824 function_used_regs. Remove function_used_regs_valid.
11825 * rtlanal.c (get_call_fndecl): Moved from final.c
11826 * function-abi.h (insn_callee_abi): Declare.
11827 (target_function_abi_info): Mention insn_callee_abi.
11828 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11829 way to get_call_reg_set_usage did.
11830 (insn_callee_abi): New function.
11831 * regs.h (get_call_reg_set_usage): Delete.
11832 * final.c: Include function-abi.h.
11833 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11834 function_used_regs before the main loop rather than afterwards.
11835 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11836 if function_used_regs ends up not being useful.
11837 (get_call_fndecl): Move to rtlanal.c
11838 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11839 * caller-save.c: Include function-abi.h.
11840 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11841 instead of get_call_reg_set_usage.
11842 * cfgcleanup.c: Include function-abi.h.
11843 (old_insns_match_p): Use insn_callee_abi instead of
11844 get_call_reg_set_usage.
11845 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11847 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11848 function_used_regs.
11849 * df-scan.c: Include function-abi.h.
11850 (df_get_call_refs): Use insn_callee_abi instead of
11851 get_call_reg_set_usage.
11852 * ira-lives.c: Include function-abi.h.
11853 (process_bb_node_lives): Use insn_callee_abi instead of
11854 get_call_reg_set_usage.
11855 * lra-lives.c: Include function-abi.h.
11856 (process_bb_lives): Use insn_callee_abi instead of
11857 get_call_reg_set_usage.
11858 * postreload.c: Include function-abi.h.
11859 (reload_combine): Use insn_callee_abi instead of
11860 get_call_reg_set_usage.
11861 * regcprop.c: Include function-abi.h.
11862 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11863 get_call_reg_set_usage.
11864 * resource.c: Include function-abi.h.
11865 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11866 instead of get_call_reg_set_usage.
11867 * var-tracking.c: Include function-abi.h.
11868 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11869 get_call_reg_set_usage.
11871 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11873 * target.def (fntype_abi): New target hook.
11874 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11875 * doc/tm.texi: Regenerate.
11876 * target.h (predefined_function_abi): Declare.
11877 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11879 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11880 * config/aarch64/aarch64.c: Include function-abi.h.
11881 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11882 (TARGET_FNTYPE_ABI): Define.
11884 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11886 * Makefile.in (OBJS): Add function-abi.o.
11887 (GTFILES): Add function-abi.h.
11888 * function-abi.cc: New file.
11889 * function-abi.h: Likewise.
11890 * emit-rtl.h (rtl_data::abi): New field.
11891 * function.c: Include function-abi.h.
11892 (prepare_function_start): Initialize crtl->abi.
11893 * read-rtl-function.c: Include regs.h and function-abi.h.
11894 (read_rtl_function_body): Initialize crtl->abi.
11895 (read_rtl_function_body_from_file_range): Likewise.
11896 * reginfo.c: Include function-abi.h.
11897 (init_reg_sets_1): Initialize default_function_abi.
11898 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11899 when making a register global.
11900 * target-globals.h (this_target_function_abi_info): Declare.
11901 (target_globals::function_abi_info): New field.
11902 (restore_target_globals): Copy it.
11903 * target-globals.c: Include function-abi.h.
11904 (default_target_globals): Initialize the function_abi_info field.
11905 (target_globals): Allocate it.
11906 (save_target_globals): Free it.
11908 2019-09-30 Nick Clifton <nickc@redhat.com>
11911 * config/frv/frv.c (frv_register_move_cost): Add break statements
11912 to avoid falling through to the wrong cases. Tidy code.
11914 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11916 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11917 For multi-registers modes, test how big each register part is.
11919 2019-09-30 Nick Clifton <nickc@redhat.com>
11922 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11923 (TARGET_ASM_SELECT_SECTION): Remove definition.
11924 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11926 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11928 * emit-rtl.c (init_raw_REG): New function.
11929 (gen_raw_REG): Use init_raw_REG.
11930 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11932 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11933 * rtl.h (rtx_init): New function.
11934 (rtx_alloca): New function.
11935 (init_raw_REG): New function.
11936 (alloca_raw_REG): New macro.
11938 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11940 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11941 (pcrel_local_address): Replace pcrel_address predicate, use the
11942 new function address_to_insn_form.
11943 (pcrel_external_address): Replace with new implementation using
11944 address_to_insn_form..
11945 (prefixed_mem_operand): Delete predicate which is now unused.
11946 (pcrel_external_mem_operand): Delete predicate which is now
11948 * config/rs6000/rs6000-protos.h (enum insn_form): New
11950 (enum non_prefixed_form): New enumeration.
11951 (address_to_insn_form): New declaration.
11952 (prefixed_load_p): New declaration.
11953 (prefixed_store_p): New declaration.
11954 (prefixed_paddi_p): New declaration.
11955 (rs6000_asm_output_opcode): New declaration.
11956 (rs6000_final_prescan_insn): Move declaration and update calling
11958 (address_is_prefixed): New helper inline function.
11959 * config/rs6000/rs6000.c(print_operand_address): Check for either
11960 PC-relative local symbols or PC-relative external symbols.
11961 (rs6000_emit_move): Support loading PC-relative addresses.
11962 (mode_supports_prefixed_address_p): Delete, no longer used.
11963 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11964 (address_to_insn_form): New function to decode an address format.
11965 (reg_to_non_prefixed): New function to identify what the
11966 non-prefixed memory instruction format is for a register.
11967 (prefixed_load_p): New function to identify prefixed loads.
11968 (prefixed_store_p): New function to identify prefixed stores.
11969 (prefixed_paddi_p): New function to identify prefixed load
11971 (next_insn_prefixed_p): New static state variable.
11972 (rs6000_final_prescan_insn): New function to determine if an insn
11973 uses a prefixed instruction.
11974 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11975 prefixed instruction.
11976 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11977 (ASM_OUTPUT_OPCODE): New target hook.
11978 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11979 prefixed instructions.
11980 (prefixed_length): New insn attribute for the size of prefixed
11982 (non_prefixed_length): New insn attribute for the size of
11983 non-prefixed instructions.
11984 (pcrel_local_addr): New insn to load up a local PC-relative
11986 (pcrel_extern_addr): New insn to load up an external PC-relative
11988 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11989 GPR and loading a 128-bit floating point type to a GPR.
11991 2019-09-30 Richard Biener <rguenther@suse.de>
11993 * gimple.c (gimple_get_lhs): For PHIs return the result.
11994 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11995 SLP instance as argument.
11996 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11997 double-reduction PHIs with vectorizable_lc_phi.
11998 (vect_analyze_loop_operations): Adjust.
11999 (vect_create_epilog_for_reduction): Remove all code not dealing
12000 with reduction LC PHI or epilogue generation.
12001 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
12002 for live stmts of reductions.
12003 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
12004 do not handle defs that are not vect_internal_def.
12005 (can_vectorize_live_stmts): Adjust.
12006 (vect_analyze_stmt): When the vectorized stmt defined a value
12007 used on backedges adjust the backedge uses of vectorized PHIs.
12009 2019-09-30 Martin Jambor <mjambor@suse.cz>
12012 * tree-inline.c (force_value_to_type): New function.
12013 (setup_one_parameter): Use force_value_to_type to convert type.
12014 * tree-inline.c (force_value_to_type): Declare.
12015 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
12016 with register type mismatches.
12018 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
12020 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
12022 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
12023 * config/rs6000/t-freebsd64: Make use of the above define and build
12024 the 32-bit libraries with secure-plt.
12026 2019-09-30 Jakub Jelinek <jakub@redhat.com>
12029 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
12030 gen_int_mode instead of GEN_INT.
12032 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
12034 * config/darwin.c (gen_macho_low): Amend to include the mode
12036 (machopic_indirect_data_reference): Amend gen_macho_low call
12037 to include mode argument
12038 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
12039 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
12040 the macho_high expander and two define_insn entries.
12042 2019-09-29 Jakub Jelinek <jakub@redhat.com>
12045 * optc-save-gen.awk: Fix up printing string option differences.
12047 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
12049 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
12050 vec_perm cost to 1 for non-Power7 VSX architectures.
12052 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
12054 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
12055 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
12056 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
12058 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
12060 * config/darwin.c (gen_macho_high): Amend to include the mode
12062 (machopic_indirect_data_reference): Amend gen_macho_high call
12063 to include mode argument.
12064 (machopic_legitimize_pic_address): Likewise.
12065 * config/rs6000/rs6000.c (rs6000_legitimize_address):
12066 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
12067 the macho_high expander and two define_insn entries.
12069 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12072 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12074 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12077 * config/sh/sh.c (parse_validate_atomic_model_option): Use
12078 std::string::compare instead of std::string::find.
12080 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
12082 * configure: Regenerate.
12084 2019-09-27 Jakub Jelinek <jakub@redhat.com>
12086 PR middle-end/91920
12087 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
12088 variables as shared.
12090 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
12092 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
12093 replaces the expander and two define_insn entries.
12094 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
12096 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
12098 2019-09-27 David Malcolm <dmalcolm@redhat.com>
12100 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
12101 (fibonacci_heap::nodes): Likewise.
12102 (fibonacci_heap::min_key): Likewise.
12103 (fibonacci_heap::min): Likewise.
12105 2019-09-27 David Malcolm <dmalcolm@redhat.com>
12107 * cgraph.c (cgraph_node::get_fun): Make const.
12108 * cgraph.h (cgraph_node::get_fun): Likewise.
12110 2019-09-27 Jakub Jelinek <jakub@redhat.com>
12113 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
12116 2019-09-27 Richard Biener <rguenther@suse.de>
12118 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
12119 (STMT_VINFO_REDUC_FN): Likewise.
12120 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12121 STMT_VINFO_REDUC_FN.
12122 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
12123 for condition reductions.
12124 (vect_create_epilog_for_reduction): Compute all required state
12125 from the stmt to be vectorized.
12126 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
12127 invocation and remove then dead code. For single def-use chains
12128 record only a single vector stmt.
12130 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
12132 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
12133 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
12134 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
12135 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
12136 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
12137 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
12138 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
12139 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
12140 (aarch64_general_builtin_rsqrt): Declare.
12141 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
12143 (aarch64_mangle_builtin_type): Rename to...
12144 (aarch64_general_mangle_builtin_type): ...this.
12145 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
12146 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
12147 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
12148 aarch64_general_add_builtin instead of add_builtin_function.
12149 (aarch64_init_builtins): Rename to...
12150 (aarch64_general_init_builtins): ...this. Use
12151 aarch64_general_add_builtin instead of add_builtin_function.
12152 (aarch64_builtin_decl): Rename to...
12153 (aarch64_general_builtin_decl): ...this and remove the unused
12155 (aarch64_expand_builtin): Rename to...
12156 (aarch64_general_expand_builtin): ...this and remove the unused
12158 (aarch64_builtin_rsqrt): Rename to...
12159 (aarch64_general_builtin_rsqrt): ...this.
12160 (aarch64_fold_builtin): Rename to...
12161 (aarch64_general_fold_builtin): ...this. Take the function subcode
12162 and return type as arguments. Remove the "ignored" argument.
12163 (aarch64_gimple_fold_builtin): Rename to...
12164 (aarch64_general_gimple_fold_builtin): ...this. Take the function
12165 subcode and gcall as arguments, and return the new function call.
12166 * config/aarch64/aarch64.c (aarch64_init_builtins)
12167 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
12168 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
12169 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
12170 instead of aarch64_builtin_rsqrt.
12171 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
12172 instead of aarch64_mangle_builtin_type.
12174 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
12176 * target.def (check_builtin_call): New target hook.
12177 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
12178 * doc/tm.texi: Regenerate.
12180 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
12182 PR tree-optimization/91909
12183 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
12184 reduc_index parameter. When handling COND_REDUCTION, make sure
12185 that the reduction phi operand is in the correct arm of the
12187 (vectorizable_reduction): Pass reduc_index to the above.
12189 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
12191 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
12192 New combine pattern.
12194 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
12196 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
12197 loop instruction into new basic block before the loop when basic
12198 block that precedes the loop is empty.
12200 2019-09-26 Jakub Jelinek <jakub@redhat.com>
12202 * function.c (gimplify_parameters): Use build_clobber function.
12203 * tree-ssa.c (execute_update_addresses_taken): Likewise.
12204 * tree-inline.c (expand_call_inline): Likewise.
12205 * tree-sra.c (clobber_subtree): Likewise.
12206 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
12207 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
12208 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
12209 lower_omp_target): Likewise.
12210 * omp-expand.c (expand_omp_for_generic): Likewise.
12211 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
12213 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
12215 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12216 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12217 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12218 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12219 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12220 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12221 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12222 LD_ELEMREV_V16QI): Use the PURE attribute.
12224 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
12226 * config/rs6000/darwin.md: Replace the expanders for
12227 load_macho_picbase and reload_macho_picbase with use of '@'
12228 and <mode> in their respective define_insns.
12229 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12230 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12231 Pmode to gen_load_macho_picbase.
12232 * config/rs6000/rs6000.md: Likewise.
12234 2019-09-25 Richard Biener <rguenther@suse.de>
12236 PR tree-optimization/91896
12237 * tree-vect-loop.c (vectorizable_reduction): The single
12238 def-use cycle optimization cannot apply when there's more
12239 than one pattern stmt involved.
12241 2019-09-26 Richard Biener <rguenther@suse.de>
12243 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12244 loop-closed PHIs that are vect_internal_def.
12245 (vect_create_epilog_for_reduction): Exit early for nested cycles.
12247 (vectorizable_lc_phi): New.
12248 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12249 (vect_transform_stmt): Likewise.
12250 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12251 (vectorizable_lc_phi): Declare.
12253 2019-09-26 Richard Biener <rguenther@suse.de>
12255 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12256 vectorizable_reduction for vect_double_reduction_def.
12257 (vect_transform_loop): Likewise.
12258 (vect_create_epilog_for_reduction): Move double-reduction
12259 PHI creation and preheader argument setting of PHIs ...
12260 (vectorizable_reduction): ... here. Also process
12261 vect_double_reduction_def PHIs, creating the vectorized
12262 PHI nodes, remembering the scalar adjustment computed for
12263 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12264 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12265 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12266 Initialize STMT_VINFO_REDUC_CODE.
12267 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12268 (_stmt_vec_info::reduc_code): Likewise.
12269 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12270 (STMT_VINFO_REDUC_CODE): Likewise.
12272 2019-09-26 Matt Turner <mattst88@gmail.com>
12275 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12276 (mtune=): Add Negative(mtune=).
12277 (mcpu=): Add Negative(mcpu=).
12278 * config/arm/arm.opt: Likewise.
12280 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12282 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12283 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12285 * config/arm/arm_acle.h: Define builtins for the above.
12286 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12287 (simd32_op): Handle the above.
12288 * config/arm/unspecs.md: Define unspecs for the above.
12290 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12292 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12293 (arm_<sup>xtb16): Likewise.
12294 (arm_usada8): Likewise.
12295 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12296 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12297 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12298 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12299 __sxtb16, __uxtab16, __uxtb16): Define.
12300 * config/arm/arm_acle_builtins.def: Define builtins for the above.
12301 * config/arm/unspecs.md: Define unspecs for the above.
12302 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12303 (USXTB16): Likewise.
12304 (simd32_op): New int_attribute.
12305 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12306 * doc/sourcebuild.exp (arm_simd32_ok): Document.
12308 2019-09-26 Martin Jambor <mjambor@suse.cz>
12310 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12313 2019-09-26 Martin Jambor <mjambor@suse.cz>
12315 * ipa-sra.c (process_scan_results): Fix continue condition.
12317 2019-09-26 Martin Liska <mliska@suse.cz>
12319 PR tree-optimization/91885
12320 * tree-vectorizer.c (try_vectorize_loop_1): Add
12321 TODO_update_ssa_only_virtuals similarly to what slp pass does.
12323 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
12325 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12326 aarch64_plus_immediate rather than aarch64_uimm12_shift
12327 to test for valid PLUS immediates.
12329 2019-09-25 Martin Jambor <mjambor@suse.cz>
12331 * tree-sra.c (no_accesses_p): Remove.
12332 (no_accesses_representant): Likewise.
12334 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12336 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12338 (vaba_s16): Likewise.
12339 (vaba_s32): Likewise.
12340 (vaba_u8): Likewise.
12341 (vaba_u16): Likewise.
12342 (vaba_u32): Likewise.
12343 (vabal_high_s8): Likewise.
12344 (vabal_high_s16): Likewise.
12345 (vabal_high_s32): Likewise.
12346 (vabal_high_u8): Likewise.
12347 (vabal_high_u16): Likewise.
12348 (vabal_high_u32): Likewise.
12349 (vabal_s8): Likewise.
12350 (vabal_s16): Likewise.
12351 (vabal_s32): Likewise.
12352 (vabal_u8): Likewise.
12353 (vabal_u16): Likewise.
12354 (vabal_u32): Likewise.
12355 (vabaq_s8): Likewise.
12356 (vabaq_s16): Likewise.
12357 (vabaq_s32): Likewise.
12358 (vabaq_u8): Likewise.
12359 (vabaq_u16): Likewise.
12360 (vabaq_u32): Likewise.
12361 (vabd_s8): Likewise.
12362 (vabd_s16): Likewise.
12363 (vabd_s32): Likewise.
12364 (vabd_u8): Likewise.
12365 (vabd_u16): Likewise.
12366 (vabd_u32): Likewise.
12367 (vabdl_high_s8): Likewise.
12368 (vabdl_high_s16): Likewise.
12369 (vabdl_high_s32): Likewise.
12370 (vabdl_high_u8): Likewise.
12371 (vabdl_high_u16): Likewise.
12372 (vabdl_high_u32): Likewise.
12373 (vabdl_s8): Likewise.
12374 (vabdl_s16): Likewise.
12375 (vabdl_s32): Likewise.
12376 (vabdl_u8): Likewise.
12377 (vabdl_u16): Likewise.
12378 (vabdl_u32): Likewise.
12379 (vabdq_s8): Likewise.
12380 (vabdq_s16): Likewise.
12381 (vabdq_s32): Likewise.
12382 (vabdq_u8): Likewise.
12383 (vabdq_u16): Likewise.
12384 (vabdq_u32): Likewise.
12385 (vaddlv_s8): Likewise.
12386 (vaddlv_s16): Likewise.
12387 (vaddlv_u8): Likewise.
12388 (vaddlv_u16): Likewise.
12389 (vaddlvq_s8): Likewise.
12390 (vaddlvq_s16): Likewise.
12391 (vaddlvq_s32): Likewise.
12392 (vaddlvq_u8): Likewise.
12393 (vaddlvq_u16): Likewise.
12394 (vaddlvq_u32): Likewise.
12395 (vcvtx_f32_f64): Likewise.
12396 (vcvtx_high_f32_f64): Likewise.
12397 (vcvtxd_f32_f64): Likewise.
12398 (vmla_n_f32): Likewise.
12399 (vmla_n_s16): Likewise.
12400 (vmla_n_s32): Likewise.
12401 (vmla_n_u16): Likewise.
12402 (vmla_n_u32): Likewise.
12403 (vmla_s8): Likewise.
12404 (vmla_s16): Likewise.
12405 (vmla_s32): Likewise.
12406 (vmla_u8): Likewise.
12407 (vmla_u16): Likewise.
12408 (vmla_u32): Likewise.
12409 (vmlal_high_n_s16): Likewise.
12410 (vmlal_high_n_s32): Likewise.
12411 (vmlal_high_n_u16): Likewise.
12412 (vmlal_high_n_u32): Likewise.
12413 (vmlal_high_s8): Likewise.
12414 (vmlal_high_s16): Likewise.
12415 (vmlal_high_s32): Likewise.
12416 (vmlal_high_u8): Likewise.
12417 (vmlal_high_u16): Likewise.
12418 (vmlal_high_u32): Likewise.
12419 (vmlal_n_s16): Likewise.
12420 (vmlal_n_s32): Likewise.
12421 (vmlal_n_u16): Likewise.
12422 (vmlal_n_u32): Likewise.
12423 (vmlal_s8): Likewise.
12424 (vmlal_s16): Likewise.
12425 (vmlal_s32): Likewise.
12426 (vmlal_u8): Likewise.
12427 (vmlal_u16): Likewise.
12428 (vmlal_u32): Likewise.
12429 (vmlaq_n_f32): Likewise.
12430 (vmlaq_n_s16): Likewise.
12431 (vmlaq_n_s32): Likewise.
12432 (vmlaq_n_u16): Likewise.
12433 (vmlaq_n_u32): Likewise.
12434 (vmlaq_s8): Likewise.
12435 (vmlaq_s16): Likewise.
12436 (vmlaq_s32): Likewise.
12437 (vmlaq_u8): Likewise.
12438 (vmlaq_u16): Likewise.
12439 (vmlaq_u32): Likewise.
12440 (vmls_n_f32): Likewise.
12441 (vmls_n_s16): Likewise.
12442 (vmls_n_s32): Likewise.
12443 (vmls_n_u16): Likewise.
12444 (vmls_n_u32): Likewise.
12445 (vmls_s8): Likewise.
12446 (vmls_s16): Likewise.
12447 (vmls_s32): Likewise.
12448 (vmls_u8): Likewise.
12449 (vmls_u16): Likewise.
12450 (vmls_u32): Likewise.
12451 (vmlsl_high_n_s16): Likewise.
12452 (vmlsl_high_n_s32): Likewise.
12453 (vmlsl_high_n_u16): Likewise.
12454 (vmlsl_high_n_u32): Likewise.
12455 (vmlsl_high_s8): Likewise.
12456 (vmlsl_high_s16): Likewise.
12457 (vmlsl_high_s32): Likewise.
12458 (vmlsl_high_u8): Likewise.
12459 (vmlsl_high_u16): Likewise.
12460 (vmlsl_high_u32): Likewise.
12461 (vmlsl_n_s16): Likewise.
12462 (vmlsl_n_s32): Likewise.
12463 (vmlsl_n_u16): Likewise.
12464 (vmlsl_n_u32): Likewise.
12465 (vmlsl_s8): Likewise.
12466 (vmlsl_s16): Likewise.
12467 (vmlsl_s32): Likewise.
12468 (vmlsl_u8): Likewise.
12469 (vmlsl_u16): Likewise.
12470 (vmlsl_u32): Likewise.
12471 (vmlsq_n_f32): Likewise.
12472 (vmlsq_n_s16): Likewise.
12473 (vmlsq_n_s32): Likewise.
12474 (vmlsq_n_u16): Likewise.
12475 (vmlsq_n_u32): Likewise.
12476 (vmlsq_s8): Likewise.
12477 (vmlsq_s16): Likewise.
12478 (vmlsq_s32): Likewise.
12479 (vmlsq_u8): Likewise.
12480 (vmlsq_u16): Likewise.
12481 (vmlsq_u32): Likewise.
12482 (vmovl_high_s8): Likewise.
12483 (vmovl_high_s16): Likewise.
12484 (vmovl_high_s32): Likewise.
12485 (vmovl_high_u8): Likewise.
12486 (vmovl_high_u16): Likewise.
12487 (vmovl_high_u32): Likewise.
12488 (vmovl_s8): Likewise.
12489 (vmovl_s16): Likewise.
12490 (vmovl_s32): Likewise.
12491 (vmovl_u8): Likewise.
12492 (vmovl_u16): Likewise.
12493 (vmovl_u32): Likewise.
12494 (vmovn_high_s16): Likewise.
12495 (vmovn_high_s32): Likewise.
12496 (vmovn_high_s64): Likewise.
12497 (vmovn_high_u16): Likewise.
12498 (vmovn_high_u32): Likewise.
12499 (vmovn_high_u64): Likewise.
12500 (vmovn_s16): Likewise.
12501 (vmovn_s32): Likewise.
12502 (vmovn_s64): Likewise.
12503 (vmovn_u16): Likewise.
12504 (vmovn_u32): Likewise.
12505 (vmovn_u64): Likewise.
12506 (vmull_high_n_s16): Likewise.
12507 (vmull_high_n_s32): Likewise.
12508 (vmull_high_n_u16): Likewise.
12509 (vmull_high_n_u32): Likewise.
12510 (vmull_high_p8): Likewise.
12511 (vmull_high_s8): Likewise.
12512 (vmull_high_s16): Likewise.
12513 (vmull_high_s32): Likewise.
12514 (vmull_high_u8): Likewise.
12515 (vmull_high_u16): Likewise.
12516 (vmull_high_u32): Likewise.
12517 (vmull_n_s16): Likewise.
12518 (vmull_n_s32): Likewise.
12519 (vmull_n_u16): Likewise.
12520 (vmull_n_u32): Likewise.
12521 (vmull_p8): Likewise.
12522 (vmull_s8): Likewise.
12523 (vmull_s16): Likewise.
12524 (vmull_s32): Likewise.
12525 (vmull_u8): Likewise.
12526 (vmull_u16): Likewise.
12527 (vmull_u32): Likewise.
12528 (vpadal_s8): Likewise.
12529 (vpadal_s16): Likewise.
12530 (vpadal_s32): Likewise.
12531 (vpadal_u8): Likewise.
12532 (vpadal_u16): Likewise.
12533 (vpadal_u32): Likewise.
12534 (vpadalq_s8): Likewise.
12535 (vpadalq_s16): Likewise.
12536 (vpadalq_s32): Likewise.
12537 (vpadalq_u8): Likewise.
12538 (vpadalq_u16): Likewise.
12539 (vpadalq_u32): Likewise.
12540 (vpaddl_s8): Likewise.
12541 (vpaddl_s16): Likewise.
12542 (vpaddl_s32): Likewise.
12543 (vpaddl_u8): Likewise.
12544 (vpaddl_u16): Likewise.
12545 (vpaddl_u32): Likewise.
12546 (vpaddlq_s8): Likewise.
12547 (vpaddlq_s16): Likewise.
12548 (vpaddlq_s32): Likewise.
12549 (vpaddlq_u8): Likewise.
12550 (vpaddlq_u16): Likewise.
12551 (vpaddlq_u32): Likewise.
12552 (vpaddq_s8): Likewise.
12553 (vpaddq_s16): Likewise.
12554 (vpaddq_s32): Likewise.
12555 (vpaddq_s64): Likewise.
12556 (vpaddq_u8): Likewise.
12557 (vpaddq_u16): Likewise.
12558 (vpaddq_u32): Likewise.
12559 (vpaddq_u64): Likewise.
12560 (vqdmulh_n_s16): Likewise.
12561 (vqdmulh_n_s32): Likewise.
12562 (vqdmulhq_n_s16): Likewise.
12563 (vqdmulhq_n_s32): Likewise.
12564 (vqmovn_high_s16): Likewise.
12565 (vqmovn_high_s32): Likewise.
12566 (vqmovn_high_s64): Likewise.
12567 (vqmovn_high_u16): Likewise.
12568 (vqmovn_high_u32): Likewise.
12569 (vqmovn_high_u64): Likewise.
12570 (vqmovun_high_s16): Likewise.
12571 (vqmovun_high_s32): Likewise.
12572 (vqmovun_high_s64): Likewise.
12573 (vqrdmulh_n_s16): Likewise.
12574 (vqrdmulh_n_s32): Likewise.
12575 (vqrdmulhq_n_s16): Likewise.
12576 (vqrdmulhq_n_s32): Likewise.
12577 (vrsqrte_u32): Likewise.
12578 (vrsqrteq_u32): Likewise.
12579 (vtst_p8): Likewise.
12580 (vtst_p16): Likewise.
12581 (vtst_p64): Likewise.
12582 (vtstq_p8): Likewise.
12583 (vtstq_p16): Likewise.
12584 (vtstq_p64): Likewise.
12585 (vaddlv_s32): Likewise.
12586 (vaddlv_u32): Likewise.
12587 (vqtbl1_p8): Likewise.
12588 (vqtbl1_s8): Likewise.
12589 (vqtbl1_u8): Likewise.
12590 (vqtbl1q_p8): Likewise.
12591 (vqtbl1q_s8): Likewise.
12592 (vqtbl1q_u8): Likewise.
12593 (vqtbx1_s8): Likewise.
12594 (vqtbx1_u8): Likewise.
12595 (vqtbx1_p8): Likewise.
12596 (vqtbx1q_s8): Likewise.
12597 (vqtbx1q_u8): Likewise.
12598 (vqtbx1q_p8): Likewise.
12599 (vtbl1_s8): Likewise.
12600 (vtbl1_u8): Likewise.
12601 (vtbl1_p8): Likewise.
12602 (vtbl2_s8): Likewise.
12603 (vtbl2_u8): Likewise.
12604 (vtbl2_p8): Likewise.
12605 (vtbl3_s8): Likewise.
12606 (vtbl3_u8): Likewise.
12607 (vtbl3_p8): Likewise.
12608 (vtbl4_s8): Likewise.
12609 (vtbl4_u8): Likewise.
12610 (vtbl4_p8): Likewise.
12611 (vtbx2_s8): Likewise.
12612 (vtbx2_u8): Likewise.
12613 (vtbx2_p8): Likewise.
12614 (vld1_f32): Likewise.
12615 (vld1_f64): Likewise.
12616 (vld1_p8): Likewise.
12617 (vld1_p16): Likewise.
12618 (vld1_p64): Likewise.
12619 (vld1_s8): Likewise.
12620 (vld1_s16): Likewise.
12621 (vld1_s32): Likewise.
12622 (vld1_s64): Likewise.
12623 (vld1_u8): Likewise.
12624 (vld1_u16): Likewise.
12625 (vld1_u32): Likewise.
12626 (vld1_u64): Likewise.
12627 (vld1q_f32): Likewise.
12628 (vld1q_f64): Likewise.
12629 (vld1q_p8): Likewise.
12630 (vld1q_p16): Likewise.
12631 (vld1q_p64): Likewise.
12632 (vld1q_s8): Likewise.
12633 (vld1q_s16): Likewise.
12634 (vld1q_s32): Likewise.
12635 (vld1q_s64): Likewise.
12636 (vld1q_u8): Likewise.
12637 (vld1q_u16): Likewise.
12638 (vld1q_u32): Likewise.
12639 (vld1q_u64): Likewise.
12640 (vpmax_s8): Likewise.
12641 (vpmax_s16): Likewise.
12642 (vpmax_s32): Likewise.
12643 (vpmax_u8): Likewise.
12644 (vpmax_u16): Likewise.
12645 (vpmax_u32): Likewise.
12646 (vpmaxq_s8): Likewise.
12647 (vpmaxq_s16): Likewise.
12648 (vpmaxq_s32): Likewise.
12649 (vpmaxq_u8): Likewise.
12650 (vpmaxq_u16): Likewise.
12651 (vpmaxq_u32): Likewise.
12652 (vpmax_f32): Likewise.
12653 (vpmaxq_f32): Likewise.
12654 (vpmaxq_f64): Likewise.
12655 (vpmaxqd_f64): Likewise.
12656 (vpmaxs_f32): Likewise.
12657 (vpmaxnm_f32): Likewise.
12658 (vpmaxnmq_f32): Likewise.
12659 (vpmaxnmq_f64): Likewise.
12660 (vpmaxnmqd_f64): Likewise.
12661 (vpmaxnms_f32): Likewise.
12662 (vpmin_s8): Likewise.
12663 (vpmin_s16): Likewise.
12664 (vpmin_s32): Likewise.
12665 (vpmin_u8): Likewise.
12666 (vpmin_u16): Likewise.
12667 (vpmin_u32): Likewise.
12668 (vpminq_s8): Likewise.
12669 (vpminq_s16): Likewise.
12670 (vpminq_s32): Likewise.
12671 (vpminq_u8): Likewise.
12672 (vpminq_u16): Likewise.
12673 (vpminq_u32): Likewise.
12674 (vpmin_f32): Likewise.
12675 (vpminq_f32): Likewise.
12676 (vpminq_f64): Likewise.
12677 (vpminqd_f64): Likewise.
12678 (vpmins_f32): Likewise.
12679 (vpminnm_f32): Likewise.
12680 (vpminnmq_f32): Likewise.
12681 (vpminnmq_f64): Likewise.
12682 (vpminnmqd_f64): Likewise.
12683 (vpminnms_f32): Likewise.
12684 (vmla_f32): Likewise.
12685 (vmlaq_f32): Likewise.
12686 (vmlaq_f64): Likewise.
12687 (vmls_f32): Likewise.
12688 (vmlsq_f32): Likewise.
12689 (vmlsq_f64): Likewise.
12690 (vqtbl2_s8): Likewise.
12691 (vqtbl2_u8): Likewise.
12692 (vqtbl2_p8): Likewise.
12693 (vqtbl2q_s8): Likewise.
12694 (vqtbl2q_u8): Likewise.
12695 (vqtbl2q_p8): Likewise.
12696 (vqtbl3_s8): Likewise.
12697 (vqtbl3_u8): Likewise.
12698 (vqtbl3_p8): Likewise.
12699 (vqtbl3q_s8): Likewise.
12700 (vqtbl3q_u8): Likewise.
12701 (vqtbl3q_p8): Likewise.
12702 (vqtbl4_s8): Likewise.
12703 (vqtbl4_u8): Likewise.
12704 (vqtbl4_p8): Likewise.
12705 (vqtbl4q_s8): Likewise.
12706 (vqtbl4q_u8): Likewise.
12707 (vqtbl4q_p8): Likewise.
12708 (vqtbx2_s8): Likewise.
12709 (vqtbx2_u8): Likewise.
12710 (vqtbx2_p8): Likewise.
12711 (vqtbx2q_s8): Likewise.
12712 (vqtbx2q_u8): Likewise.
12713 (vqtbx2q_p8): Likewise.
12714 (vqtbx3_s8): Likewise.
12715 (vqtbx3_u8): Likewise.
12716 (vqtbx3_p8): Likewise.
12717 (vqtbx3q_s8): Likewise.
12718 (vqtbx3q_u8): Likewise.
12719 (vqtbx3q_p8): Likewise.
12720 (vqtbx4_s8): Likewise.
12721 (vqtbx4_u8): Likewise.
12722 (vqtbx4_p8): Likewise.
12723 (vqtbx4q_s8): Likewise.
12724 (vqtbx4q_u8): Likewise.
12725 (vqtbx4q_p8): Likewise.
12726 (vrev16_p8): Likewise.
12727 (vrev16_s8): Likewise.
12728 (vrev16_u8): Likewise.
12729 (vrev16q_p8): Likewise.
12730 (vrev16q_s8): Likewise.
12731 (vrev16q_u8): Likewise.
12732 (vrev32_p8): Likewise.
12733 (vrev32_p16): Likewise.
12734 (vrev32_s8): Likewise.
12735 (vrev32_s16): Likewise.
12736 (vrev32_u8): Likewise.
12737 (vrev32_u16): Likewise.
12738 (vrev32q_p8): Likewise.
12739 (vrev32q_p16): Likewise.
12740 (vrev32q_s8): Likewise.
12741 (vrev32q_s16): Likewise.
12742 (vrev32q_u8): Likewise.
12743 (vrev32q_u16): Likewise.
12744 (vrev64_f32): Likewise.
12745 (vrev64_p8): Likewise.
12746 (vrev64_p16): Likewise.
12747 (vrev64_s8): Likewise.
12748 (vrev64_s16): Likewise.
12749 (vrev64_s32): Likewise.
12750 (vrev64_u8): Likewise.
12751 (vrev64_u16): Likewise.
12752 (vrev64_u32): Likewise.
12753 (vrev64q_f32): Likewise.
12754 (vrev64q_p8): Likewise.
12755 (vrev64q_p16): Likewise.
12756 (vrev64q_s8): Likewise.
12757 (vrev64q_s16): Likewise.
12758 (vrev64q_s32): Likewise.
12759 (vrev64q_u8): Likewise.
12760 (vrev64q_u16): Likewise.
12761 (vrev64q_u32): Likewise.
12762 (vsha1cq_u32): Likewise.
12763 (vsha1mq_u32): Likewise.
12764 (vsha1pq_u32): Likewise.
12765 (vsha1h_u32): Likewise.
12766 (vsha1su0q_u32): Likewise.
12767 (vsha1su1q_u32): Likewise.
12768 (vsha256hq_u32): Likewise.
12769 (vsha256h2q_u32): Likewise.
12770 (vsha256su0q_u32): Likewise.
12771 (vsha256su1q_u32): Likewise.
12772 (vmull_p64): Likewise.
12773 (vmull_high_p64): Likewise.
12774 (vsqrt_f32): Likewise.
12775 (vsqrtq_f32): Likewise.
12776 (vsqrt_f64): Likewise.
12777 (vsqrtq_f64): Likewise.
12778 (vst1_f32): Likewise.
12779 (vst1_f64): Likewise.
12780 (vst1_p8): Likewise.
12781 (vst1_p16): Likewise.
12782 (vst1_p64): Likewise.
12783 (vst1_s8): Likewise.
12784 (vst1_s16): Likewise.
12785 (vst1_s32): Likewise.
12786 (vst1_s64): Likewise.
12787 (vst1_u8): Likewise.
12788 (vst1_u16): Likewise.
12789 (vst1_u32): Likewise.
12790 (vst1_u64): Likewise.
12791 (vst1q_f32): Likewise.
12792 (vst1q_f64): Likewise.
12793 (vst1q_p8): Likewise.
12794 (vst1q_p16): Likewise.
12795 (vst1q_p64): Likewise.
12796 (vst1q_s8): Likewise.
12797 (vst1q_s16): Likewise.
12798 (vst1q_s32): Likewise.
12799 (vst1q_s64): Likewise.
12800 (vst1q_u8): Likewise.
12801 (vst1q_u16): Likewise.
12802 (vst1q_u32): Likewise.
12803 (vst1q_u64): Likewise.
12804 (vst1_s64_x2): Likewise.
12805 (vst1_u64_x2): Likewise.
12806 (vst1_f64_x2): Likewise.
12807 (vst1_s8_x2): Likewise.
12808 (vst1_p8_x2): Likewise.
12809 (vst1_s16_x2): Likewise.
12810 (vst1_p16_x2): Likewise.
12811 (vst1_s32_x2): Likewise.
12812 (vst1_u8_x2): Likewise.
12813 (vst1_u16_x2): Likewise.
12814 (vst1_u32_x2): Likewise.
12815 (vst1_f16_x2): Likewise.
12816 (vst1_f32_x2): Likewise.
12817 (vst1_p64_x2): Likewise.
12818 (vst1q_s8_x2): Likewise.
12819 (vst1q_p8_x2): Likewise.
12820 (vst1q_s16_x2): Likewise.
12821 (vst1q_p16_x2): Likewise.
12822 (vst1q_s32_x2): Likewise.
12823 (vst1q_s64_x2): Likewise.
12824 (vst1q_u8_x2): Likewise.
12825 (vst1q_u16_x2): Likewise.
12826 (vst1q_u32_x2): Likewise.
12827 (vst1q_u64_x2): Likewise.
12828 (vst1q_f16_x2): Likewise.
12829 (vst1q_f32_x2): Likewise.
12830 (vst1q_f64_x2): Likewise.
12831 (vst1q_p64_x2): Likewise.
12832 (vst1_s64_x3): Likewise.
12833 (vst1_u64_x3): Likewise.
12834 (vst1_f64_x3): Likewise.
12835 (vst1_s8_x3): Likewise.
12836 (vst1_p8_x3): Likewise.
12837 (vst1_s16_x3): Likewise.
12838 (vst1_p16_x3): Likewise.
12839 (vst1_s32_x3): Likewise.
12840 (vst1_u8_x3): Likewise.
12841 (vst1_u16_x3): Likewise.
12842 (vst1_u32_x3): Likewise.
12843 (vst1_f16_x3): Likewise.
12844 (vst1_f32_x3): Likewise.
12845 (vst1_p64_x3): Likewise.
12846 (vst1q_s8_x3): Likewise.
12847 (vst1q_p8_x3): Likewise.
12848 (vst1q_s16_x3): Likewise.
12849 (vst1q_p16_x3): Likewise.
12850 (vst1q_s32_x3): Likewise.
12851 (vst1q_s64_x3): Likewise.
12852 (vst1q_u8_x3): Likewise.
12853 (vst1q_u16_x3): Likewise.
12854 (vst1q_u32_x3): Likewise.
12855 (vst1q_u64_x3): Likewise.
12856 (vst1q_f16_x3): Likewise.
12857 (vst1q_f32_x3): Likewise.
12858 (vst1q_f64_x3): Likewise.
12859 (vst1q_p64_x3): Likewise.
12860 (vst2_s64): Likewise.
12861 (vst2_u64): Likewise.
12862 (vst2_f64): Likewise.
12863 (vst2_s8): Likewise.
12864 (vst2_p8): Likewise.
12865 (vst2_s16): Likewise.
12866 (vst2_p16): Likewise.
12867 (vst2_s32): Likewise.
12868 (vst2_u8): Likewise.
12869 (vst2_u16): Likewise.
12870 (vst2_u32): Likewise.
12871 (vst2_f16): Likewise.
12872 (vst2_f32): Likewise.
12873 (vst2_p64): Likewise.
12874 (vst2q_s8): Likewise.
12875 (vst2q_p8): Likewise.
12876 (vst2q_s16): Likewise.
12877 (vst2q_p16): Likewise.
12878 (vst2q_s32): Likewise.
12879 (vst2q_s64): Likewise.
12880 (vst2q_u8): Likewise.
12881 (vst2q_u16): Likewise.
12882 (vst2q_u32): Likewise.
12883 (vst2q_u64): Likewise.
12884 (vst2q_f16): Likewise.
12885 (vst2q_f32): Likewise.
12886 (vst2q_f64): Likewise.
12887 (vst2q_p64): Likewise.
12888 (vst3_s64): Likewise.
12889 (vst3_u64): Likewise.
12890 (vst3_f64): Likewise.
12891 (vst3_s8): Likewise.
12892 (vst3_p8): Likewise.
12893 (vst3_s16): Likewise.
12894 (vst3_p16): Likewise.
12895 (vst3_s32): Likewise.
12896 (vst3_u8): Likewise.
12897 (vst3_u16): Likewise.
12898 (vst3_u32): Likewise.
12899 (vst3_f16): Likewise.
12900 (vst3_f32): Likewise.
12901 (vst3_p64): Likewise.
12902 (vst3q_s8): Likewise.
12903 (vst3q_p8): Likewise.
12904 (vst3q_s16): Likewise.
12905 (vst3q_p16): Likewise.
12906 (vst3q_s32): Likewise.
12907 (vst3q_s64): Likewise.
12908 (vst3q_u8): Likewise.
12909 (vst3q_u16): Likewise.
12910 (vst3q_u32): Likewise.
12911 (vst3q_u64): Likewise.
12912 (vst3q_f16): Likewise.
12913 (vst3q_f32): Likewise.
12914 (vst3q_f64): Likewise.
12915 (vst3q_p64): Likewise.
12916 (vst4_s64): Likewise.
12917 (vst4_u64): Likewise.
12918 (vst4_f64): Likewise.
12919 (vst4_s8): Likewise.
12920 (vst4_p8): Likewise.
12921 (vst4_s16): Likewise.
12922 (vst4_p16): Likewise.
12923 (vst4_s32): Likewise.
12924 (vst4_u8): Likewise.
12925 (vst4_u16): Likewise.
12926 (vst4_u32): Likewise.
12927 (vst4_f16): Likewise.
12928 (vst4_f32): Likewise.
12929 (vst4_p64): Likewise.
12930 (vst4q_s8): Likewise.
12931 (vst4q_p8): Likewise.
12932 (vst4q_s16): Likewise.
12933 (vst4q_p16): Likewise.
12934 (vst4q_s32): Likewise.
12935 (vst4q_s64): Likewise.
12936 (vst4q_u8): Likewise.
12937 (vst4q_u16): Likewise.
12938 (vst4q_u32): Likewise.
12939 (vst4q_u64): Likewise.
12940 (vst4q_f16): Likewise.
12941 (vst4q_f32): Likewise.
12942 (vst4q_f64): Likewise.
12943 (vst4q_p64): Likewise.
12944 (vtbx4_s8): Likewise.
12945 (vtbx4_u8): Likewise.
12946 (vtbx4_p8): Likewise.
12947 (vtrn_f32): Likewise.
12948 (vtrn_p8): Likewise.
12949 (vtrn_p16): Likewise.
12950 (vtrn_s8): Likewise.
12951 (vtrn_s16): Likewise.
12952 (vtrn_s32): Likewise.
12953 (vtrn_u8): Likewise.
12954 (vtrn_u16): Likewise.
12955 (vtrn_u32): Likewise.
12956 (vtrnq_f32): Likewise.
12957 (vtrnq_p8): Likewise.
12958 (vtrnq_p16): Likewise.
12959 (vtrnq_s8): Likewise.
12960 (vtrnq_s16): Likewise.
12961 (vtrnq_s32): Likewise.
12962 (vtrnq_u8): Likewise.
12963 (vtrnq_u16): Likewise.
12964 (vtrnq_u32): Likewise.
12965 (vrsqrte_f16): Likewise.
12966 (vrsqrteq_f16): Likewise.
12967 (vsqrt_f16): Likewise.
12968 (vsqrtq_f16): Likewise.
12969 (vabd_f16): Likewise.
12970 (vabdq_f16): Likewise.
12971 (vpadd_f16): Likewise.
12972 (vpaddq_f16): Likewise.
12973 (vpmax_f16): Likewise.
12974 (vpmaxq_f16): Likewise.
12975 (vpmaxnm_f16): Likewise.
12976 (vpmaxnmq_f16): Likewise.
12977 (vpmin_f16): Likewise.
12978 (vpminq_f16): Likewise.
12979 (vpminnm_f16): Likewise.
12980 (vpminnmq_f16): Likewise.
12981 (vrsqrts_f16): Likewise.
12982 (vrsqrtsq_f16): Likewise.
12984 2019-09-25 Richard Biener <rguenther@suse.de>
12986 PR tree-optimization/91896
12987 * tree-vect-loop.c (vectorizable_reduction): The single
12988 def-use cycle optimization cannot apply when there's more
12989 than one pattern stmt involved.
12991 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12993 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12994 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12995 (reload_macho_picbase_<mode>): Likewise.
12997 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12999 * config/rs6000/rs6000.md: Move darwin.md include until
13000 after the definition of the mode iterators.
13002 2019-09-23 Martin Sebor <msebor@redhat.com>
13004 PR tree-optimization/91570
13005 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
13006 non-constant minlen, maxlen and maxbound.
13008 2019-09-24 Richard Biener <rguenther@suse.de>
13010 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
13012 (_stmt_vec_info::cond_reduc_code): ... this.
13013 (_stmt_vec_info::induc_cond_initial_val): Add.
13014 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
13015 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
13016 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
13017 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
13018 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
13019 the reduction code.
13020 (vect_create_epilog_for_reduction): Drop special
13021 induction condition reduction params, pass in reduction code
13023 (vectorizable_reduction): Perform condition reduction kind
13024 selection only at analysis time. Adjust passing on state.
13026 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13028 * config/aarch64/aarch64.md (mov<mode>): Don't call
13029 aarch64_split_dimode_const_store on volatile MEM.
13031 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
13033 * config/aarch64/aarch64-option-extensions.def (fp16fml):
13034 Update hwcap string for fp16fml.
13036 2019-09-24 Jakub Jelinek <jakub@redhat.com>
13038 PR middle-end/91866
13039 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
13040 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
13042 2019-09-24 Martin Liska <mliska@suse.cz>
13044 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
13045 instead of if-elseif-elseif-...
13046 * gimple-expr.c (extract_ops_from_tree): Likewise.
13047 * gimple.c (get_gimple_rhs_num_ops): Likewise.
13048 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
13050 2019-09-24 Martin Jambor <mjambor@suse.cz>
13053 * ipa-param-manipulation.c (carry_over_param): Make a method of
13054 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
13055 in case of a context mismatch.
13056 (ipa_param_body_adjustments::common_initialization): Adjust call to
13058 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
13059 private method carry_over_param.
13061 2019-09-24 Martin Jambor <mjambor@suse.cz>
13064 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
13066 2019-09-24 Richard Biener <rguenther@suse.de>
13068 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
13071 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13073 * config/arm/t-arm (arm-builtins.o): Add dependency on
13074 arm_acle_builtins.def.
13076 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
13079 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
13080 canonical CONST_INTs. Use gen_rtvec.
13082 2019-09-23 Richard Biener <rguenther@suse.de>
13084 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
13085 avoid adjusting by + 0 or * 1.
13086 (vect_create_epilog_for_reduction): Get reduction code only
13087 when necessary. Deal with adjustment_def only when necessary.
13089 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
13091 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
13094 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13097 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
13100 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
13102 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
13103 code. Merge code blocks with common conditionals. Use declared
13104 macro instead of a magic number for PIC level.
13106 2019-09-21 Martin Sebor <msebor@redhat.com>
13108 PR middle-end/91830
13109 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
13110 Simplify computation of the offset of the referenced subobject.
13112 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
13114 * config/darwin.c (machopic_legitimize_pic_address): Check
13115 for lra not reload.
13117 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
13119 * ira-conflicts.c (can_use_same_reg_p): New function.
13120 (process_reg_shuffles): Take an insn parameter. Ignore cases
13121 in which input operand op_num could seemingly never be allocated
13122 to the same register as the destination.
13123 (add_insn_allocno_copies): Update call to process_reg_shuffles.
13125 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
13127 * simplify-rtx.c (neg_const_int): Replace with...
13128 (neg_poly_int_rtx): ...this new function.
13129 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
13130 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
13131 (simplify_plus_minus): Likewise for constant terms here.
13133 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
13135 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
13136 HOST_WIDE_PRINT_UNSIGNED.
13138 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
13140 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
13143 2019-09-20 Maya Rashish <coypu@sdf.org>
13146 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
13147 Define to speculation_safe_value_not_needed.
13149 2019-09-20 Richard Biener <rguenther@suse.de>
13150 Uros Bizjak <ubizjak@gmail.com>
13153 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
13155 (general_scalar_chain::convert_op): Force not suitable memory
13156 operands to a register.
13158 2019-09-20 Richard Biener <rguenther@suse.de>
13160 PR tree-optimization/91821
13161 * tree-vect-loop.c (check_reduction_path): Check we can compute
13163 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
13164 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
13165 operands in canonical order.
13166 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
13167 STMT_VINFO_REDUC_IDX.
13168 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
13169 (STMT_VINFO_REDUC_IDX): Likewise.
13171 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
13174 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13176 2019-09-20 Richard Biener <rguenther@suse.de>
13178 PR tree-optimization/91822
13179 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
13181 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
13182 for reduc_index in nested cycles, adjust vectorizable_condition
13184 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
13186 (vect_analyze_stmt): Adjust.
13187 (vect_transform_stmt): Likewise.
13189 2019-09-20 Richard Biener <rguenther@suse.de>
13192 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
13193 Ensure there's a sequence point between allocating the new register
13194 and passing a reference to a reg via regno_reg_rtx.
13196 2019-09-20 Martin Jambor <mjambor@suse.cz>
13198 * coretypes.h (cgraph_edge): Declare.
13199 * ipa-param-manipulation.c: Rewrite.
13200 * ipa-param-manipulation.h: Likewise.
13201 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
13202 (OBJS): Added ipa-sra.o.
13203 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
13204 and ref_p, added fields param_adjustments and performed_splits.
13205 (struct cgraph_clone_info): Remove ags_to_skip and
13206 combined_args_to_skip, new field param_adjustments.
13207 (cgraph_node::create_clone): Changed parameters to use
13208 ipa_param_adjustments.
13209 (cgraph_node::create_virtual_clone): Likewise.
13210 (cgraph_node::create_virtual_clone_with_body): Likewise.
13211 (tree_function_versioning): Likewise.
13212 (cgraph_build_function_type_skip_args): Removed.
13213 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13214 using ipa_param_adjustments.
13215 (clone_of_p): Likewise.
13216 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13217 (build_function_decl_skip_args): Likewise.
13218 (duplicate_thunk_for_node): Adjust parameters using
13219 ipa_param_body_adjustments, copy param_adjustments instead of
13221 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13222 (cgraph_node::create_virtual_clone): Likewise.
13223 (cgraph_node::create_version_clone_with_body): Likewise.
13224 (cgraph_materialize_clone): Likewise.
13225 (symbol_table::materialize_all_clones): Likewise.
13226 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13227 ipa_replace_map check.
13228 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13229 (initialize_node_lattices): Make aware that some parameters might have
13230 already been removed.
13231 (want_remove_some_param_p): New function.
13232 (create_specialized_node): Convert to using ipa_param_adjustments and
13233 deal with possibly pre-existing adjustments.
13234 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13235 (output_node_opt_summary): Do not stream removed fields. Stream
13236 parameter adjustments instead of argumetns to skip.
13237 (input_node_opt_summary): Likewise.
13238 (input_node_opt_summary): Likewise.
13239 * lto-section-in.c (lto_section_name): Added ipa-sra section.
13240 * lto-streamer.h (lto_section_type): Likewise.
13241 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13243 (copy_decl_to_var): Declare.
13244 * tree-inline.c (update_clone_info): Do not remap old_tree.
13245 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13246 statements, walk all extra generated statements and remap their
13248 (redirect_all_calls): Add killed SSA names to a hash set.
13249 (remap_ssa_name): Do not remap killed SSA names.
13250 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13251 half of functionality moved to ipa_param_body_adjustments.
13252 (copy_decl_to_var): Make exported.
13253 (copy_body): Destroy killed_new_ssa_names hash set.
13254 (expand_call_inline): Remap performed splits.
13255 (update_clone_info): Likewise.
13256 (tree_function_versioning): Simplify tree_map processing. Updated to
13257 accept ipa_param_adjustments and use ipa_param_body_adjustments.
13258 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13259 for the new interface.
13260 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13261 (simd_clone_compute_base_data_type): Likewise.
13262 (simd_clone_init_simd_arrays): Adjust for the new interface.
13263 (simd_clone_adjust_argument_types): Likewise.
13264 (struct modify_stmt_info): Likewise.
13265 (ipa_simd_modify_stmt_ops): Likewise.
13266 (ipa_simd_modify_function_body): Likewise.
13267 (simd_clone_adjust): Likewise.
13268 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
13269 (type_internals_preclude_sra_p): Make public.
13270 * tree-sra.h: New file.
13271 * ipa-inline-transform.c (save_inline_function_body): Update to
13272 refelct new tree_function_versioning signature.
13273 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13274 ipa_param_adjustments to get current parameter indices.
13275 (ipcp_modif_dom_walker::before_dom_children): Likewise.
13276 (ipcp_update_bits): Likewise.
13277 (ipcp_update_vr): Likewise.
13278 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13279 * ipa-sra.c: New file.
13280 * multiple_target.c (create_target_clone): Update to reflet new type
13281 of create_version_clone_with_body.
13282 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13283 tree_function_versioning.
13284 (modify_function): Update to reflect new type of
13285 tree_function_versioning.
13286 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13287 * passes.def: Remove old IPA-SRA and add new one.
13288 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13289 (make_pass_ipa_sra): Declare.
13290 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
13292 * doc/invoke.texi (ipa-sra-max-replacements): New.
13294 2019-09-19 Martin Sebor <msebor@redhat.com>
13296 PR middle-end/91631
13297 * builtins.c (component_size): Correct trailing array computation,
13298 rename to component_ref_size and move...
13299 (compute_objsize): Adjust.
13300 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13301 (builtin_access::strict): Do not consider memmove.
13302 (builtin_access::write_off): New function.
13303 (builtin_memref::builtin_memref): Initialize refsize.
13304 (builtin_memref::set_base_and_offset): Adjust refoff and compute
13306 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13308 (builtin_access::builtin_access): Initialize dstoff to destination
13309 refeence offset here instead of in maybe_diag_overlap. Adjust
13310 referencess even to unrelated objects. Adjust sizrange of bounded
13311 string functions to reflect bound. For strcat, adjust destination
13312 sizrange by that of source.
13313 (builtin_access::strcat_overlap): Adjust offsets and sizes
13314 to reflect the increase in destination sizrange above.
13315 (builtin_access::overlap): Do not set dstoff here but instead
13316 in builtin_access::builtin_access.
13317 (check_bounds_or_overlap): Use builtin_access::write_off.
13318 (maybe_diag_access_bounds): Add argument. Add informational notes.
13319 (dump_builtin_memref, dump_builtin_access): New functions.
13320 * tree.c (component_ref_size): ...to here.
13321 * tree.h (component_ref_size): Declare.
13322 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13323 nul in the size of the source string.
13325 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
13328 * doc/cpp.texi: Document support for extended characters in
13330 * doc/cppopts.texi: Likewise.
13332 2019-09-19 Richard Biener <rguenther@suse.de>
13334 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13335 (check_reduction_path): New overload having the path as result.
13336 (vect_is_simple_reduction): From the detected reduction
13337 path build a SLP reduction chain if possible.
13339 2019-09-19 Richard Biener <rguenther@suse.de>
13342 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13343 Force operand to a register if it isn't nonimmediate_operand.
13345 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13347 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13348 * config/arm/iterators.md (optab): Add and, ior, xor entries.
13349 (logical_op): Remove code attribute.
13350 (logical_OP): Likewise.
13352 2019-09-19 Martin Liska <mliska@suse.cz>
13354 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13355 Use proper casting.
13357 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13359 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13362 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13363 for NE comparison of TImode values.
13364 (aarch64_emit_load_exclusive): Add support for TImode.
13365 (aarch64_emit_store_exclusive): Likewise.
13366 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13367 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13368 Change iterator from ALLI to ALLI_TI.
13369 (@atomic_compare_and_swap<JUST_TI>): New.
13370 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13371 (aarch64_load_exclusive_pair): New.
13372 (aarch64_store_exclusive_pair): New.
13373 * config/aarch64/iterators.md (JUST_TI): New.
13375 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13376 strong_zero_p for aarch64_track_speculation; unify some code paths;
13377 use aarch64_gen_compare_reg instead of open-coding.
13379 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13380 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13381 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13382 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13383 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13384 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13385 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13386 (atomic_<atomic_op><ALLI>): Likewise.
13387 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13388 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13389 * doc/invoke.texi: Document -moutline-atomics.
13391 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13393 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13394 trivial predicate for condition branch.
13395 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13397 (compute_bb_predicates): Update predicate based on post-dominating
13399 (analyze_function_body): Calculate post-dominating information.
13401 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13403 * tree-vectorizer.h (vectorizable_condition): Take an int
13404 reduction index instead of a boolean flag.
13405 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13406 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13407 reductions if the reduction accumulator is the "then" rather
13408 than the "else" value.
13409 (vect_analyze_stmt): Update call accordingly.
13410 (vect_transform_stmt): Likewise.
13411 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13412 asserting that the index is > 0.
13414 2019-09-19 Martin Liska <mliska@suse.cz>
13416 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13417 (sort_congruence_classes_by_decl_uid): Likewise.
13418 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13420 (sem_item_optimizer::merge_classes): Likewise.
13422 2019-09-19 Richard Biener <rguenther@suse.de>
13424 PR tree-optimization/91812
13425 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13428 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13430 * defaults.h (TARGET_UNIT): New macro.
13431 (target_unit): New type.
13432 * rtl.h (native_encode_rtx, native_decode_rtx)
13433 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13434 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13435 * rtlanal.c (subreg_lsb_1): Delete.
13436 (subreg_size_lsb): New function.
13437 * simplify-rtx.c: Include rtx-vector-builder.h
13438 (simplify_immed_subreg): Delete.
13439 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13440 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13442 (simplify_subreg): Use them.
13443 (test_vector_subregs_modes, test_vector_subregs_repeating)
13444 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13445 (test_vector_subregs): New functions.
13446 (test_vector_ops): Call test_vector_subregs for integer vector
13447 modes with at least 2 elements.
13449 2019-09-19 Richard Biener <rguenther@suse.de>
13451 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13452 LOOP_VINFO_OPERANDS_SWAPPED.
13453 (parloops_is_simple_reduction): Likewise.
13454 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13455 initialize operands_swapped.
13456 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13457 (vect_is_slp_reduction): Do not swap operands.
13458 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13459 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13461 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13464 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13465 Add avx_partial_xmm_update.
13467 2019-09-18 Jim Wilson <jimw@sifive.com>
13470 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13471 (riscv_move_integer): Likewise.
13472 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13473 riscv_move_integer arg.
13474 (riscv_legitimize_move): Likewise.
13475 (riscv_force_temporary): New parameter in_splitter. Don't call
13477 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13479 (riscv_add_offset): Likewise.
13480 (riscv_split_symbol): New parameter in_splitter. Pass to
13481 riscv_force_temporary.
13482 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13484 (riscv_move_integer): New parameter in_splitter. New local
13485 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13487 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13488 riscv_split_symbol, and riscv_force_temporary args.
13489 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13490 riscv_move_integer arg.
13491 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13493 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13496 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13497 hard register store cost to 6.
13499 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13502 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13503 pseudo register store cost from 3 to 6 to make it the same as
13506 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13509 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13510 (one_cmpldi2): Likewise.
13511 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13512 of the constant parts is simple.
13513 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13514 (logical_op): Add new code attribute.
13515 (logical_OP): Likewise.
13516 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13517 (arm_iordi_operand): Add predicate.
13518 (arm_xordi_operand): Add predicate.
13520 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13522 * config/arm/arm.md (maddsidi4): Remove expander.
13523 (mulsidi3adddi): Remove pattern.
13524 (mulsidi3adddi_v6): Likewise.
13525 (mulsidi3_nov6): Likewise.
13526 (mulsidi3_v6): Likewise.
13527 (umulsidi3): Remove expander.
13528 (umulsidi3_nov6): Remove pattern.
13529 (umulsidi3_v6): Likewise.
13530 (umulsidi3adddi): Likewise.
13531 (umulsidi3adddi_v6): Likewise.
13532 (<Us>mulsidi3): Add combined expander.
13533 (<Us>maddsidi4): Likewise.
13534 (<US>mull): Add combined umull and smull pattern.
13535 (<US>mlal): Likewise.
13536 * config/arm/iterators.md (Us): Add new iterator.
13538 2019-09-18 Richard Biener <rguenther@suse.de>
13540 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13542 (vectorize_fold_left_reduction): Remove assert.
13543 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13544 operand in position 2. Remove assert.
13546 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13548 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13549 (smulsi3_highpart_nov6): Remove pattern.
13550 (smulsi3_highpart_v6): Likewise.
13551 (umulsi3_highpart): Likewise.
13552 (umulsi3_highpart_nov6): Likewise.
13553 (umulsi3_highpart_v6): Likewise.
13554 (<US>mull_high): Add new combined multiply pattern.
13556 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13558 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13559 (arm_mulsi3_v6): Likewise.
13560 (mulsi3addsi_v6): Likewise.
13561 (mulsi3subsi): Likewise.
13562 (mul): Add new multiply pattern.
13566 2019-09-18 Richard Biener <rguenther@suse.de>
13568 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13569 (parloops_valid_reduction_input_p): Copy from
13570 valid_reduction_input_p.
13571 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13572 (parloops_needs_fold_left_reduction_p): Copy from
13573 needs_fold_left_reduction_p.
13574 (parloops_is_simple_reduction): Copy from
13575 vect_is_simple_reduction.
13576 (parloops_force_simple_reduction): Copy from
13577 vect_force_simple_reduction.
13578 (gather_scalar_reductions): Adjust.
13579 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13580 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13582 2019-09-18 Richard Biener <rguenther@suse.de>
13584 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13585 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13587 (vect_create_epilog_for_reduction): Remove dead code.
13589 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13591 * varasm.c (assemble_real): Generate canonical const_ints.
13593 2019-09-18 Richard Biener <rguenther@suse.de>
13596 * lto-streamer-in.c (input_eh_regions): Move EH init to
13597 lto_materialize_function.
13598 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13601 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13603 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13606 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13608 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13609 of checking specifically for INTEGER_CST.
13611 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13613 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13614 sizes instead of uhwi sizes.
13616 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13618 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13619 (add_const_value_attribute): Handle CONST_POLY_INT.
13621 2019-09-18 Martin Liska <mliska@suse.cz>
13623 * dbgcnt.def (store_merging): New counter.
13624 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13625 Use it in store merging.
13627 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13629 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13631 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13632 * config/arm/arm.c (arm_sched_variable_issue): New function.
13633 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13635 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13637 * config/arm/types.md (no_reservation): New reservation.
13638 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13640 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13641 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13642 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13643 * config/arm/arm1020e.md (1020alu_op): Likewise.
13644 * config/arm/arm1026ejs.md (alu_op): Likewise.
13645 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13646 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13647 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13648 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13649 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13650 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13651 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13652 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13653 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13654 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13655 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13656 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13657 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13658 * config/arm/fa526.md (526_alu_op): Likewise.
13659 * config/arm/fa606te.md (606te_alu_op): Likewise.
13660 * config/arm/fa626te.md (626te_alu_op): Likewise.
13661 * config/arm/fa726te.md (726te_alu_op): Likewise.
13662 * config/arm/xgene1.md (xgene1_nop): Likewise.
13664 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13666 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13667 "no_insn" to "branch".
13669 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13671 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13673 2019-09-17 Richard Biener <rguenther@suse.de>
13676 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13677 was missing generate locations only once.
13679 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13682 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13684 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13685 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13686 for switch default case using range analysis information.
13688 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13691 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13692 mode attributed is supported by FDPIC.
13694 2019-09-17 Richard Biener <rguenther@suse.de>
13696 PR tree-optimization/91790
13697 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13698 use the correct DR for setting up realignment.
13700 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13703 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13704 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13705 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13706 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13708 2019-09-16 Jason Merrill <jason@redhat.com>
13710 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13712 2019-09-16 Martin Liska <mliska@suse.cz>
13714 * gimple-fold.c (or_comparisons_1): Remove rules moved
13716 * match.pd: ... here.
13718 2019-09-16 Martin Liska <mliska@suse.cz>
13720 * gimple-fold.c (or_comparisons_1): Remove rules
13722 * match.pd: ... here.
13724 2019-09-16 Martin Liska <mliska@suse.cz>
13726 * genmatch.c (dt_node::append_simplify): Do not print
13727 warning when we have duplicate patterns belonging
13728 to a same simplify rule.
13729 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13730 (maybe_fold_comparisons_from_match_pd): Handle
13731 tcc_comparison as a results.
13732 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13734 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13735 Qi Feng <ffengqi@linux.ibm.com>
13737 PR middle-end/88784
13738 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13739 (x > y && x == XXX_MIN): Optimize into 'false'.
13740 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13741 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13742 (x < y && x == XXX_MAX): Optimize into 'false'.
13743 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13744 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13745 (x <= y || x != XXX_MIN): Optimize into 'true'.
13746 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13747 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13748 (x >= y || x != XXX_MAX): Optimize into 'true'.
13749 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13751 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13752 Martin Liska <mliska@suse.cz>
13754 * gimple-fold.c (and_comparisons_1): Add type as first
13756 (and_var_with_comparison): Likewise.
13757 (and_var_with_comparison_1): Likewise.
13758 (or_comparisons_1): Likewise.
13759 (or_var_with_comparison): Likewise.
13760 (or_var_with_comparison_1): Likewise.
13761 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13762 (maybe_fold_or_comparisons): Likewise.
13763 (maybe_fold_comparisons_from_match_pd): New.
13764 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13765 (maybe_fold_or_comparisons): Likewise.
13766 * gimple.c (gimple_size): Make it public and add num_ops argument.
13767 (gimple_init): New function.
13768 (gimple_alloc): Call gimple_init.
13769 * gimple.h (gimple_size): New.
13770 (gimple_init): Likewise.
13771 * tree-if-conv.c (fold_or_predicates): Pass type.
13772 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13773 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13774 (optimize_vec_cond_expr): Likewise.
13775 (ovce_extract_ops): Return type of conditional expression.
13776 * tree-ssanames.c (init_ssa_name_imm_use): New.
13777 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13778 * tree-ssanames.h (init_ssa_name_imm_use): New.
13780 2019-09-16 Richard Biener <rguenther@suse.de>
13782 PR tree-optimization/91756
13783 PR tree-optimization/87132
13784 * tree-ssa-alias.h (enum translate_flags): New.
13785 (get_continuation_for_phi): Use it instead of simple bool flag.
13786 (walk_non_aliased_vuses): Likewise.
13787 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13788 (get_continuation_for_phi): When looking across backedges only
13789 disallow valueization.
13790 (walk_non_aliased_vuses): Adjust.
13791 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13794 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13796 PR middle-end/80791
13797 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13798 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13799 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13800 * target.def (have_count_reg_decr_p): New hook.
13801 (doloop_cost_for_generic): Likewise.
13802 (doloop_cost_for_address): Likewise.
13803 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13804 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13805 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13806 * doc/tm.texi: Regenerate.
13807 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13809 (record_group): Init doloop_p.
13810 (add_candidate_1): Add optional argument doloop, change the handlings
13812 (add_candidate): Likewise.
13813 (generic_predict_doloop_p): Update attribute.
13814 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13815 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13816 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13818 (get_computation_cost): Update for doloop IV cand extra cost.
13819 (determine_group_iv_cost_cond): Update for doloop IV cand.
13820 (determine_iv_cost): Likewise.
13821 (ivopts_estimate_reg_pressure): Likewise.
13822 (may_eliminate_iv): Update handlings for doloop IV cand.
13823 (add_iv_candidate_for_doloop): New function.
13824 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13825 (iv_ca_set_no_cp): Update for doloop IV cand.
13826 (iv_ca_set_cp): Likewise.
13827 (iv_ca_dump): Dump register cost.
13828 (find_doloop_use): New function.
13829 (analyze_and_mark_doloop_use): Likewise.
13830 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13832 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13834 PR middle-end/91708
13835 * cse.c (cse_insn): Do not replace anything with a
13838 2019-09-13 Ian Lance Taylor <iant@golang.org>
13840 * doc/invoke.texi (Optimize Options): Fix typo.
13842 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13844 PR tree-optimization/89386
13845 * config/i386/sse.md (smulhrs<mode>3): New expander.
13846 (smulhrsv4hi3): Ditto.
13848 2019-09-12 Richard Biener <rguenther@suse.de>
13850 PR tree-optimization/91750
13851 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13852 in the type of the evolution.
13854 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13856 PR tree-optimization/89386
13857 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13858 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13859 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13860 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13861 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13862 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13863 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13864 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13865 (su, r): Handle the unspecs above.
13866 (bt): New int attribute.
13867 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13868 * internal-fn.c (first_commutative_argument): Commutativity info for
13870 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13871 (umulhrs_optab): New optabs.
13872 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13873 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13874 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13876 (vect_vect_recog_func_ptrs): Add it.
13878 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13880 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13883 2019-09-11 Nathan Sidwell <nathan@acm.org>
13885 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13886 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13888 2019-09-11 Richard Biener <rguenther@suse.de>
13890 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13891 * lto-wrapper.c (merge_and_complain): Pick up -g.
13892 (append_compiler_options): Likewise.
13893 (run_gcc): Re-instantiate handling -g0 at link-time.
13894 * doc/invoke.texi (flto): Document debug info generation.
13896 2019-09-11 Richard Biener <rguenther@suse.de>
13898 PR tree-optimization/90387
13899 * vr-values.c (vr_values::extract_range_basic): After inlining
13900 simplify non-constant __builtin_constant_p to false.
13902 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13904 PR rtl-optimization/89795
13905 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13906 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13908 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13910 PR tree-optimization/91723
13911 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13912 instead of pointer equality when checking if argument vectypes are
13915 PR middle-end/91725
13916 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13917 of get_nonzero_bits, only call it for integral types.
13919 2019-09-11 Richard Biener <rguenther@suse.de>
13922 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13924 * match.pd: Add flag_unsafe_math_optimizations check
13925 before deciding on the widest type in a binary math operation.
13927 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13929 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13930 and CALL_REALLY_USED_REGISTERS must be defined, and that
13931 CALL_REALLY_USED_REGISTERS is preferred.
13932 * doc/tm.texi: Regenerate.
13933 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13934 (call_really_used_regs): Likewise.
13935 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13936 CALL_REALLY_USED_REGISTERS are defined.
13937 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13938 initial value if defined.
13939 (initial_call_really_used_regs): Delete.
13940 (saved_call_really_used_regs): Likewise.
13941 (CALL_REALLY_USED_REGNO_P): Likewise.
13942 (init_reg_sets): Remove handling of call_really_used_regs.
13943 (save_register_info, restore_register_info, globalize_reg): Likewise.
13944 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13945 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13946 outside operand_reg_set.
13947 (fix_register): Don't change call_used_regs if
13948 CALL_REALLY_USED_REGISTERS is defined.
13949 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13950 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13951 instead of call_really_used_regs.
13952 (csky_conditional_register_usage): Remove the old handling of
13953 call_used_regs and change the handling of call_really_used_regs
13954 to use call_used_regs instead.
13955 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13956 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13957 making a register fixed.
13958 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13959 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13960 instead of call_really_used_regs.
13961 (m32r_conditional_register_usage): Don't set call_used_regs when
13962 making a register fixed.
13963 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13964 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13965 instead of call_really_used_regs.
13966 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13967 (mips_cfun_call_saved_reg_p): Likewise.
13968 (mips_swap_registers): Remove the old handling of call_used_regs
13969 and change the handling of call_really_used_regs to use call_used_regs
13971 (mips_conditional_register_usage): Likewise.
13972 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13973 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13974 instead of call_really_used_regs.
13975 (mn10300_get_live_callee_saved_regs): Likewise.
13976 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13977 (mn10300_conditional_register_usage): Don't set call_used_regs when
13978 making a register fixed.
13979 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13980 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13981 Remove the old handling of call_used_regs and change the handling
13982 of call_really_used_regs to use call_used_regs instead.
13983 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13984 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13985 instead of call_really_used_regs.
13986 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13987 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13988 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13989 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13990 (s390_conditional_register_usage): Remove the old handling of
13991 call_used_regs and change the handling of call_really_used_regs
13992 to use call_used_regs instead.
13993 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13994 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13995 (sh_fix_range, reg_unused_after): Likewise.
13996 (sh_conditional_register_usage): Remove the old handling of
13997 call_used_regs and change the handling of call_really_used_regs
13998 to use call_used_regs instead.
13999 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
14000 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
14001 call_used_regs when making a register fixed.
14002 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
14003 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
14004 call_used_regs when making a register fixed.
14005 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
14006 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
14007 set call_used_regs when making a register fixed.
14008 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
14009 * config/visium/visium.c (visium_conditional_register_usage): Remove
14010 the old handling of call_used_regs and change the handling of
14011 call_really_used_regs to use call_used_regs instead.
14013 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14015 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
14016 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
14017 * reginfo.c (call_used_regs): New macro.
14019 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14021 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
14023 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14024 (bpf_expand_epilogue): Likewise.
14025 * config/c6x/c6x.c (c6x_save_reg): Likewise.
14026 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14027 (ft32_expand_epilogue): Likewise.
14028 * config/i386/i386.c (ix86_save_reg): Likewise.
14029 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
14030 (moxie_expand_epilogue): Likewise.
14031 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14032 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14033 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14035 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14037 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
14038 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
14039 instead of testing call_used_regs directly.
14040 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
14041 (aarch64_components_for_bb): Likewise.
14042 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
14043 * config/arc/arc.c (arc_must_save_register): Likewise.
14044 (arc_epilogue_uses): Likewise.
14045 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
14046 (legitimize_pic_address, callee_saved_reg_p): Likewise.
14047 (arm_compute_save_reg0_reg12_mask): Likewise.
14048 (arm_compute_save_core_reg_mask): Likewise.
14049 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
14050 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
14051 (cmse_nonsecure_entry_clear_before_return): Likewise.
14052 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
14053 (arm_expand_epilogue): Likewise.
14054 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
14055 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
14056 (_reg_unused_after): Likewise.
14057 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
14058 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
14059 (add_to_reg, hwloop_optimize): Likewise.
14060 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14061 (bpf_expand_epilogue): Likewise.
14062 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
14063 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
14064 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
14065 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
14066 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
14067 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
14068 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
14069 * config/frv/frv.c (frv_stack_info): Likewise.
14070 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
14071 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
14072 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
14073 (move_callee_saved_registers): Likewise.
14074 * config/h8300/h8300.c (byte_reg): Likewise.
14075 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
14076 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
14077 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
14078 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
14079 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
14080 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
14081 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
14082 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
14083 * config/m32c/m32c.c (need_to_save): Likewise.
14084 * config/m68k/m68k.c (m68k_save_reg): Likewise.
14085 * config/mcore/mcore.c (calc_live_regs): Likewise.
14086 * config/microblaze/microblaze.c (microblaze_must_save_register):
14088 * config/mmix/mmix.c (mmix_local_regno): Likewise.
14089 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
14090 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
14091 (mmix_expand_epilogue): Likewise.
14092 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
14093 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
14094 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
14095 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
14096 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
14097 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
14098 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
14099 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
14100 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
14101 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
14102 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
14103 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
14104 * config/rl78/rl78.c (need_to_save): Likewise.
14105 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
14106 (rs6000_stack_info, generate_set_vrsave): Likewise.
14107 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
14108 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
14109 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14110 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14111 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
14112 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
14113 (save_local_or_in_reg_p): Likewise.
14114 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
14115 (xstormy16_epilogue_uses): Likewise.
14116 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14117 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14118 * config/v850/v850.c (compute_register_save_size): Likewise.
14119 * config/vax/vax.c (vax_expand_prologue): Likewise.
14120 * config/visium/visium.c (visium_save_reg_p): Likewise.
14121 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14122 * cselib.c (cselib_process_insn): Likewise.
14123 * df-scan.c (df_get_entry_block_def_set): Likewise.
14124 * function.c (aggregate_value_p): Likewise.
14125 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
14126 * ira-lives.c (process_bb_node_lives): Likewise.
14127 * ira.c (do_reload): Likewise.
14128 * lra-lives.c (process_bb_lives): Likewise.
14129 * lra-remat.c (lra_remat): Likewise.
14130 * lra.c (lra): Likewise.
14131 * postreload.c (reload_combine_recognize_pattern): Likewise.
14132 (reload_cse_move2add): Likewise.
14133 * recog.c (peep2_find_free_register): Likewise.
14134 * regrename.c (check_new_reg_p): Likewise.
14135 * reload.c (find_equiv_reg): Likewise.
14136 * reload1.c (reload, find_reg): Likewise.
14137 * sel-sched.c (init_hard_regs_data): Likewise.
14139 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14141 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
14142 regs_invalidated_by_call & ~fixed_reg_set instead of
14143 call_used_or_fixed_regs & ~fixed_reg_set.
14144 * config/sh/sh.c (output_stack_adjust): Likewise.
14146 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14148 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
14149 (call_used_reg_set): Delete.
14150 (call_used_or_fixed_regs): New macro.
14151 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
14152 of call_used_reg_set.
14153 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
14154 instead of call_used_regs.
14155 (save_call_clobbered_regs): Likewise.
14156 * cfgcleanup.c (old_insns_match_p): Likewise.
14157 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
14158 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14160 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14161 * config/sh/sh.c (output_stack_adjust): Likewise.
14162 * final.c (collect_fn_hard_reg_usage): Likewise.
14163 * ira-build.c (ira_build): Likewise.
14164 * ira-color.c (calculate_saved_nregs): Likewise.
14165 (allocno_reload_assign, calculate_spill_cost): Likewise.
14166 * ira-conflicts.c (ira_build_conflicts): Likewise.
14167 * ira-costs.c (ira_tune_allocno_costs): Likewise.
14168 * ira-lives.c (process_bb_node_lives): Likewise.
14169 * ira.c (setup_reg_renumber): Likewise.
14170 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
14171 * lra-constraints.c (need_for_call_save_p): Likewise.
14172 (need_for_split_p, inherit_in_ebb): Likewise.
14173 * lra-lives.c (process_bb_lives): Likewise.
14174 * lra-remat.c (call_used_input_regno_present_p): Likewise.
14175 * postreload.c (reload_combine): Likewise.
14176 * regrename.c (find_rename_reg): Likewise.
14177 * reload1.c (reload_as_needed): Likewise.
14178 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14179 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14180 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14182 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14184 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
14185 (no_caller_save_reg_set): Delete.
14186 * caller-save.c (init_caller_save): Don't initialize it.
14187 * ira-conflicts.c (ira_build_conflicts): Calculate
14188 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
14190 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14192 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
14193 (target_hard_regs::x_savable_regs): New field.
14194 (call_fixed_reg_set): Delete.
14195 (savable_regs): New macro,
14196 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
14197 (init_reg_sets_1): Likewise. Initialize savable_regs.
14198 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
14199 for all registers. Set savable_regs instead of call_fixed_reg_set.
14200 (setup_save_areas, save_call_clobbered_regs): Replace uses of
14201 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
14202 * config/sh/sh.c (output_stack_adjust): Likewise.
14204 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14206 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
14207 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
14208 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
14210 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14212 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
14213 * rtlanal.c (get_call_rtx_from): Likewise.
14214 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14215 than the pattern to get_call_rtx_from.
14216 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14217 an rtx_insn * instead of an rtx.
14218 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14220 2019-09-10 Martin Liska <mliska@suse.cz>
14222 * common.opt: Use newly added WarnRemoved.
14223 * config/aarch64/aarch64.opt: Likewise.
14224 * config/arm/arm.opt: Likewise.
14225 * config/i386/i386.opt: Likewise.
14226 * config/ia64/ia64.opt: Likewise.
14227 * config/rs6000/rs6000.opt: Likewise.
14228 * doc/options.texi: Document WarnRemoved properly.
14229 * dwarf2out.c (gen_producer_string): Handle renamed
14230 OPT_SPECIAL_warn_removed.
14231 * lto-opts.c (lto_write_options): Likewise.
14232 * lto-wrapper.c (merge_and_complain): Likewise.
14233 * opts-common.c (decode_cmdline_option): Likewise.
14234 (prune_options): Likewise.
14235 (read_cmdline_option): Likewise.
14236 (control_warning_option): Likewise.
14237 * opts.c (print_filtered_help): Likewise.
14238 * optc-gen.awk: Parse for WarnRemoved and make usage
14239 of Deprecated an error.
14240 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14242 2019-09-10 Arnaud Charlet <charlet@adacore.com>
14244 * doc/install.texi: Fix syntax for html generation.
14246 2019-09-10 Jakub Jelinek <jakub@redhat.com>
14248 PR middle-end/91680
14249 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14250 the shift type to type.
14252 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14254 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14256 (stack_protect_combined_test_insn): Likewise.
14258 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14259 Mickaël Guêné <mickael.guene@st.com>
14261 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14262 * config/arm/arm.md (FDPIC_REGNUM): New constant.
14263 (load_tp_soft_fdpic): New pattern.
14264 (load_tp_soft): Disable in FDPIC mode.
14266 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14267 Mickaël Guêné <mickael.guene@st.com>
14269 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14270 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14271 (arm_call_tls_get_addr): Add FDPIC support.
14272 (legitimize_tls_address): Likewise.
14273 (arm_emit_tls_decoration): Likewise.
14275 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14276 Mickaël Guêné <mickael.guene@st.com>
14278 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14280 (arm_trampoline_init): Likewise.
14281 (arm_trampoline_adjust_address): Likewise.
14282 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14284 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14285 Mickaël Guêné <mickael.guene@st.com>
14287 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14288 (legitimize_pic_address): Enforce binding rules on function
14289 pointers in FDPIC mode.
14290 (arm_assemble_integer): Likewise.
14292 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14293 Mickaël Guêné <mickael.guene@st.com>
14295 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14296 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14299 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14300 Mickaël Guêné <mickael.guene@st.com>
14302 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14305 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14306 Mickaël Guêné <mickael.guene@st.com>
14308 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14310 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14312 * config/arm/arm.c (arm_option_override): Define pic register to
14314 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14315 have no decl or go through PLT.
14316 (calculate_pic_address_constant): New function.
14317 (legitimize_pic_address): Call calculate_pic_address_constant.
14318 (arm_load_pic_register): Handle TARGET_FDPIC.
14319 (arm_is_segment_info_known): New function.
14320 (arm_pic_static_addr): Add support for FDPIC.
14321 (arm_load_function_descriptor): New function.
14322 (arm_emit_call_insn): Add support for FDPIC.
14323 (arm_assemble_integer): Add support for FDPIC.
14324 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14325 Define. (FDPIC_REGNUM): New define.
14326 * config/arm/arm.md (call): Add support for FDPIC.
14327 (call_value): Likewise.
14328 (restore_pic_register_after_call): New pattern.
14329 (untyped_call): Disable if FDPIC.
14330 (untyped_return): Likewise.
14331 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14333 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14334 Mickaël Guêné <mickael.guene@st.com>
14336 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14337 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14338 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14339 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14340 (CC1_SPEC): Use FDPIC_CC1_SPEC.
14341 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14342 * config/arm/uclinuxfdpiceabi.h: New file.
14344 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14346 * config.gcc: Handle *-*-uclinuxfdpiceabi.
14348 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14349 Mickaël Guêné <mickael.guene@st.com>
14351 * config/arm/arm.opt: Add -mfdpic option.
14352 * doc/invoke.texi: Add documentation for -mfdpic.
14354 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
14356 * expmed.c (extract_bit_field): Update function comment
14358 * expr.c (expand_expr_real): Update function comment
14360 (expand_misaligned_mem_ref): New helper function.
14361 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14362 Remove duplicate assignment to "base" at case MEM_REF.
14363 Remove a shadowed variable "unsignedp" at case VCE.
14365 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14367 * regset.h (regs_invalidated_by_call_regset): Delete.
14368 (fixed_reg_set_regset): Likewise.
14369 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14370 (fixed_reg_set_regset, persistent_obstack): Likewise.
14371 (init_reg_sets_1, globalize_reg): Update accordingly.
14372 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14373 instead of a bitmap.
14374 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14375 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14376 instead of regs_invalidated_by_call_regset.
14377 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14378 * df-scan.c (df_scan_start_dump): Likewise.
14379 * dse.c (copy_fixed_regs): Likewise.
14380 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14382 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14384 * array-traits.h: New file.
14385 * coretypes.h (array_traits, bitmap_view): New types.
14386 * bitmap.h: Include "array-traits.h"
14387 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14388 (base_bitmap_view, bitmap_view): New classes.
14389 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14390 * hard-reg-set.h: Include array-traits.h.
14391 (array_traits<HARD_REG_SET>): New struct.
14392 * regset.h (IOR_REG_SET_HRS): New macro.
14393 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14394 rather than iterating over each hard register.
14395 * sched-deps.c (sched_analyze_insn): Likewise.
14396 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14398 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14400 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14401 instead of a HARD_REG_SET *.
14402 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14403 (ira_build): Update call accordingly.
14404 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14406 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14408 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14409 (HARD_REG_SET::operator!=): Likewise.
14410 (hard_reg_set_equal_p): Delete.
14411 * cfgcleanup.c (old_insns_match_p): Use == instead of
14412 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14413 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14414 (add_allocno_hard_regs_to_forest): Likewise.
14415 (setup_allocno_available_regs_num): Likewise.
14416 * ira.c (setup_pressure_classes): Likewise.
14417 (setup_allocno_and_important_classes): Likewise.
14418 (setup_reg_class_relations): Likewise.
14419 * lra-lives.c (process_bb_lives): Likewise.
14420 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14422 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14424 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14425 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14426 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14427 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14429 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14430 * ira.c (setup_reg_renumber): Likewise.
14431 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14432 * regrename.c (regrename_find_superclass): Likewise.
14433 * reload1.c (find_reg): Likewise.
14435 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14437 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14438 * caller-save.c (setup_save_areas): Use "&~" instead of
14439 AND_COMPL_HARD_REG_SET.
14440 (save_call_clobbered_regs): Likewise.
14441 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14443 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14444 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14445 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14446 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14447 (mips_conditional_register_usage): Likewise.
14448 * config/sh/sh.c (output_stack_adjust): Likewise.
14449 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14450 (setup_profitable_hard_regs): Likewise.
14451 (get_conflict_and_start_profitable_regs): Likewise.
14452 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14453 (ira_build_conflicts): Likewise.
14454 * ira-costs.c (restrict_cost_classes): Likewise.
14455 (setup_regno_cost_classes_by_aclass): Likewise.
14456 * ira-lives.c (process_bb_node_lives): Likewise.
14457 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14458 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14459 (setup_allocno_and_important_classes, setup_class_translate_array)
14460 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14462 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14463 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14464 (process_alt_operands, inherit_in_ebb): Likewise.
14465 * lra-eliminations.c (update_reg_eliminate): Likewise.
14466 * lra-lives.c (process_bb_lives): Likewise.
14467 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14468 * resource.c (find_dead_or_set_registers): Likewise.
14469 (mark_target_live_regs): Likewise.
14470 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14471 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14472 (implicit_clobber_conflict_p): Likewise.
14473 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14474 (try_shrink_wrapping): Likewise.
14476 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14478 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14479 (HARD_REG_SET::operator|=): Likewise.
14480 (IOR_HARD_REG_SET): Delete.
14481 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14483 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14484 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14485 * final.c (collect_fn_hard_reg_usage): Likewise.
14486 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14487 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14488 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14489 (propagate_some_info_from_allocno): Likewise.
14490 (copy_info_to_removed_store_destinations): Likewise.
14491 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14492 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14493 (fast_allocation): Likewise.
14494 * ira-conflicts.c (ira_build_conflicts): Likewise.
14495 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14496 (process_bb_node_lives): Likewise.
14497 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14498 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14499 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14500 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14501 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14502 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14503 (process_bb_lives): Likewise.
14504 * lra-spills.c (assign_spill_hard_regs): Likewise.
14505 * postreload.c (reload_combine): Likewise.
14506 * reginfo.c (init_reg_sets_1): Likewise.
14507 * regrename.c (merge_overlapping_regs, find_rename_reg)
14508 (merge_chains): Likewise.
14509 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14510 (find_reload_regs, finish_spills, choose_reload_regs_init)
14511 (emit_reload_insns): Likewise.
14512 * reorg.c (redundant_insn): Likewise.
14513 * resource.c (find_dead_or_set_registers, mark_set_resources)
14514 (mark_target_live_regs): Likewise.
14515 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14516 * sched-deps.c (sched_analyze_insn): Likewise.
14517 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14518 (find_best_reg_for_expr): Likewise.
14519 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14521 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14523 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14524 (HARD_REG_SET::operator&): Likewise.
14525 (AND_HARD_REG_SET): Delete.
14526 * caller-save.c (setup_save_areas): Use "&" instead of
14528 (save_call_clobbered_regs): Likewise.
14529 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14530 * config/m32c/m32c.c (reduce_class): Likewise.
14531 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14532 * final.c (get_call_reg_set_usage): Likewise.
14533 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14534 (setup_left_conflict_sizes_p): Likewise.
14535 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14536 (ira_build_conflicts): Likewise.
14537 * ira-costs.c (restrict_cost_classes): Likewise.
14538 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14539 (setup_reg_class_relations): Likewise.
14540 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14541 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14542 * resource.c (find_dead_or_set_registers): Likewise.
14543 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14545 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14547 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14548 (COMPL_HARD_REG_SET): Delete.
14549 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14550 of COMPL_HARD_REG_SET.
14551 (try_rename_operands): Likewise.
14552 * config/sh/sh.c (push_regs): Likewise.
14553 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14554 * lra-constraints.c (contains_reg_p): Likewise.
14555 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14557 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14559 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14560 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14561 of COPY_HARD_REG_SET.
14562 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14563 (epiphany_conditional_register_usage): Likewise.
14564 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14565 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14566 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14567 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14568 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14569 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14570 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14571 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14572 * config/sh/sh.c (output_stack_adjust): Likewise.
14573 * final.c (collect_fn_hard_reg_usage): Likewise.
14574 (get_call_reg_set_usage): Likewise.
14575 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14576 (ira_flattening): Likewise.
14577 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14578 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14579 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14580 (ira_reassign_pseudos): Likewise.
14581 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14582 (ira_build_conflicts): Likewise.
14583 * ira-costs.c (restrict_cost_classes): Likewise.
14584 (setup_regno_cost_classes_by_aclass): Likewise.
14585 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14586 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14587 (setup_stack_reg_pressure_class, setup_pressure_classes)
14588 (setup_allocno_and_important_classes, setup_class_translate_array)
14589 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14590 (ira_setup_eliminable_regset): Likewise.
14591 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14592 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14593 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14594 (process_alt_operands, inherit_in_ebb): Likewise.
14595 * lra-lives.c (process_bb_lives): Likewise.
14596 * lra-spills.c (assign_spill_hard_regs): Likewise.
14597 * lra.c (lra): Likewise.
14598 * mode-switching.c (new_seginfo): Likewise.
14599 * postreload.c (reload_combine): Likewise.
14600 * reg-stack.c (straighten_stack): Likewise.
14601 * reginfo.c (save_register_info, restore_register_info): Likewise.
14602 (init_reg_sets_1, record_subregs_of_mode): Likewise
14603 * regrename.c (create_new_chain, rename_chains): Likewise.
14604 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14605 (find_reload_regs): Likewise.
14606 * resource.c (find_dead_or_set_registers): Likewise.
14607 (mark_target_live_regs): Likewise.
14608 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14610 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14612 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14613 (note_pattern_stores): Declare.
14614 (note_stores): Take an rtx_insn *.
14615 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14616 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14617 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14618 (note_stores): Take an rtx_insn * as argument and process
14619 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14620 (note_pattern_stores): ...this.
14621 (find_first_parameter_load): Pass the insn rather than
14622 its pattern to note_stores.
14623 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14624 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14625 (insert_one_insn): Likewise.
14626 * combine.c (combine_instructions): Likewise.
14627 (likely_spilled_retval_p): Likewise.
14628 (try_combine): Use note_pattern_stores instead of note_stores.
14629 (record_dead_and_set_regs): Pass the insn rather than its pattern
14631 (reg_dead_at_p): Likewise.
14632 * config/bfin/bfin.c (workaround_speculation): Likewise.
14633 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14634 rather than an rtx.
14635 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14636 instead of note_stores.
14637 (frv_optimize_membar_local): Pass the insn rather than its pattern
14639 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14640 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14641 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14642 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14643 (mips_reorg_process_insns): Likewise.
14644 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14645 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14647 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14648 its pattern to note_stores.
14649 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14651 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14652 the insn to note_stores.
14653 (prescan_insns_for_dce): Update call accordingly.
14654 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14656 * df-problems.c (can_move_insns_across): Likewise.
14657 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14658 * function.c (assign_parm_setup_reg): Likewise.
14659 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14660 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14661 (single_set_gcse): Likewise.
14662 * ira.c (validate_equiv_mem): Likewise.
14663 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14665 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14666 pattern to note_stores.
14667 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14668 * loop-iv.c (simplify_using_initial_values): Likewise.
14669 * mode-switching.c (optimize_mode_switching): Likewise.
14670 * optabs.c (emit_libcall_block_1): Likewise.
14671 (expand_atomic_compare_and_swap): Likewise.
14672 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14673 (record_opr_changes): Likewise. Remove explicit handling of
14674 CALL_INSN_FUNCTION_USAGE.
14675 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14676 * regcprop.c (kill_clobbered_values): Likewise.
14677 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14679 * regrename.c (build_def_use): Likewise.
14680 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14681 for mark_not_eliminable.
14682 (reload_as_needed): Pass the insn rather than its pattern
14684 (emit_output_reload_insns): Likewise.
14685 * resource.c (mark_target_live_regs): Likewise.
14686 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14687 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14688 instead of note_stores.
14689 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14690 its pattern to note_stores.
14691 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14692 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14694 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14696 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14697 than a #define. Use a structure rather than an array as the
14698 fallback definition. Remove special cases for low array sizes.
14699 (const_hard_reg_set): New typedef.
14700 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14701 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14702 (hard_reg_set_empty_p): Likewise.
14703 (SET_HARD_REG_BIT): Use a function rather than a macro to
14704 handle the case in which HARD_REG_SET is a structure.
14705 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14706 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14707 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14708 (IOR_COMPL_HARD_REG_SET): Likewise.
14709 (hard_reg_set_iterator::pset): Constify the pointer target.
14710 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14711 of a "const HARD_REG_SET". Update the handling of non-integer
14713 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14714 * reload.h: Likewise.
14715 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14716 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14717 of a "const HARD_REG_SET".
14718 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14719 (range_in_hard_reg_set_p): Likewise.
14720 * ira-costs.c (restrict_cost_classes): Likewise.
14721 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14722 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14723 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14724 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14725 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14726 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14727 take an unsigned int and open-code the HARD_REG_SET operations.
14729 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14731 * Makefile.in (OBJS): Remove bt-load.o.
14732 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14733 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14734 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14735 document that the option no longer does anything.
14736 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14737 * target.def (branch_target_register_class): Delete.
14738 (branch_target_register_callee_saved): Likewise.
14739 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14740 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14741 * doc/tm.texi: Regenerate.
14742 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14743 (make_pass_branch_target_load_optimize2): Likewise.
14744 * passes.def (pass_branch_target_load_optimize1): Likewise.
14745 (pass_branch_target_load_optimize2): Likewise.
14746 * targhooks.h (default_branch_target_register_class): Likewise.
14747 * targhooks.c (default_branch_target_register_class): Likewise.
14748 * opt-suggestions.c (test_completion_valid_options): Remove
14749 -fbtr-bb-exclusive from the list of test options.
14750 * bt-load.c: Remove.
14752 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14754 * match.pd: Add flag_unsafe_math_optimizations check
14755 before deciding on the widest type in a binary math operation.
14757 2019-09-09 Martin Liska <mliska@suse.cz>
14759 * config/i386/i386.opt: Update comment of removed
14760 options that are preserved only for backward
14763 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14766 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14767 instead of __v16qs.
14770 * config/i386/avxintrin.h (__v32qs): New typedef.
14771 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14772 instead of __v32qi.
14774 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14776 * doc/invoke.texi (Option Summary): Cover eBPF.
14777 (eBPF Options): New section.
14778 * doc/extend.texi (BPF Built-in Functions): Likewise.
14779 (BPF Kernel Helpers): Likewise.
14781 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14783 * config.gcc: Support for bpf-*-* targets.
14784 * common/config/bpf/bpf-common.c: New file.
14785 * config/bpf/t-bpf: Likewise.
14786 * config/bpf/predicates.md: Likewise.
14787 * config/bpf/constraints.md: Likewise.
14788 * config/bpf/bpf.opt: Likewise.
14789 * config/bpf/bpf.md: Likewise.
14790 * config/bpf/bpf.h: Likewise.
14791 * config/bpf/bpf.c: Likewise.
14792 * config/bpf/bpf-protos.h: Likewise.
14793 * config/bpf/bpf-opts.h: Likewise.
14794 * config/bpf/bpf-helpers.h: Likewise.
14795 * config/bpf/bpf-helpers.def: Likewise.
14797 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14799 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14802 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14804 * opt-functions.awk (integer_range_info): Make sure values are in
14805 numeric context before operating with them.
14807 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14809 * genemit.c (gen_split): Print the filename and line number where the
14810 splitter (or peephole2) was defined, to the dump file.
14812 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14814 PR tree-optimization/91665
14815 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14816 incompatible with the type of PHI result.
14818 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14821 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14822 gen_unaligned_storedi for 4-byte aligned addresses.
14824 2019-09-06 Jim Wilson <jimw@sifive.com>
14826 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14829 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14831 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14833 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14835 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14836 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14838 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14841 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14842 cost of SSE->integer and integer->SSE moves from 2 to 6.
14843 (core_cost): Ditto.
14845 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14847 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14848 before testing TYPE_TRANSPARENT_AGGR.
14849 * calls.c (initialize_argument_information, load_register_parameters):
14852 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14854 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14856 (cmp_ior): Likewise.
14858 2019-09-06 Martin Liska <mliska@suse.cz>
14860 * doc/match-and-simplify.texi: Separate tuples with ;.
14862 2019-09-06 Martin Liska <mliska@suse.cz>
14865 * Makefile.in: Remove tlink.o.
14866 * collect2.c (do_link): New function isolated
14869 * collect2.h (do_tlink): Remove declaration of do_tlink.
14870 * doc/extend.texi: Remove documentation of -frepo.
14871 * doc/invoke.texi: Likewise.
14872 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14875 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14876 Jim Wilson <jimw@sifive.com>
14879 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14880 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14881 paradoxical_subreg_p (operands[0]).
14882 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14883 use as intermediate value.
14885 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14887 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14888 (sync_compare_and_swap<mode>_insn): Likewise.
14890 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14892 PR middle-end/91615
14893 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14894 without movmisalign optab.
14896 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14898 PR middle-end/91001
14899 PR middle-end/91105
14900 PR middle-end/91106
14901 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14902 types, use type of their first field instead of type of
14903 args[i].tree_value.
14905 2019-09-05 Richard Biener <rguenther@suse.de>
14907 PR rtl-optimization/91656
14908 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14911 2019-09-05 Richard Biener <rguenther@suse.de>
14913 PR middle-end/90501
14914 * tree-inline.c (declare_return_variable): Mark the return
14915 slot as addressable after building an address of it.
14917 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14919 * doc/install.texi: Update and clarify requirements to build GNAT.
14921 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14923 PR middle-end/91577
14924 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14925 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14926 call to be in memory.
14927 (pass_expand::execute): Call discover_nonconstant_array_refs before
14928 setting currently_expanding_to_rtl.
14930 2019-09-04 Caroline Tice <cmtice@google.com>
14932 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14933 specified together.
14935 2019-09-04 Marek Polacek <polacek@redhat.com>
14937 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14939 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14942 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14943 for QI and HImode moves between SSE and general registers.
14945 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14948 * doc/invoke.texi: Document -Wenum-conversion.
14950 2019-09-04 Richard Biener <rguenther@suse.de>
14952 PR rtl-optimization/36262
14953 * postreload-gcse.c: Include intl.h and gcse.h.
14954 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14955 to avoid linear list walk.
14956 (record_last_mem_set_info): Gate off if not computing transparentness.
14957 (get_bb_avail_insn): If transparentness isn't computed give up
14959 (gcse_after_reload_main): Skip compute_transp and extended PRE
14960 if gcse_or_cprop_is_too_expensive says so.
14962 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14964 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14966 (msp430_select_section): Handle decls with the "noinit" attribute with
14967 default_elf_select_section.
14968 Handle SECCAT_RODATA_MERGE_* section types with
14969 default_elf_select_section.
14970 Add comments about handling of unsupported section types.
14971 (msp430_section_type_flags): Remove handling of the noinit section.
14973 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14975 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14976 conflicting msp430-specific attributes.
14977 (msp430_section_attr): Likewise.
14978 Add warnings about conflicts with generic "noinit" and "section"
14980 Fix grammar in -mlarge error message.
14981 (msp430_data_attr): Rename to msp430_persist_attr.
14982 Add warnings about conflicts with generic "noinit" and "section"
14984 Add warning for when variable is not initialized.
14985 Chain conditionals which prevent the attribute being added.
14986 (ATTR_EXCL): New helper.
14987 (attr_reent_exclusions): New exclusion table.
14988 (attr_naked_exclusions): Likewise.
14989 (attr_crit_exclusions): Likewise.
14990 (attr_lower_exclusions): Likewise.
14991 (attr_upper_exclusions): Likewise.
14992 (attr_either_exclusions): Likewise.
14993 (attr_persist_exclusions): Likewise.
14994 (msp430_attribute_table): Update with exclusion rules.
14995 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14998 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15000 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
15001 (msp430_handle_generic_attribute): New function.
15002 * doc/tm.texi: Regenerate.
15003 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
15004 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15005 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15006 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
15008 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
15010 PR tree-optimization/91504
15011 * match.pd: Add ((~a & b) ^a) --> (a | b).
15013 2019-09-03 Jakub Jelinek <jakub@redhat.com>
15016 * config/i386/i386-expand.c (split_double_mode): If there is more than
15017 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
15018 already split matching MEM operand instead of calling adjust_address
15021 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
15023 * config.gcc: Obsolete spu target. Remove references to spu.
15024 * configure.ac: Remove references to spu.
15025 * configure: Regenerate.
15026 * config/spu/: Remove directory.
15027 * common/config/spu/: Remove directory.
15029 * doc/extend.texi: Remove references to spu.
15030 * doc/invoke.texi: Likewise.
15031 * doc/md.texi: Likewise.
15032 * doc/sourcebuild.texi: Likewise.
15034 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15036 PR middle-end/91603
15037 PR middle-end/91612
15038 PR middle-end/91613
15039 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
15040 and SSA_NAME referring to CONSTANT_P correctly.
15042 2019-09-03 Richard Biener <rguenther@suse.de>
15044 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
15045 (vn_nary_op_insert): Likewise.
15046 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
15047 (vn_nary_op_lookup): Likewise.
15048 (vn_nary_op_insert): Likewise.
15050 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
15052 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
15053 (*op0, 1) instead of XEXP (*op1, 0).
15055 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15057 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
15058 (aarch64_fjcvtzs): New define_insn.
15059 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
15060 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
15062 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
15063 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
15064 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15065 __ARM_FEATURE_JCVT where appropriate.
15066 * config/aarch64/arm_acle.h (__jcvt): Define.
15068 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15070 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
15071 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
15072 (aarch64_<frintnzs_op><mode>): New define_insn.
15073 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
15074 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15075 __ARM_FEATURE_FRINT when appropriate.
15076 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
15077 frint32x, frint64z, frint64x.
15078 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
15079 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
15080 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
15081 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
15082 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
15083 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
15084 * config/aarch64/iterators.md (VSFDF): Define.
15085 (FRINTNZX): Likewise.
15086 (frintnzs_op): Likewise.
15088 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
15090 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
15091 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
15093 * config/aarch64/aarch64-tune.md: Regenerated.
15094 * doc/invoke.texi: Document the new processors.
15096 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15098 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
15102 (sve2-sm4): Likewise.
15103 (sveaes): Likewise.
15104 (svesha3): Likewise.
15105 (svebitperm): Likewise.
15107 2019-09-03 Jakub Jelinek <jakub@redhat.com>
15108 Richard Biener <rguenther@suse.de>
15110 PR tree-optimization/91597
15111 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
15112 BIT_AND_EXPR optimization for pointers, even if both operand
15113 ranges don't include NULL, the result can be NULL.
15115 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15117 PR middle-end/91605
15118 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
15119 (non_mem_decl_p): ...this.
15120 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
15121 (expand_assignment): Call mem_ref_referes_to_non_mem_p
15122 unconditionally as before.
15124 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
15127 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
15128 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
15129 * tree.def (LTGT_EXPR): Likewise.
15130 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
15132 2019-09-02 Jakub Jelinek <jakub@redhat.com>
15135 * fold-const.c (range_check_type): For enumeral and boolean
15136 type, pass 1 to type_for_size langhook instead of
15137 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
15138 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
15139 (build_range_check): Don't call unsigned_type_for for pointer types.
15140 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
15141 range_check_type result.
15143 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
15145 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
15146 (replace_ref): Do not replace a chain of only two candidates which are
15147 valid memory references.
15149 2019-09-02 Martin Liska <mliska@suse.cz>
15151 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
15152 Bail out when we'll end up with the same number of clusters as
15154 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
15155 (jump_table_cluster::can_be_handled): Remove the guard
15156 as it's already handled in ::is_enabled. Allocate output
15157 after early bail out.
15159 2019-09-02 Martin Liska <mliska@suse.cz>
15161 PR gcov-profile/91601
15162 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
15163 (path_contains_zero_or_negative_cycle_arc): ... this and handle
15164 also negative edges.
15165 (circuit): Handle also negative edges as they can happen
15166 in some situations.
15168 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
15171 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
15172 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
15173 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
15175 2019-09-01 Jakub Jelinek <jakub@redhat.com>
15177 PR middle-end/91623
15178 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
15179 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
15180 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
15184 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
15185 GIMPLE_ASM TREE_LIST operands.
15187 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
15189 * doc/generic.texi (Unary and Binary Expressions): Mark up
15190 an instance of TYPE_MIN.
15192 2019-08-31 Stafford Horne <shorne@gmail.com>
15194 * config/or1k/constraints.md (t): New constraint.
15195 * config/or1k/or1k.h (GOT_REGS): New register class.
15196 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
15198 2019-08-30 Jim Wilson <jimw@sifive.com>
15200 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
15201 and -fpic and -mplt then disable -msave-restore and warn.
15203 2019-08-30 Martin Sebor <msebor@redhat.com>
15205 PR middle-end/91599
15206 * tree-ssa-strlen.c (handle_store): Use a fallback location if
15207 the statement doesn't have one.
15208 * gimple-pretty-print.c (percent_G_format): Same.
15210 PR middle-end/91584
15211 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
15212 before using them to validate MEM_REF offset.
15214 2019-08-30 Marek Polacek <polacek@redhat.com>
15216 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15218 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
15220 * config/arm/arm.md (unaligned_loaddi,
15221 unaligned_storedi): New unspec insn patterns.
15222 * config/arm/neon.md (unaligned_storev8qi): Likewise.
15223 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15224 and unaligned_storedi for 4-byte aligned memory.
15225 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15226 4-byte aligned memory.
15228 2019-08-30 Martin Jambor <mjambor@suse.cz>
15230 tree-optimization/91579
15231 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15232 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15234 (arg_needs_copy_p): Removed.
15235 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15237 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
15239 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15241 * config/i386/i386-features.c
15242 (general_scalar_chain::compute_convert_gain):
15243 Correct cost for double-word shifts.
15244 (general_scalar_to_vector_candidate_p): Reject count operands
15245 greater or equal to mode bitsize.
15247 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15249 * config/i386/i386.c (inline_secondary_memory_needed): Return true
15250 for moves between SSE and non-general registers and between
15251 mask and non-general registers.
15252 (ix86_register_move_cost): Remove stalled comment.
15254 2019-08-29 Richard Biener <rguenther@suse.de>
15256 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15257 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15259 2019-08-29 Richard Biener <rguenther@suse.de>
15262 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15263 Do not emit scalar copies for debug-insns, instead replace
15264 their uses with the reg copy used in the chain or reset them
15265 if there is a reaching definition outside of the chain as well.
15267 2019-08-29 Jakub Jelinek <jakub@redhat.com>
15270 * config/i386/i386-expand.c (expand_vec_perm_movs,
15271 expand_vec_perm_blend, expand_vec_perm_vpermil,
15272 expand_vec_perm_pshufb, expand_vec_perm_1,
15273 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15274 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15275 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15276 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15277 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15278 comments - replace ix86_expand_vec_perm_builtin_1 with
15279 ix86_expand_vec_perm_const_1.
15280 (expand_vec_perm2_vperm2f128_vblend): New function.
15281 (ix86_expand_vec_perm_const_1): New forward declaration. Call
15282 expand_vec_perm2_vperm2f128_vblend as last resort.
15283 (canonicalize_perm): Formatting fix.
15285 PR tree-optimization/91351
15286 * tree-cfg.c (generate_range_test): Use range_check_type instead of
15288 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15289 range_check_type returns NULL.
15290 * tree-switch-conversion.c (switch_conversion::build_one_array):
15291 Use range_check_type instead of unsigned_type_for, don't perform
15292 linear opt if it returns NULL.
15293 (bit_test_cluster::find_bit_tests): Formatting fix.
15294 (bit_test_cluster::emit): Use range_check_type instead of
15296 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15299 2019-08-29 Richard Biener <rguenther@suse.de>
15301 PR tree-optimization/91568
15302 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15303 (vect_update_max_nunits): Add overload for poly_uint64.
15304 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15305 (vect_build_slp_tree): Record max_nunits into the subtree
15306 and merge it upwards.
15307 (vect_print_slp_tree): Print max_nunits.
15309 2019-08-28 Marek Polacek <polacek@redhat.com>
15311 Implement P1152R4: Deprecating some uses of volatile.
15313 * doc/invoke.texi: Document -Wvolatile.
15315 2019-08-28 Marek Polacek <polacek@redhat.com>
15317 PR c++/91360 - Implement C++20 P1143R2: constinit.
15318 * doc/invoke.texi: Document -Wc++20-compat.
15320 2019-08-28 Martin Sebor <msebor@redhat.com>
15322 PR tree-optimization/91457
15323 * builtins.c (component_size): New function.
15324 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15325 * builtins.h (compute_objsize): Add argument.
15326 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15327 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15328 (vrp_prop::check_mem_ref): Same.
15329 (vrp_prop::search_for_addr_array): Set no-warning bit.
15330 (check_array_bounds): Same.
15332 2019-08-28 Martin Sebor <msebor@redhat.com>
15335 * opts-common.c (option_enabled): Correct checking for language
15338 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
15340 * config/i386/i386.c (ix86_register_move_cost): Do not
15341 limit the cost of moves to/from XMM register to minimum 8.
15343 2019-08-28 Martin Jambor <mjambor@suse.cz>
15346 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15347 checking assert a normal assert to test it really is redundant.
15348 * ipa-prop.c (compute_complex_assign_jump_func): Removed
15350 (update_jump_functions_after_inlining): Removed combining unary
15351 arithmetic operations with an ancestor jump function.
15352 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15355 2019-08-28 Richard Biener <rguenther@suse.de>
15357 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15358 add the MD problem.
15360 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15361 Richard Biener <rguenther@suse.de>
15363 * expr.c (expand_assignment): Handle misaligned DECLs.
15364 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15365 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15367 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15368 * varasm.c (build_constant_desc): Align constants of misaligned types.
15369 * config/arm/predicates.md (aligned_operand): New predicate.
15370 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15371 aligned_operand to check restrictions on memory addresses.
15372 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15373 * config/arm/vec-common.md (mov<VALL>): Likewise.
15375 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15378 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15379 V_128 iterator instead of VI_128.
15381 2019-08-28 Martin Liska <mliska@suse.cz>
15383 PR tree-optimization/90970
15384 * builtins.c (check_access): Remove assignment to maxread
15385 as it hasn't been used since when it was introduced in r255755.
15387 2019-08-27 Martin Sebor <msebor@redhat.com>
15389 PR tree-optimization/91567
15390 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15391 of unknown strings.
15392 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15393 to PTRDIFF_MAX - 2.
15395 2019-08-27 Jeff Law <law@redhat.com>
15397 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15398 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15400 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15403 * config/i386/i386-features.c (convert_scalars_to_vector):
15404 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15405 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15406 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15407 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15409 2019-08-27 Richard Biener <rguenther@suse.de>
15411 * config/i386/i386-features.h
15412 (general_scalar_chain::~general_scalar_chain): Add.
15413 (general_scalar_chain::insns_conv): New bitmap.
15414 (general_scalar_chain::n_sse_to_integer): New.
15415 (general_scalar_chain::n_integer_to_sse): Likewise.
15416 (general_scalar_chain::make_vector_copies): Adjust signature.
15417 * config/i386/i386-features.c
15418 (general_scalar_chain::general_scalar_chain): Outline,
15419 initialize new members.
15420 (general_scalar_chain::~general_scalar_chain): New.
15421 (general_scalar_chain::mark_dual_mode_def): Record insns
15422 we need to insert conversions at and count them.
15423 (general_scalar_chain::compute_convert_gain): Account
15424 for conversion instructions at chain boundary.
15425 (general_scalar_chain::make_vector_copies): Generate a single
15426 copy for a def by a specific insn.
15427 (general_scalar_chain::convert_registers): First populate
15428 defs_map, then make copies at out-of chain insns.
15430 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15432 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15434 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15436 2019-08-27 Martin Liska <mliska@suse.cz>
15438 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15440 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15441 Enclose in anonymous namespace.
15442 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15443 hard_register initialization in braces.
15444 * tree-vrp.h (value_range_base::supports_type_p): Return false
15445 for function with boolean return type.
15447 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15449 * config/i386/i386.c (emit_i387_cw_initialization)
15450 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15452 2019-08-26 Martin Sebor <msebor@redhat.com>
15455 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15456 (sprintf_dom_walker): Remove class.
15457 (get_int_range): Make argument const.
15458 (directive::fmtfunc, directive::set_precision): Same.
15459 (format_none): Same.
15460 (build_intmax_type_nodes): Same.
15461 (adjust_range_for_overflow): Same.
15462 (format_floating): Same.
15463 (format_character): Same.
15464 (format_string): Same.
15465 (format_plain): Same.
15466 (get_int_range): Cast away constness.
15467 (format_integer): Same.
15468 (get_string_length): Call get_range_strlen_dynamic. Handle
15469 null lendata.maxbound.
15470 (should_warn_p): Adjust argument scope qualifier.
15471 (maybe_warn): Same.
15472 (format_directive): Same.
15473 (parse_directive): Same.
15474 (is_call_safe): Same.
15475 (try_substitute_return_value): Same.
15476 (sprintf_dom_walker::handle_printf_call): Rename...
15477 (handle_printf_call): ...to this. Initialize target to host charmap
15478 here instead of in pass_sprintf_length::execute.
15479 (struct call_info): Make global.
15480 (sprintf_dom_walker::compute_format_length): Make global.
15481 (sprintf_dom_walker::handle_gimple_call): Same.
15482 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15483 * print-rtl.c (print_pattern): Reduce the number of spaces to
15484 avoid -Wformat-truncation.
15485 * tree-pass.h (make_pass_warn_printf): New function.
15486 * tree-ssa-strlen.c (strlen_optimize): New variable.
15487 (get_string_length): Add comments.
15488 (get_range_strlen_dynamic): New function.
15489 (check_and_optimize_call): New function.
15490 (handle_integral_assign): New function.
15491 (strlen_check_and_optimize_stmt): Factor code out into
15492 strlen_check_and_optimize_call and handle_integral_assign.
15493 (strlen_dom_walker::evrp): New member.
15494 (strlen_dom_walker::before_dom_children): Use evrp member.
15495 (strlen_dom_walker::after_dom_children): Use evrp member.
15496 (printf_strlen_execute): New function.
15497 (pass_strlen::gate): Update to handle printf calls.
15498 (dump_strlen_info): New function.
15499 (pass_data_warn_printf): New variable.
15500 (pass_warn_printf): New class.
15501 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15502 (handle_printf_call): Same.
15503 * tree-vrp.c (value_range_base::type): Adjust assertion.
15504 * vr-values.c (vr_values::update_value_range): Use type of the first
15505 argument rather than the second.
15507 2019-08-26 Richard Biener <rguenther@suse.de>
15509 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15511 (convert_scalars_to_vector): Do not call it.
15513 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15514 Uros Bizjak <ubizjak@gmail.com>
15516 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15517 CASE_MATHFN_FLOATN for roundeven.
15518 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15520 (ix86_mode_needed): Likewise.
15521 (ix86_mode_after): Likewise.
15522 (ix86_mode_entry): Likewise.
15523 (ix86_mode_exit): Likewise.
15524 (ix86_emit_mode_set): Likewise.
15525 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15526 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15527 (ix86_entity): Add I387_ROUNDEVEN.
15528 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15529 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15530 (define_int_iterator): Likewise.
15531 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15532 (define_constant): Define ROUND_ROUNDEVEN mode.
15533 (define_attr): Add roundeven mode for i387_cw.
15534 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15535 * internal-fn.def (ROUNDEVEN): New builtin function.
15536 * optabs.def (roundeven_optab): New optab.
15538 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15540 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15542 * builtins.def: Added function definitions for roundeven function
15544 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15545 function call. Adjust condition for floor, ceil, trunc and round.
15546 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15547 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15548 (integer_valued_real_call_p): Added case for roundeven function.
15549 * real.c (is_even): New function. Returns true if real number is even,
15550 otherwise returns false.
15551 (is_halfway_below): New function. Returns true if real number is
15552 halfway between two integers, else return false.
15553 (real_roundeven): New function. Round real number to nearest integer,
15554 rounding halfway cases towards even.
15555 * real.h (real_value): Added descriptive comments. Added function
15556 declaration for roundeven function.
15557 * doc/extend.texi (Other Builtins): List roundeven variants among
15558 functions which can be handled as builtins.
15560 2019-08-26 Richard Biener <rguenther@suse.de>
15564 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15566 (general_scalar_chain::replace_with_subreg): Remove.
15567 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15568 (general_scalar_chain::convert_reg): Adjust signature.
15569 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15570 iterate over all defs of a reg.
15571 (general_scalar_chain::replace_with_subreg): Remove.
15572 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15573 (general_scalar_chain::make_vector_copies): Populate defs_map,
15574 place copy only after defs that are used as vectors in the chain.
15575 (general_scalar_chain::convert_reg): Emit a copy for a specific
15576 def in a specific instruction.
15577 (general_scalar_chain::convert_op): All reg uses are converted here.
15578 (general_scalar_chain::convert_insn): Emit copies for scalar
15579 uses of defs here. Replace uses with the copies we created.
15580 Replace and convert the def. Adjust REG_DEAD notes, remove
15581 REG_EQUIV/EQUAL notes.
15582 (general_scalar_chain::convert_registers): Only handle copies
15583 into the chain here.
15585 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15587 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15589 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15591 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15592 Add nop_convert case.
15593 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15594 Fold all statements if requested.
15595 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15596 Allow to fold all statements.
15597 * tree-vrp.c (class vrp_folder):
15598 Let substitute_and_fold_engine fold all statements.
15600 2019-08-26 Richard Biener <rguenther@suse.de>
15602 PR tree-optimization/91526
15603 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15604 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15605 TODO_update_address_taken.
15607 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15609 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15612 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15614 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15615 machine mode for unspec_volatile operand.
15617 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15619 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15620 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15621 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15622 (prefer_neon_for_64bits): Remove.
15623 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15624 (tune_params): Remove PREF_NEON_64_FALSE uses.
15625 (arm_option_override): Remove prefer_neon selection code.
15626 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15627 * config/arm/arm-protos.h (tune_params): Remove
15628 prefer_neon_for_64bits.
15629 (prefer_neon_for_64bits): Remove.
15631 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15634 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15635 and issue any diagnostics needed before collecting the pre-PCH
15638 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15640 PR middle-end/91283
15641 * common.opt (fexcess-precision=): Add Optimization flag. Use
15642 flag_excess_precision variable instead of
15643 flag_excess_precision_cmdline.
15644 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15646 (flag_excess_precision): Don't define.
15647 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15648 flag_excess_precision_cmdline. Remove comment.
15649 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15650 and x_flag_excess_precision instead of
15651 frontend_set_flag_excess_precision_cmdline and
15652 x_flag_excess_precision_cmdline.
15653 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15654 x_flag_excess_precision_cmdline.
15655 * toplev.c (init_excess_precision): Remove.
15656 (lang_dependent_init_target): Don't call it.
15658 2019-08-23 Martin Liska <mliska@suse.cz>
15660 * lto-wrapper.c (run_gcc): When setting jobserver
15661 set also parallel to 1. This was done so before r273908.
15663 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15665 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15666 (cortex-a76ae): Likewise.
15667 (cortex-a77): Likewise
15668 * config/arm/arm-tables.opt: Regenerate.
15669 * config/arm/arm-tune.md: Likewise.
15670 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15671 cortex-a77 CPU options.
15673 2019-08-23 Martin Liska <mliska@suse.cz>
15675 * profile.c (instrument_values): Do not set
15676 0 as last argument.
15677 * tree-profile.c (gimple_gen_interval_profiler): Remove
15679 (gimple_gen_pow2_profiler): Likewise.
15680 (gimple_gen_topn_values_profiler): Likewise.
15681 (gimple_gen_ic_profiler): Likewise.
15682 (gimple_gen_time_profiler): Likewise.
15683 (gimple_gen_average_profiler): Likewise.
15684 (gimple_gen_ior_profiler): Likewise.
15685 * value-prof.c (dump_histogram_value): Use default
15686 in switch statement instead of HIST_TYPE_MAX.
15687 (stream_in_histogram_value): Likewise.
15688 (gimple_duplicate_stmt_histograms): Do not
15689 use NULL for implicitly set arguments.
15690 (gimple_divmod_values_to_profile): Do not use
15691 reserve+quick_push.
15692 (gimple_indirect_call_to_profile): Likewise.
15693 (gimple_find_values_to_profile): Use implicit
15694 function call arguments.
15695 * value-prof.h (gimple_alloc_histogram_value):
15696 Set default values.
15697 (gimple_gen_interval_profiler): Remove last argument.
15698 (gimple_gen_pow2_profiler): Likewise.
15699 (gimple_gen_topn_values_profiler): Likewise.
15700 (gimple_gen_ic_profiler): Likewise.
15701 (gimple_gen_time_profiler): Likewise.
15702 (gimple_gen_average_profiler): Likewise.
15703 (gimple_gen_ior_profiler): Likewise.
15705 2019-08-22 Martin Sebor <msebor@redhat.com>
15707 PR middle-end/91490
15708 * builtins.c (c_strlen): Rename argument and introduce new local.
15709 Set no-warning bit on original argument.
15710 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15711 Fold empty and zero constructors into empty strings.
15712 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15713 for missing initializers.
15714 * tree.c (build_string_literal): Handle optional argument.
15715 * tree.h (build_string_literal): Add defaulted argument.
15716 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15717 no-warning bit on original expression.
15719 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15722 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15723 and UNSPEC_DARN_RAW.
15724 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15726 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15727 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15728 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15730 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15732 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15733 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15734 * config/rs6000/rs6000.md (unspec): ... here.
15735 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15736 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15737 cmpeqb, *cmpeqb_internal): Delete, move to...
15738 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15739 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15740 cmpeqb, *cmpeqb_internal): ... here.
15742 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15744 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15745 intrinsics if __ARM_FP.
15746 Use __ARM_FEATURE_CRC32 ifdef guard.
15748 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15750 * config/arm/arm.md (neon_for_64bits): Remove.
15751 (avoid_neon_for_64bits): Remove.
15752 (arm_adddi3): Always split early.
15753 (arm_subdi3): Always split early.
15754 (negdi2): Remove Neon expansion.
15755 (split zero_extend): Split before reload.
15756 (split sign_extend): Split before reload.
15758 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15760 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15761 (qhs_extenddi_cstr): Likewise.
15762 * config/arm/arm.md (ashldi3): Always expand early.
15763 (ashlsi3): Likewise.
15764 (ashrsi3): Likewise.
15765 (zero_extend<mode>di2): Remove Neon variants.
15766 (extend<mode>di2): Likewise.
15767 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15768 (signed_shift_di3_neon): Likewise.
15769 (unsigned_shift_di3_neon): Likewise.
15770 (ashrdi3_neon_imm_noclobber): Likewise.
15771 (lshrdi3_neon_imm_noclobber): Likewise.
15772 (<shift>di3_neon): Likewise.
15773 (split extend): Remove DI extend split patterns.
15775 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15777 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15778 (split not): Add DImode not splitter.
15779 (anddi3): Remove pattern.
15780 (anddi3_insn): Likewise.
15781 (anddi_zesidi_di): Likewise.
15782 (anddi_sesdi_di): Likewise.
15783 (anddi_notdi_di): Likewise.
15784 (anddi_notzesidi_di): Likewise.
15785 (anddi_notsesidi_di): Likewise.
15786 (iordi3): Likewise.
15787 (iordi3_insn): Likewise.
15788 (iordi_zesidi_di): Likewise.
15789 (iordi_sesidi_di): Likewise.
15790 (xordi3): Likewise.
15791 (xordi3_insn): Likewise.
15792 (xordi_sesidi_di): Likewise.
15793 (xordi_zesidi_di): Likewise.
15794 (one_cmpldi2): Likewise.
15795 (one_cmpldi2_insn): Likewise.
15796 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15797 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15799 (iwmmxt_xordi3): Likewise.
15800 (iwmmxt_anddi3): Likewise.
15801 * config/arm/neon.md (orndi3_neon): Remove pattern.
15802 (anddi_notdi_di): Likewise.
15803 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15804 (arm_iordi_operand_neon): Likewise.
15805 (arm_xordi_operand_neon): Likewise.
15806 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15807 (iordi_notzesidi_di): Likewise.
15808 (iordi_notdi_zesidi): Likewise.
15809 (iordi_notsesidi_di): Likewise.
15811 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15813 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15815 (iorsi3_compare0_scratch): Likewise.
15817 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15819 * config/aarch64/aarch64-simd-builtins.def:
15822 * config/aarch64/aarch64-simd.md:
15823 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15824 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15825 (aarch64_ld1_x4_<mode>): Likewise.
15826 (aarch64_st1_x4_<mode>): Likewise.
15827 * config/aarch64/arm_neon.h:
15828 (vld1_s8_x4): New function.
15829 (vld1q_s8_x4): Likewise.
15830 (vld1_s16_x4): Likewise.
15831 (vld1q_s16_x4): Likewise.
15832 (vld1_s32_x4): Likewise.
15833 (vld1q_s32_x4): Likewise.
15834 (vld1_u8_x4): Likewise.
15835 (vld1q_u8_x4): Likewise.
15836 (vld1_u16_x4): Likewise.
15837 (vld1q_u16_x4): Likewise.
15838 (vld1_u32_x4): Likewise.
15839 (vld1q_u32_x4): Likewise.
15840 (vld1_f16_x4): Likewise.
15841 (vld1q_f16_x4): Likewise.
15842 (vld1_f32_x4): Likewise.
15843 (vld1q_f32_x4): Likewise.
15844 (vld1_p8_x4): Likewise.
15845 (vld1q_p8_x4): Likewise.
15846 (vld1_p16_x4): Likewise.
15847 (vld1q_p16_x4): Likewise.
15848 (vld1_s64_x4): Likewise.
15849 (vld1_u64_x4): Likewise.
15850 (vld1_p64_x4): Likewise.
15851 (vld1q_s64_x4): Likewise.
15852 (vld1q_u64_x4): Likewise.
15853 (vld1q_p64_x4): Likewise.
15854 (vld1_f64_x4): Likewise.
15855 (vld1q_f64_x4): Likewise.
15856 (vst1_s8_x4): Likewise.
15857 (vst1q_s8_x4): Likewise.
15858 (vst1_s16_x4): Likewise.
15859 (vst1q_s16_x4): Likewise.
15860 (vst1_s32_x4): Likewise.
15861 (vst1q_s32_x4): Likewise.
15862 (vst1_u8_x4): Likewise.
15863 (vst1q_u8_x4): Likewise.
15864 (vst1_u16_x4): Likewise.
15865 (vst1q_u16_x4): Likewise.
15866 (vst1_u32_x4): Likewise.
15867 (vst1q_u32_x4): Likewise.
15868 (vst1_f16_x4): Likewise.
15869 (vst1q_f16_x4): Likewise.
15870 (vst1_f32_x4): Likewise.
15871 (vst1q_f32_x4): Likewise.
15872 (vst1_p8_x4): Likewise.
15873 (vst1q_p8_x4): Likewise.
15874 (vst1_p16_x4): Likewise.
15875 (vst1q_p16_x4): Likewise.
15876 (vst1_s64_x4): Likewise.
15877 (vst1_u64_x4): Likewise.
15878 (vst1_p64_x4): Likewise.
15879 (vst1q_s64_x4): Likewise.
15880 (vst1q_u64_x4): Likewise.
15881 (vst1q_p64_x4): Likewise.
15882 (vst1_f64_x4): Likewise.
15883 (vst1q_f64_x4): Likewise.
15885 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15887 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15889 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15890 Richard Sandiford <richard.sandiford@arm.com>
15893 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15894 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15896 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15899 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15900 in reg if it fails aarch64_plus_operand predicate.
15902 2019-08-21 Richard Biener <rguenther@suse.de>
15904 PR tree-optimization/91482
15905 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15906 BUILT_IN_ASSUME_ALIGNED calls.
15908 2019-08-21 Richard Biener <rguenther@suse.de>
15912 * config/i386/i386-features.c
15913 (general_scalar_chain::make_vector_copies): Copy stack temporary
15914 rtx when using it multiple times.
15915 (general_scalar_chain::convert_reg): Likewise.
15917 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15919 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15921 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15923 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15924 catch more redundant zero initialization cases.
15925 (dse_dom_walker::dse_optimize_stmt): Likewise.
15927 2019-08-20 Richard Biener <rguenther@suse.de>
15930 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15931 by collect2 when targetm.have_ctors_dtors which avoids dragging
15932 in temporary filenames from LTO input objects.
15934 2019-08-20 Richard Biener <rguenther@suse.de>
15936 PR tree-optimization/37242
15937 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15938 to (T)a + (T)b if we know that a + b does not overflow.
15940 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15942 PR rtl-optimization/91347
15943 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15944 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15946 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15948 * calls.h (function_arg_info): Add a pass_by_reference field,
15949 defaulting to false.
15950 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15951 when applying pass-by-reference semantics.
15952 (initialize_argument_information): Likewise.
15953 (emit_library_call_value_1): Likewise.
15954 * function.c (assign_parm_data_one): Remove passed_pointer field.
15955 (assign_parm_find_data_types): Don't set it.
15956 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15957 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15958 arg.pass_by_reference instead of passed_pointer.
15960 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15962 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15963 into a single function_arg_info, updating its fields when we
15964 apply pass-by-reference and promotion semantics. Use the
15965 function_arg_info to track the mode rather than keeping it in
15966 a separate local variable.
15967 (initialize_argument_information): Likewise. Base the final
15968 arg_to_skip on this new function_arg_info rather than creating
15969 a new one from scratch.
15971 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15973 * function.c (assign_parm_data_one): Replace passed_type,
15974 promoted_mode and named_arg with a function_arg_info field.
15975 (assign_parm_find_data_types): Remove local variables and
15976 assign directly to "data". Make data->passed_mode shadow
15977 data->arg.mode until promotion, then assign the promoted
15978 mode to data->arg.mode.
15979 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15980 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15981 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15982 (assign_parm_setup_block, assign_parm_setup_reg)
15983 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15984 arg.mode instead of promoted_mode, arg.type instead of passed_type
15985 and arg.named instead of named_arg. Use data->arg for
15986 function_arg_info structures that had the field values passed_type,
15987 promoted_mode and named_arg. Base other function_arg_infos on
15988 data->arg, changing the necessary properties.
15990 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15992 * calls.h (apply_pass_by_reference_rules): Declare.
15993 * calls.c (apply_pass_by_reference_rules): New function.
15994 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15995 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15996 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15997 * function.c (assign_parm_find_data_types): Likewise.
15998 * var-tracking.c (prepare_call_arguments): Likewise.
16000 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16002 * target.def (must_pass_in_stack): Take a function_arg_info instead
16003 of a mode and a type.
16004 * doc/tm.texi: Regenerate.
16005 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
16006 instead of a mode and a type.
16007 (must_pass_in_stack_var_size_or_pad): Likewise.
16008 * calls.c (must_pass_in_stack_var_size): Likewise.
16009 (must_pass_in_stack_var_size_or_pad): Likewise.
16010 (initialize_argument_information): Update call to
16011 targetm.calls.must_pass_in_stack.
16012 (must_pass_va_arg_on_stack): Likewise.
16013 * function.c (assign_parm_find_entry_rtl): Likewise.
16014 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
16015 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16016 (alpha_function_arg_advance): Likewise.
16017 * config/cr16/cr16.c (cr16_function_arg): Likewise.
16018 (cr16_function_arg_advance): Likewise.
16019 * config/cris/cris.c (cris_pass_by_reference): Likewise.
16020 (cris_arg_partial_bytes): Likewise.
16021 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16022 * config/lm32/lm32.c (lm32_function_arg): Likewise.
16023 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
16024 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
16025 * config/mips/mips.c (mips_pass_by_reference): Likewise.
16026 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
16027 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
16028 * config/sh/sh.c (sh_pass_by_reference): Likewise.
16029 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16030 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16031 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
16032 instead of a mode and a type.
16033 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
16034 (fr30_num_arg_regs): Likewise.
16035 (fr30_setup_incoming_varargs): Update calls accordingly.
16036 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16037 (fr30_function_arg_advance): Likewise.
16038 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
16039 instead of a mode and a type.
16040 * config/gcn/gcn.c (num_arg_regs): Likewise.
16041 (gcn_function_arg, gcn_function_arg_advance): Update calls to
16042 num_arg_regs and targetm.calls.must_pass_in_stack.
16043 (gcn_arg_partial_bytes): Likewise.
16044 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
16045 function_arg_info instead of a mode and a type.
16046 (classify_argument): Update call accordingly.
16047 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
16048 function_arg_info instead of a mode and a type.
16049 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
16051 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
16052 (rs6000_parm_needs_stack): Update call accordingly.
16053 (setup_incoming_varargs): Likewise.
16055 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16057 * target.def (callee_copies): Take a function_arg_info instead
16058 of a mode, type and named flag.
16059 * doc/tm.texi: Regenerate.
16060 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
16061 instead of a mode, type and named flag.
16062 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16063 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16064 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16065 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
16066 instead of a mode, type and named flag.
16067 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16068 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16069 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16070 * calls.h (reference_callee_copied): Take a function_arg_info
16071 instead of a mode, type and named flag.
16072 * calls.c (reference_callee_copied): Likewise.
16073 (initialize_argument_information): Update call accordingly.
16074 (emit_library_call_value_1): Likewise.
16075 * function.c (gimplify_parameters): Likewise.
16076 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
16077 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
16078 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
16079 * config/c6x/c6x.c (c6x_callee_copies): Delete.
16080 (TARGET_CALLEE_COPIES): Define to
16081 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16082 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
16083 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16084 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16085 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
16086 instead of a mode, type and named flag.
16087 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
16088 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16089 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16090 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
16091 * config/msp430/msp430.c (msp430_callee_copies): Delete.
16092 (TARGET_CALLEE_COPIES): Define to
16093 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16094 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
16095 instead of a mode, type and named flag.
16096 * config/sh/sh.c (sh_callee_copies): Likewise.
16097 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
16098 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16099 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16101 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16103 * target.def (function_arg_advance): Take a function_arg_info instead
16104 of a mode, type and named flag.
16105 * doc/tm.texi: Regenerate.
16106 * targhooks.h (default_function_arg_advance): Take a function_arg_info
16107 instead of a mode, type and named flag.
16108 * targhooks.c (default_function_arg_advance): Likewise.
16109 * calls.c (initialize_argument_information): Update call to
16110 targetm.calls.function_arg_advance.
16111 (emit_library_call_value_1): Likewise.
16112 * dse.c (get_call_args): Likewise.
16113 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16114 * function.c (assign_parms, gimplify_parameters): Likewise.
16115 * var-tracking.c (prepare_call_arguments): Likewise.
16116 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
16117 function_arg_info instead of a mode, type and named flag.
16118 (aarch64_setup_incoming_varargs): Update call accordingly.
16119 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
16120 function_arg_info instead of a mode, type and named flag.
16121 (alpha_setup_incoming_varargs): Update call accordingly.
16122 * config/arc/arc.c (arc_function_arg_advance): Take a
16123 function_arg_info instead of a mode, type and named flag.
16124 (arc_setup_incoming_varargs): Update call accordingly.
16125 * config/arm/arm.c (arm_function_arg_advance): Take a
16126 function_arg_info instead of a mode, type and named flag.
16127 (cmse_func_args_or_return_in_stack): Update call accordingly.
16128 (arm_function_ok_for_sibcall): Likewise.
16129 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16130 * config/avr/avr.c (avr_function_arg_advance): Take a
16131 function_arg_info instead of a mode, type and named flag.
16132 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
16133 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
16134 (c6x_call_saved_register_used): Update call accordingly.
16135 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
16136 function_arg_info instead of a mode, type and named flag.
16137 * config/cris/cris.c (cris_function_arg_advance): Likewise.
16138 * config/csky/csky.c (csky_function_arg_advance): Likewise.
16139 (csky_setup_incoming_varargs): Update call accordingly.
16140 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
16141 function_arg_info instead of a mode, type and named flag.
16142 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
16143 * config/frv/frv.c (frv_function_arg_advance): Likewise.
16144 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
16145 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
16146 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
16147 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16148 (ix86_setup_incoming_varargs): Update call accordingly.
16149 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
16150 function_arg_info instead of a mode, type and named flag.
16151 (ia64_setup_incoming_varargs): Update call accordingly.
16152 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
16153 function_arg_info instead of a mode, type and named flag.
16154 (iq2000_expand_prologue): Update call accordingly.
16155 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
16156 function_arg_info instead of a mode, type and named flag.
16157 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
16158 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
16159 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16160 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
16161 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16163 (microblaze_expand_prologue): Update call accordingly.
16164 * config/mips/mips.c (mips_function_arg_advance): Take a
16165 function_arg_info instead of a mode, type and named flag.
16166 (mips_setup_incoming_varargs): Update call accordingly.
16167 (mips_output_args_xfer): Likewise.
16168 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
16169 function_arg_info instead of a mode, type and named flag.
16170 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
16171 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
16172 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
16173 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
16174 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
16175 (nios2_setup_incoming_varargs): Update call accordingly.
16176 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
16177 function_arg_info instead of a mode, type and named flag.
16178 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
16179 * config/pa/pa.c (pa_function_arg_advance): Likewise.
16180 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
16181 * config/pru/pru.c (pru_function_arg_advance): Likewise.
16182 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
16183 (riscv_setup_incoming_varargs): Update call accordingly.
16184 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
16185 function_arg_info instead of a mode, type and named flag.
16186 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
16188 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
16189 (rs6000_parm_needs_stack): Update call accordingly.
16190 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
16191 instead of a mode, type and named flag.
16192 * config/s390/s390.c (s390_function_arg_advance): Likewise.
16193 (s390_call_saved_register_used): Update call accordingly.
16194 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
16195 instead of a mode, type and named flag.
16196 (sh_output_mi_thunk): Update call accordingly.
16197 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
16198 function_arg_info instead of a mode, type and named flag.
16199 * config/spu/spu.c (spu_function_arg_advance): Likewise.
16200 (spu_setup_incoming_varargs): Update call accordingly.
16201 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
16202 function_arg_info instead of a mode, type and named flag.
16203 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
16204 (tilegx_setup_incoming_varargs): Update call accordingly.
16205 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
16206 function_arg_info instead of a mode, type and named flag.
16207 (tilegx_setup_incoming_varargs): Update call accordingly.
16208 * config/v850/v850.c (v850_function_arg_advance): Take a
16209 function_arg_info instead of a mode, type and named flag.
16210 * config/vax/vax.c (vax_function_arg_advance): Likewise.
16211 * config/visium/visium.c (visium_function_arg_advance): Likewise.
16212 (visium_setup_incoming_varargs): Update call accordingly.
16213 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16214 function_arg_info instead of a mode, type and named flag.
16216 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16218 * target.def (function_arg, function_incoming_arg): Take a
16219 function_arg_info instead of a mode, tree and named flag.
16220 * doc/tm.texi: Regenerate.
16221 * targhooks.h (default_function_arg): Take a function_arg_info
16222 instead of a mode, tree and named flag.
16223 (default_function_incoming_arg): Likewise.
16224 * targhooks.c (default_function_arg): Likewise.
16225 (default_function_incoming_arg): Likewise.
16226 * calls.h (function_arg_info::end_marker_p): New function.
16227 (function_arg_info::end_marker): Likewise.
16228 * calls.c (prepare_call_address, initialize_argument_information)
16229 (expand_call, emit_library_call_value_1): Update calls to
16230 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16231 * dse.c: Include calls.h.
16232 (get_call_args): Update call to targetm.calls.function_arg.
16233 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16234 * var-tracking.c (prepare_call_arguments): Likewise.
16235 * function.c (assign_parm_find_entry_rtl): Update call to
16236 targetm.calls.function_incoming_arg.
16237 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16238 function_arg_info instead of a mode, tree and named flag.
16239 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16240 * config/arc/arc.c (arc_function_arg): Likewise.
16241 * config/arm/arm.c (arm_function_arg): Likewise.
16242 (cmse_func_args_or_return_in_stack): Update call accordingly.
16243 (arm_function_ok_for_sibcall): Likewise.
16244 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16245 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16246 instead of a mode, tree and named flag.
16247 * config/bfin/bfin.c (bfin_function_arg): Likewise.
16248 * config/c6x/c6x.c (c6x_function_arg): Likewise.
16249 (c6x_call_saved_register_used): Update call accordingly.
16250 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16251 instead of a mode, tree and named flag.
16252 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16253 (cris_function_arg_1): Likewise.
16254 * config/csky/csky.c (csky_function_arg): Likewise.
16255 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16256 * config/fr30/fr30.c (fr30_function_arg): Likewise.
16257 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16258 (frv_function_arg_1): Likewise.
16259 * config/ft32/ft32.c (ft32_function_arg): Likewise.
16260 * config/gcn/gcn.c (gcn_function_arg): Likewise.
16261 * config/h8300/h8300.c (h8300_function_arg): Likewise.
16262 * config/i386/i386.c (ix86_function_arg): Likewise.
16263 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16264 (ia64_function_arg_1): Likewise.
16265 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16266 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16268 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16269 instead of a mode, tree and named flag.
16270 * config/m32c/m32c.c (m32c_function_arg): Likewise.
16271 * config/m32r/m32r.c (m32r_function_arg): Likewise.
16272 * config/m68k/m68k.c (m68k_function_arg): Likewise.
16273 * config/mcore/mcore.c (mcore_function_arg): Likewise.
16274 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16275 (microblaze_expand_prologue): Update call accordingly.
16276 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16277 instead of a mode, tree and named flag.
16278 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16279 (mmix_function_arg_1): Likewise.
16280 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16281 * config/moxie/moxie.c (moxie_function_arg): Likewise.
16282 * config/msp430/msp430.c (msp430_function_arg): Likewise.
16283 * config/nds32/nds32.c (nds32_function_arg): Likewise.
16284 * config/nios2/nios2.c (nios2_function_arg): Likewise.
16285 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16286 (nvptx_function_incoming_arg): Likewise.
16287 * config/or1k/or1k.c (or1k_function_arg): Likewise.
16288 * config/pa/pa.c (pa_function_arg): Likewise.
16289 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16290 * config/pru/pru.c (pru_function_arg): Likewise.
16291 * config/riscv/riscv.c (riscv_function_arg): Likewise.
16292 * config/rl78/rl78.c (rl78_function_arg): Likewise.
16293 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16294 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16295 (rs6000_parm_needs_stack): Update call accordingly.
16296 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16297 instead of a mode, tree and named flag.
16298 * config/s390/s390.c (s390_function_arg): Likewise.
16299 (s390_call_saved_register_used): Update call accordingly.
16300 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16301 instead of a mode, tree and named flag.
16302 (sh_output_mi_thunk): Update call accordingly.
16303 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16304 (sparc_function_incoming_arg): Take a function_arg_info instead of
16305 a mode, tree and named flag.
16306 * config/spu/spu.c (spu_function_arg): Likewise.
16307 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16308 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16309 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16310 * config/v850/v850.c (v850_function_arg): Likewise.
16311 * config/vax/vax.c (vax_function_arg): Likewise.
16312 * config/visium/visium.c (visium_function_arg): Likewise.
16313 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16314 (xtensa_function_incoming_arg): Likewise.
16316 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16318 * target.def (setup_incoming_varargs): Take a function_arg_info
16319 instead of a mode and tree.
16320 * doc/tm.texi: Regenerate.
16321 * targhooks.h (default_setup_incoming_varargs): Take a
16322 function_arg_info instead of a mode and tree.
16323 * targhooks.c (default_setup_incoming_varargs): Likewise.
16324 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16325 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16326 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16327 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16328 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16329 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16330 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16331 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16333 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16334 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16335 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16336 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16337 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16338 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16339 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16340 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16341 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16342 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16343 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16344 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16345 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16346 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16347 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16348 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16349 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16350 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16351 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16352 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16353 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16354 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16355 * function.c (assign_parms_setup_varargs): Update call to
16356 targetm.calls.setup_incoming_varargs.
16358 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16360 * target.def (pass_by_reference): Take a function_arg_info instead
16361 of a mode, type and named flag.
16362 * doc/tm.texi: Regenerate.
16363 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16365 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16366 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16367 function_arg_info instead of a mode, type and named flag.
16368 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16369 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16370 mode, type and named flag.
16371 * calls.c (pass_by_reference): Likewise.
16372 (pass_va_arg_by_reference): Update call accordingly.
16373 (initialize_argument_information): Likewise.
16374 (emit_library_call_value_1): Likewise.
16375 * function.c (assign_parm_find_data_types): Likewise.
16376 * var-tracking.c (prepare_call_arguments): Likewise.
16377 * stor-layout.c: Include calls.h.
16378 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16379 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16380 function_arg_info instead of a mode, type and named flag.
16381 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16382 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16383 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16384 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16385 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16386 (c6x_call_saved_register_used): Update call to pass_by_reference.
16387 * config/cris/cris.c (cris_pass_by_reference): Take a
16388 function_arg_info instead of a mode, type and named flag.
16389 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16390 function_arg_info instead of a mode, type and named flag.
16391 (epiphany_arg_partial_bytes): Update call accordingly.
16392 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16393 function_arg_info instead of a mode, type and named flag.
16394 (ft32_arg_partial_bytes): Update call accordingly.
16395 * config/i386/i386.c (ix86_pass_by_reference): Take a
16396 function_arg_info instead of a mode, type and named flag.
16397 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16398 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16399 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16400 (m32r_return_in_memory): Update call accordingly.
16401 * config/mips/mips.c (mips_pass_by_reference): Take a
16402 function_arg_info instead of a mode, type and named flag.
16403 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16404 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16405 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16406 (moxie_arg_partial_bytes): Update call accordingly.
16407 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16408 function_arg_info instead of a mode, type and named flag.
16409 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16410 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16411 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16412 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16413 (riscv_return_in_memory): Update call accordingly.
16414 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16415 function_arg_info instead of a mode, type and named flag.
16416 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16417 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16418 * config/s390/s390.c (s390_pass_by_reference): Take a
16419 function_arg_info instead of a mode, type and named flag.
16420 (s390_call_saved_register_used): Update call accordingly.
16421 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16422 instead of a mode, type and named flag.
16423 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16424 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16425 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16426 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16427 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16428 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16430 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16432 * target.def (arg_partial_bytes): Take a function_arg_info instead
16433 of a mode, type and named flag.
16434 * doc/tm.texi: Regenerate.
16435 * target.h (function_arg_info): Declare.
16436 * calls.h (function_arg_info): New class.
16437 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16438 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16439 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16440 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16441 * calls.c (initialize_argument_information): Update call to
16442 targetm.calls.partial_bytes.
16443 (emit_library_call_value_1): Likewise.
16444 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16445 * function.c (assign_parm_find_entry_rtl): Likewise.
16446 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16447 function_arg_info instead of a mode, type and named flag.
16448 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16449 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16450 (cmse_func_args_or_return_in_stack): Update accordingly.
16451 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16452 function_arg_info instead of a mode, type and named flag.
16453 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16454 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16455 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16456 * config/fr30/fr30.c: Include calls.h.
16457 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16458 type and named flag.
16459 * config/frv/frv.c: Include calls.h.
16460 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16461 type and named flag.
16462 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16463 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16464 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16465 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16466 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16467 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16468 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16470 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16471 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16472 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16473 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16474 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16475 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16476 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16477 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16478 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16479 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16480 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16481 (rs6000_parm_needs_stack): Update call accordingly.
16482 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16483 function_arg_info instead of a mode, type and named flag.
16484 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16485 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16487 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16489 * calls.h (must_pass_va_arg_in_stack): Declare.
16490 * calls.c (must_pass_va_arg_in_stack): New function.
16491 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16492 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16493 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16495 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16497 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16499 * calls.h (pass_va_arg_by_reference): Declare.
16500 * calls.c (pass_va_arg_by_reference): New function.
16501 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16502 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16503 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16504 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16505 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16506 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16507 (mips_gimplify_va_arg_expr): Likewise.
16508 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16509 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16510 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16511 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16512 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16513 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16514 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16515 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16516 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16517 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16518 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16520 2019-08-20 Richard Biener <rguenther@suse.de>
16523 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16524 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16525 (convert_scalars_to_vector): Add timode_p parameter and use it
16526 to guard TImode-only operation.
16527 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16528 (pass_stv::execute): Pass down timode_p.
16530 2019-08-20 Lili Cui <lili.cui@intel.com>
16532 * common/config/i386/i386-common.c
16533 (processor_names): Add tigerlake and cooperlake.
16534 (processor_alias_table): Add tigerlake and cooperlake.
16535 * config.gcc: Add -march=tigerlake and cooperlake.
16536 * config/i386/driver-i386.c
16537 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16538 Add "has_avx" to classify processor.
16539 * config/i386/i386-builtins.c (processor_model) :
16540 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16541 (arch_names_table): Add tigerlake and cooperlake.
16542 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16543 and PROCESSOR_COOPERLAKE.
16544 * config/i386/i386-c.c
16545 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16546 * config/i386/i386-options.c
16547 (m_TIGERLAKE): Define.
16548 (m_COOPERLAKE): Ditto.
16549 (m_CORE_AVX512): Ditto.
16550 (processor_cost_table): Add cascadelake.
16551 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16552 * config/i386/i386.h
16553 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16554 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16555 (PTA_MOVDIRI): Ditto.
16556 (PTA_MOVDIR64B): Ditto.
16557 (PTA_COOPERLAKE): Ditto.
16558 (PTA_TIGERLAKE): Ditto.
16559 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16560 * doc/extend.texi: Add tigerlake and cooperlake.
16561 * doc/invoke.texi: Add tigerlake and cooperlake.
16563 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16565 * doc/install.texi (Specific, alpha): Remove note to use
16566 binutils 2.11.2 or later.
16568 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16570 PR middle-end/89544
16571 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16574 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16576 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16577 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16578 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16579 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16580 * config/aarch64/constraints.md (Dt): New constraint
16581 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16583 2019-08-19 Richard Biener <rguenther@suse.de>
16585 PR tree-optimization/91403
16586 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16587 cases we can handle with tail-recursion...
16588 (follow_ssa_edge_expr): ... here. Do so.
16590 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16593 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16594 implemented for -fsanitize=kernel-address, and merge check logic
16595 with -fsanitize=address.
16597 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16599 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16600 for cpu and machine. Factor 64/32b builtins.
16602 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16604 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16605 gone, point to sourceforge.net.
16607 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16609 * doc/ux.texi (User Experience Guidelines): Update reference.
16611 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16613 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16616 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16618 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16619 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16621 2019-08-16 Martin Sebor <msebor@redhat.com>
16623 * tree.def (TYPE_SIZE): Clarify.
16624 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16626 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16628 PR tree-optimization/91109
16629 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16630 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16631 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16633 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16635 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16636 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16637 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16638 (uavg<mode>3_ceil): New expander.
16639 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16640 mode iterator when creating CONST1_RTX.
16641 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16642 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16643 mode iterator for const1_operand predicate.
16645 2019-08-16 Richard Biener <rguenther@suse.de>
16647 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16648 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16650 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16651 (analyze_evolution_in_loop): Likewise.
16652 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16653 (follow_ssa_edge_expr): ... here. Refactor code.
16655 2019-08-16 Richard Biener <rguenther@suse.de>
16658 * config/i386/i386-features.c
16659 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16661 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16664 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16665 only if subst_name matches curr_attr string.
16667 2019-08-16 Richard Biener <rguenther@suse.de>
16669 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16670 stmt at gsi_p, instead replace it with a NOP removed later.
16671 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16672 that became dead because of that.
16674 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16676 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16677 for which we can't represent a range.
16678 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16680 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16681 Set VR_UNDEFINED if type is not supported.
16682 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16683 * tree-vrp.c (value_range_base::check): Assert that a varying has
16685 (value_range_base::equal_p): Early bail for undefines.
16686 (value_range_base::set_varying): Accept a type.
16687 (value_range::set_varying): Same.
16688 (value_range_base::type): VARYING can have a type, while UNDEFINE
16690 (value_range_base::dump): Print type for VARYING nodes.
16691 (value_range_base::set): Add type to VARYING.
16692 (extract_range_from_multiplicative_op): Pass type to set_varying.
16693 (extract_range_from_binary_expr): Same.
16694 (value_range_base::intersect_helper): Same.
16695 (value_range_base::union_helper): Same.
16696 (value_range_base::normalize_symbolics): Same.
16697 (determine_value_range_1): Same.
16698 * tree-vrp.h (class value_range_base): Add type to set_varying.
16699 Add prototype for dump(void).
16700 Add prototype for supports_type_p.
16701 (class value_range): Add type to set_varying.
16702 Add prototype for dump(void).
16703 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16705 (vr_values::get_lattice_entry): Set varying even if propagation
16707 Pass type to set_varying.
16708 (vr_values::get_value_range): Remove vr_const_varying.
16709 Reallocate the lattice if needed.
16710 (vr_values::update_value_range): Pass type to set_varying.
16711 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16712 (vr_values::extract_range_from_binary_expr): Same.
16713 (vr_values::extract_range_from_unary_expr): Same.
16714 (vr_values::extract_range_from_cond_expr): Same.
16715 (vr_values::check_for_binary_op_overflow): Same.
16716 (vr_values::extract_range_basic): Same.
16717 (vr_values::extract_range_from_assignment): Same.
16718 (vr_values::vr_values): Increase size of num_vr_values.
16719 (vr_values::extract_range_from_phi_node): Pass type to
16722 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16725 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16726 for costs of hard register moves.
16727 (ix86_register_move_cost): Likewise.
16728 * config/i386/i386.h (processor_costs): Move costs of hard
16729 register moves to hard_register. Add int_load, int_store,
16730 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16731 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16732 for costs of RTL expressions.
16733 * config/i386/x86-tune-costs.h: Move costs of hard register
16734 moves to hard_register. Duplicate int_load, int_store,
16735 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16736 sse_load, sse_store for costs of RTL expressions.
16738 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16740 * target.def (setup_incoming_vararg_bounds): Remove.
16741 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16742 * doc/tm.texi: Regenerate.
16743 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16744 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16745 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16746 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16748 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16750 MSP430: Fix lines over 80 characters long in
16751 config/msp430/*.{c,h} files
16753 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16754 specifier in string.
16755 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16756 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16757 redundant old comment.
16758 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16759 Split line more than 80 characters long.
16760 * config/msp430/msp430.c (msp430_option_override): Likewise.
16761 (msp430_return_in_memory): Likewise.
16762 (msp430_gimplify_va_arg_expr): Likewise.
16763 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16764 (msp430_legitimate_constant): Likewise.
16765 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16766 (msp430_attr): Likewise.
16767 (msp430_data_attr): Likewise.
16768 (msp430_start_function): Likewise.
16769 (gen_prefix): Likewise.
16770 (msp430_init_sections): Likewise.
16771 (msp430_select_section): Likewise.
16772 (msp430_function_section): Likewise.
16773 (msp430_unique_section): Likewise.
16774 (msp430_output_aligned_decl_common): Likewise.
16775 (msp430_do_not_relax_short_jumps): Likewise.
16776 (msp430_init_builtins): Likewise.
16777 (msp430_expand_delay_cycles): Likewise.
16778 (msp430_expand_prologue): Likewise.
16779 (msp430_expand_epilogue): Likewise.
16780 (msp430_expand_helper): Likewise.
16781 (msp430_split_movsi): Likewise.
16782 (msp430_print_operand): Likewise.
16783 (msp430_return_addr_rtx): Likewise.
16784 (msp430x_extendhisi): Likewise.
16785 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16786 (ASM_SPEC): Likewise.
16787 Remove very obvious comments.
16788 (LIB_SPEC): Split line more than 80 characters long.
16789 (EH_RETURN_HANDLER_RTX): Likewise.
16790 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16792 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16794 MSP430: Fix whitespace errors and incorrect indentation in
16795 config/msp430/*.{c,h} files
16797 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16798 (msp430_select_hwmult_lib): Likewise.
16799 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16800 (msp430_extract_mcu_data): Likewise.
16801 (struct t_msp430_mcu_data): Likewise.
16802 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16803 before left square bracket.
16804 (msp430_option_override): Fix indentation.
16805 (msp430_hard_regno_nregs_with_padding): Likewise.
16806 (msp430_initial_elimination_offset): Likewise.
16807 (msp430_special_register_convention_p): Remove whitespace before left
16808 square bracket and after exclamation mark.
16809 (msp430_evaluate_arg): Likewise.
16810 (msp430_callee_copies): Fix indentation.
16811 (msp430_gimplify_va_arg_expr): Likewise.
16812 (msp430_function_arg_advance): Remove whitespace before left square
16814 (reg_ok_for_addr): Likewise.
16815 (msp430_preserve_reg_p): Likewise.
16816 (msp430_compute_frame_info): Likewise.
16817 (msp430_asm_output_addr_const_extra): Add space between function name
16818 and open parenthesis.
16819 (has_section_name): Fix indentation.
16820 (msp430_attr): Remove trailing whitespace.
16821 (msp430_section_attr): Likewise.
16822 (msp430_data_attr): Likewise.
16823 (struct msp430_attribute_table): Fix comment and whitespace.
16824 (msp430_start_function): Remove whitespace before left square bracket.
16825 Add space between function name and open parenthesis.
16826 (msp430_select_section): Remove trailing whitespace.
16827 (msp430_section_type_flags): Remove trailing whitespace.
16828 (msp430_unique_section): Remove space before closing parenthesis.
16829 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16830 (msp430_builtins): Remove whitespace before left square bracket.
16831 (msp430_init_builtins): Fix indentation.
16832 (msp430_expand_prologue): Remove whitespace before left square bracket.
16833 Remove space before closing parenthesis.
16834 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16835 (msp430_split_movsi): Remove space before closing parenthesis.
16836 (helper_function_name_mappings): Fix indentation.
16837 (msp430_use_f5_series_hwmult): Fix whitespace.
16838 (use_32bit_hwmult): Likewise.
16839 (msp430_no_hwmult): Likewise.
16840 (msp430_output_labelref): Remove whitespace before left square bracket.
16841 (msp430_print_operand_raw): Likewise.
16842 (msp430_print_operand_addr): Likewise.
16843 (msp430_print_operand): Add two spaces after '.' in comment.
16844 Fix trailing whitespace.
16845 (msp430x_extendhisi): Fix indentation.
16846 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16848 (PC_REGNUM): Likewise.
16849 (STACK_POINTER_REGNUM): Likewise.
16850 (CC_REGNUM): Likewise.
16852 2019-08-15 Richard Biener <rguenther@suse.de>
16855 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16857 (general_scalar_chain::make_vector_copies): Use it.
16859 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16861 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16863 2019-08-15 Martin Liska <mliska@suse.cz>
16865 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16866 operators with no arguments.
16867 (eliminate_unnecessary_stmts): Likewise here.
16869 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16871 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16872 <case COMPARE>: Revert 2019-08-14 change.
16873 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16874 for (TARGET_64BIT || mode != DImode).
16876 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16878 * tree-vrp.c (value_range_base::set): Merge in code from
16879 value_range_base::set_and_canonicalize.
16880 Enforce canonicalization at set time.
16881 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16882 (value_range_base::set_undefined): Inline call to set().
16883 (value_range_base::set_varying): Same.
16884 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16885 (vrp_val_max): New argument handle_pointers.
16886 (vrp_val_min): Same.
16887 (ranges_from_anti_range): Same.
16888 (extract_range_into_wide_ints): Use tree argument instead of sign
16890 (extract_range_from_multiplicative_op): Take in tree type instead
16891 of precision and sign. Adapt function for canonicalized ranges.
16892 (extract_range_from_binary_expr): Pass type to
16893 extract_range_from_multiplicative_op.
16894 Adapt for canonicalized ranges.
16895 (extract_range_from_unary_expr): Same.
16896 (value_range_base::intersect_helper): Adjust for canonicalized
16898 (value_range_base::union_helper): Same.
16899 (value_range_base::normalize_symbolics): New.
16900 * tree-vrp.h (class value_range_base): Remove
16901 set_and_canonicalize.
16902 New prototype for normalize_symbolics.
16903 (class value_range): Remove set_and_canonicalize.
16904 (vrp_val_min): Adjust prototype.
16905 (vrp_val_max): Same.
16907 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16908 instead of set_and_canonicalize.
16910 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16912 PR middle-end/91444
16913 * tree-vect-stmts.c (vectorizable_call): Check that the function
16914 is a BUILT_IN_MD function before passing it to
16915 targetm.vectorize.builtin_md_vectorized_function.
16917 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16919 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16920 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16921 (aarch64_select_early_remat_modes): Use it.
16923 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16925 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16926 16 for SVE predicates even if they are fixed-length.
16928 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16930 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16931 operand order match the MOV /Z alias.
16933 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16935 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16936 the vector pattern as an aarch64_svpattern argument. Update the
16937 overloaded caller accordingly.
16938 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16939 (aarch64_output_sve_vector_inc_dec): Likewise.
16941 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16943 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16944 multiplication case, try to compute VG * (lowest set bit) directly
16945 rather than always basing the multiplication on VG. Use
16946 expand_mult for the multiplication if we can.
16948 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16950 * config/aarch64/aarch64-protos.h
16951 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16952 (aarch64_sve_inc_dec_immediate_p): Rename to...
16953 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16954 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16955 (aarch64_output_sve_scalar_inc_dec): Declare.
16956 (aarch64_output_sve_inc_dec_immediate): Rename to...
16957 (aarch64_output_sve_vector_inc_dec): ...this.
16958 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16959 (aarch64_output_sve_scalar_inc_dec): New functions.
16960 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16961 arguments. Only handle true ADDVL and ADDPL instructions;
16962 don't emit an INC or DEC.
16963 (aarch64_sve_inc_dec_immediate_p): Rename to...
16964 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16965 (aarch64_output_sve_inc_dec_immediate): Rename to...
16966 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16967 aarch64_sve_vector_inc_dec_immediate_p.
16968 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16969 (aarch64_sve_plus_immediate): New predicates.
16970 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16971 rather than aarch64_sve_addvl_addpl_immediate.
16972 (aarch64_sve_inc_dec_immediate): Rename to...
16973 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16974 aarch64_sve_vector_inc_dec_immediate_p.
16975 (aarch64_sve_add_operand): Update accordingly.
16976 * config/aarch64/constraints.md (Uai): New constraint.
16977 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16978 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16979 operand into a register if it satisfies aarch64_sve_plus_immediate.
16980 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16981 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16982 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16983 aarch64_output_sve_vector_inc_dec instead of
16984 aarch64_output_sve_inc_dec_immediate.
16986 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16988 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16989 (UNSPEC_REVW): New constants.
16990 (elem_bits): New mode attribute.
16991 (SVE_INT_UNARY): New int iterator.
16992 (optab): Handle UNSPEC_REV[BHW].
16993 (sve_int_op): New int attribute.
16994 (min_elem_bits): Handle VNx16QI and the predicate modes.
16995 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16996 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16997 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16998 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16999 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
17000 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
17001 unspecs based on the total width of the reversed data.
17002 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
17003 reinterpret followed by a subreg on big-endian targets.
17005 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17006 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17008 * config/aarch64/aarch64-sve.md
17009 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
17010 alternatives in which one of the inputs is in the same register
17013 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17015 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
17016 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
17018 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17020 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
17021 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
17023 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17024 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17026 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
17027 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
17028 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
17030 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17031 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17033 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
17034 Add an alternative that uses reversed shifts.
17036 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17038 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
17041 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17043 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
17044 a commutativity marker.
17046 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17047 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17049 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
17050 (aarch64_prepare_sve_cond_int_fma): Declare.
17051 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
17052 (aarch64_prepare_sve_int_fma): New functions.
17053 (aarch64_prepare_sve_cond_int_fma): Likewise.
17054 * config/aarch64/aarch64-sve.md
17055 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
17056 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
17057 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
17058 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
17059 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
17060 (*madd<mode>): Rename to...
17061 (*fma<mode>4): ...this.
17062 (*msub<mode>): Rename to...
17063 (*fnma<mode>4): ...this.
17065 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17066 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17068 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
17069 Print 2.0 naturally.
17070 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
17071 * config/aarch64/predicates.md
17072 (aarch64_sve_float_negated_arith_immediate): New predicate,
17073 renamed from aarch64_sve_float_arith_with_sub_immediate.
17074 (aarch64_sve_float_arith_with_sub_immediate): Test for both
17075 positive and negative constants.
17076 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
17077 or an aarch64_sve_float_arith_with_sub_immediate.
17078 * config/aarch64/constraints.md (vsN): Use
17079 aarch64_sve_float_negated_arith_immediate.
17080 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
17082 (sve_pred_fp_rhs2_immediate): New int attribute.
17083 * config/aarch64/aarch64-sve.md
17084 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
17085 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
17086 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
17087 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
17088 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
17089 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
17091 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17092 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17094 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
17095 (*aarch64_cond_abd<SVE_F:mode>_3)
17096 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
17098 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17099 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17101 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
17102 (*aarch64_cond_<su>abd<mode>_any): New patterns.
17104 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17105 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17107 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
17108 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
17109 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
17110 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
17112 * optabs.h (create_convert_operand_from): Expand comment.
17113 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
17114 when mapping scalar rtxes to vector operands.
17115 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
17116 ashiftrt and lshiftrt.
17117 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
17118 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
17119 (*cond_<optab><mode>_any_const): New patterns.
17121 2019-08-15 Martin Liska <mliska@suse.cz>
17124 * cgraph.c (cgraph_node::remove): When setting
17125 n->origin = NULL for all nested functions, reset
17128 2019-08-15 Martin Liska <mliska@suse.cz>
17130 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
17133 2019-08-15 Martin Liska <mliska@suse.cz>
17136 * passes.c (order): Remove.
17137 (uid_hash_t): Likewise).
17138 (remove_cgraph_node_from_order): Remove from set
17139 of pointers (cgraph_node *).
17140 (insert_cgraph_node_to_order): New.
17141 (duplicate_cgraph_node_to_order): New.
17142 (do_per_function_toporder): Register all 3 cgraph hooks.
17143 Skip removed_nodes now as we know about all of them.
17145 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
17147 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
17148 <case E_V8QImode>: Use vector_set path for
17149 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17150 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
17151 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17153 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17155 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
17157 2019-08-14 Martin Sebor <msebor@redhat.com>
17159 PR tree-optimization/91294
17160 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
17161 source length as exact.
17163 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
17165 * doc/extend.texi: Add "noinit" attribute documentation.
17166 * doc/sourcebuild.texi: Add noinit effective target documentation.
17167 * varasm.c (default_section_type_flags): Add support for "noinit"
17169 (default_elf_select_section): Add support for "noinit" attribute.
17170 * config/msp430/msp430.c (msp430_attribute_table): Remove
17173 2019-08-14 Richard Biener <rguenther@suse.de>
17174 Uroš Bizjak <ubizjak@gmail.com>
17177 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
17179 (scalar_chain::smode): New member.
17180 (scalar_chain::vmode): Likewise.
17181 (dimode_scalar_chain): Rename to...
17182 (general_scalar_chain): ... this.
17183 (general_scalar_chain::general_scalar_chain): Take mode arguments.
17184 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
17185 base with TImode and V1TImode.
17186 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
17187 (general_scalar_chain::vector_const_cost): Adjust for SImode
17189 (general_scalar_chain::compute_convert_gain): Likewise. Add
17190 {S,U}{MIN,MAX} support.
17191 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
17192 (general_scalar_chain::make_vector_copies): Likewise. Handle
17193 non-DImode chains appropriately.
17194 (general_scalar_chain::convert_reg): Likewise.
17195 (general_scalar_chain::convert_op): Likewise.
17196 (general_scalar_chain::convert_insn): Likewise. Add
17197 fatal_insn_not_found if the result is not recognized.
17198 (convertible_comparison_p): Pass in the scalar mode and use that.
17199 (general_scalar_to_vector_candidate_p): Likewise. Rename from
17200 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
17201 (scalar_to_vector_candidate_p): Remove by inlining into single
17203 (general_remove_non_convertible_regs): Rename from
17204 dimode_remove_non_convertible_regs.
17205 (remove_non_convertible_regs): Remove by inlining into single caller.
17206 (convert_scalars_to_vector): Handle SImode and DImode chains
17207 in addition to TImode chains.
17208 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
17209 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
17210 (*<maxmin>di3_doubleword): Likewise.
17212 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17213 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17215 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17216 (*cond_bic<mode>_any): New patterns.
17218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17220 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17221 take the equivalent mask, as well as a bit count.
17222 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17223 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17224 (aarch64_sve_pred_and_operand): New predicates.
17225 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17227 * config/aarch64/aarch64-sve.md
17228 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17229 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17231 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17233 * config/aarch64/aarch64-sve.md
17234 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17235 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17239 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17241 * config/aarch64/aarch64-sve.md
17242 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17243 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17245 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17246 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17248 * config/aarch64/aarch64-sve.md
17249 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17250 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17252 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17254 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17255 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17258 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17259 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17261 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17263 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17264 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17266 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17267 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17268 (aarch64_print_operand): Add support for %I.
17269 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17270 Bitcast floating-point constants to the corresponding integer constant.
17271 (aarch64_float_const_representable_p): Handle vectors as well
17273 (aarch64_expand_sve_vcond): Make sure that the operands are valid
17274 for the new vcond_mask_<mode><vpred> expander.
17275 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17276 test aarch64_float_const_representable_p.
17277 (aarch64_sve_reg_or_dup_imm): New predicate.
17278 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17279 gen_vcond_mask_<mode><vpred> instead of
17280 gen_aarch64_sve_dup<mode>_const.
17281 (vcond_mask_<mode><vpred>): Turn into a define_expand that
17282 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17283 for operands 1 and 2 respectively. Force operand 2 into a
17284 register if operand 1 is a register. Fold old define_insn...
17285 (aarch64_sve_dup<mode>_const): ...and this define_insn...
17286 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
17287 floating-point constants that can be moved as integers. Add
17288 alternatives for MOV /M and FMOV /M.
17289 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17290 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17291 1 and 2 respectively.
17292 * config/aarch64/constraints.md (Ufc): Handle vectors as well
17294 (vss): New constraint.
17296 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17298 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17299 (aarch64_sve_float_maxmin_operand): New predicates.
17300 * config/aarch64/constraints.md (vsB): New constraint.
17302 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17303 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17304 UNSPEC_COND_FMINNM.
17305 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17306 Use aarch64_sve_float_maxmin_operand for operand 2.
17307 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17308 Add alternatives for the constant forms.
17310 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17312 * config/aarch64/constraints.md (vsb): New constraint.
17313 (vsm): Generalize description.
17314 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17316 (sve_imm_con): Handle smax, smin, umax and umin.
17317 (sve_imm_prefix): New code attribute.
17318 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17319 (aarch64_sve_vsb_operand): New predicates.
17320 (aarch64_sve_mul_immediate): Rename to...
17321 (aarch64_sve_vsm_immediate): ...this.
17322 (aarch64_sve_mul_operand): Rename to...
17323 (aarch64_sve_vsm_operand): ...this.
17324 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17325 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17326 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17327 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17328 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17329 add movprfx support for the immediate alternatives.
17330 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17332 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17335 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17337 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17338 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17339 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17341 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17343 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17344 (optab, sve_int_op): Handle them.
17345 * config/aarch64/aarch64-sve.md: Expand comment.
17347 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17349 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17350 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17351 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17353 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17355 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17356 (aarch64_expand_sve_const_pred_trn): New functions.
17357 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17358 use the above functions when the parameter is true.
17359 (aarch64_expand_sve_const_pred): Update call accordingly.
17360 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17362 (@aarch64_sve_<perm_insn><mode>): ...this.
17364 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17366 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17368 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17369 (aarch64_sve_emit_int_cmp): New functions.
17370 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17371 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17372 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17373 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17374 (UNSPEC_PRED_Z): New unspec.
17375 (set_clobber_cc_nzc): Delete.
17376 * config/aarch64/aarch64-sve.md: Add a block comment about
17378 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17379 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17380 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17381 UNSPEC_MERGE_PTRUE.
17382 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17383 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17384 check for compatible predicates.
17385 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17386 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17387 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17390 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17392 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17393 * config/aarch64/aarch64-sve.md: Add a section describing it.
17394 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17395 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17396 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17397 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17398 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17399 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17400 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17401 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17402 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17403 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17404 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17405 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17406 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17407 (aarch64_evpc_rev_local): Update accordingly.
17409 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17411 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17413 (SVE_BHSI, SVE_SDI): Tweak comment.
17414 (SVE_HSDI): Likewise. Fix definition.
17415 (SVE_SDF): New mode iterator.
17416 (elem_bits): New mode attribute.
17417 (SVE_COND_FCVT): New int iterator.
17418 * config/aarch64/aarch64-sve.md
17419 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17420 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17421 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17422 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17423 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17424 ...these new patterns.
17425 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17426 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17427 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17429 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17430 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17431 ...these new patterns.
17432 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17433 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17434 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17435 ...this new pattern.
17436 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17437 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17438 ...this new pattern.
17439 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17441 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17443 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17444 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17445 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17447 (optab, su): Handle them.
17448 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17449 * config/aarch64/aarch64-sve.md
17450 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17451 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17452 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17453 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17454 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17455 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17456 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17457 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17458 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17460 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17461 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17462 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17463 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17464 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17465 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17466 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17467 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17468 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17469 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17470 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17471 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17472 of UNSPEC_FLOAT_CONVERT.
17473 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17474 aarch64_sve_extend<mode><Vwide>2.
17476 2019-08-14 Richard Biener <rguenther@suse.de>
17479 * config/i386/i386-features.c
17480 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17481 individual instruction gain. Fix reg-reg copy GRP cost. Use
17482 ix86_cost->sse_op for vector instruction costs.
17484 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17486 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17487 (cmp_op): Handle it.
17488 (SVE_COND_FP_CMP): Rename to...
17489 (SVE_COND_FP_CMP_I0): ...this.
17490 (SVE_FP_CMP): Remove.
17491 * config/aarch64/aarch64-sve.md
17492 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17493 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17494 using unspecs to represent the comparison.
17495 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17496 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17498 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17499 (aarch64_unspec_cond_code): Move after integer code. Handle
17501 (aarch64_emit_sve_predicated_cond): Replace with...
17502 (aarch64_emit_sve_fp_cond): ...this new function.
17503 (aarch64_emit_sve_or_conds): Replace with...
17504 (aarch64_emit_sve_or_fp_conds): ...this new function.
17505 (aarch64_emit_sve_inverted_cond): Replace with...
17506 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17507 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17509 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17511 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17512 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17513 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17514 SVE_HSD instead of SVE_SD.
17516 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17517 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17519 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17521 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17523 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17524 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17525 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17526 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17527 (*div<SVE_F:mode>3): Generalize to...
17528 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17530 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17531 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17533 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17535 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17537 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17539 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17541 * config/aarch64/aarch64-sve.md: Add a block comment about the
17542 handling of predicated FP operations.
17543 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17544 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17545 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17546 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17547 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17549 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17550 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17552 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17553 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17554 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17555 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17556 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17557 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17558 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17559 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17560 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17561 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17562 strictness operands. Use aarch64_sve_pred_dominates_p to check
17563 whether the predicate on the conditional operation is suitable
17564 for merging. Split patterns into the canonical equal-predicate form.
17565 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17566 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17568 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17569 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17571 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17572 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17573 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17575 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17576 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17579 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17580 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17582 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17583 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17584 actually has, rather than relying on REG_EQUAL notes.
17585 Make the insn operand order match the SVE operand order.
17586 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17587 the SVE operand order.
17589 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17591 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17592 (aarch64_emit_set_immediate): Likewise.
17593 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17594 (aarch64_pfalse_reg): Likewise.
17595 (aarch64_convert_sve_data_to_pred): New function.
17596 (aarch64_sve_move_pred_via_while): Take an optional target register
17597 and the required register mode.
17598 (aarch64_expand_sve_const_pred_1): New function.
17599 (aarch64_expand_sve_const_pred): Likewise.
17600 (aarch64_expand_mov_immediate): Build an all-true predicate
17601 if the significant bits of the immediate are all true. Use
17602 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17603 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17604 before register allocation.
17605 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17606 a VNx16BI PTRUE when splitting the memory alternative.
17607 (vec_duplicate<mode>): Update accordingly.
17608 (*pred_cmp<cmp_op><mode>): Rename to...
17609 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17611 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17613 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17614 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17615 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17616 (UNSPEC_PTEST): New unspec.
17617 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17618 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17619 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17620 * config/aarch64/aarch64-sve.md: Add a new section describing the
17621 handling of UNSPEC_PTEST.
17622 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17623 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17624 (ptest_ptrue<mode>): Replace with...
17625 (aarch64_ptest<mode>): ...this new pattern.
17626 (cbranch<mode>4): Update after above changes.
17627 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17628 UNSPEC_PTEST_PTRUE.
17629 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17630 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17631 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17633 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17636 * builtins.c (builtin_with_linkage_p): New function.
17637 * builtins.h (builtin_with_linkage_p): New function.
17638 * symtab.c (write_symbol): Remove redundant assert.
17639 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17640 Remove FIXME and use builtin_with_linkage_p.
17642 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17644 PR middle-end/91421
17645 * tree-core.h (function_decl::function_code): Change type to
17647 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17648 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17649 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17650 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17651 is BUILT_IN_NORMAL.
17652 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17653 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17654 (fndecl_built_in_p): Change the type of the "name" argument to
17656 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17657 after check for DECL_BUILT_IN_CLASS.
17658 * cgraphclones.c (build_function_decl_skip_args): Use
17659 set_decl_built_in_function.
17660 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17661 * ipa-split.c (split_function): Likewise.
17662 * langhooks.c (add_builtin_function_common): Likewise.
17663 * omp-simd-clone.c (simd_clone_create): Likewise.
17664 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17665 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17666 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17667 DECL_FUNCTION_CODE.
17668 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17669 instead of DECL_FUNCTION_CODE.
17670 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17671 instead of DECL_FUNCTION_CODE.
17672 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17673 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17674 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17675 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17676 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17677 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17678 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17679 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17680 (alpha_gimple_fold_builtin): Likewise.
17681 * config/arc/arc.c (arc_expand_builtin): Likewise.
17682 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17683 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17684 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17685 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17686 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17687 * config/frv/frv.c (frv_expand_builtin): Likewise.
17688 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17689 (gcn_expand_builtin): Likewise.
17690 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17691 (fold_builtin_cpu): Likewise.
17692 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17693 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17694 (ix86_gimple_fold_builtin): Likewise.
17695 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17696 (ia64_expand_builtin): Likewise.
17697 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17698 * config/mips/mips.c (mips_expand_builtin): Likewise.
17699 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17700 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17701 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17702 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17703 * config/pa/pa.c (pa_expand_builtin): Likewise.
17704 * config/pru/pru.c (pru_expand_builtin): Likewise.
17705 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17706 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17708 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17709 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17710 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17711 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17712 (rs6000_builtin_reciprocal): Likewise.
17713 * config/rx/rx.c (rx_expand_builtin): Likewise.
17714 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17715 * config/s390/s390.c (s390_expand_builtin): Likewise.
17716 * config/sh/sh.c (sh_expand_builtin): Likewise.
17717 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17718 (sparc_fold_builtin): Likewise.
17719 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17720 * config/spu/spu.c (spu_expand_builtin): Likewise.
17721 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17722 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17723 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17724 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17725 (xtensa_expand_builtin): Likewise.
17727 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17729 PR middle-end/91421
17730 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17731 before the DECL_FUNCTION_CODE.
17732 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17733 to check for a BUILT_IN_ALLOCA call.
17734 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17735 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17736 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17737 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17738 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17739 for BUILT_IN_NORMAL functions.
17740 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17741 test for BUILT_IN_TM_ABORT.
17742 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17743 to check for a BUILT_IN_STACK_RESTORE call.
17744 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17745 * tree-ssa-threadedge.c
17746 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17747 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17748 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17749 test for a BUILT_IN_NORMAL call instead of a negative test for
17750 an internal function call.
17752 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17754 * tree.h (build_vector_a_then_b): Declare.
17755 * tree.c (build_vector_a_then_b): New function.
17756 * fold-const-call.c (fold_while_ult): Likewise.
17757 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17758 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17759 (aarch64_svpattern): New enum.
17760 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17761 constants through aarch64_expand_mov_immediate.
17762 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17763 than general_operand as the predicate for operand 1.
17764 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17765 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17767 (simd_immediate_info::simd_immediate_info): New overload that
17768 takes a scalar_int_mode and an svpattern.
17769 (simd_immediate_info::u): Add a "pattern" field.
17770 (svpattern_token): New function.
17771 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17772 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17773 (aarch64_sve_move_pred_via_while): New functions.
17774 (aarch64_expand_mov_immediate): Try using
17775 aarch64_sve_move_pred_via_while for predicates that contain N ones
17776 followed by M zeros but that do not correspond to a VLnnn pattern.
17777 (aarch64_sve_pred_valid_immediate): New function.
17778 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17779 with PTRUE and PFALSE.
17780 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17783 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17785 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17787 (darwin_override_options): Likewise.
17788 * config/darwin.h: Likewise.
17789 * config/darwin.opt: Likewise.
17790 * config/i386/i386.c (output_pic_addr_const): Likewise.
17791 * config/rs6000/darwin.h: Likewise.
17792 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17793 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17794 ... this TARGET_MACHO_SYMBOL_STUBS.
17795 (FUNCTION_PROFILER):Likewise.
17796 * config/i386/i386.h: Likewise.
17798 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17800 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17801 <case E_V2SImode>: Use vec_extr path for
17802 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17803 <case E_V8QImode>: Ditto.
17804 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17805 Use SWI48 mode iterator. Use %k to output operand 0.
17806 (*mmx_pextrw): New insn pattern.
17807 (*mmx_pextrb): Ditto.
17808 (*mmx_pextrb_zext): Ditto.
17810 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17812 * target.def (libc_has_function, libc_has_fast_function): Improve
17813 documentation strings.
17814 * doc/tm.texi: Regenerate.
17816 2019-08-13 Caroline Tice <cmtice@google.com>
17819 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17820 vtv_end.o or vtv_end_preinit.o files if !static.
17822 2019-08-13 Olivier Hainque <hainque@adacore.com>
17824 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17826 2019-08-13 Olivier Hainque <hainque@adacore.com>
17828 * rtlanal.c (tablejump_casesi_pattern): New function, to
17829 determine if a tablejump insn is a casesi dispatcher. Extracted
17830 from patch_jump_insn.
17831 * rtl.h (tablejump_casesi_pattern): Declare.
17832 * cfgrtl.c (patch_jump_insn): Use it.
17833 * dwarf2cfi.c (create_trace_edges): Use it.
17835 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17838 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17839 operand is larger than a long int.
17841 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17843 * machmode.h (opt_mode::else_mode): New function.
17844 (opt_mode::else_blk): Use it.
17845 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17846 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17847 (aarch64_gen_stepped_int_parallel): Likewise.
17848 (aarch64_stepped_int_parallel_p): Likewise.
17849 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17851 * config/aarch64/aarch64.c
17852 (aarch64_expand_sve_widened_duplicate): Delete.
17853 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17854 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17855 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17856 argument. Use early returns in the !CONST_INT_P handling.
17857 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17858 than handling some inline.
17859 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17861 (aarch64_simd_container_mode): ...here.
17862 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17863 (aarch64_sve_ld1rq_operand_p): New functions.
17864 * config/aarch64/predicates.md (descending_int_parallel)
17865 (aarch64_sve_ld1rq_operand): New predicates.
17866 * config/aarch64/constraints.md (UtQ): New constraint.
17867 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17868 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17869 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17870 (@aarch64_sve_reinterpret<mode>): New expander.
17871 (*aarch64_sve_reinterpret<mode>): New pattern.
17872 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17873 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17874 (*sve_ld1rq<Vesize>): Replace with...
17875 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17877 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17879 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17882 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17884 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17885 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17886 (msp430_check_path_for_devices): New.
17887 (parse_devices_csv_1): New.
17888 (parse_devices_csv): New.
17889 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17890 MCU data in devices.csv before using the hard-coded data.
17891 Warn if devices.csv isn't found and the MCU wasn't found in the
17892 hard-coded data either.
17893 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17894 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17895 Search for devices.csv on -I and -L paths.
17896 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17897 msp430_set_driver_var.
17898 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17899 -mdevices-csv-loc=.
17900 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17901 searched for devices.csv.
17902 (mwarn-devices-csv): Document option.
17904 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17906 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17907 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17908 Use a single Dn alternative instead of separate Dz and Dm
17909 alternatives. Use aarch64_output_sve_move_immediate.
17910 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17912 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17913 for predicates too.
17914 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17915 (aarch64_output_ptrue): Delete.
17917 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17919 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17921 (simd_immediate_info::value, simd_immediate_info::step)
17922 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17924 (simd_immediate_info::u): ...this new union.
17925 (simd_immediate_info::simd_immediate_info): Update accordingly.
17926 (aarch64_output_simd_mov_immediate): Likewise.
17927 (aarch64_output_sve_mov_immediate): Likewise.
17929 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17931 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17933 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17934 (msp430_select_cpu): New spec function.
17935 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17937 * config/msp430/msp430-devices.c: New file.
17938 * config/msp430/msp430-devices.h: New file.
17939 * config/msp430/msp430.c: Remove msp430_mcu_data.
17940 (msp430_option_override): Use msp430_extract_mcu_data to extract
17942 (msp430_use_f5_series_hwmult): Likewise.
17943 (use_32bit_hwmult): Likewise.
17944 (msp430_no_hwmult): Likewise.
17945 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17947 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17949 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17950 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17951 Remove hard-coded MCU multilib data.
17953 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17955 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17956 based on the mode instead of testing properties of it.
17958 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17960 * doc/md.texi: Document the x and y constraints for AArch64.
17961 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17962 (FP_LO8_REGS): New reg_class.
17963 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17964 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17965 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17966 * config/aarch64/predicates.md (aarch64_simd_register): Use
17967 FP_REGNUM_P instead of checking the classes manually.
17968 * config/aarch64/constraints.md (y): New constraint.
17970 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17972 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17973 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17974 * config/aarch64/aarch64-simd.md
17975 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17976 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17977 from the asm template.
17978 * config/aarch64/aarch64-sve.md
17979 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17980 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17981 from the asm template.
17982 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17983 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17984 from the asm template.
17985 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17987 2019-08-13 Martin Liska <mliska@suse.cz>
17989 * value-prof.c (gimple_ic_transform): Add new line.
17990 Print details with MSG_NOTE.
17992 2019-08-13 Martin Liska <mliska@suse.cz>
17994 * doc/invoke.texi: Document automatic detection of jobserver.
17995 * lto-wrapper.c (run_gcc): Detect jobserver always.
17997 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17999 * config/i386/i386-expand.c (ix86_expand_vector_set)
18000 <case E_V2SImode>: Use vec_merge path for
18001 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
18002 <case E_V8QImode>: Ditto.
18003 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
18004 (*mmx_pinsrb): Ditto.
18006 2019-08-12 Jakub Jelinek <jakub@redhat.com>
18010 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
18011 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
18012 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
18013 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
18014 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
18016 2019-08-12 Richard Biener <rguenther@suse.de>
18019 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
18022 2019-08-12 Richard Biener <rguenther@suse.de>
18025 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
18026 lang_mask option, always use CL_DRIVER.
18027 (get_options_from_collect_gcc_options): Adjust.
18028 (find_and_merge_options): Likewise.
18029 (run_gcc): Likewise.
18031 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18033 * ipa-predicate.c (add_condition): Restore inverted test.
18035 2019-08-10 Jakub Jelinek <jakub@redhat.com>
18037 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
18038 (enum omp_clause_device_type_kind): New enum.
18039 (struct tree_omp_clause): Add subcode.device_type_kind.
18040 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
18041 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18042 for device_type clause.
18043 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
18044 * tree-pretty-print.c (dump_omp_clause): Likewise.
18047 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
18050 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
18052 * reload1.c (finish_spills): Do not check ira_conflicts_p when
18053 handling spilled pseudos.
18055 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
18058 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
18059 to preserve the contents of the original insns.
18061 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
18063 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
18064 (addsi3_compare_op2): Likewise.
18066 2019-08-09 Martin Liska <mliska@suse.cz>
18068 * alias.c (alias_ptr_types_compatible_p): Strengten
18069 type comparison in LTO mode.
18071 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
18073 PR middle-end/90313
18074 * tree-tailcall.c (find_tail_calls): Reject calls that might
18075 read from an escaped RESULT_DECL.
18077 2019-08-09 Martin Liska <mliska@suse.cz>
18079 * doc/invoke.texi: Document the option value.
18080 * lto-wrapper.c (run_gcc): Set auto_parallel
18081 only with -flto=auto.
18083 2019-08-09 Martin Liska <mliska@suse.cz>
18085 * opts.c (common_handle_option): Error for an invalid argument
18088 2019-08-09 Martin Liska <mliska@suse.cz>
18090 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
18091 use dump_printf to report optimization.
18092 (sem_variable::merge): Likwise.
18093 (sem_item_optimizer::merge_classes): Use dump_printf to report
18096 2019-08-09 Martin Liska <mliska@suse.cz>
18098 * value-prof.c (gimple_divmod_fixed_value_transform):
18099 Use dump_printf_loc.
18100 (gimple_mod_pow2_value_transform): Likewise.
18101 (gimple_mod_subtract_transform): Likewise.
18102 (init_node_map): Likewise.
18103 (gimple_ic_transform): Likewise.
18104 (gimple_stringops_transform): Likewise.
18106 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
18108 * doc/extend.texi: Add const qualifier to ld intrinsics.
18110 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
18112 * config/rs6000/dfp.md (D64_D128): Rename to ...
18113 (DDTD): ... this, throughout.
18114 (dfp_suffix): Rename to ...
18115 (q): ... this, throughout.
18117 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
18119 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
18120 (dfp_suffix): Ditto.
18121 (adddd3, addtd3): Merge to ...
18122 (add<mode>3 for D64_D128): ... this.
18123 (subdd3, subtd3): Merge to ...
18124 (sub<mode>3 for D64_D128): ... this.
18125 (muldd3, multd3): Merge to ...
18126 (mul<mode>3 for D64_D128): ... this.
18127 (divdd3, divtd3): Merge to ...
18128 (div<mode>3 for D64_D128): ... this.
18129 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
18130 (*cmp<mode>_internal1 for D64_D128): ... this.
18131 (ftruncdd2, ftrunctd2): Merge to ...
18132 (ftrunc<mode>2 for D64_D128): ... this.
18133 (fixdddi2, fixtddi2): Merge to ...
18134 (fix<mode>di2 for D64_D128): ... this.
18136 2019-08-08 Jim Wilson <jimw@sifive.com>
18139 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
18140 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
18141 Pass into recursive call.
18142 (riscv_flatten_aggregate_argument): New arg. Pass to
18143 riscv_flatten_aggregate_field.
18144 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
18145 riscv_flatten_aggregate_argument twice, with false and true as last
18146 arg. Process result twice. Compare results and warn if different.
18147 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
18149 2019-08-08 Martin Liska <mliska@suse.cz>
18152 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
18153 * lto-wrapper.c (jobserver_active_p): Likewise.
18155 2019-08-08 Martin Liska <mliska@suse.cz>
18157 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
18158 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
18159 (create_version_clone_with_body): Likewise.
18161 2019-08-08 Jakub Jelinek <jakub@redhat.com>
18163 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
18164 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
18165 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
18166 GOVD_EXPLICIT flags.
18167 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
18168 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
18169 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
18170 call install_var_field with mask 11 instead of 3.
18171 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
18172 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
18174 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18176 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
18177 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
18179 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18181 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
18182 MOVPRFX alternatives. Make the GPR alternatives more expensive
18185 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18187 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
18188 Disparage the GPR alternative relative to the FPR one.
18189 Fix handling of 8-bit and 16-bit FPR values.
18191 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18193 * config/aarch64/iterators.md (BITWISEV): Delete.
18194 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
18195 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
18196 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18197 UNSPEC_FMINNMV, UNSPEC_FMINV.
18198 (bit_reduc_op): Delete.
18199 (sve_int_op): New int attribute.
18200 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18201 UNSPEC_FMINNMV, UNSPEC_FMINV.
18202 * config/aarch64/aarch64-sve.md
18203 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18204 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18205 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
18206 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
18207 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
18208 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
18210 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
18211 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
18212 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
18213 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18214 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18217 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18219 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18220 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18221 (fms<mode>4, *fms<mode>4): Replace with...
18222 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18223 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18224 Use unspecs instead of rtx codes.
18225 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18226 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18228 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18230 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18232 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18233 * config/aarch64/aarch64-sve.md
18234 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18235 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18236 use a single unspec for the rhs.
18237 (*<su><maxmin><mode>3): Delete.
18238 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18240 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18242 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18243 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18244 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18245 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18246 (optab, sve_fp_op): Handle them.
18247 (SVE_FP_UNARY): Delete.
18248 (optab): Remove sqrt entry.
18249 (sve_fp_op): Remove neg, abs and sqrt entries.
18250 (SVE_COND_FP_UNARY): New int iterator.
18251 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18252 (*<frint_pattern><mode>2): Delete.
18253 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18254 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18255 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18256 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18258 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18260 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18262 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18264 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18265 (UNSPEC_COND_FADD): ...this.
18266 (UNSPEC_COND_SUB): Rename to...
18267 (UNSPEC_COND_FSUB): ...this.
18268 (UNSPEC_COND_MUL): Rename to...
18269 (UNSPEC_COND_FMUL): ...this.
18270 (UNSPEC_COND_DIV): Rename to...
18271 (UNSPEC_COND_FDIV): ...this.
18272 (UNSPEC_COND_MAX): Rename to...
18273 (UNSPEC_COND_FMAXNM): ...this.
18274 (UNSPEC_COND_MIN): Rename to...
18275 (UNSPEC_COND_FMINNM): ...this.
18276 (UNSPEC_COND_LT): Rename to...
18277 (UNSPEC_COND_FCMLT): ...this.
18278 (UNSPEC_COND_LE): Rename to...
18279 (UNSPEC_COND_FCMLE): ...this.
18280 (UNSPEC_COND_EQ): Rename to...
18281 (UNSPEC_COND_FCMEQ): ...this.
18282 (UNSPEC_COND_NE): Rename to...
18283 (UNSPEC_COND_FCMNE): ...this.
18284 (UNSPEC_COND_GE): Rename to...
18285 (UNSPEC_COND_FCMGE): ...this.
18286 (UNSPEC_COND_GT): Rename to...
18287 (UNSPEC_COND_FCMGT): ...this.
18288 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18289 (sve_fp_op_rev): Update accordingly.
18290 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18292 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18294 * config/aarch64/aarch64-sve.md: Reorganize contents and add
18296 * config/aarch64/check-sve-md.awk: New file.
18297 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18298 (insn-conditions.md): Depend on it.
18300 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
18303 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18304 (*negsi2_cmpz_zext): Ditto.
18306 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18308 * config/aarch64/iterators.md (commutative): Remove.
18310 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
18313 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18314 processing COLLECT_GCC_OPTIONS.
18315 (run_gcc): Likewise.
18317 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
18319 PR tree-optimization/91109
18320 * lra-remat.c (update_scratch_ops): Remove assignment of the
18323 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18325 * data-streamer.h (streamer_write_poly_uint64): Declare.
18326 (streamer_read_poly_uint64): Likewise.
18327 * data-streamer-in.c (streamer_read_poly_uint64): New function.
18328 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18329 * ipa-predicate.h (condition::size): Turn into a poly_int64.
18330 (add_condition): Take a poly_int64 size.
18331 * ipa-predicate.c (add_condition): Likewise.
18332 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18333 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18334 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18335 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18336 condition::size as a poly_int64.
18337 (unmodified_parm_1): Take a poly_int64 size pointer.
18338 (unmodified_parm): Likewise.
18339 (unmodified_parm_or_parm_agg_item): Likewise.
18340 (set_cond_stmt_execution_predicate): Update accordingly.
18341 (set_switch_stmt_execution_predicate): Likewise.
18342 (will_be_nonconstant_expr_predicate): Likewise.
18343 (will_be_nonconstant_predicate): Likewise.
18344 (inline_read_section): Stream condition::size as a poly_int.
18345 (ipa_fn_summary_write): Likewise.
18347 2019-08-07 Martin Liska <mliska@suse.cz>
18349 * fold-const.c (twoval_comparison_p): Replace int
18350 with bool as a return type.
18351 (simple_operand_p): Likewise.
18352 (operand_equal_p): Replace int with bool as a return type.
18353 * fold-const.h (operand_equal_p): Likewise.
18355 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18357 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18358 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18359 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18360 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18361 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18362 * tree-pretty-print.c (dump_omp_clause): Likewise.
18363 * tree-nested.c (convert_nonlocal_omp_clauses,
18364 convert_local_omp_clauses): Likewise.
18365 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18367 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18368 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18369 clause with array or reference to array types, no matter what type
18370 except for reference it has.
18372 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18374 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18376 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18378 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18379 (arch_canonicalize): Support rv32g and rv64g and fix error
18382 2019-08-06 Martin Liska <mliska@suse.cz>
18384 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18385 and DECL_IS_OPERATOR_DELETE_P.
18387 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18389 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18390 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18391 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18392 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18393 (gimplify_omp_for): Don't do C++ random access iterator clause
18394 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18395 don't predetermine the artificial iterator in case of C++ random
18396 access iterators as lastprivate, but private. For OMP_LOOP, force
18397 bind expr around simd body and force for_pre_body before the
18398 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18399 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18400 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18401 diff var of C++ random access iterators. Handle
18402 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18403 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18404 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18405 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18406 * omp-low.c (lower_rec_input_clauses): For
18407 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18408 variables instead of default constructing them.
18409 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18410 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18411 is_taskloop_ctx check from the assert to the guarding condition.
18413 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18415 * config/riscv/multilib-generator: (canonical_order): New.
18416 (arch_canonicalize): Dito.
18417 Apply arch_canonicalize for alts.
18419 2019-08-05 Martin Sebor <msebor@redhat.com>
18421 * doc/extend.texi (Common Variable Attributes): Document alias
18424 2019-08-05 Marek Polacek <polacek@redhat.com>
18426 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18427 * doc/invoke.texi: Document -Wcomma-subscript.
18429 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18431 * tree-core.h (tree_function_decl): Make function_code an
18432 independent field. Group the remaining bitfields into bytes
18433 and move decl_type so that it contines to be at a byte boundary.
18434 Leave 12 bits for future expansion.
18436 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18438 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18439 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18440 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18443 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18445 * gimple.h (gimple_move_vops): Declare.
18446 * gimple.c (gimple_move_vops): New function
18447 * gimple-fold.c (replace_call_with_call_and_fold)
18448 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18449 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18450 (gimple_fold_call): Use it.
18451 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18452 * tree-call-cdce.c (use_internal_fn): Likewise.
18453 * tree-if-conv.c (predicate_load_or_store): Likewise.
18454 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18455 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18456 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18457 (update_call_from_tree): Likewise.
18458 * tree-vect-stmts.c (vectorizable_load): Likewise.
18459 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18461 2019-08-05 Martin Liska <mliska@suse.cz>
18464 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18465 with not arguments.
18466 (eliminate_unnecessary_stmts): Likewise.
18468 2019-08-05 Richard Biener <rguenther@suse.de>
18470 PR middle-end/91169
18471 * fold-const.c (get_array_ctor_element_at_index): Create
18472 offset_ints according to the sign of the index type and treat
18473 that as signed if it is obviously so.
18475 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18478 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18479 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18480 _mm256_storeu2_m128i): New function.
18482 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18484 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18485 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18487 2019-08-05 Alan Modra <amodra@gmail.com>
18490 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18491 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18493 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18495 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18496 bug that was fixed in Tcl 8.6.1.
18498 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18500 * config/rs6000/future.md: New file.
18501 * config/rs6000/rs6000.md: Include future.md.
18502 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18504 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18506 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18507 check to use targetm.slow_unaligned_access instead.
18509 * function.c (assign_param_data_one): Remove unused data members.
18511 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18513 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18514 build_distinct_type_copy.
18515 (simd_clone_adjust_argument_types): Ditto.
18516 (simd_clone_adjust): Call build_distinct_type_copy here.
18517 (expand_simd_clones): Ditto.
18519 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18522 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18524 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18526 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18527 from 'const void *'.
18528 (sort_locs_in_loop_postorder_cmp): Likewise.
18530 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18532 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18533 (hot-bb-count-ws-permille): Likewise.
18534 (hot-bb-frequency-fraction): Likewise.
18535 (unlikely-bb-count-fraction): Likewise.
18536 * params.def (hot-bb-count-fraction): Rework description.
18537 (hot-bb-count-ws-permille): Likewise.
18538 (hot-bb-frequency-fraction): Likewise.
18539 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18540 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18542 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18545 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18548 2019-08-02 Richard Biener <rguenther@suse.de>
18550 * vec.h (vec::sort): Add gcc_qsort_r support.
18551 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18552 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18553 to gcc_qsort_r style callback.
18554 (sort_locs_in_loop_postorder_cmp): Likewise.
18555 (analyze_memory_references): Use gcc_sort_r interfaces.
18556 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18558 2019-08-02 Martin Liska <mliska@suse.cz>
18561 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18562 to detect working job server.
18563 (driver::detect_jobserver): Test whether jobserver
18564 is active from GCC driver. That will prevent situation where
18565 GCC is invoked from a LD plugin and the linker already uses
18566 file descriptors suggested by make. That leads to a wrong
18568 * gcc.h (driver): Add detect_jobserver.
18569 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18570 not scanning for --jobserver-auth prefix.
18572 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18574 PR tree-optimization/91201
18575 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18576 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18579 2019-08-01 Martin Sebor <msebor@redhat.com>
18582 * tree.c (type_initializer_zero_p): Define.
18583 * tree.h (type_initializer_zero_p): New function.
18585 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18587 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18589 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18591 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18592 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18593 * predict.c (maybe_hot_count_p): Likewise.
18594 (maybe_hot_bb_p): Tweak comment.
18595 (maybe_hot_edge_p): Likewise.
18596 (probably_never_executed): Likewise. Minor tweak.
18597 (probably_never_executed_bb_p): Likewise.
18598 (unlikely_executed_edge_p): Likewise.
18599 (probably_never_executed_edge_p): Likewise.
18600 (optimize_function_for_size_p): Likewise.
18601 (optimize_function_for_speed_p): Likewise.
18602 (function_optimization_type): Likewise.
18603 (optimize_bb_for_size_p): Likewise.
18604 (optimize_bb_for_speed_p): Likewise.
18605 (bb_optimization_type): Likewise.
18606 (optimize_edge_for_size_p): Likewise.
18607 (optimize_edge_for_speed_p): Likewise.
18608 (optimize_insn_for_size_p): Likewise.
18609 (optimize_insn_for_speed_p): Likewise.
18610 (optimize_loop_for_size_p): Likewise.
18611 (optimize_loop_for_speed_p): Likewise.
18612 (optimize_loop_nest_for_speed_p): Likewise.
18613 (optimize_loop_nest_for_size_p): Likewise.
18614 (predictable_edge_p): Likewise.
18615 (handle_missing_profiles): Minor tweak.
18617 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18619 * config/rs6000/predicates.md (pcrel_external_address): Update
18622 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18625 * config/i386/mmx.md (usadv8qi): New expander.
18627 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18630 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18631 with reserved names that are in a system header.
18633 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18635 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18636 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18637 (*vec_extractv2si_0_zext): Ditto.
18638 (*vec_extractv2si_1): Add (rm,x) alternative.
18639 (*vec_extractv2si_1_zext): New insn pattern.
18640 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18643 2019-08-01 Richard Biener <rguenther@suse.de>
18645 * domwalk.c (bb_postorder): Remove static variable.
18646 (cmp_bb_postorder): Adjust.
18647 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18648 (dom_walker::walk): Adjust.
18650 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18652 * sort.cc (sort_r_ctx): New struct.
18653 (reorder23): Make templated on context type.
18654 (reorder45): Ditto.
18655 (cmp1): Ditto. Adjust signature.
18657 (mergesort): Ditto.
18658 [CHECKING_P] (cmp2to3): New static function. Use it...
18659 (gcc_qsort) [CHECKING_P]: ...here.
18660 (gcc_sort_r): New function.
18661 * system.h (sort_r_cmp_fn): New function typedef.
18662 (qsort_chk): Adjust signature.
18663 (gcc_sort_r): Declare.
18664 * vec.c (qsort_chk_error): Adjust.
18665 (qsort_chk): Adjust.
18667 2019-08-01 Richard Biener <rguenther@suse.de>
18669 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18670 (compute_antic): Localize it here.
18672 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18674 * common/config/riscv/riscv-common.c: Check -march string ends
18677 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18679 * ipa-devirt.c (type_warning_cmp): Make static.
18680 (decl_warning_cmp): Ditto.
18682 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18685 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18686 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18687 use of deleted rs6000_dejagnu_cpu_index variable.
18688 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18689 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18690 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18691 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18692 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18693 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18695 2019-07-31 Richard Biener <rguenther@suse.de>
18697 PR tree-optimization/91280
18698 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18699 Decompose MEM_REF manually for offset handling.
18701 2019-07-31 Richard Biener <rguenther@suse.de>
18703 PR tree-optimization/91293
18704 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18705 of reduction stmts.
18707 2019-07-31 Matt Thomas <matt@3am-software.com>
18708 Nick Hudson <nick@nthcliff.demon.co.uk>
18709 Matthew Green <mrg@eterna.com.au>
18710 Maya Rashish <coypu@sdf.org>
18712 * config.gcc (hppa*-*-netbsd*): New target.
18713 * config/pa/pa-netbsd.h: New file.
18714 * config/pa/pa32-netbsd.h: New file.
18716 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18718 PR tree-optimization/91201
18719 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18721 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18723 * config/gcn/gcn-valu.md
18724 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18725 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18726 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18727 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18728 struct ilist. Add nops for delayeduse insns.
18729 * config/gcn/gcn.md (delayeduse): New attribute.
18730 (*movbi): Remove s_waitcnt from stores.
18731 (*mov<mode>_insn): Likewise.
18732 (*movti_insn): Likewise. Add delayeduse attribute.
18733 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18734 (atomic_store<mode>): Remove or adjust s_waitcnt.
18736 2019-07-31 Richard Biener <rguenther@suse.de>
18738 * vr-values.h (vr_values::swap_vr_value): New.
18739 (vr_values::free_value_range): likewise.
18740 * vr-values.c (vr_values::swap_vr_value): Implement.
18741 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18742 Do not return a range or take a var.
18743 (evrp_range_analyzer::stack): Change back to recording a non-const
18745 * gimple-ssa-evrp-analyze.c
18746 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18748 (evrp_range_analyzer::pop_to_marker): Adjust.
18749 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18750 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18751 no longer needed value-range.
18753 2019-07-31 Martin Liska <mliska@suse.cz>
18755 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18756 have size and (or) alignment as 2nd and later arguments.
18757 Mark all of them as necessary.
18759 2019-07-31 Richard Biener <rguenther@suse.de>
18761 PR tree-optimization/91178
18762 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18763 Use tail-recursion.
18765 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18767 PR tree-optimization/91201
18768 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18769 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18771 (reduc_plus_scal_<mode>): Improve formatting by introducing
18774 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18776 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18777 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18778 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18779 (aarch64_init_tme_builtins): New.
18780 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18781 (aarch64_expand_builtin_tme): New.
18782 (aarch64_expand_builtin): Handle TME builtins.
18783 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18784 __ARM_FEATURE_TME when enabled.
18785 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18786 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18788 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18789 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18791 (tstart, ttest, tcommit, tcancel): New instructions.
18792 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18793 (__tcancel, __ttest): New.
18794 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18795 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18796 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18797 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18798 * config/arm/types.md: Add new tme type attr.
18799 * doc/invoke.texi: Document "tme".
18801 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18803 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18804 warn_unused_result attribute.
18805 (cmse_check_address_range): Add warn_unused_result attribute.
18807 2019-07-31 Richard Biener <rguenther@suse.de>
18809 PR tree-optimization/91257
18810 * tree-vrp.c (union_ranges): Unify equality and less tests
18811 by using compare_values. Re-order cheap tests first.
18813 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18815 PR middle-end/91301
18816 * gimplify.c (gimplify_omp_for): If for class iterator on
18817 distribute parallel for there is no data sharing clause
18818 on inner_for_stmt, look for private clause on combined
18819 parallel too and if found, move it to inner_for_stmt.
18821 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18823 * lra-int.h (lra_operand_data): Remove early_clobber field.
18824 (lra_insn_reg): Likewise.
18825 * lra.c (debug_operand_data): Update accordingly.
18826 (setup_operand_alternative): Likewise.
18827 (new_insn_reg): Likewise. Remove early_clobber parameter.
18828 (collect_non_operand_hard_regs): Update call accordingly.
18829 Don't assign to lra_insn_reg::early_clobber.
18830 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18831 and update calls to new_insn_reg.
18832 (lra_update_insn_regno_info): Update calls accordingly.
18833 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18834 alternative number as a parameter and test whether the operand
18835 is earlyclobbered in that particular alternative.
18836 (process_alt_operands): Update call accordingly. Use per-alternative
18837 checks for earyclobber here too.
18838 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18839 against zero for IRA_UNKNOWN_ALT.
18841 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18843 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18845 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18847 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18848 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18850 2019-07-30 Martin Liska <mliska@suse.cz>
18853 * cgraph.c (cgraph_edge::make_direct): Use
18854 edge->indirect_unknown_callee as edge->resolve_speculation can
18855 deallocate edge which is this pointer.
18857 2019-07-30 Richard Biener <rguenther@suse.de>
18859 PR tree-optimization/91257
18860 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18862 2019-07-30 Martin Liska <mliska@suse.cz>
18864 * doc/invoke.texi: Document new behavior.
18865 * lto-wrapper.c (cpuset_popcount): New function
18866 is a copy of libgomp/config/linux/proc.c.
18867 (init_num_threads): Likewise.
18868 (run_gcc): Automatically detect core count for -flto.
18869 (jobserver_active_p): New function.
18871 2019-07-30 Richard Biener <rguenther@suse.de>
18873 PR tree-optimization/91257
18874 * bitmap.h (bitmap_ior_into_and_free): Declare.
18875 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18876 whether to add the unliked element to the freelist.
18877 (bitmap_list_insert_element_after): Add defaulted param for
18878 an already allocated element.
18879 (bitmap_ior_into_and_free): New function.
18880 * tree-ssa-structalias.c (condense_visit): Reduce the
18881 ponts-to and edge bitmaps of the SCC members in a
18882 logarithmic fashion rather than all to one.
18884 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18886 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18887 parameter. When nonnull, make sure that the addition or subtraction
18888 has the same condition.
18889 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18890 for CFN_COND_MUL too.
18892 2019-07-30 Richard Biener <rguenther@suse.de>
18894 PR tree-optimization/91291
18895 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18898 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18900 PR middle-end/91216
18901 * omp-low.c (global_nonaddressable_vars): New variable.
18902 (use_pointer_for_field): For global decls, if they are non-addressable,
18903 remember it in the global_nonaddressable_vars bitmap, if they are
18904 addressable and in the global_nonaddressable_vars bitmap, ignore their
18905 TREE_ADDRESSABLE bit.
18906 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18907 vars in global_nonaddressable_vars bitmap.
18908 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18911 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18912 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18913 comparison to unsigned HOST_WIDE_INT before shifting it left.
18915 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18917 * config/i386/i386.md (movstrict<mode>): Use register_operand
18918 predicate for operand 0. Add expander condition. Assert that
18919 operand 0 is a SUBREG RTX.
18920 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18921 Update operand constraints and insn condition.
18922 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18923 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18924 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18925 Update operand 0 constraints.
18926 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18928 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18930 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18931 when -m{code,data}-region are used without -mlarge.
18932 * config/msp430/msp430.c (msp430_option_override): Error when a
18933 non-default code or data region is used without -mlarge.
18934 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18935 attributes when they are used without -mlarge.
18937 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18940 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18942 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18944 PR middle-end/91242
18945 * wide-int.h (generic_wide_int::sext_elt): New function.
18946 * inchash.h (hash::add_wide_int): Use it instead of elt.
18948 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18950 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18952 * config/arm/arm.md (<crc_variant>): Rename to...
18953 (arm_<crc_variant>): ... This.
18954 (<cdp>): Rename to...
18955 (arm_<cdp>): ... This.
18956 (<ldc>): Rename to...
18957 (arm_<ldc>): ... This.
18958 (<stc>): Rename to...
18959 (arm_<stc>): ... This.
18960 (<mcr>): Rename to...
18961 (arm_<mcr>): ... This.
18962 (<mrc>): Rename to...
18963 (arm_<mrc>): ... This.
18964 (<mcrr>): Rename to...
18965 (arm_<mcrr>): ... This.
18966 (<mrrc>): Rename to...
18967 (arm_<mrrc>): ... This.
18969 2019-07-29 Richard Biener <rguenther@suse.de>
18971 PR tree-optimization/91257
18972 * tree-ssa-sccvn.h (struct vn_avail): New.
18973 (struct vn_ssa_aux): Add avail member.
18974 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18975 member, add m_avail_freelist one.
18976 (rpo_elim::~rpo_elim): Remove.
18977 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18979 (rpo_elim::eliminate_push_avail): Likewise.
18980 (do_unwind): Likewise.
18981 (do_rpo_vn): Likewise.
18983 2019-07-29 Richard Biener <rguenther@suse.de>
18985 PR tree-optimization/91257
18986 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18987 most cases, instead call compare_values which handles the
18988 symbolic ranges we handle specially.
18989 (compare_values_warnv): Do not call operand_less_p but open-code
18990 the effective fold calls. Avoid converting so much.
18992 2019-07-29 Martin Liska <mliska@suse.cz>
18994 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18995 remove LHS of operator new call. It's handled latter.
18997 2019-07-29 Richard Biener <rguenther@suse.de>
18999 PR tree-optimization/91267
19000 * vr-values.c (vr_values::update_value_range): Add early return
19001 for effectively VARYING lattice entry.
19003 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19006 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
19007 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
19008 necessary if keep_all_vdefs_p is true.
19009 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
19010 that keep_all_vdefs_p is false.
19011 (mark_all_reaching_defs_necessary): Likewise.
19012 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
19014 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19016 * common.opt (Og): Change the initial value of flag_dse to 0.
19017 * opts.c (default_options_table): Move OPT_ftree_dse from
19018 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
19019 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
19020 entry before the OPT_ftree_sra entry.
19021 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
19022 of flags disabled by Og.
19024 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19026 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
19029 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19031 * doc/sourcebuild.texi (check-function-bodies): Document.
19033 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19035 * simplify-rtx.c (simplify_const_unary_operation): Fold a
19036 VEC_DUPLICATE of a fixed-length vector even if the result
19037 is variable-length. Likewise fold a duplicate of a
19038 variable-length vector if the variable-length vector is
19039 itself a duplicate of a fixed-length sequence.
19040 (test_vector_ops_duplicate): Test more cases.
19042 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19044 * vector-builder.h (vector_builder): Add a shape template parameter.
19045 (vector_builder::new_unary_operation): New function, generalizing
19046 the old tree_vector_builder function.
19047 (vector_builder::new_binary_operation): Likewise.
19048 (vector_builder::binary_encoded_nelts): Likewise.
19049 * int-vector-builder.h (int_vector_builder): Update template
19050 parameters to vector_builder.
19051 (int_vector_builder::shape_nelts): New function.
19052 * rtx-vector-builder.h (rtx_vector_builder): Update template
19053 parameters to vector_builder.
19054 (rtx_vector_builder::shape_nelts): New function.
19055 (rtx_vector_builder::nelts_of): Likewise.
19056 (rtx_vector_builder::npatterns_of): Likewise.
19057 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
19058 * tree-vector-builder.h (tree_vector_builder): Update template
19059 parameters to vector_builder.
19060 (tree_vector_builder::shape_nelts): New function.
19061 (tree_vector_builder::nelts_of): Likewise.
19062 (tree_vector_builder::npatterns_of): Likewise.
19063 (tree_vector_builder::nelts_per_pattern_of): Likewise.
19064 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
19065 (tree_vector_builder::new_binary_operation): Delete.
19066 (tree_vector_builder::binary_encoded_nelts): Likewise.
19067 * simplify-rtx.c: Include rtx-vector-builder.h.
19068 (distributes_over_addition_p): New function.
19069 (simplify_const_unary_operation)
19070 (simplify_const_binary_operation): Generalize handling of vector
19071 constants to include variable-length vectors.
19072 (test_vector_ops_series): Add more tests.
19074 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
19077 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
19078 than INDENTIFIER_POINTER.
19080 2019-07-28 Martin Liska <mliska@suse.cz>
19083 * cgraph.c (symbol_table::create_edge): Always allocate
19085 (symbol_table::free_edge): Store summary_id to
19086 edge_released_summary_ids if != -1;
19087 * cgraph.h (NEXT_FREE_NODE): Remove.
19088 (SET_NEXT_FREE_NODE): Likewise.
19089 (NEXT_FREE_EDGE): Likewise.
19090 (symbol_table::release_symbol): Store summary_id to
19091 cgraph_released_summary_ids if != -1;
19092 (symbol_table::allocate_cgraph_symbol): Always allocate
19095 2019-07-28 Alan Modra <amodra@gmail.com>
19097 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19100 2019-07-28 Alan Modra <amodra@gmail.com>
19103 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
19105 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
19106 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
19107 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
19109 2019-07-28 Alan Modra <amodra@gmail.com>
19112 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
19113 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
19114 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
19115 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
19116 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
19117 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
19118 in asm_default spec.
19119 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
19120 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
19122 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
19124 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
19126 2019-07-26 Tamar Christina <tamar.christina@arm.com>
19129 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
19130 * config/aarch64/aarch64-option-extensions.def: Add new comments
19131 and restore easier to read options.
19133 2019-07-26 Tamar Christina <tamar.christina@arm.com>
19135 * convert.c (convert_to_real_1): Move part of conversion code...
19136 * match.pd: ...To here.
19138 2019-07-26 Martin Jambor <mjambor@suse.cz>
19141 * ipa-inline-transform.c (check_speculations_1): New function.
19142 (push_all_edges_in_set_to_vec): Likewise.
19143 (check_speculations): Use check_speculations_1, new parameter
19145 (inline_call): Pass new_edges to check_speculations.
19146 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
19148 (speculation_useful_p): Early return true if edge is inlined, remove
19149 later checks for inline_failed.
19151 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
19153 PR rtl-optimization/91223
19154 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
19155 matching with INOUT operand.
19157 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
19159 * stmt.c (expand_case): Try to narrow the index type if it's larger
19160 than a word. Tidy up.
19162 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
19164 * cif-code.def (NEVER_CALL): New code.
19165 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
19166 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
19168 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
19170 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
19171 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19173 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19175 * ipa-devirt.c (add_type_duplicate): Fix return value.
19177 2019-07-25 Richard Biener <rguenther@suse.de>
19179 * tree-vrp.c (extract_range_from_multiplicative_op): Add
19180 type parameter and use it instead of guessing expression
19181 type from the first operand.
19182 (extract_range_from_binary_expr): Pass expr_type down.
19184 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19186 * config/arm/arm.md (SATrev): Change to code attribute.
19187 (*satsi_<SAT:code>): Adjust for the above.
19188 (*satsi_<SAT:code>_shift): Likewise.
19190 2019-07-25 Richard Biener <rguenther@suse.de>
19192 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
19193 Make value_range * temporary const.
19194 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
19196 (evrp_range_analyzer::record_ranges_from_): Likewise.
19197 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
19198 deal with having recorded a const one.
19199 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
19200 Return a const value_range *.
19201 (evrp_range_analyzer::pop_value_range): Likewise.
19202 (evrp_range_analyzer::stack): Record const value_range *s.
19203 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
19205 * gimple-ssa-sprintf.c (get_int_range): Likewise.
19206 (format_integer): Likewise.
19207 (sprintf_dom_walker::handle_gimple_call): Likewise.
19208 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
19209 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
19210 (vrp_prop::get_value_range): Adjust.
19211 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
19212 modifying the lattice in-place.
19213 (vrp_prop::visit_stmt): Likewise.
19214 * vr-values.c (vr_values::get_lattice_entry): New private method.
19215 (vr_values::get_value_range): Wrap it and return a const
19217 (vr_values::set_def_to_varying): New.
19218 (vr_values::set_defs_to_varying): Use it.
19219 (vr_values::update_value_range): Likewise.
19220 (vr_values::vrp_stmt_computes_nonzero): Adjust.
19221 (values::op_with_constant_singleton_va): Likewise.
19222 (vr_values::extract_range_for_var_from_co): Likewise.
19223 (vr_values::extract_range_from_ssa_name): Likewise.
19224 (vr_values::extract_range_from_cond_expr): Likewise.
19225 (vr_values::extract_range_basic): Likewise.
19226 (compare_ranges): Take const value_range *, adjust.
19227 (compare_range_with_value): Likewise.
19228 (vrp_valueize): Adjust.
19229 (vrp_valueize_1): Likewise.
19230 (vr_values::get_vr_for_comparison): Return a const value_range *.
19231 (vr_values::compare_name_with_value): Adjust.
19232 (vr_values::compare_names): Likewise.
19233 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19235 (vr_values::vrp_evaluate_conditional): Likewise.
19236 (find_case_label_ranges): Take a const value_range *.
19237 (vr_values::vrp_visit_switch_stmt): Adjust.
19238 (vr_values::extract_range_from_phi_node): Likewise.
19239 (vr_values::simplify_div_or_mod_using_ran): Likewise.
19240 (vr_values::simplify_abs_using_ranges): Likewise.
19241 (test_for_singularity): Take a const value_range *.
19242 (range_fits_type_p): Likewise.
19243 (vr_values::simplify_cond_using_ranges_1): Adjust.
19244 (vr_values::simplify_cond_using_ranges_2): Likewise.
19245 (vr_values::simplify_switch_using_ranges): Likewise.
19246 (vr_values::simplify_float_conversion_usi): Likewise.
19247 (vr_values::two_valued_val_range_p): Likewise.
19248 * vr-values.h (vr_values::get_value_range): Return a const
19250 (vr_values::set_def_to_varying): New.
19251 (vr_values::get_lattice_entry): New private method.
19252 (vr_values::get_vr_for_comparison): Return a const value_range *.
19254 2019-07-25 Martin Liska <mliska@suse.cz>
19255 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
19258 * common.opt: Add -fallocation-dce
19259 * gimple.c (gimple_call_operator_delete_p): New.
19260 * gimple.h (gimple_call_operator_delete_p): Likewise.
19261 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19262 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19263 DECL_IS_OPERATOR_DELETE_P.
19264 (mark_all_reaching_defs_necessary_1): Likewise.
19265 (propagate_necessity): Likewise.
19266 (eliminate_unnecessary_stmts): Handle
19267 gimple_call_operator_delete_p.
19268 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19269 Add packing of OPERATOR_DELETE.
19270 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19272 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19273 (DECL_SET_IS_OPERATOR_DELETE): New.
19274 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19276 2019-07-25 Martin Liska <mliska@suse.cz>
19278 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19279 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19280 * coverage.c (coverage_begin_function): Likewise.
19281 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19282 * gimple.c (gimple_call_nonnull_result_p): Likewise.
19283 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19284 (sem_item::hash_referenced_symbol_properties): Likewise.
19285 * lto-streamer-out.c (hash_tree): Likewise.
19286 * predict.c (expr_expected_value_1): Likewise.
19287 * tree-inline.c (expand_call_inline): Likewise.
19288 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19289 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19290 * tree-core.h (enum function_decl_type): New enum.
19291 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19292 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19293 (set_function_decl_type): Likewise.
19294 (DECL_IS_OPERATOR_NEW_P): New.
19295 (DECL_SET_IS_OPERATOR_NEW): Likewise.
19296 (DECL_LAMBDA_FUNCTION): Likewise.
19297 (DECL_LAMBDA_FUNCTION_P): Likewise.
19298 (DECL_IS_OPERATOR_NEW): Remove.
19299 (DECL_SET_LAMBDA_FUNCTION): Likewise.
19301 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
19303 * ipa-profile.c (get_most_common_single_value): Use
19304 get_nth_most_common_value.
19305 * profile.c (sort_hist_value): New function.
19306 (compute_value_histograms): Call sort_hist_value to sort the
19307 values after loading from disk.
19308 * value-prof.c (get_most_common_single_value): Rename to ...
19309 get_nth_most_common_value. Add input params n, return
19310 the n_th value and count.
19311 (gimple_divmod_fixed_value_transform): Use
19312 get_nth_most_common_value.
19313 (gimple_ic_transform): Likewise.
19314 (gimple_stringops_transform): Likewise.
19315 * value-prof.h (get_most_common_single_value): Add input params
19318 2019-07-25 Richard Biener <rguenther@suse.de>
19320 PR tree-optimization/91236
19321 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19322 size of CONSTRUCTOR write. Fix buffer size we pass to
19323 native_encode_expr.
19325 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19327 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19328 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19331 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19333 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19334 explicitly disabled with --disable-initfini-array.
19336 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19338 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19341 2019-07-24 Martin Sebor <msebor@redhat.com>
19343 PR tree-optimization/91183
19344 PR tree-optimization/86688
19345 * builtins.c (compute_objsize): Handle MEM_REF.
19346 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19347 (get_min_string_length): Remove.
19348 (count_nonzero_bytes): New function.
19349 (handle_char_store): Rename...
19350 (handle_store): to this. Handle multibyte stores via integer types.
19351 (strlen_check_and_optimize_stmt): Adjust conditional and the called
19354 2019-07-24 Martin Sebor <msebor@redhat.com>
19357 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19358 (diagnostic_report_diagnostic): Same.
19359 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19360 (diagnostic_context::lang_mask): New data member.
19361 * ipa-pure-const.c (suggest_attribute): Use
19362 lang_hooks.option_lang_mask ().
19363 * opts-common.c (option_enabled): Handle new argument.
19364 (get_option_state): Pass an additional argument.
19365 * opts.c (print_filtered_help): Print supported languages for
19366 unsupported options. Adjust printing of current state.
19367 * opts.h (option_enabled): Add argument.
19368 * toplev.c (print_switch_values): Use lang_mask.
19369 (general_init): Set global_dc->lang_mask.
19371 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19374 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19376 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19378 * cgraphunit.c (symbol_table::compile): Start and stop
19379 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19380 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19382 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19384 * gimplify.c (flag_instrument_functions_exclude_p): Include
19385 namespace/class information in the printable name.
19386 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19387 to tokens entered into the vector.
19389 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19391 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19392 (get_static_chain): Call it instead of build_simple_mem_ref.
19393 (get_frame_field): Likewise.
19394 (get_nonlocal_debug_decl): Likewise.
19395 (convert_nonlocal_reference_op): Likewise.
19397 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19399 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19401 (arc_compute_frame_size): Millicode is disabled when compiling
19403 (arc_return_address_register): Likewise.
19404 (arc_compute_function_type): Likewise.
19405 (arc_compute_frame_size): Likewise.
19406 (secondary_reload_info): Likewise.
19407 (arc_get_unalign): Likewise.
19408 (arc_can_use_return_insn): Declare.
19409 * config/arc/arc.c (AUX_LP_START): Define
19410 (AUX_LP_END): Likewise.
19411 (arc_frame_info): Update gmask member to 64-bit datum.
19412 (GMASK_LEN): Update.
19413 (arc_compute_function_type): Make it static, move it forward.
19414 (arc_must_save_register): Update, consider the extra regs.
19415 (arc_compute_millicode_save_restore_regs): Update to use the 64
19417 (arc_compute_frame_size): Likewise.
19418 (arc_enter_leave_p): Likewise.
19419 (arc_save_callee_saves): Likewise.
19420 (arc_restore_callee_saves): Likewise.
19421 (arc_save_callee_enter): Likewise.
19422 (arc_restore_callee_leave): Likewise.
19423 (arc_save_callee_milli): Likewise.
19424 (arc_restore_callee_milli): Likewise.
19425 (arc_expand_prologue): Add new interrupt handling.
19426 (arc_return_address_register): Make it static, move it forward.
19427 (arc_expand_epilogue): Add new interrupt handling.
19428 (arc_get_unalign): Delete.
19429 (arc_epilogue_uses): Make sure we do not remove the extra
19430 saved/restored registers when interrupt.
19431 (arc_can_use_return_insn): New function.
19432 (push_reg): Likewise.
19433 (pop_reg): Likewise.
19434 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19436 (arc_restore_callee_saves): Likewise, but restoring.
19437 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19438 (R33_REG): Likewise.
19439 (R34_REG): Likewise.
19440 (R35_REG): Likewise.
19441 (R36_REG): Likewise.
19442 (R37_REG): Likewise.
19443 (R38_REG): Likewise.
19444 (R39_REG): Likewise.
19445 (R45_REG): Likewise.
19446 (R46_REG): Likewise.
19447 (R47_REG): Likewise.
19448 (R48_REG): Likewise.
19449 (R49_REG): Likewise.
19450 (R50_REG): Likewise.
19451 (R51_REG): Likewise.
19452 (R52_REG): Likewise.
19453 (R53_REG): Likewise.
19454 (R54_REG): Likewise.
19455 (R55_REG): Likewise.
19456 (R56_REG): Likewise.
19457 (R58_REG): Likewise.
19458 (type): Add rtie attribute.
19459 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19460 (movsi_insn): Accept moves to lp_count.
19461 (rtie): Update pattern.
19462 (simple_return): Simplify it, don't use this pattern as a return
19464 (arc600_rtie): New pattern.
19465 (p_return_i): Clean up.
19466 (return): Likewise.
19467 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19469 * config/arc/predicates.md (move_src_operand): Consider lp_count
19472 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19474 * config/s390/predicates.md (addv_const_operand): New predicate.
19475 * config/s390/s390-modes.def (CCO): New condition code mode.
19476 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19477 (s390_branch_condition_mask): Likewise.
19478 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19479 ("mulv<mode>4"): New expanders.
19480 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19481 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19482 pattern definitions.
19484 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19486 PR middle-end/91166
19487 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19488 (define_predicates): Add entry for uniform_vector_p.
19489 (vec_same_elem_p): New match pattern.
19491 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19494 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19495 * config/i386/darwin32-biarch.h .. to here.
19496 * config/i386/darwin64-biarch.h: Adjust comments.
19497 * config/rs6000/darwin32-biarch.h: Likewise.
19498 * config/rs6000/darwin64-biarch.h: Likewise.
19499 * config.gcc: Missed commit from r273746
19500 (*-*-darwin*): Don't include CPU t-darwin here.
19501 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19502 an error message if i686-darwin configuration is attempted for
19505 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19508 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19509 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19510 an error message if i686-darwin configuration is attempted for
19512 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19513 (powerpc-*-darwin*): Use biarch files where needed.
19514 (powerpc64-*-darwin*): Likewise.
19515 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19516 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19518 * config/i386/darwin32-biarch.h: New.
19519 * config/i386/darwin64.h: Rename.
19520 * config/i386/darwin64-biarch.h: To this.
19521 * config/i386/t-darwin: Rename.
19522 * config/i386/t-darwin32-biarch: To this.
19523 * config/i386/t-darwin64: Rename.
19524 * config/i386/t-darwin64-biarch: To this.
19525 * config/rs6000/darwin32-biarch.h: New.
19526 * config/rs6000/darwin64.h: Rename.
19527 * config/rs6000/darwin64-biarch.h: To this.
19528 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19530 * config/rs6000/t-darwin8: Rename.
19531 * config/rs6000/t-darwin32-biarch: To this.
19532 * config/rs6000/t-darwin64 Rename.
19533 * config/rs6000/t-darwin64-biarch: To this.
19535 2019-07-23 Martin Sebor <msebor@redhat.com>
19537 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19539 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19541 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19542 (rh): New alias for it.
19544 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19546 * gdbhooks.py: Pass replace=True to
19547 gdb.printing.register_pretty_printer.
19549 2019-07-23 Richard Biener <rguenther@suse.de>
19552 * lto-streamer-in.c (input_function): Drop inline-entry markers
19553 that ended up with an unknown location block.
19555 2019-07-23 Richard Biener <rguenther@suse.de>
19557 PR tree-optimization/83518
19558 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19559 init from a constant even when partial defs are already recorded.
19561 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19563 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19564 * config/i386/znver1.md: Enable patterns for znver2 and add store
19565 variants which use extra AGU unit.
19567 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19569 * config/i386/i386-options.c (ix86_option_override_internal): Default
19570 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19571 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19574 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19576 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19577 (znver2_costs): Update 256 bit SSE costs and multiplication.
19579 2019-07-23 Jan Beulich <jbeulich@suse.com>
19581 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19582 Require only AVX512F.
19583 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19584 alternative expanding to vpternlog.
19586 2019-07-23 Martin Liska <mliska@suse.cz>
19588 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19589 to -flto in dwarf producer string.
19591 2019-07-23 Richard Biener <rguenther@suse.de>
19593 * tree-cfg.c (label_for_bb): Remove global var.
19594 (main_block_label): Take label_for_bb as argument.
19595 (cleanup_dead_labels_eh): Likewise, adjust.
19596 (cleanup_dead_labels): Adjust.
19598 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19600 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19601 Configurations): Add documentation for __builtin_mtfsf.
19603 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19605 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19606 * config/riscv/riscv.c (riscv_constant_alignment): Use
19607 riscv_align_data_type.
19608 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19609 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19610 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19611 * config/riscv/riscv.opt (malign-data): New.
19612 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19614 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19616 * cgraph.c (dump_graphviz): New function.
19617 * cgraph.h (dump_graphviz): New function.
19618 * symtab.c (dump_graphviz): New function.
19620 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19622 * config/aarch64/aarch64-simd.md
19623 (*aarch64_simd_sra<mode>): New.
19624 * config/aarch64/iterators.md
19625 (SHIFTRT): New iterator.
19626 (sra_op): New attribute.
19628 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19630 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19631 callee-saved regs R4->R10 in an interrupt function that calls another
19634 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19636 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19637 (_mm_blendv_epi8): New.
19639 2019-07-22 Richard Biener <rguenther@suse.de>
19641 PR tree-optimization/91221
19642 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19643 restrict partial-def handling of empty constructors and
19644 memset to refs with known offset.
19646 2019-07-22 Jan Beulich <jbeulich@suse.com>
19648 * config/i386/sse.md (ternlogsuffix): New.
19649 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19651 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19653 2019-07-22 Martin Liska <mliska@suse.cz>
19655 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19657 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19659 2019-07-22 Martin Liska <mliska@suse.cz>
19661 * lto-section-in.c (lto_get_section_data):
19662 Use new function get_compression.
19663 * lto-streamer-out.c (produce_lto_section): Use
19664 set_compression to encode compression algorithm.
19665 * lto-streamer.h (struct lto_section): Do not
19666 use bitfields in the format.
19668 2019-07-22 Martin Liska <mliska@suse.cz>
19671 * opts-common.c (decode_cmdline_option): Decode
19672 argument of -Werror and check it for a wrong language.
19673 * opts-global.c (complain_wrong_lang): Remove such case.
19675 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19677 * config/arc/arc.c (prepare_move_operands): Always use an
19678 intermediate register when storing a TLS symbols.
19680 2019-07-22 Stafford Horne <shorne@gmail.com>
19682 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19685 2019-07-22 Stafford Horne <shorne@gmail.com>
19687 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19688 and munordered-float validations.
19689 * config/or1k/constraints.md (d): New register constraint.
19690 * config/or1k/predicates.md (fp_comparison_operator): New.
19691 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19693 (or1k_expand_compare): Normalize unordered comparisons.
19694 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19695 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19696 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19697 * config/or1k/or1k.md (type): Add fpu.
19698 (fpu): New instruction reservation.
19699 (F, f, fr, fi, FI, FOP, fop): New.
19700 (<fop><F:mode>3): New ALU instruction definition.
19701 (float<fi><F:mode>2): New conversion instruction definition.
19702 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19703 (fpcmpcc): New code iterator.
19704 (*sf_fp_insn): New instruction definition.
19705 (cstore<F:mode>4): New expand definition.
19706 (cbranch<F:mode>4): New expand definition.
19707 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19708 munordered-float): New options.
19709 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19712 2019-07-22 Stafford Horne <shorne@gmail.com>
19714 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19715 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19716 documenation to be more clear.
19717 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19719 * config/or1k/or1k.opt (mrori): New option.
19720 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19721 msfimm, mshftimm): Rewrite documentation to be more clear.
19722 * config/or1k/or1k.md (insn_support): Add ror and rori.
19723 (enabled): Add conditions for ror and rori.
19724 (rotrsi3): Replace condition for shftimm with ror and rori.
19726 2019-07-22 Stafford Horne <shorne@gmail.com>
19729 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19730 (extend<mode>si2): Update predicate.
19731 * config/or1k/predicates.md (volatile_mem_operand): New.
19732 (reg_or_mem_operand): New.
19734 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19736 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19737 * config/rs6000/rs6000-call.c: ... to here.
19739 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19741 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19744 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19746 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19748 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19750 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19752 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19754 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19755 (any_memory_operand): New predicate.
19756 (reg_or_mem_operand): Use it.
19758 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19761 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19763 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19765 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19766 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19768 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19770 * tree.def (OMP_LOOP): New tree code.
19771 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19772 (enum omp_clause_bind_kind): New enum.
19773 (struct tree_omp_clause): Add subcode.bind_kind.
19774 * tree.h (OMP_LOOP_CHECK): Rename to ...
19775 (OMP_LOOPING_CHECK): ... this.
19776 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19777 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19778 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19779 (OMP_CLAUSE_BIND_KIND): Define.
19780 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19781 bind clause entries.
19782 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19783 * tree-pretty-print.c (dump_omp_clause): Likewise.
19784 (dump_generic_node): Handle OMP_LOOP.
19785 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19786 (in_omp_construct): New variable.
19787 (is_gimple_stmt): Handle OMP_LOOP.
19788 (gimplify_scan_omp_clauses): For lastprivate don't set
19789 check_non_private if code == OMP_LOOP. For reduction clause
19790 on OMP_LOOP combined with parallel or teams propagate as shared
19791 on the combined construct. Handle OMP_CLAUSE_BIND.
19792 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19793 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19794 for constructs from a loop construct to gimplify_scan_omp_clauses.
19795 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19796 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19797 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19798 to match the implicit ORT_TARGET construct around whole body.
19799 Temporarily clear in_omp_construct when processing body.
19800 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19801 etc. temporarily set in_omp_construct when processing body.
19802 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19803 * omp-low.c (struct omp_context): Add loop_p.
19804 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19805 in that the original var might be private.
19806 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19807 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19808 addition of loop construct.
19809 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19811 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19812 lastprivate non-addressable iterator of a collapse(1) simd.
19814 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19816 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19819 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19821 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19822 refer to default conditions. Warn for the 'y' spec which is ignored
19823 by current linkers.
19825 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19827 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19828 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19829 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19830 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19831 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19832 init_cumulative_args, rs6000_promote_function_mode,
19833 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19834 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19835 rs6000_function_arg_boundary, rs6000_parm_offset,
19836 rs6000_parm_start, rs6000_arg_size,
19837 rs6000_darwin64_record_arg_advance_flush,
19838 rs6000_darwin64_record_arg_advance_recurse,
19839 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19840 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19841 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19842 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19843 rs6000_finish_function_arg, rs6000_function_arg,
19844 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19845 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19846 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19847 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19848 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19849 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19850 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19851 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19852 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19853 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19854 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19855 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19856 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19857 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19858 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19859 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19860 get_element_number, altivec_expand_vec_set_builtin,
19861 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19862 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19863 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19864 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19865 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19866 rs6000_expand_builtin, rs6000_vector_type,
19867 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19868 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19869 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19871 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19872 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19873 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19874 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19875 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19876 init_cumulative_args, rs6000_promote_function_mode,
19877 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19878 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19879 rs6000_function_arg_boundary, rs6000_parm_offset,
19880 rs6000_parm_start, rs6000_arg_size,
19881 rs6000_darwin64_record_arg_advance_flush,
19882 rs6000_darwin64_record_arg_advance_recurse,
19883 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19884 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19885 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19886 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19887 rs6000_finish_function_arg, rs6000_function_arg,
19888 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19889 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19890 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19891 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19892 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19893 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19894 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19895 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19896 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19897 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19898 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19899 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19900 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19901 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19902 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19903 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19904 get_element_number, altivec_expand_vec_set_builtin,
19905 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19906 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19907 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19908 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19909 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19910 rs6000_expand_builtin, rs6000_vector_type,
19911 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19912 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19913 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19914 to here from rs6000.c.
19915 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19916 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19917 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19918 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19919 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19920 rs6000_return_in_memory, rs6000_return_in_msb,
19921 rs6000_pass_by_reference, setup_incoming_varargs,
19922 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19923 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19924 rs6000_function_arg_padding, rs6000_function_arg,
19925 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19926 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19927 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19928 rs6000_passes_long_double, rs6000_passes_vector,
19929 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19930 altivec_builtin_mask_for_load) Add declarations.
19931 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19932 * config/config.gcc: Add new source file rs6000-call.c to garbage
19933 collector and extra_objs.
19935 2019-07-19 Jeff Law <law@redhat.com>
19937 PR tree-optimization/86061
19938 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19939 strncpy. Drop some trivial dead code.
19940 (maybe_trim_memstar_call): Handle strncpy.
19942 2019-07-19 Richard Biener <rguenther@suse.de>
19944 PR tree-optimization/91211
19945 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19946 memset encoding size.
19948 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19951 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19953 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19956 * ipa-inline.c (recursive_inlining): Fix limits check.
19958 2019-07-19 Richard Biener <rguenther@suse.de>
19960 PR tree-optimization/91200
19961 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19962 no PHI nodes in middle-bb.
19964 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19966 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19968 * config/aarch64/aarch64-option-extensions.def: Likewise.
19970 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19972 PR middle-end/91190
19973 * function.c (insert_temp_slot_address): Store into the hash table
19974 a copy of address to avoid RTL sharing issues.
19976 2019-07-19 Richard Biener <rguenther@suse.de>
19978 PR tree-optimization/91207
19980 2019-07-17 Richard Biener <rguenther@suse.de>
19982 PR tree-optimization/91178
19983 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19984 loads with a gap larger than the vector size always use
19986 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19987 avoid loading vectors that are only contained in the gap
19988 and thus are not needed.
19990 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19992 * config/i386/i386.md (*addqi_2_slp): Remove.
19993 (*<code>qi_2_slp): Ditto.
19995 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19997 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19998 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19999 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
20000 Rename function from rs6000_prefixed_address.
20001 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20003 (TARGET_TOC): Likewise.
20004 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20006 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20008 (TARGET_TOC): Likewise.
20009 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20011 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20013 (TARGET_TOC): Likewise.
20014 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20015 check to require -mcmodel=medium for pc-relative addressing.
20016 (create_TOC_reference): Add assertion for TARGET_TOC.
20017 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
20019 (rs6000_emit_move): Likewise.
20020 (TOC_alias_set): Rename TOC alias set static variable from 'set'
20021 to 'TOC_alias_set'.
20022 (get_TOC_alias_set): Likewise.
20023 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
20025 (rs6000_can_eliminate): Likewise.
20026 (rs6000_prefixed_address_mode_p): Rename function from
20027 rs6000_prefixed_address.
20028 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
20029 TARGET_HAS_TOC and not pc-relative.
20030 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
20031 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20033 (TARGET_TOC): Likewise.
20034 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20037 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
20040 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
20041 for operand 0. Do not use (match_dup) to match operand 1 with
20042 operand 0. Add check in insn constraint that either input operand
20043 matches operand 0. Use SWI12 mode iterator to also handle
20045 (*and<mode>_1_slp): Ditto.
20046 (*<code>qi_1_slp): Ditto.
20047 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
20048 Do not use (match_dup) to match operand 1 with operand 0. Add
20049 check in insn constraint that operand 1 matches operand 0.
20050 Use SWI12 mode iterator to also handle HImode operands.
20051 (*ashl<mode>3_1_slp): Ditto.
20052 (*<shift_insn><mode>3_1_slp): Ditto.
20053 (*<rotate_insn><mode>3_1_slp): Ditto.
20055 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
20057 * config/arm/arm-builtins.c
20058 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
20059 (arm_expand_unop_builtin): Likewise.
20060 * config/arm/crypto.md
20061 (crypto_sha1h): Convert from define_insn to define_expand.
20062 (crypto_<crypto_pattern>): Likewise.
20063 (crypto_sha1h_lb): New define_insn.
20064 (crypto_<crypto_pattern>_lb): Likewise.
20066 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
20069 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
20070 (vsha1cq_u32): Likewise.
20071 (vsha1pq_u32): Likewise.
20072 (vsha1mq_u32): Likewise.
20073 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
20075 (crypto_sha1c): Correct vec select.
20076 (crypto_sha1m): Likewise.
20077 (crypto_sha1p): Likewise.
20079 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
20081 * config/arm/predicates.md (arm_borrow_operation): New predicate.
20082 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
20083 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
20084 (subdi_zesidi_zesidi): Likewise.
20085 (negdi2_compare, negdi2_insn): Likewise.
20086 (negdi_extensidi): Likewise.
20087 (negdi_zero_extendsidi): Likewise.
20088 (arm_cmpdi_insn): Likewise.
20089 (subsi3_carryin): Use arm_borrow_operation.
20090 (subsi3_carryin_const): Likewise.
20091 (subsi3_carryin_const0): Likewise.
20092 (subsi3_carryin_compare): Likewise.
20093 (subsi3_carryin_compare_const): Likewise.
20094 (subsi3_carryin_compare_const0): Likewise.
20095 (subsi3_carryin_shift): Likewise.
20096 (rsbsi3_carryin_shift): Likewise.
20097 (negsi2_carryin_compare): Likewise.
20099 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
20101 PR tree-optimization/91137
20102 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
20103 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
20104 Init, use and fini the above new field.
20105 (determine_base_object_1): New function.
20106 (determine_base_object): Reimplement using walk_tree.
20108 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
20110 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
20111 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
20112 CLEANUP_FORCE_FAST_DCE is set.
20113 * ifcvt.c (rest_of_handle_if_conversion): Pass
20114 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
20115 if-conversion succeeded.
20117 2019-07-18 Richard Biener <rguenther@suse.de>
20119 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
20120 branches to make code less indented.
20122 2019-07-17 Alexandre Oliva <oliva@adacore.com>
20124 PR middle-end/81824
20125 * attribs.c (decls_mismatched_attributes): Simplify the logic
20126 that avoids duplicates and false positives.
20128 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
20130 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
20131 data into data section when generating PIC code.
20132 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
20133 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
20134 generating code for SOM targets earlier than HP-UX 11. Otherwise,
20135 return 2 for SOM and 0 for other targets.
20137 2019-07-17 Jeff Law <law@redhat.com>
20139 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
20140 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
20141 avoid unexpected switch statement fallthru.
20143 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
20145 * config/i386/i386.md (*add<dwi>3_doubleword):
20146 Remove redundant constraints.
20147 (*add<mode>_1): Ditto.
20150 (*addqi_1_slp): Ditto.
20151 (*add<mode>_2): Ditto.
20152 (*addv<mode>4): Ditto.
20153 (*sub<dwi>3_doubleword): Ditto.
20154 (*sub<mode>_1): Ditto.
20155 (*subqi_1_slp): Ditto.
20156 (*sub<mode>_2): Ditto.
20157 (*subv<mode>4): Ditto.
20158 (*sub<mode>_3): Ditto.
20159 (@add<mode>3_carry): Ditto.
20160 (@sub<mode>3_carry): Ditto.
20161 (*add<mode>3_cc_overflow_1): Ditto.
20162 (*add<mode>3_zext_cc_overflow_2): Ditto.
20164 (*and<mode>_1): Ditto.
20166 (*andqi_1_slp): Ditto.
20168 (*andqi_2_maybe_si): Ditto.
20169 (*and<mode>_2): Ditto.
20170 (*andqi_2_slp): Ditto.
20171 (*<code><mode>_1): Ditto.
20172 (*<code>qi_1): Ditto.
20173 (*<code>qi_1_slp): Ditto.
20174 (*<code><mode>_2): Ditto.
20175 (*<code>qi_2_slp): Ditto.
20177 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
20179 * alias.c (record_component_aliases): Do not simplify pointed-to
20180 types of ODR types.
20182 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
20184 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
20185 partial reg stall on alternative 2.
20187 2019-07-17 Richard Biener <rguenther@suse.de>
20189 PR tree-optimization/91178
20190 * tree-ssa.c (release_defs_bitset): Iterate from higher to
20191 lower SSA names to avoid quadratic behavior in the common case.
20192 * tree-data-ref.c (split_constant_offset): Add limit argument
20193 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20194 (split_constant_offset_1): Add limit argument and use it to
20195 limit SSA def walking. Optimize the common plus/minus case.
20197 2019-07-17 Richard Biener <rguenther@suse.de>
20199 PR tree-optimization/91178
20200 * tree-vect-stmts.c (get_group_load_store_type): For SLP
20201 loads with a gap larger than the vector size always use
20203 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20204 avoid loading vectors that are only contained in the gap
20205 and thus are not needed.
20207 2019-07-17 Richard Biener <rguenther@suse.de>
20209 PR tree-optimization/91180
20210 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
20211 computation for memset partial defs.
20213 2019-07-17 Jakub Jelinek <jakub@redhat.com>
20215 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20216 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20217 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20218 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20219 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20220 * omp-grid.c (grid_process_grid_body,
20221 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20222 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20223 == GF_OMP_FOR_KIND_SIMD.
20224 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20225 check_omp_nesting_restrictions, scan_omp_1_stmt,
20226 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20227 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20228 omp_find_scan): Likewise.
20229 * omp-expand.c (expand_omp_for): Likewise.
20230 * omp-general.c (omp_extract_for_data): Likewise.
20232 PR tree-optimization/91157
20233 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20234 a vector boolean with scalar mode.
20235 (expand_vector_condition): Handle first operand being a vector boolean
20237 (expand_vector_operations_1): For comparisons, don't bail out early
20238 if the return type is vector boolean with scalar mode, but comparison
20239 operand type is not.
20241 2019-07-17 Richard Biener <rguenther@suse.de>
20243 PR tree-optimization/91181
20244 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20245 IFN_LOADs as calls.
20247 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
20249 * config/i386/i386.md (*testdi_1): Match CCZmode for
20250 constants that might have the SImode sign bit set.
20251 (*testqi_1_maybe_si): Remove "!" constraint modifier.
20252 Use correct constraints for pentium pairing.
20253 (*test<mode>_1): Ditto.
20255 2019-07-16 Jeff Law <law@redhat.com>
20257 PR rtl-optimization/91173
20258 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20259 SSA_NAME with a constant value, fold its value into the offset
20260 and clear the base before calling gen_addr_rtx.
20262 2019-07-16 Jakub Jelinek <jakub@redhat.com>
20264 PR rtl-optimization/91164
20265 * dse.c (rest_of_handle_dse): If dead edges have been purged,
20266 invalidate dominance info.
20268 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20270 * read-md.h (md_reader::record_potential_iterator_use): Add a
20271 file_location parameter.
20272 * read-rtl.c (attribute_use::loc): New field.
20273 (map_attr_string): Take a file_location parameter. Report cases
20274 in which attributes map to multiple distinct values.
20275 (apply_attribute_uses): Update call accordingly.
20276 (md_reader::handle_overloaded_name): Likewise.
20277 (md_reader::apply_iterator_to_string): Likewise. Skip empty
20279 (record_attribute_use): Take a file_location parameter.
20280 Initialize attribute_use::loc.
20281 (md_reader::record_potential_iterator_use): Take a file_location
20282 parameter. Update call to record_attribute_use.
20283 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20284 (rtx_reader::read_rtx_code): Likewise.
20285 (rtx_reader::read_rtx_operand): Likewise. Record a location
20286 for implicitly-expanded empty strings.
20288 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20290 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20291 Use file_location instead of separate fields.
20292 (md_reader::set_md_ptr_loc): Take a file_location instead of a
20293 separate filename and line number.
20294 * read-md.c (ptr_loc): As above.
20295 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20296 (md_reader::fprint_md_ptr_loc): Likewise.
20297 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
20298 instead of a separate filename and line number.
20299 (md_reader::read_string): Update call accordingly.
20301 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20303 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20304 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20305 leaving the choice between SFDF and P implicit.
20306 (*mov<mode>_update2): Likewise.
20307 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20308 rather than leaving the choice betweem IBM128 and GPR implicit.
20309 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20310 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20312 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20313 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20314 * config/rs6000/vsx.md
20315 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20316 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20317 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20318 and VSX_EXTRACT_I implicit.
20320 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20322 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20323 Explicitly use <MOVEP1:MODE> for the mode attribute.
20325 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
20328 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20330 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
20333 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20334 .machine directive.
20336 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
20338 * config/i386/i386.md (@test<mode>_ccno_1):
20339 Rename from test<mode>_ccno_1.
20340 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
20341 (*testqi_1_maybe_si): Remove modrm attribute.
20342 (*test<mode>_1): Ditto.
20343 * config/i386/i386-expand.c (ix86_split_idivmod): Use
20344 gen_test_ccno_1 and gen_extend_insn.
20346 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
20348 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20351 2019-07-15 Richard Biener <rguenther@suse.de>
20353 PR middle-end/91162
20354 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20355 node make sure to replace all uses with something valid.
20357 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20359 PR tree-optimization/88497
20360 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20361 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20362 function undistribute_bitref_for_vector.
20363 (undistribute_bitref_for_vector): New function.
20364 (cleanup_vinfo_map): Likewise.
20365 (sort_by_mach_mode): Likewise.
20367 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20369 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20370 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20371 and testdi_ccno_1 using SWI48 mode attribute.
20372 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20373 x86_64_szext_general_operand.
20374 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20375 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20376 instead of genera_operand mode attribute.
20378 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20380 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20381 fopen and fclose to their respective types.
20382 (DotFn.invoke): Ditto.
20384 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20386 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20387 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20388 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20389 (array_index_predicate): Remove.
20390 (analyze_function_body): Account cost for variable ofsetted array
20392 (estimate_node_size_and_time): Do not compute array index hint.
20393 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20394 (inline_read_section): Do not read array index hint.
20395 (ipa_fn_summary_write): Do not write array index hint.
20396 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20397 * ipa-cp.c (hint_time_bonus): Remove.
20398 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20399 (ipa_fnsummary): Remove array_index.
20400 * ipa-inline.c (want_inline_small_function_p): Do not use
20402 (edge_badness): Likewise.
20403 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20405 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20408 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20409 superfluous "builtin function" phrasing.
20411 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20413 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20415 (aliasing_component_refs_walk): Break out from ...
20416 (aliasing_component_refs_p): ... here.
20418 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20421 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20422 "builtin function" phrasing.
20424 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20427 * recog.h (temporary_volatile_ok): New class.
20428 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20429 volatile_ok temporarily to true using temporary_volatile_ok.
20430 * expr.c (emit_block_move_via_cpymem): Likewise.
20431 * optabs.c (maybe_legitimize_operand): Likewise.
20433 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20435 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20436 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20437 uses inside of order(concurrent) constructs.
20438 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20439 OMP_CLAUSE_ORDER is seen.
20440 * omp-low.c (struct omp_context): Add order_concurrent member.
20441 (scan_sharing_clauses): Set ctx->order_concurrent if
20442 OMP_CLAUSE_ORDER is seen.
20443 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20444 of simd order(concurrent). Diagnose constructs not allowed inside of
20445 for order(concurrent).
20446 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20447 complaining about static double setjmp (double); or class static
20448 methods or non-global namespace setjmps.
20449 (omp_runtime_api_call): New function.
20450 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20451 order(concurrent) loops.
20453 2019-07-12 Martin Sebor <msebor@redhat.com>
20455 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20456 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20457 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20458 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20460 2019-07-12 Jan Hubicka <jh@suse.cz>
20462 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20463 (indirect_refs_may_alias_p): ... here.
20464 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20465 mem refs in the access paths.
20467 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20469 PR tree-optimization/89430
20470 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20471 store elimination for local variable without address escape.
20473 2019-07-12 Jeff Law <law@redhat.com>
20475 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20476 for the ".far" section.
20478 2019-07-12 Richard Biener <rguenther@suse.de>
20480 PR tree-optimization/91145
20481 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20484 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20486 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20487 rather than this_state as the lowering context for the ELSE
20488 seq in a GIMPLE_EH_ELSE.
20490 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20492 * vector-builder.h (vector_builder::elt): Allow already-supplied
20493 elements to be read back before building is complete.
20495 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20497 PR rtl-optimization/91136
20498 * df-core.c (ACCESSING REFS): Fix typos in comment.
20499 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20500 the beginning of the block to the initial set of live registers.
20502 2019-07-12 Richard Biener <rguenther@suse.de>
20504 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20505 * fold-const.c (get_array_ctor_element_at_index): Add
20506 ctor_idx output parameter informing the caller where in
20507 the constructor the element was (not) found. Add early exit
20508 for when the ctor is sorted.
20509 * gimple-fold.c (fold_array_ctor_reference): Support constant
20510 folding across multiple array elements.
20512 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20514 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20515 doesn't have location, set the current location to the function's end.
20517 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20519 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20520 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20521 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20522 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20523 * config/aarch64/aarch64-simd.md
20524 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20525 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20526 * config/aarch64/aarch64-sve.md
20527 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20528 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20530 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20532 * doc/md.texi: Document that @ patterns can have different
20533 numbers of operands.
20534 * genemit.c (handle_overloaded_gen): Handle this case.
20535 * genopinit.c (handle_overloaded_gen): Likewise.
20536 * gensupport.c (replace_operands_with_dups): Iterate over
20537 the new rtx's format rather than the old one's.
20539 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20541 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20542 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20543 order clause entries.
20544 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20545 * tree-pretty-print.c (dump_omp_clause): Likewise.
20546 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20548 * omp-low.c (scan_sharing_clauses): Likewise.
20549 * tree-nested.c (convert_nonlocal_omp_clauses,
20550 convert_local_omp_clauses): Likewise.
20552 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20554 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20555 fallthrough target of current basic block isn't the placed
20558 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20561 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20562 (_mm512_storeu_epi64): Likewise.
20563 (_mm512_loadu_epi32): Likewise.
20564 (_mm512_storeu_epi32): Likewise.
20565 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20566 (_mm_storeu_epi64): Likewise.
20567 (_mm256_storeu_epi32): Likewise.
20568 (_mm_storeu_epi32): Likewise.
20570 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20572 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20574 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20576 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20579 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20582 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20583 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20584 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20585 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20586 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20587 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20589 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20590 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20591 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20593 (sse2_cvttpd2dq<mask_name>): Change into ...
20594 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20595 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20596 (*sse2_cvtpd2dq<mask_name>): Change into ...
20597 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20598 Add "C" constraint to const0_operand.
20599 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20600 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20604 * config/i386/i386-builtin-types.def
20605 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20606 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20607 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20608 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20609 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20610 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20611 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20612 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20613 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20614 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20615 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20616 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20617 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20618 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20619 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20620 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20621 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20622 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20623 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20624 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20625 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20626 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20627 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20628 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20629 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20630 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20631 __builtin_ia32_vpdpbusd_v4si_maskz,
20632 __builtin_ia32_vpdpbusds_v16si_mask,
20633 __builtin_ia32_vpdpbusds_v16si_maskz,
20634 __builtin_ia32_vpdpbusds_v8si_mask,
20635 __builtin_ia32_vpdpbusds_v8si_maskz,
20636 __builtin_ia32_vpdpbusds_v4si_mask,
20637 __builtin_ia32_vpdpbusds_v4si_maskz,
20638 __builtin_ia32_vpdpwssd_v16si_mask,
20639 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20640 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20641 __builtin_ia32_vpdpwssd_v4si_maskz,
20642 __builtin_ia32_vpdpwssds_v16si_mask,
20643 __builtin_ia32_vpdpwssds_v16si_maskz,
20644 __builtin_ia32_vpdpwssds_v8si_mask,
20645 __builtin_ia32_vpdpwssds_v8si_maskz,
20646 __builtin_ia32_vpdpwssds_v4si_mask,
20647 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20648 suffixed types rather than *_INT.
20649 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20650 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20651 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20652 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20653 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20654 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20656 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20658 * tree-vrp.c (intersect_ranges): If we know the intersection is
20659 empty, there is no need to conservatively add anything else to
20662 2019-07-11 Richard Biener <rguenther@suse.de>
20664 PR middle-end/91131
20665 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20666 when the object is volatile and we have not cleared it even though
20667 there are no nonzero elements.
20669 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20671 * config/rs6000/predicates.md (cint34_operand): Update
20672 SIGNED_34BIT_OFFSET_P call.
20673 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20674 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20675 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20676 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20677 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20679 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20680 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20681 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20682 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20683 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20685 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20687 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20688 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20689 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20690 (DEF_MIN_OSX_VERSION): New.
20692 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20694 * fold-const.c (fold_relational_const): Fix folding of
20695 vector-to-scalar NE_EXPRs.
20696 (test_vector_folding): Add more tests.
20698 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20701 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20702 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20703 (vec_setv2di_internal): Reexpress as...
20704 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20705 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20706 rather than gen_neon_vset_lane<mode>.
20708 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20711 * lra-constraints.c (process_alt_operands): Don't match user
20712 defined regs only if they are early clobbers.
20714 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20716 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20718 2019-07-10 Richard Biener <rguenther@suse.de>
20720 PR tree-optimization/91126
20721 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20722 native encoding offset for BYTES_BIG_ENDIAN.
20723 (vn_reference_lookup_3): Likewise.
20725 2019-07-10 Richard Biener <rguenther@suse.de>
20727 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20728 LHS whenever possible.
20730 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20732 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20733 from ...; work also on duplicated types.
20734 (nonoverlapping_component_refs_since_match): ... here
20735 (ncr_type_uid): Break out from ...
20736 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20738 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20739 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20741 2019-07-09 Martin Sebor <msebor@redhat.com>
20743 PR tree-optimization/90989
20744 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20745 optimization to just single character stores.
20747 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20749 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20750 Swap operands only once.
20752 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20754 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20755 for both call instructions.
20757 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20759 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20760 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20762 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20764 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20765 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20766 function from rs6000-logue.c back to rs6000.c.
20767 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20769 2019-07-09 Martin Sebor <msebor@redhat.com>
20772 * auto-profile.c: Change class-key of PODs to struct and others
20774 * basic-block.h: Same.
20775 * bitmap.c (bitmap_alloc): Same.
20777 * builtins.c (expand_builtin_prefetch): Same.
20778 (expand_builtin_interclass_mathfn): Same.
20779 (expand_builtin_strlen): Same.
20780 (expand_builtin_mempcpy_args): Same.
20781 (expand_cmpstr): Same.
20782 (expand_builtin___clear_cache): Same.
20783 (expand_ifn_atomic_bit_test_and): Same.
20784 (expand_builtin_thread_pointer): Same.
20785 (expand_builtin_set_thread_pointer): Same.
20786 * caller-save.c (setup_save_areas): Same.
20787 (replace_reg_with_saved_mem): Same.
20788 (insert_restore): Same.
20789 (insert_save): Same.
20790 (add_used_regs): Same.
20791 * cfg.c (get_bb_copy): Same.
20792 (set_loop_copy): Same.
20795 * cfgexpand.c (alloc_stack_frame_space): Same.
20796 (add_stack_var): Same.
20797 (add_stack_var_conflict): Same.
20798 (add_scope_conflicts_1): Same.
20799 (update_alias_info_with_stack_vars): Same.
20800 (expand_used_vars): Same.
20801 * cfghooks.c (redirect_edge_and_branch_force): Same.
20802 (delete_basic_block): Same.
20803 (split_edge): Same.
20804 (make_forwarder_block): Same.
20805 (force_nonfallthru): Same.
20806 (duplicate_block): Same.
20807 (lv_flush_pending_stmts): Same.
20808 * cfghooks.h: Same.
20809 * cfgloop.c (flow_loops_cfg_dump): Same.
20810 (flow_loop_nested_p): Same.
20811 (superloop_at_depth): Same.
20812 (get_loop_latch_edges): Same.
20813 (flow_loop_dump): Same.
20814 (flow_loops_dump): Same.
20815 (flow_loops_free): Same.
20816 (flow_loop_nodes_find): Same.
20817 (establish_preds): Same.
20818 (flow_loop_tree_node_add): Same.
20819 (flow_loop_tree_node_remove): Same.
20820 (flow_loops_find): Same.
20821 (find_subloop_latch_edge_by_profile): Same.
20822 (find_subloop_latch_edge_by_ivs): Same.
20823 (mfb_redirect_edges_in_set): Same.
20824 (form_subloop): Same.
20825 (merge_latch_edges): Same.
20826 (disambiguate_multiple_latches): Same.
20827 (disambiguate_loops_with_multiple_latches): Same.
20828 (flow_bb_inside_loop_p): Same.
20829 (glb_enum_p): Same.
20830 (get_loop_body_with_size): Same.
20831 (get_loop_body): Same.
20832 (fill_sons_in_loop): Same.
20833 (get_loop_body_in_dom_order): Same.
20834 (get_loop_body_in_custom_order): Same.
20835 (release_recorded_exits): Same.
20836 (get_loop_exit_edges): Same.
20837 (num_loop_branches): Same.
20838 (remove_bb_from_loops): Same.
20839 (find_common_loop): Same.
20840 (delete_loop): Same.
20841 (cancel_loop): Same.
20842 (verify_loop_structure): Same.
20843 (loop_preheader_edge): Same.
20844 (loop_exit_edge_p): Same.
20845 (single_exit): Same.
20846 (loop_exits_to_bb_p): Same.
20847 (loop_exits_from_bb_p): Same.
20848 (get_loop_location): Same.
20849 (record_niter_bound): Same.
20850 (get_estimated_loop_iterations_int): Same.
20851 (max_stmt_executions_int): Same.
20852 (likely_max_stmt_executions_int): Same.
20853 (get_estimated_loop_iterations): Same.
20854 (get_max_loop_iterations): Same.
20855 (get_max_loop_iterations_int): Same.
20856 (get_likely_max_loop_iterations): Same.
20857 * cfgloop.h (simple_loop_desc): Same.
20859 (loop_depth): Same.
20860 (loop_outer): Same.
20861 (loop_iterator::next): Same.
20862 (loop_outermost): Same.
20863 * cfgloopanal.c (mark_irreducible_loops): Same.
20864 (num_loop_insns): Same.
20865 (average_num_loop_insns): Same.
20866 (expected_loop_iterations_unbounded): Same.
20867 (expected_loop_iterations): Same.
20868 (mark_loop_exit_edges): Same.
20869 (single_likely_exit): Same.
20870 * cfgloopmanip.c (fix_bb_placement): Same.
20871 (fix_bb_placements): Same.
20872 (remove_path): Same.
20873 (place_new_loop): Same.
20875 (scale_loop_frequencies): Same.
20876 (scale_loop_profile): Same.
20877 (create_empty_if_region_on_edge): Same.
20878 (create_empty_loop_on_edge): Same.
20881 (fix_loop_placements): Same.
20882 (copy_loop_info): Same.
20883 (duplicate_loop): Same.
20884 (duplicate_subloops): Same.
20885 (loop_redirect_edge): Same.
20886 (can_duplicate_loop_p): Same.
20887 (duplicate_loop_to_header_edge): Same.
20888 (mfb_keep_just): Same.
20889 (has_preds_from_loop): Same.
20890 (create_preheader): Same.
20891 (create_preheaders): Same.
20892 (lv_adjust_loop_entry_edge): Same.
20893 (loop_version): Same.
20894 * cfgloopmanip.h: Same.
20896 * cgraphbuild.c: Same.
20897 * combine.c (make_extraction): Same.
20898 * config/i386/i386-features.c: Same.
20899 * config/i386/i386-features.h: Same.
20900 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20901 (ix86_emit_outlined_ms2sysv_restore): Same.
20902 (ix86_noce_conversion_profitable_p): Same.
20903 (ix86_init_cost): Same.
20904 (ix86_simd_clone_usable): Same.
20905 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20907 * coretypes.h: Same.
20908 * data-streamer-in.c (string_for_index): Change class-key of PODs
20909 to struct and others to class.
20910 (streamer_read_indexed_string): Same.
20911 (streamer_read_string): Same.
20912 (bp_unpack_indexed_string): Same.
20913 (bp_unpack_string): Same.
20914 (streamer_read_uhwi): Same.
20915 (streamer_read_hwi): Same.
20916 (streamer_read_gcov_count): Same.
20917 (streamer_read_wide_int): Same.
20918 * data-streamer.h (streamer_write_bitpack): Same.
20919 (bp_unpack_value): Same.
20920 (streamer_write_char_stream): Same.
20921 (streamer_write_hwi_in_range): Same.
20922 (streamer_write_record_start): Same.
20923 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20924 (add_cross_iteration_register_deps): Same.
20925 (build_intra_loop_deps): Same.
20926 * df-core.c (df_analyze): Same.
20927 (loop_post_order_compute): Same.
20928 (loop_inverted_post_order_compute): Same.
20929 * df-problems.c (df_rd_alloc): Same.
20930 (df_rd_simulate_one_insn): Same.
20931 (df_rd_local_compute): Same.
20932 (df_rd_init_solution): Same.
20933 (df_rd_confluence_n): Same.
20934 (df_rd_transfer_function): Same.
20935 (df_rd_free): Same.
20936 (df_rd_dump_defs_set): Same.
20937 (df_rd_top_dump): Same.
20938 (df_lr_alloc): Same.
20939 (df_lr_reset): Same.
20940 (df_lr_local_compute): Same.
20941 (df_lr_init): Same.
20942 (df_lr_confluence_n): Same.
20943 (df_lr_free): Same.
20944 (df_lr_top_dump): Same.
20945 (df_lr_verify_transfer_functions): Same.
20946 (df_live_alloc): Same.
20947 (df_live_reset): Same.
20948 (df_live_init): Same.
20949 (df_live_confluence_n): Same.
20950 (df_live_finalize): Same.
20951 (df_live_free): Same.
20952 (df_live_top_dump): Same.
20953 (df_live_verify_transfer_functions): Same.
20954 (df_mir_alloc): Same.
20955 (df_mir_reset): Same.
20956 (df_mir_init): Same.
20957 (df_mir_confluence_n): Same.
20958 (df_mir_free): Same.
20959 (df_mir_top_dump): Same.
20960 (df_word_lr_alloc): Same.
20961 (df_word_lr_reset): Same.
20962 (df_word_lr_init): Same.
20963 (df_word_lr_confluence_n): Same.
20964 (df_word_lr_free): Same.
20965 (df_word_lr_top_dump): Same.
20966 (df_md_alloc): Same.
20967 (df_md_simulate_one_insn): Same.
20968 (df_md_reset): Same.
20969 (df_md_init): Same.
20970 (df_md_free): Same.
20971 (df_md_top_dump): Same.
20972 * df-scan.c (df_insn_delete): Same.
20973 (df_insn_rescan): Same.
20974 (df_notes_rescan): Same.
20975 (df_sort_and_compress_mws): Same.
20976 (df_install_mws): Same.
20977 (df_refs_add_to_chains): Same.
20978 (df_ref_create_structure): Same.
20979 (df_ref_record): Same.
20980 (df_def_record_1): Same.
20981 (df_find_hard_reg_defs): Same.
20982 (df_uses_record): Same.
20983 (df_get_conditional_uses): Same.
20984 (df_get_call_refs): Same.
20985 (df_recompute_luids): Same.
20986 (df_get_entry_block_def_set): Same.
20987 (df_entry_block_defs_collect): Same.
20988 (df_get_exit_block_use_set): Same.
20989 (df_exit_block_uses_collect): Same.
20990 (df_mws_verify): Same.
20991 (df_bb_verify): Same.
20992 * df.h (df_scan_get_bb_info): Same.
20993 * doc/tm.texi: Same.
20994 * dse.c (record_store): Same.
20995 * dumpfile.h: Same.
20996 * emit-rtl.c (const_fixed_hasher::equal): Same.
20997 (set_mem_attributes_minus_bitpos): Same.
20998 (change_address): Same.
20999 (adjust_address_1): Same.
21000 (offset_address): Same.
21001 * emit-rtl.h: Same.
21002 * except.c (dw2_build_landing_pads): Same.
21003 (sjlj_emit_dispatch_table): Same.
21004 * explow.c (allocate_dynamic_stack_space): Same.
21005 (emit_stack_probe): Same.
21006 (probe_stack_range): Same.
21007 * expmed.c (store_bit_field_using_insv): Same.
21008 (store_bit_field_1): Same.
21009 (store_integral_bit_field): Same.
21010 (extract_bit_field_using_extv): Same.
21011 (extract_bit_field_1): Same.
21012 (emit_cstore): Same.
21013 * expr.c (emit_block_move_via_cpymem): Same.
21014 (expand_cmpstrn_or_cmpmem): Same.
21015 (set_storage_via_setmem): Same.
21016 (emit_single_push_insn_1): Same.
21017 (expand_assignment): Same.
21018 (store_constructor): Same.
21019 (expand_expr_real_2): Same.
21020 (expand_expr_real_1): Same.
21021 (try_casesi): Same.
21023 * function.c (try_fit_stack_local): Same.
21024 (assign_stack_local_1): Same.
21025 (assign_stack_local): Same.
21026 (cut_slot_from_list): Same.
21027 (insert_slot_to_list): Same.
21028 (max_slot_level): Same.
21029 (move_slot_to_level): Same.
21030 (temp_address_hasher::equal): Same.
21031 (remove_unused_temp_slot_addresses): Same.
21032 (assign_temp): Same.
21033 (combine_temp_slots): Same.
21034 (update_temp_slot_address): Same.
21035 (preserve_temp_slots): Same.
21036 * function.h: Same.
21038 * gcc-rich-location.h: Same.
21040 * genattrtab.c (check_attr_test): Same.
21041 (check_attr_value): Same.
21042 (convert_set_attr_alternative): Same.
21043 (convert_set_attr): Same.
21044 (check_defs): Same.
21045 (copy_boolean): Same.
21046 (get_attr_value): Same.
21047 (expand_delays): Same.
21048 (make_length_attrs): Same.
21050 (make_alternative_compare): Same.
21051 (simplify_test_exp): Same.
21052 (tests_attr_p): Same.
21053 (get_attr_order): Same.
21054 (clear_struct_flag): Same.
21056 (compares_alternatives_p): Same.
21059 (find_attrs_to_cache): Same.
21060 (write_test_expr): Same.
21061 (walk_attr_value): Same.
21062 (write_attr_get): Same.
21063 (eliminate_known_true): Same.
21064 (write_insn_cases): Same.
21065 (write_attr_case): Same.
21066 (write_attr_valueq): Same.
21067 (write_attr_value): Same.
21068 (write_dummy_eligible_delay): Same.
21069 (next_comma_elt): Same.
21071 (make_internal_attr): Same.
21072 (copy_rtx_unchanging): Same.
21073 (gen_insn_reserv): Same.
21074 (check_tune_attr): Same.
21075 (make_automaton_attrs): Same.
21076 (handle_arg): Same.
21077 * genextract.c (gen_insn): Same.
21078 (VEC_char_to_string): Same.
21079 * genmatch.c (print_operand): Same.
21081 (parser::parse_operation): Same.
21082 (parser::parse_capture): Same.
21083 (parser::parse_c_expr): Same.
21084 (parser::parse_simplify): Same.
21086 * genoutput.c (output_operand_data): Same.
21087 (output_get_insn_name): Same.
21088 (compare_operands): Same.
21089 (place_operands): Same.
21090 (process_template): Same.
21091 (validate_insn_alternatives): Same.
21092 (validate_insn_operands): Same.
21093 (gen_expand): Same.
21094 (note_constraint): Same.
21095 * genpreds.c (write_one_predicate_function): Same.
21096 (add_constraint): Same.
21097 (process_define_register_constraint): Same.
21098 (write_lookup_constraint_1): Same.
21099 (write_lookup_constraint_array): Same.
21100 (write_insn_constraint_len): Same.
21101 (write_reg_class_for_constraint_1): Same.
21102 (write_constraint_satisfied_p_array): Same.
21103 * genrecog.c (optimize_subroutine_group): Same.
21104 * gensupport.c (process_define_predicate): Same.
21105 (queue_pattern): Same.
21106 (remove_from_queue): Same.
21107 (process_rtx): Same.
21108 (is_predicable): Same.
21109 (change_subst_attribute): Same.
21110 (subst_pattern_match): Same.
21111 (alter_constraints): Same.
21112 (alter_attrs_for_insn): Same.
21113 (shift_output_template): Same.
21114 (alter_output_for_subst_insn): Same.
21115 (process_one_cond_exec): Same.
21117 (process_define_cond_exec): Same.
21118 (mnemonic_htab_callback): Same.
21119 (gen_mnemonic_attr): Same.
21120 (read_md_rtx): Same.
21121 * ggc-page.c: Same.
21122 * gimple-loop-interchange.cc (dump_reduction): Same.
21123 (dump_induction): Same.
21124 (loop_cand::~loop_cand): Same.
21125 (free_data_refs_with_aux): Same.
21126 (tree_loop_interchange::interchange_loops): Same.
21127 (tree_loop_interchange::map_inductions_to_loop): Same.
21128 (tree_loop_interchange::move_code_to_inner_loop): Same.
21129 (compute_access_stride): Same.
21130 (compute_access_strides): Same.
21131 (proper_loop_form_for_interchange): Same.
21132 (tree_loop_interchange_compute_ddrs): Same.
21133 (prune_datarefs_not_in_loop): Same.
21134 (prepare_data_references): Same.
21135 (pass_linterchange::execute): Same.
21136 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
21137 (unroll_jam_possible_p): Same.
21138 (fuse_loops): Same.
21139 (adjust_unroll_factor): Same.
21140 (tree_loop_unroll_and_jam): Same.
21141 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
21142 (loop_versioning::expensive_stmt_p): Same.
21143 (loop_versioning::version_for_unity): Same.
21144 (loop_versioning::dump_inner_likelihood): Same.
21145 (loop_versioning::find_per_loop_multiplication): Same.
21146 (loop_versioning::analyze_term_using_scevs): Same.
21147 (loop_versioning::record_address_fragment): Same.
21148 (loop_versioning::analyze_expr): Same.
21149 (loop_versioning::analyze_blocks): Same.
21150 (loop_versioning::prune_conditions): Same.
21151 (loop_versioning::merge_loop_info): Same.
21152 (loop_versioning::add_loop_to_queue): Same.
21153 (loop_versioning::decide_whether_loop_is_versionable): Same.
21154 (loop_versioning::make_versioning_decisions): Same.
21155 (loop_versioning::implement_versioning_decisions): Same.
21156 * gimple-ssa-evrp-analyze.c
21157 (evrp_range_analyzer::record_ranges_from_phis): Same.
21158 * gimple-ssa-store-merging.c (split_store::split_store): Same.
21159 (count_multiple_uses): Same.
21160 (split_group): Same.
21161 (imm_store_chain_info::output_merged_store): Same.
21162 (pass_store_merging::process_store): Same.
21163 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
21164 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
21166 (alloca_call_type): Same.
21167 (pass_walloca::execute): Same.
21168 * gimple-streamer-in.c (input_phi): Same.
21169 (input_gimple_stmt): Same.
21170 * gimple-streamer.h: Same.
21171 * godump.c (go_force_record_alignment): Same.
21172 (go_format_type): Same.
21173 (go_output_type): Same.
21174 (go_output_fndecl): Same.
21175 (go_output_typedef): Same.
21176 (keyword_hash_init): Same.
21177 (find_dummy_types): Same.
21178 * graph.c (draw_cfg_nodes_no_loops): Same.
21179 (draw_cfg_nodes_for_loop): Same.
21180 * hard-reg-set.h (hard_reg_set_iter_next): Same.
21181 * hsa-brig.c: Same.
21182 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
21183 * hsa-dump.c (dump_hsa_cfun): Same.
21184 * hsa-gen.c (gen_function_def_parameters): Same.
21185 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
21186 * input.c (dump_line_table_statistics): Same.
21187 (test_lexer): Same.
21189 * internal-fn.c (get_multi_vector_move): Same.
21190 (expand_load_lanes_optab_fn): Same.
21191 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
21192 (expand_GOMP_SIMT_EXIT): Same.
21193 (expand_GOMP_SIMT_LAST_LANE): Same.
21194 (expand_GOMP_SIMT_ORDERED_PRED): Same.
21195 (expand_GOMP_SIMT_VOTE_ANY): Same.
21196 (expand_GOMP_SIMT_XCHG_BFLY): Same.
21197 (expand_GOMP_SIMT_XCHG_IDX): Same.
21198 (expand_addsub_overflow): Same.
21199 (expand_neg_overflow): Same.
21200 (expand_mul_overflow): Same.
21201 (expand_call_mem_ref): Same.
21202 (expand_mask_load_optab_fn): Same.
21203 (expand_scatter_store_optab_fn): Same.
21204 (expand_gather_load_optab_fn): Same.
21205 * ipa-cp.c (ipa_get_parm_lattices): Same.
21206 (print_all_lattices): Same.
21207 (ignore_edge_p): Same.
21208 (build_toporder_info): Same.
21209 (free_toporder_info): Same.
21210 (push_node_to_stack): Same.
21211 (ipcp_lattice<valtype>::set_contains_variable): Same.
21212 (set_agg_lats_to_bottom): Same.
21213 (ipcp_bits_lattice::meet_with): Same.
21214 (set_single_call_flag): Same.
21215 (initialize_node_lattices): Same.
21216 (ipa_get_jf_ancestor_result): Same.
21217 (ipcp_verify_propagated_values): Same.
21218 (propagate_scalar_across_jump_function): Same.
21219 (propagate_context_across_jump_function): Same.
21220 (propagate_bits_across_jump_function): Same.
21221 (ipa_vr_operation_and_type_effects): Same.
21222 (propagate_vr_across_jump_function): Same.
21223 (set_check_aggs_by_ref): Same.
21224 (set_chain_of_aglats_contains_variable): Same.
21225 (merge_aggregate_lattices): Same.
21226 (agg_pass_through_permissible_p): Same.
21227 (propagate_aggs_across_jump_function): Same.
21228 (call_passes_through_thunk_p): Same.
21229 (propagate_constants_across_call): Same.
21230 (devirtualization_time_bonus): Same.
21231 (good_cloning_opportunity_p): Same.
21232 (context_independent_aggregate_values): Same.
21233 (gather_context_independent_values): Same.
21234 (perform_estimation_of_a_value): Same.
21235 (estimate_local_effects): Same.
21236 (value_topo_info<valtype>::add_val): Same.
21237 (add_all_node_vals_to_toposort): Same.
21238 (value_topo_info<valtype>::propagate_effects): Same.
21239 (ipcp_propagate_stage): Same.
21240 (ipcp_discover_new_direct_edges): Same.
21241 (same_node_or_its_all_contexts_clone_p): Same.
21242 (cgraph_edge_brings_value_p): Same.
21243 (gather_edges_for_value): Same.
21244 (create_specialized_node): Same.
21245 (find_more_scalar_values_for_callers_subset): Same.
21246 (find_more_contexts_for_caller_subset): Same.
21247 (copy_plats_to_inter): Same.
21248 (intersect_aggregates_with_edge): Same.
21249 (find_aggregate_values_for_callers_subset): Same.
21250 (cgraph_edge_brings_all_agg_vals_for_node): Same.
21251 (decide_about_value): Same.
21252 (decide_whether_version_node): Same.
21253 (spread_undeadness): Same.
21254 (identify_dead_nodes): Same.
21255 (ipcp_store_vr_results): Same.
21256 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21257 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21258 (redirect_to_unreachable): Same.
21259 (edge_set_predicate): Same.
21260 (evaluate_conditions_for_known_args): Same.
21261 (evaluate_properties_for_edge): Same.
21262 (ipa_fn_summary_t::duplicate): Same.
21263 (ipa_call_summary_t::duplicate): Same.
21264 (dump_ipa_call_summary): Same.
21265 (ipa_dump_fn_summary): Same.
21266 (eliminated_by_inlining_prob): Same.
21267 (set_cond_stmt_execution_predicate): Same.
21268 (set_switch_stmt_execution_predicate): Same.
21269 (compute_bb_predicates): Same.
21270 (will_be_nonconstant_expr_predicate): Same.
21271 (phi_result_unknown_predicate): Same.
21272 (analyze_function_body): Same.
21273 (compute_fn_summary): Same.
21274 (estimate_edge_devirt_benefit): Same.
21275 (estimate_edge_size_and_time): Same.
21276 (estimate_calls_size_and_time): Same.
21277 (estimate_node_size_and_time): Same.
21278 (remap_edge_change_prob): Same.
21279 (remap_edge_summaries): Same.
21280 (ipa_merge_fn_summary_after_inlining): Same.
21281 (ipa_fn_summary_generate): Same.
21282 (inline_read_section): Same.
21283 (ipa_fn_summary_read): Same.
21284 (ipa_fn_summary_write): Same.
21285 * ipa-fnsummary.h: Same.
21286 * ipa-hsa.c (ipa_hsa_read_section): Same.
21287 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21288 * ipa-icf.c (sem_function::param_used_p): Same.
21289 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21290 * ipa-inline.c (edge_badness): Same.
21291 (inline_small_functions): Same.
21292 * ipa-polymorphic-call.c
21293 (ipa_polymorphic_call_context::stream_out): Same.
21294 * ipa-predicate.c (predicate::remap_after_duplication): Same.
21295 (predicate::remap_after_inlining): Same.
21296 (predicate::stream_out): Same.
21297 * ipa-predicate.h: Same.
21298 * ipa-profile.c (ipa_profile_read_summary): Same.
21299 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21300 (count_formal_params): Same.
21301 (ipa_dump_param): Same.
21302 (ipa_alloc_node_params): Same.
21303 (ipa_print_node_jump_functions_for_edge): Same.
21304 (ipa_print_node_jump_functions): Same.
21305 (ipa_load_from_parm_agg): Same.
21306 (get_ancestor_addr_info): Same.
21307 (ipa_compute_jump_functions_for_edge): Same.
21308 (ipa_analyze_virtual_call_uses): Same.
21309 (ipa_analyze_stmt_uses): Same.
21310 (ipa_analyze_params_uses_in_bb): Same.
21311 (update_jump_functions_after_inlining): Same.
21312 (try_decrement_rdesc_refcount): Same.
21313 (ipa_impossible_devirt_target): Same.
21314 (update_indirect_edges_after_inlining): Same.
21315 (combine_controlled_uses_counters): Same.
21316 (ipa_edge_args_sum_t::duplicate): Same.
21317 (ipa_write_jump_function): Same.
21318 (ipa_write_indirect_edge_info): Same.
21319 (ipa_write_node_info): Same.
21320 (ipa_read_edge_info): Same.
21321 (ipa_prop_read_section): Same.
21322 (read_replacements_section): Same.
21323 * ipa-prop.h (ipa_get_param_count): Same.
21324 (ipa_get_param): Same.
21325 (ipa_get_type): Same.
21326 (ipa_get_param_move_cost): Same.
21327 (ipa_set_param_used): Same.
21328 (ipa_get_controlled_uses): Same.
21329 (ipa_set_controlled_uses): Same.
21330 (ipa_get_cs_argument_count): Same.
21331 * ipa-pure-const.c (analyze_function): Same.
21332 (pure_const_read_summary): Same.
21334 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21335 * ipa-split.c (test_nonssa_use): Same.
21336 (dump_split_point): Same.
21337 (dominated_by_forbidden): Same.
21338 (split_part_set_ssa_name_p): Same.
21339 (find_split_points): Same.
21340 * ira-build.c (finish_loop_tree_nodes): Same.
21341 (low_pressure_loop_node_p): Same.
21342 * ira-color.c (ira_reuse_stack_slot): Same.
21344 * ira.c (setup_reg_equiv): Same.
21345 (print_insn_chain): Same.
21347 * loop-doloop.c (doloop_condition_get): Same.
21349 (record_reg_sets): Same.
21350 (doloop_optimize): Same.
21351 * loop-init.c (loop_optimizer_init): Same.
21352 (fix_loop_structure): Same.
21353 * loop-invariant.c (merge_identical_invariants): Same.
21354 (compute_always_reached): Same.
21355 (find_exits): Same.
21356 (may_assign_reg_p): Same.
21357 (find_invariants_bb): Same.
21358 (find_invariants_body): Same.
21359 (replace_uses): Same.
21360 (can_move_invariant_reg): Same.
21361 (free_inv_motion_data): Same.
21362 (move_single_loop_invariants): Same.
21363 (change_pressure): Same.
21364 (mark_ref_regs): Same.
21365 (calculate_loop_reg_pressure): Same.
21366 * loop-iv.c (biv_entry_hasher::equal): Same.
21367 (iv_extend_to_rtx_code): Same.
21368 (check_iv_ref_table_size): Same.
21369 (clear_iv_info): Same.
21370 (latch_dominating_def): Same.
21371 (iv_get_reaching_def): Same.
21372 (iv_constant): Same.
21378 (get_biv_step): Same.
21380 (analyzed_for_bivness_p): Same.
21381 (record_biv): Same.
21382 (iv_analyze_biv): Same.
21383 (iv_analyze_expr): Same.
21384 (iv_analyze_def): Same.
21385 (iv_analyze_op): Same.
21386 (iv_analyze): Same.
21387 (iv_analyze_result): Same.
21389 (eliminate_implied_conditions): Same.
21390 (simplify_using_initial_values): Same.
21391 (shorten_into_mode): Same.
21392 (canonicalize_iv_subregs): Same.
21393 (determine_max_iter): Same.
21394 (check_simple_exit): Same.
21395 (find_simple_exit): Same.
21396 (get_simple_loop_desc): Same.
21397 * loop-unroll.c (report_unroll): Same.
21398 (decide_unrolling): Same.
21399 (unroll_loops): Same.
21400 (loop_exit_at_end_p): Same.
21401 (decide_unroll_constant_iterations): Same.
21402 (unroll_loop_constant_iterations): Same.
21403 (compare_and_jump_seq): Same.
21404 (unroll_loop_runtime_iterations): Same.
21405 (decide_unroll_stupid): Same.
21406 (unroll_loop_stupid): Same.
21407 (referenced_in_one_insn_in_loop_p): Same.
21408 (reset_debug_uses_in_loop): Same.
21409 (analyze_iv_to_split_insn): Same.
21410 * lra-eliminations.c (lra_debug_elim_table): Same.
21411 (setup_can_eliminate): Same.
21413 (lra_get_elimination_hard_regno): Same.
21414 (lra_eliminate_regs_1): Same.
21415 (eliminate_regs_in_insn): Same.
21416 (update_reg_eliminate): Same.
21417 (init_elimination): Same.
21418 (lra_eliminate): Same.
21420 * lra-lives.c (initiate_live_solver): Same.
21421 * lra-remat.c (create_remat_bb_data): Same.
21422 * lra-spills.c (lra_spill): Same.
21423 * lra.c (lra_set_insn_recog_data): Same.
21424 (lra_set_used_insn_alternative_by_uid): Same.
21425 (init_reg_info): Same.
21426 (expand_reg_info): Same.
21427 * lto-cgraph.c (output_symtab): Same.
21428 (read_identifier): Same.
21429 (get_alias_symbol): Same.
21430 (input_node): Same.
21431 (input_varpool_node): Same.
21433 (input_edge): Same.
21434 (input_cgraph_1): Same.
21435 (input_refs): Same.
21436 (input_symtab): Same.
21437 (input_offload_tables): Same.
21438 (output_cgraph_opt_summary): Same.
21439 (input_edge_opt_summary): Same.
21440 (input_cgraph_opt_section): Same.
21441 * lto-section-in.c (lto_free_raw_section_data): Same.
21442 (lto_create_simple_input_block): Same.
21443 (lto_free_function_in_decl_state_for_node): Same.
21444 * lto-streamer-in.c (lto_tag_check_set): Same.
21445 (lto_location_cache::revert_location_cache): Same.
21446 (lto_location_cache::input_location): Same.
21447 (lto_input_location): Same.
21448 (stream_input_location_now): Same.
21449 (lto_input_tree_ref): Same.
21450 (lto_input_eh_catch_list): Same.
21451 (input_eh_region): Same.
21452 (lto_init_eh): Same.
21453 (make_new_block): Same.
21455 (fixup_call_stmt_edges): Same.
21456 (input_struct_function_base): Same.
21457 (input_function): Same.
21458 (lto_read_body_or_constructor): Same.
21459 (lto_read_tree_1): Same.
21460 (lto_read_tree): Same.
21461 (lto_input_scc): Same.
21462 (lto_input_tree_1): Same.
21463 (lto_input_toplevel_asms): Same.
21464 (lto_input_mode_table): Same.
21465 (lto_reader_init): Same.
21466 (lto_data_in_create): Same.
21467 * lto-streamer-out.c (output_cfg): Same.
21468 * lto-streamer.h: Same.
21469 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21470 (generate_prolog_epilog): Same.
21471 (mark_loop_unsched): Same.
21472 (dump_insn_location): Same.
21473 (loop_canon_p): Same.
21474 (sms_schedule): Same.
21475 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21476 (expand_omp_for_generic): Same.
21477 (expand_omp_for_static_nochunk): Same.
21478 (expand_omp_for_static_chunk): Same.
21479 (expand_omp_simd): Same.
21480 (expand_omp_taskloop_for_inner): Same.
21481 (expand_oacc_for): Same.
21482 (expand_omp_atomic_pipeline): Same.
21483 (mark_loops_in_oacc_kernels_region): Same.
21484 * omp-offload.c (oacc_xform_loop): Same.
21485 * omp-simd-clone.c (simd_clone_adjust): Same.
21486 * optabs-query.c (get_traditional_extraction_insn): Same.
21487 * optabs.c (expand_vector_broadcast): Same.
21488 (expand_binop_directly): Same.
21489 (expand_twoval_unop): Same.
21490 (expand_twoval_binop): Same.
21491 (expand_unop_direct): Same.
21492 (emit_indirect_jump): Same.
21493 (emit_conditional_move): Same.
21494 (emit_conditional_neg_or_complement): Same.
21495 (emit_conditional_add): Same.
21496 (vector_compare_rtx): Same.
21497 (expand_vec_perm_1): Same.
21498 (expand_vec_perm_const): Same.
21499 (expand_vec_cond_expr): Same.
21500 (expand_vec_series_expr): Same.
21501 (maybe_emit_atomic_exchange): Same.
21502 (maybe_emit_sync_lock_test_and_set): Same.
21503 (expand_atomic_compare_and_swap): Same.
21504 (expand_atomic_load): Same.
21505 (expand_atomic_store): Same.
21506 (maybe_emit_op): Same.
21507 (valid_multiword_target_p): Same.
21508 (create_integer_operand): Same.
21509 (maybe_legitimize_operand_same_code): Same.
21510 (maybe_legitimize_operand): Same.
21511 (create_convert_operand_from_type): Same.
21512 (can_reuse_operands_p): Same.
21513 (maybe_legitimize_operands): Same.
21514 (maybe_gen_insn): Same.
21515 (maybe_expand_insn): Same.
21516 (maybe_expand_jump_insn): Same.
21517 (expand_insn): Same.
21518 * optabs.h (create_expand_operand): Same.
21519 (create_fixed_operand): Same.
21520 (create_output_operand): Same.
21521 (create_input_operand): Same.
21522 (create_convert_operand_to): Same.
21523 (create_convert_operand_from): Same.
21525 * poly-int.h: Same.
21526 * predict.c (optimize_insn_for_speed_p): Same.
21527 (optimize_loop_for_size_p): Same.
21528 (optimize_loop_for_speed_p): Same.
21529 (optimize_loop_nest_for_speed_p): Same.
21530 (get_base_value): Same.
21531 (predicted_by_loop_heuristics_p): Same.
21532 (predict_extra_loop_exits): Same.
21533 (predict_loops): Same.
21534 (predict_paths_for_bb): Same.
21535 (predict_paths_leading_to): Same.
21536 (propagate_freq): Same.
21537 (pass_profile::execute): Same.
21539 * profile-count.c (profile_count::differs_from_p): Same.
21540 (profile_probability::differs_lot_from_p): Same.
21541 * profile-count.h: Same.
21542 * profile.c (branch_prob): Same.
21543 * regrename.c (free_chain_data): Same.
21544 (mark_conflict): Same.
21545 (create_new_chain): Same.
21546 (merge_overlapping_regs): Same.
21547 (init_rename_info): Same.
21548 (merge_chains): Same.
21549 (regrename_analyze): Same.
21550 (regrename_do_replace): Same.
21551 (scan_rtx_reg): Same.
21552 (record_out_operands): Same.
21553 (build_def_use): Same.
21554 * regrename.h: Same.
21556 * reload1.c (init_reload): Same.
21557 (maybe_fix_stack_asms): Same.
21558 (copy_reloads): Same.
21559 (count_pseudo): Same.
21560 (count_spilled_pseudo): Same.
21562 (find_reload_regs): Same.
21563 (select_reload_regs): Same.
21564 (spill_hard_reg): Same.
21565 (fixup_eh_region_note): Same.
21566 (set_reload_reg): Same.
21567 (allocate_reload_reg): Same.
21568 (compute_reload_subreg_offset): Same.
21569 (reload_adjust_reg_for_icode): Same.
21570 (emit_input_reload_insns): Same.
21571 (emit_output_reload_insns): Same.
21572 (do_input_reload): Same.
21573 (inherit_piecemeal_p): Same.
21575 * sanopt.c (maybe_get_dominating_check): Same.
21576 (maybe_optimize_ubsan_ptr_ifn): Same.
21577 (can_remove_asan_check): Same.
21578 (maybe_optimize_asan_check_ifn): Same.
21579 (sanopt_optimize_walker): Same.
21580 * sched-deps.c (add_dependence_list): Same.
21581 (chain_to_prev_insn): Same.
21582 (add_insn_mem_dependence): Same.
21583 (create_insn_reg_set): Same.
21584 (maybe_extend_reg_info_p): Same.
21585 (sched_analyze_reg): Same.
21586 (sched_analyze_1): Same.
21587 (get_implicit_reg_pending_clobbers): Same.
21588 (chain_to_prev_insn_p): Same.
21589 (deps_analyze_insn): Same.
21590 (deps_start_bb): Same.
21591 (sched_free_deps): Same.
21593 (init_deps_reg_last): Same.
21595 * sched-ebb.c: Same.
21596 * sched-int.h: Same.
21597 * sched-rgn.c (add_branch_dependences): Same.
21598 (concat_insn_mem_list): Same.
21600 (sched_rgn_compute_dependencies): Same.
21601 * sel-sched-ir.c (reset_target_context): Same.
21602 (copy_deps_context): Same.
21603 (init_id_from_df): Same.
21604 (has_dependence_p): Same.
21605 (change_loops_latches): Same.
21606 (bb_top_order_comparator): Same.
21607 (make_region_from_loop_preheader): Same.
21608 (sel_init_pipelining): Same.
21609 (get_loop_nest_for_rgn): Same.
21610 (make_regions_from_the_rest): Same.
21611 (sel_is_loop_preheader_p): Same.
21612 * sel-sched-ir.h (inner_loop_header_p): Same.
21613 (get_all_loop_exits): Same.
21614 * selftest.h: Same.
21615 * sese.c (sese_build_liveouts): Same.
21616 (sese_insert_phis_for_liveouts): Same.
21617 * sese.h (defined_in_sese_p): Same.
21618 * sreal.c (sreal::stream_out): Same.
21620 * streamer-hooks.h: Same.
21621 * target-globals.c (save_target_globals): Same.
21622 * target-globals.h: Same.
21623 * target.def: Same.
21625 * targhooks.c (default_has_ifunc_p): Same.
21626 (default_empty_mask_is_expensive): Same.
21627 (default_init_cost): Same.
21628 * targhooks.h: Same.
21630 * tree-affine.c (aff_combination_mult): Same.
21631 (aff_combination_expand): Same.
21632 (aff_combination_constant_multiple_p): Same.
21633 * tree-affine.h: Same.
21634 * tree-cfg.c (build_gimple_cfg): Same.
21635 (replace_loop_annotate_in_block): Same.
21636 (replace_uses_by): Same.
21638 (dump_cfg_stats): Same.
21639 (gimple_duplicate_sese_region): Same.
21640 (gimple_duplicate_sese_tail): Same.
21641 (move_block_to_fn): Same.
21642 (replace_block_vars_by_duplicates): Same.
21643 (move_sese_region_to_fn): Same.
21644 (print_loops_bb): Same.
21645 (print_loop): Same.
21646 (print_loops): Same.
21648 (debug_loops): Same.
21649 * tree-cfg.h: Same.
21650 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21651 (chrec_fold_multiply_poly_poly): Same.
21652 (chrec_evaluate): Same.
21653 (chrec_component_in_loop_num): Same.
21654 (reset_evolution_in_loop): Same.
21655 (is_multivariate_chrec): Same.
21656 (chrec_contains_symbols): Same.
21657 (nb_vars_in_chrec): Same.
21658 (chrec_convert_1): Same.
21659 (chrec_convert_aggressive): Same.
21660 * tree-chrec.h: Same.
21661 * tree-core.h: Same.
21662 * tree-data-ref.c (dump_data_dependence_relation): Same.
21663 (canonicalize_base_object_address): Same.
21664 (data_ref_compare_tree): Same.
21665 (prune_runtime_alias_test_list): Same.
21666 (get_segment_min_max): Same.
21667 (create_intersect_range_checks): Same.
21668 (conflict_fn_no_dependence): Same.
21669 (object_address_invariant_in_loop_p): Same.
21670 (analyze_ziv_subscript): Same.
21671 (analyze_siv_subscript_cst_affine): Same.
21672 (analyze_miv_subscript): Same.
21673 (analyze_overlapping_iterations): Same.
21674 (build_classic_dist_vector_1): Same.
21675 (add_other_self_distances): Same.
21676 (same_access_functions): Same.
21677 (build_classic_dir_vector): Same.
21678 (subscript_dependence_tester_1): Same.
21679 (subscript_dependence_tester): Same.
21680 (access_functions_are_affine_or_constant_p): Same.
21681 (get_references_in_stmt): Same.
21682 (loop_nest_has_data_refs): Same.
21683 (graphite_find_data_references_in_stmt): Same.
21684 (find_data_references_in_bb): Same.
21685 (get_base_for_alignment): Same.
21686 (find_loop_nest_1): Same.
21687 (find_loop_nest): Same.
21688 * tree-data-ref.h (dr_alignment): Same.
21689 (ddr_dependence_level): Same.
21690 * tree-if-conv.c (fold_build_cond_expr): Same.
21691 (add_to_predicate_list): Same.
21692 (add_to_dst_predicate_list): Same.
21693 (phi_convertible_by_degenerating_args): Same.
21694 (idx_within_array_bound): Same.
21695 (all_preds_critical_p): Same.
21696 (pred_blocks_visited_p): Same.
21697 (predicate_bbs): Same.
21698 (build_region): Same.
21699 (if_convertible_loop_p_1): Same.
21700 (is_cond_scalar_reduction): Same.
21701 (predicate_scalar_phi): Same.
21702 (remove_conditions_and_labels): Same.
21703 (combine_blocks): Same.
21704 (version_loop_for_if_conversion): Same.
21705 (versionable_outer_loop_p): Same.
21706 (ifcvt_local_dce): Same.
21707 (tree_if_conversion): Same.
21708 (pass_if_conversion::gate): Same.
21709 * tree-if-conv.h: Same.
21710 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21711 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21713 (stmt_has_scalar_dependences_outside_loop): Same.
21714 (copy_loop_before): Same.
21715 (create_bb_after_loop): Same.
21716 (const_with_all_bytes_same): Same.
21717 (generate_memset_builtin): Same.
21718 (generate_memcpy_builtin): Same.
21719 (destroy_loop): Same.
21720 (build_rdg_partition_for_vertex): Same.
21721 (compute_access_range): Same.
21722 (data_ref_segment_size): Same.
21723 (latch_dominated_by_data_ref): Same.
21724 (compute_alias_check_pairs): Same.
21725 (fuse_memset_builtins): Same.
21726 (finalize_partitions): Same.
21727 (find_seed_stmts_for_distribution): Same.
21728 (prepare_perfect_loop_nest): Same.
21729 * tree-parloops.c (lambda_transform_legal_p): Same.
21730 (loop_parallel_p): Same.
21731 (reduc_stmt_res): Same.
21732 (add_field_for_name): Same.
21733 (create_call_for_reduction_1): Same.
21734 (replace_uses_in_bb_by): Same.
21735 (transform_to_exit_first_loop_alt): Same.
21736 (try_transform_to_exit_first_loop_alt): Same.
21737 (transform_to_exit_first_loop): Same.
21739 (gen_parallel_loop): Same.
21740 (gather_scalar_reductions): Same.
21741 (get_omp_data_i_param): Same.
21742 (try_create_reduction_list): Same.
21743 (oacc_entry_exit_single_gang): Same.
21744 (parallelize_loops): Same.
21745 * tree-pass.h: Same.
21746 * tree-predcom.c (determine_offset): Same.
21747 (last_always_executed_block): Same.
21748 (split_data_refs_to_components): Same.
21749 (suitable_component_p): Same.
21750 (valid_initializer_p): Same.
21751 (find_looparound_phi): Same.
21752 (insert_looparound_copy): Same.
21753 (add_looparound_copies): Same.
21754 (determine_roots_comp): Same.
21755 (predcom_tmp_var): Same.
21756 (initialize_root_vars): Same.
21757 (initialize_root_vars_store_elim_1): Same.
21758 (initialize_root_vars_store_elim_2): Same.
21759 (finalize_eliminated_stores): Same.
21760 (initialize_root_vars_lm): Same.
21761 (remove_stmt): Same.
21762 (determine_unroll_factor): Same.
21763 (execute_pred_commoning_cbck): Same.
21764 (base_names_in_chain_on): Same.
21765 (combine_chains): Same.
21766 (pcom_stmt_dominates_stmt_p): Same.
21767 (try_combine_chains): Same.
21768 (prepare_initializers_chain_store_elim): Same.
21769 (prepare_initializers_chain): Same.
21770 (prepare_initializers): Same.
21771 (prepare_finalizers_chain): Same.
21772 (prepare_finalizers): Same.
21773 (insert_init_seqs): Same.
21774 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21775 (compute_overall_effect_of_inner_loop): Same.
21776 (add_to_evolution_1): Same.
21777 (add_to_evolution): Same.
21778 (follow_ssa_edge_binary): Same.
21779 (follow_ssa_edge_expr): Same.
21780 (backedge_phi_arg_p): Same.
21781 (follow_ssa_edge_in_condition_phi_branch): Same.
21782 (follow_ssa_edge_in_condition_phi): Same.
21783 (follow_ssa_edge_inner_loop_phi): Same.
21784 (follow_ssa_edge): Same.
21785 (analyze_evolution_in_loop): Same.
21786 (analyze_initial_condition): Same.
21787 (interpret_loop_phi): Same.
21788 (interpret_condition_phi): Same.
21789 (interpret_rhs_expr): Same.
21790 (interpret_expr): Same.
21791 (interpret_gimple_assign): Same.
21792 (analyze_scalar_evolution_1): Same.
21793 (analyze_scalar_evolution): Same.
21794 (analyze_scalar_evolution_for_address_of): Same.
21795 (get_instantiated_value_entry): Same.
21796 (loop_closed_phi_def): Same.
21797 (instantiate_scev_name): Same.
21798 (instantiate_scev_poly): Same.
21799 (instantiate_scev_binary): Same.
21800 (instantiate_scev_convert): Same.
21801 (instantiate_scev_not): Same.
21802 (instantiate_scev_r): Same.
21803 (instantiate_scev): Same.
21804 (resolve_mixers): Same.
21805 (initialize_scalar_evolutions_analyzer): Same.
21806 (scev_reset_htab): Same.
21807 (scev_reset): Same.
21808 (derive_simple_iv_with_niters): Same.
21809 (simple_iv_with_niters): Same.
21810 (expression_expensive_p): Same.
21811 (final_value_replacement_loop): Same.
21812 * tree-scalar-evolution.h (block_before_loop): Same.
21813 * tree-ssa-address.h: Same.
21814 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21815 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21816 (record_edge_info): Same.
21817 * tree-ssa-live.c (var_map_base_fini): Same.
21818 (remove_unused_locals): Same.
21819 * tree-ssa-live.h: Same.
21820 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21821 (pass_ch_vect::execute): Same.
21822 (pass_ch::process_loop_p): Same.
21823 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21824 (movement_possibility): Same.
21825 (outermost_invariant_loop): Same.
21827 (determine_max_movement): Same.
21828 (invariantness_dom_walker::before_dom_children): Same.
21829 (move_computations): Same.
21830 (may_move_till): Same.
21831 (force_move_till_op): Same.
21832 (force_move_till): Same.
21833 (memref_free): Same.
21834 (record_mem_ref_loc): Same.
21835 (set_ref_stored_in_loop): Same.
21836 (mark_ref_stored): Same.
21837 (sort_bbs_in_loop_postorder_cmp): Same.
21838 (sort_locs_in_loop_postorder_cmp): Same.
21839 (analyze_memory_references): Same.
21840 (mem_refs_may_alias_p): Same.
21841 (find_ref_loc_in_loop_cmp): Same.
21842 (rewrite_mem_ref_loc::operator): Same.
21843 (first_mem_ref_loc_1::operator): Same.
21844 (sm_set_flag_if_changed::operator): Same.
21845 (execute_sm_if_changed_flag_set): Same.
21846 (execute_sm): Same.
21847 (hoist_memory_references): Same.
21848 (ref_always_accessed::operator): Same.
21849 (refs_independent_p): Same.
21850 (record_dep_loop): Same.
21851 (ref_indep_loop_p_1): Same.
21852 (ref_indep_loop_p): Same.
21853 (can_sm_ref_p): Same.
21854 (find_refs_for_sm): Same.
21855 (loop_suitable_for_sm): Same.
21856 (store_motion_loop): Same.
21857 (store_motion): Same.
21858 (fill_always_executed_in): Same.
21859 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21860 (estimated_unrolled_size): Same.
21861 (loop_edge_to_cancel): Same.
21862 (remove_exits_and_undefined_stmts): Same.
21863 (remove_redundant_iv_tests): Same.
21864 (unloop_loops): Same.
21865 (estimated_peeled_sequence_size): Same.
21866 (try_peel_loop): Same.
21867 (canonicalize_loop_induction_variables): Same.
21868 (canonicalize_induction_variables): Same.
21869 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21871 (stmt_after_inc_pos): Same.
21872 (contains_abnormal_ssa_name_p): Same.
21873 (niter_for_exit): Same.
21876 (find_givs_in_bb): Same.
21877 (find_induction_variables): Same.
21878 (find_interesting_uses_cond): Same.
21879 (outermost_invariant_loop_for_expr): Same.
21880 (idx_find_step): Same.
21881 (add_candidate_1): Same.
21882 (add_iv_candidate_derived_from_uses): Same.
21883 (alloc_use_cost_map): Same.
21884 (prepare_decl_rtl): Same.
21885 (generic_predict_doloop_p): Same.
21886 (computation_cost): Same.
21887 (determine_common_wider_type): Same.
21888 (get_computation_aff_1): Same.
21889 (get_use_type): Same.
21890 (determine_group_iv_cost_address): Same.
21892 (difference_cannot_overflow_p): Same.
21893 (may_eliminate_iv): Same.
21894 (determine_set_costs): Same.
21895 (cheaper_cost_pair): Same.
21896 (compare_cost_pair): Same.
21897 (iv_ca_cand_for_group): Same.
21898 (iv_ca_recount_cost): Same.
21899 (iv_ca_set_remove_invs): Same.
21900 (iv_ca_set_no_cp): Same.
21901 (iv_ca_set_add_invs): Same.
21902 (iv_ca_set_cp): Same.
21903 (iv_ca_add_group): Same.
21904 (iv_ca_cost): Same.
21905 (iv_ca_compare_deps): Same.
21906 (iv_ca_delta_reverse): Same.
21907 (iv_ca_delta_commit): Same.
21908 (iv_ca_cand_used_p): Same.
21909 (iv_ca_delta_free): Same.
21911 (iv_ca_free): Same.
21912 (iv_ca_dump): Same.
21913 (iv_ca_extend): Same.
21914 (iv_ca_narrow): Same.
21915 (iv_ca_prune): Same.
21916 (cheaper_cost_with_cand): Same.
21917 (iv_ca_replace): Same.
21918 (try_add_cand_for): Same.
21919 (get_initial_solution): Same.
21920 (try_improve_iv_set): Same.
21921 (find_optimal_iv_set_1): Same.
21922 (create_new_iv): Same.
21923 (rewrite_use_compare): Same.
21924 (remove_unused_ivs): Same.
21925 (determine_scaling_factor): Same.
21926 * tree-ssa-loop-ivopts.h: Same.
21927 * tree-ssa-loop-manip.c (create_iv): Same.
21928 (compute_live_loop_exits): Same.
21929 (add_exit_phi): Same.
21930 (add_exit_phis): Same.
21931 (find_uses_to_rename_use): Same.
21932 (find_uses_to_rename_def): Same.
21933 (find_uses_to_rename_in_loop): Same.
21934 (rewrite_into_loop_closed_ssa): Same.
21935 (check_loop_closed_ssa_bb): Same.
21936 (split_loop_exit_edge): Same.
21937 (ip_end_pos): Same.
21938 (ip_normal_pos): Same.
21939 (copy_phi_node_args): Same.
21940 (gimple_duplicate_loop_to_header_edge): Same.
21941 (can_unroll_loop_p): Same.
21942 (determine_exit_conditions): Same.
21943 (scale_dominated_blocks_in_loop): Same.
21944 (niter_for_unrolled_loop): Same.
21945 (tree_transform_and_unroll_loop): Same.
21946 (rewrite_all_phi_nodes_with_iv): Same.
21947 * tree-ssa-loop-manip.h: Same.
21948 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21949 (number_of_iterations_ne): Same.
21950 (assert_no_overflow_lt): Same.
21951 (assert_loop_rolls_lt): Same.
21952 (number_of_iterations_lt): Same.
21953 (adjust_cond_for_loop_until_wrap): Same.
21954 (tree_simplify_using_condition): Same.
21955 (simplify_using_initial_conditions): Same.
21956 (simplify_using_outer_evolutions): Same.
21957 (loop_only_exit_p): Same.
21958 (ssa_defined_by_minus_one_stmt_p): Same.
21959 (number_of_iterations_popcount): Same.
21960 (number_of_iterations_exit): Same.
21961 (find_loop_niter): Same.
21962 (finite_loop_p): Same.
21963 (chain_of_csts_start): Same.
21964 (get_val_for): Same.
21965 (loop_niter_by_eval): Same.
21966 (derive_constant_upper_bound_ops): Same.
21967 (do_warn_aggressive_loop_optimizations): Same.
21968 (record_estimate): Same.
21969 (get_cst_init_from_scev): Same.
21970 (record_nonwrapping_iv): Same.
21971 (idx_infer_loop_bounds): Same.
21972 (infer_loop_bounds_from_ref): Same.
21973 (infer_loop_bounds_from_array): Same.
21974 (infer_loop_bounds_from_pointer_arith): Same.
21975 (infer_loop_bounds_from_signedness): Same.
21976 (bound_index): Same.
21977 (discover_iteration_bound_by_body_walk): Same.
21978 (maybe_lower_iteration_bound): Same.
21979 (estimate_numbers_of_iterations): Same.
21980 (estimated_loop_iterations): Same.
21981 (estimated_loop_iterations_int): Same.
21982 (max_loop_iterations): Same.
21983 (max_loop_iterations_int): Same.
21984 (likely_max_loop_iterations): Same.
21985 (likely_max_loop_iterations_int): Same.
21986 (estimated_stmt_executions_int): Same.
21987 (max_stmt_executions): Same.
21988 (likely_max_stmt_executions): Same.
21989 (estimated_stmt_executions): Same.
21990 (stmt_dominates_stmt_p): Same.
21991 (nowrap_type_p): Same.
21992 (loop_exits_before_overflow): Same.
21993 (scev_var_range_cant_overflow): Same.
21994 (scev_probably_wraps_p): Same.
21995 (free_numbers_of_iterations_estimates): Same.
21996 * tree-ssa-loop-niter.h: Same.
21997 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21998 (idx_analyze_ref): Same.
21999 (analyze_ref): Same.
22000 (gather_memory_references_ref): Same.
22001 (mark_nontemporal_store): Same.
22002 (emit_mfence_after_loop): Same.
22003 (may_use_storent_in_loop_p): Same.
22004 (mark_nontemporal_stores): Same.
22005 (should_unroll_loop_p): Same.
22006 (volume_of_dist_vector): Same.
22007 (add_subscript_strides): Same.
22008 (self_reuse_distance): Same.
22009 (insn_to_prefetch_ratio_too_small_p): Same.
22010 * tree-ssa-loop-split.c (split_at_bb_p): Same.
22011 (patch_loop_exit): Same.
22012 (find_or_create_guard_phi): Same.
22013 (easy_exit_values): Same.
22014 (connect_loop_phis): Same.
22015 (connect_loops): Same.
22016 (compute_new_first_bound): Same.
22017 (split_loop): Same.
22018 (tree_ssa_split_loops): Same.
22019 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
22020 (is_maybe_undefined): Same.
22021 (tree_may_unswitch_on): Same.
22022 (simplify_using_entry_checks): Same.
22023 (tree_unswitch_single_loop): Same.
22024 (tree_unswitch_loop): Same.
22025 (tree_unswitch_outer_loop): Same.
22026 (empty_bb_without_guard_p): Same.
22027 (used_outside_loop_p): Same.
22028 (get_vop_from_header): Same.
22029 (hoist_guard): Same.
22030 * tree-ssa-loop.c (gate_oacc_kernels): Same.
22031 (get_lsm_tmp_name): Same.
22032 * tree-ssa-loop.h: Same.
22033 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
22034 (build_and_add_sum): Same.
22035 (no_side_effect_bb): Same.
22037 (linearize_expr): Same.
22038 (should_break_up_subtract): Same.
22039 (linearize_expr_tree): Same.
22040 * tree-ssa-scopedtables.c: Same.
22041 * tree-ssa-scopedtables.h: Same.
22042 * tree-ssa-structalias.c (condense_visit): Same.
22043 (label_visit): Same.
22044 (dump_pred_graph): Same.
22045 (perform_var_substitution): Same.
22046 (move_complex_constraints): Same.
22047 (remove_preds_and_fake_succs): Same.
22048 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
22049 (determine_bb_domination_status): Same.
22050 (duplicate_thread_path): Same.
22051 (thread_through_all_blocks): Same.
22052 * tree-ssa-threadupdate.h: Same.
22053 * tree-streamer-in.c (streamer_read_string_cst): Same.
22054 (input_identifier): Same.
22055 (unpack_ts_type_common_value_fields): Same.
22056 (unpack_ts_block_value_fields): Same.
22057 (unpack_ts_translation_unit_decl_value_fields): Same.
22058 (unpack_ts_omp_clause_value_fields): Same.
22059 (streamer_read_tree_bitfields): Same.
22060 (streamer_alloc_tree): Same.
22061 (lto_input_ts_common_tree_pointers): Same.
22062 (lto_input_ts_vector_tree_pointers): Same.
22063 (lto_input_ts_poly_tree_pointers): Same.
22064 (lto_input_ts_complex_tree_pointers): Same.
22065 (lto_input_ts_decl_minimal_tree_pointers): Same.
22066 (lto_input_ts_decl_common_tree_pointers): Same.
22067 (lto_input_ts_decl_non_common_tree_pointers): Same.
22068 (lto_input_ts_decl_with_vis_tree_pointers): Same.
22069 (lto_input_ts_field_decl_tree_pointers): Same.
22070 (lto_input_ts_function_decl_tree_pointers): Same.
22071 (lto_input_ts_type_common_tree_pointers): Same.
22072 (lto_input_ts_type_non_common_tree_pointers): Same.
22073 (lto_input_ts_list_tree_pointers): Same.
22074 (lto_input_ts_vec_tree_pointers): Same.
22075 (lto_input_ts_exp_tree_pointers): Same.
22076 (lto_input_ts_block_tree_pointers): Same.
22077 (lto_input_ts_binfo_tree_pointers): Same.
22078 (lto_input_ts_constructor_tree_pointers): Same.
22079 (lto_input_ts_omp_clause_tree_pointers): Same.
22080 (streamer_read_tree_body): Same.
22081 * tree-streamer.h: Same.
22082 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
22083 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
22084 (vect_analyze_possibly_independent_ddr): Same.
22085 (vect_analyze_data_ref_dependence): Same.
22086 (vect_compute_data_ref_alignment): Same.
22087 (vect_enhance_data_refs_alignment): Same.
22088 (vect_analyze_data_ref_access): Same.
22089 (vect_check_gather_scatter): Same.
22090 (vect_find_stmt_data_reference): Same.
22091 (vect_create_addr_base_for_vector_ref): Same.
22092 (vect_setup_realignment): Same.
22093 (vect_supportable_dr_alignment): Same.
22094 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
22095 (adjust_phi_and_debug_stmts): Same.
22096 (vect_set_loop_mask): Same.
22097 (add_preheader_seq): Same.
22098 (vect_maybe_permute_loop_masks): Same.
22099 (vect_set_loop_masks_directly): Same.
22100 (vect_set_loop_condition_masked): Same.
22101 (vect_set_loop_condition_unmasked): Same.
22102 (slpeel_duplicate_current_defs_from_edges): Same.
22103 (slpeel_add_loop_guard): Same.
22104 (slpeel_can_duplicate_loop_p): Same.
22105 (create_lcssa_for_virtual_phi): Same.
22107 (vect_update_ivs_after_vectorizer): Same.
22108 (vect_gen_vector_loop_niters_mult_vf): Same.
22109 (slpeel_update_phi_nodes_for_loops): Same.
22110 (slpeel_update_phi_nodes_for_guard1): Same.
22111 (find_guard_arg): Same.
22112 (slpeel_update_phi_nodes_for_guard2): Same.
22113 (slpeel_update_phi_nodes_for_lcssa): Same.
22114 (vect_do_peeling): Same.
22115 (vect_create_cond_for_alias_checks): Same.
22116 (vect_loop_versioning): Same.
22117 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
22118 (vect_inner_phi_in_double_reduction_p): Same.
22119 (vect_analyze_scalar_cycles_1): Same.
22120 (vect_fixup_scalar_cycles_with_patterns): Same.
22121 (vect_get_loop_niters): Same.
22122 (bb_in_loop_p): Same.
22123 (vect_get_max_nscalars_per_iter): Same.
22124 (vect_verify_full_masking): Same.
22125 (vect_compute_single_scalar_iteration_cost): Same.
22126 (vect_analyze_loop_form_1): Same.
22127 (vect_analyze_loop_form): Same.
22128 (vect_active_double_reduction_p): Same.
22129 (vect_analyze_loop_operations): Same.
22130 (neutral_op_for_slp_reduction): Same.
22131 (vect_is_simple_reduction): Same.
22132 (vect_model_reduction_cost): Same.
22133 (get_initial_def_for_reduction): Same.
22134 (get_initial_defs_for_reduction): Same.
22135 (vect_create_epilog_for_reduction): Same.
22136 (vectorize_fold_left_reduction): Same.
22137 (vectorizable_reduction): Same.
22138 (vectorizable_induction): Same.
22139 (vectorizable_live_operation): Same.
22140 (loop_niters_no_overflow): Same.
22141 (vect_get_loop_mask): Same.
22142 (vect_transform_loop_stmt): Same.
22143 (vect_transform_loop): Same.
22144 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
22145 (vect_determine_precisions): Same.
22146 (vect_pattern_recog_1): Same.
22147 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
22148 * tree-vect-stmts.c (stmt_vectype): Same.
22149 (process_use): Same.
22150 (vect_init_vector_1): Same.
22151 (vect_truncate_gather_scatter_offset): Same.
22152 (get_group_load_store_type): Same.
22153 (vect_build_gather_load_calls): Same.
22154 (vect_get_strided_load_store_ops): Same.
22155 (vectorizable_simd_clone_call): Same.
22156 (vectorizable_store): Same.
22157 (permute_vec_elements): Same.
22158 (vectorizable_load): Same.
22159 (vect_transform_stmt): Same.
22160 (supportable_widening_operation): Same.
22161 * tree-vectorizer.c (vec_info::replace_stmt): Same.
22162 (vec_info::free_stmt_vec_info): Same.
22163 (vect_free_loop_info_assumptions): Same.
22164 (vect_loop_vectorized_call): Same.
22165 (set_uid_loop_bbs): Same.
22166 (vectorize_loops): Same.
22167 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
22168 * tree.c (add_tree_to_fld_list): Same.
22169 (fld_type_variant_equal_p): Same.
22170 (fld_decl_context): Same.
22171 (fld_incomplete_type_of): Same.
22172 (free_lang_data_in_binfo): Same.
22173 (need_assembler_name_p): Same.
22174 (find_decls_types_r): Same.
22175 (get_eh_types_for_runtime): Same.
22176 (find_decls_types_in_eh_region): Same.
22177 (find_decls_types_in_node): Same.
22178 (assign_assembler_name_if_needed): Same.
22179 * value-prof.c (stream_out_histogram_value): Same.
22180 * value-prof.h: Same.
22181 * var-tracking.c (use_narrower_mode): Same.
22182 (prepare_call_arguments): Same.
22183 (vt_expand_loc_callback): Same.
22184 (resolve_expansions_pending_recursion): Same.
22185 (vt_expand_loc): Same.
22186 * varasm.c (const_hash_1): Same.
22187 (compare_constant): Same.
22188 (tree_output_constant_def): Same.
22189 (simplify_subtraction): Same.
22190 (get_pool_constant): Same.
22191 (output_constant_pool_2): Same.
22192 (output_constant_pool_1): Same.
22193 (mark_constants_in_pattern): Same.
22194 (mark_constant_pool): Same.
22195 (get_section_anchor): Same.
22196 * vr-values.c (compare_range_with_value): Same.
22197 (vr_values::extract_range_from_phi_node): Same.
22198 * vr-values.h: Same.
22199 * web.c (unionfind_union): Same.
22200 * wide-int.h: Same.
22202 2019-07-09 Martin Sebor <msebor@redhat.com>
22205 * align.h: Change class-key from class to struct and vice versa
22206 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
22207 * alloc-pool.h: Same.
22208 * asan.c (shadow_mem_size): Same.
22209 * auto-profile.c: Same.
22210 * basic-block.h: Same.
22212 * cfgexpand.c (set_rtl): Same.
22213 (expand_one_stack_var_at): Same.
22214 * cfghooks.h: Same.
22217 * config/i386/i386.h: Same.
22218 * df-problems.c (df_print_bb_index): Same.
22220 * df.h (df_single_use): Same.
22221 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22222 (layout::annotation_line_showed_range_p): Same.
22223 (get_printed_columns): Same.
22224 (correction::ensure_terminated): Same.
22225 (line_corrections::~line_corrections): Same.
22228 * dump-context.h: Same.
22229 * dumpfile.h: Same.
22230 * dwarf2out.c: Same.
22231 * edit-context.c: Same.
22232 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22234 * function.c (assign_stack_local): Same.
22235 * function.h: Same.
22237 * gcov.c (block_info::block_info): Same.
22238 * genattrtab.c: Same.
22239 * genextract.c: Same.
22240 * genmatch.c (comparison_code_p): Same.
22241 (id_base::id_base): Same.
22242 (decision_tree::print): Same.
22243 * genoutput.c: Same.
22244 * genpreds.c (write_one_predicate_function): Same.
22245 * genrecog.c (validate_pattern): Same.
22246 (find_operand_positions): Same.
22247 (optimize_subroutine_group): Same.
22248 (merge_pattern_transition::merge_pattern_transition): Same.
22249 (merge_pattern_info::merge_pattern_info): Same.
22250 (merge_state_result::merge_state_result): Same.
22251 (merge_into_state): Same.
22252 * gensupport.c: Same.
22253 * gensupport.h: Same.
22254 * ggc-common.c (init_ggc_heuristics): Same.
22255 * ggc-tests.c (test_union): Same.
22256 * gimple-loop-interchange.cc (dump_induction): Same.
22257 * gimple-loop-versioning.cc: Same.
22258 * gimple-match.h (gimple_match_cond::any_else): Same.
22259 * gimple-ssa-backprop.c: Same.
22260 * gimple-ssa-sprintf.c: Same.
22261 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22263 (store_immediate_info::store_immediate_info): Same.
22264 (merged_store_group::apply_stores): Same.
22265 (get_location_for_stmts): Same.
22266 * gimple-ssa-strength-reduction.c: Same.
22267 * gimple-ssa-warn-alloca.c: Same.
22268 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22269 * godump.c (go_type_decl): Same.
22270 * hash-map-tests.c (test_map_of_strings_to_int): Same.
22271 * hash-map.h: Same.
22272 * hash-set-tests.c (test_set_of_strings): Same.
22273 * hsa-brig.c: Same.
22274 * hsa-common.h: Same.
22275 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22276 * input.c (assert_loceq): Same.
22279 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22280 * ipa-fnsummary.h: Same.
22281 * ipa-inline.h: Same.
22282 * ipa-prop.h: Same.
22283 * ipa-split.c (visit_bb): Same.
22284 * ira-int.h (minmax_set_iter_next): Same.
22285 * loop-invariant.c: Same.
22287 * lra-eliminations.c: Same.
22289 * lra-lives.c (mark_regno_dead): Same.
22290 * lra-remat.c: Same.
22291 * lra-spills.c: Same.
22292 * lto-streamer.h: Same.
22293 * mem-stats.h: Same.
22294 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22295 * omp-low.c (omp_clause_aligned_alignment): Same.
22296 * optabs-query.h (get_vcond_eq_icode): Same.
22298 * opts.c (wrap_help): Same.
22299 * poly-int.h: Same.
22300 * predict.c (predict_paths_leading_to_edge): Same.
22301 * pretty-print.h: Same.
22302 * profile-count.h: Same.
22304 * read-rtl-function.c: Same.
22307 * regrename.c: Same.
22308 * regrename.h: Same.
22310 * rtl-iter.h: Same.
22311 * rtl.h (costs_add_n_insns): Same.
22313 * sched-int.h: Same.
22314 * sel-sched-ir.h: Same.
22315 * selftest.h: Same.
22316 * sese.h (vec_find): Same.
22318 * target-globals.h: Same.
22319 * tree-affine.c (aff_combination_find_elt): Same.
22320 * tree-affine.h: Same.
22321 * tree-data-ref.h: Same.
22322 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22323 * tree-predcom.c: Same.
22324 * tree-scalar-evolution.c (find_var_scev_info): Same.
22325 * tree-ssa-alias.h: Same.
22326 * tree-ssa-ccp.c: Same.
22327 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22328 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22329 (rewrite_mem_refs): Same.
22330 (execute_sm_if_changed): Same.
22331 (hoist_memory_references): Same.
22332 * tree-ssa-loop-ivopts.c (operator<=): Same.
22333 * tree-ssa-loop.h: Same.
22334 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22335 * tree-ssa-structalias.c: Same.
22336 * tree-switch-conversion.h (cluster::cluster): Same.
22337 (simple_cluster::simple_cluster): Same.
22338 * tree-vect-patterns.c (type_conversion_p): Same.
22339 * tree-vectorizer.c (dump_stmt_cost): Same.
22340 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22341 * tree.c (protected_set_expr_location): Same.
22342 * tree.h (desired_pro_or_demotion_p): Same.
22343 (fndecl_built_in_p): Same.
22344 * unique-ptr-tests.cc: Same.
22345 * var-tracking.c (delete_variable_part): Same.
22346 * varasm.c (assemble_real): Same.
22347 (tree_output_constant_def): Same.
22349 * wide-int-bitmask.h: Same.
22350 * wide-int.h (decompose): Same.
22352 2019-07-09 Richard Biener <rguenther@suse.de>
22354 PR tree-optimization/91114
22355 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22356 find a vector type isn't fatal.
22358 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22360 * config/aarch64/aarch64-simd.md
22361 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22362 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22363 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22364 (*aarch64_crypto_aese_fused,
22365 *aarch64_crypto_aesd_fused): Update to new definition.
22366 * config/aarch64/aarch64.c
22367 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22369 2019-07-09 Richard Biener <rguenther@suse.de>
22371 * gimple-match.h (gimple_match_op::resimplify): New.
22372 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22373 gimple_resimplify4, gimple_resimplify5): Remove.
22374 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22375 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22377 (gimple_match_op::resimplify): New.
22378 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22379 according to availability. Use gimple_match_op::resimplify.
22381 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22383 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22385 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22387 * config/arm/crypto.md:
22388 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22389 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22390 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22391 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22393 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22394 * config/arm/aarch-common-protos.h
22395 (aarch_crypto_can_dual_issue): Remove.
22396 * config/arm/aarch-common.c
22397 (aarch_crypto_can_dual_issue): Likewise.
22398 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22399 * config/arm/cortex-a53.md: Likewise.
22400 * config/arm/cortex-a57.md: Likewise.
22401 * config/arm/iterators.md:
22402 (CRYPTO_BINARY): Redefine.
22403 (CRYPTO_UNARY): Removed.
22404 (CRYPTO_AES, CRYPTO_AESMC): New.
22406 2019-07-09 Richard Biener <rguenther@suse.de>
22408 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22409 (vn_reference_lookup_3): If the main ref has no access path recorded
22410 but orig_ref has use it to do access-path based disambiguation.
22411 (vn_reference_lookup_pieces): Adjust.
22412 (vn_reference_lookup): Pass down original ref if we valueized.
22414 2019-07-09 Martin Liska <mliska@suse.cz>
22416 * doc/extend.texi: Document influence on loop
22419 2019-07-09 Martin Liska <mliska@suse.cz>
22421 * lto-compress.c (lto_normalized_zstd_level): Do not use
22422 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22423 of libzstd. One can use 0 as a default compression level.
22425 2019-07-09 Martin Liska <mliska@suse.cz>
22427 * doc/invoke.texi: Add link from -fprofile-dir option.
22428 Use better wording for 'gcno filename'.
22430 2019-07-08 Martin Sebor <msebor@redhat.com>
22432 PR middle-end/71924
22433 PR middle-end/90549
22434 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22436 (args_loc_t): New type.
22437 (args_loc_t, locmap_t): same.
22438 (diag_returned_locals): New function.
22439 (is_addr_local): Same.
22440 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22441 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22442 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22444 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22446 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22447 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22448 and casts in offset when different, both through gimple stmts
22449 and through trees. Rewritten using loops to minimize code duplication
22452 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22454 * emit-rtl.c (set_insn_locations): New function moved from...
22455 * function.c (set_insn_locations): ...here.
22456 * ira-emit.c (emit_moves): Propagate location of the first instruction
22457 to the inserted move instructions.
22458 * reg-stack.c (compensate_edge): Set the location if the sequence is
22459 inserted on the edge.
22460 * rtl.h (set_insn_locations): Declare.
22462 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22464 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22465 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22468 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22470 PR rtl-optimization/88233
22471 * common.opt (fsplit-wide-types-early): New option.
22472 * common/config/rs6000/rs6000-common.c
22473 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22475 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22476 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22477 flag_split_wide_types_early.
22478 (pass_data_lower_subreg3): New.
22479 (pass_lower_subreg3): New.
22480 (make_pass_lower_subreg3): New.
22481 * passes.def (pass_lower_subreg2): Move after the loop passes.
22482 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22483 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22484 the pass pipeline; its previous place is taken by ...
22485 (make_pass_lower_subreg3): ... this.
22487 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22489 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22490 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22492 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22494 * config/s390/constraints.md: Add new jsc constraint.
22495 * config/s390/predicates.md: New predicates.
22496 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22497 * config/s390/s390.c (s390_valid_shift_count): New function.
22498 (print_shift_count_operand): Use s390_valid_shift_count.
22499 (print_operand): Likewise.
22500 * config/s390/s390.md: Use new predicate.
22501 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22502 * config/s390/vector.md: Use new predicate.
22504 2019-07-08 Andrew Waterman <andrew@sifive.com>
22505 Jim Wilson <jimw@sifive.com>
22507 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22508 bitsize instead of BITS_PER_WORD.
22510 2019-07-08 Martin Liska <mliska@suse.cz>
22512 * collect2.c (defined): Revert to before r254460.
22513 (scan_prog_file): Revert to before r254460.
22515 2019-07-08 Richard Biener <rguenther@suse.de>
22517 PR tree-optimization/83518
22518 * tree-ssa-sccvn.c: Include splay-tree.h.
22519 (struct pd_range, struct pd_data): New.
22520 (struct vn_walk_cb_data): Add data to track partial definitions.
22521 (vn_walk_cb_data::~vn_walk_cb_data): New.
22522 (vn_walk_cb_data::push_partial_def): New.
22523 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22524 (vn_reference_lookup_2): When partial defs are registered give up.
22525 (vn_reference_lookup_3): Track partial defs for memset and
22526 constructor zeroing and for defs from constants.
22528 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22530 * doc/install.texi (bootstrap-Og): Document.
22532 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22534 * config/riscv/pic.md (*local_pic_load_s<mode>)
22535 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22536 referenced by <mode>, giving...
22537 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22538 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22539 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22540 use <X:MODE> for the mode attribute.
22542 2019-07-07 Jeff Law <law@redhat.com>
22544 PR tree-optimization/91090
22545 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22546 in handling of ranges to simplify switch statements.
22548 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22550 * config/darwin.c (darwin_override_options): Make a final check on PIC
22553 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22555 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22556 on for kernel code.
22558 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22561 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22562 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22563 instead of matching them to "l" output operands.
22565 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22567 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22568 and check whether addr.reg is nonnull before using it.
22570 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22572 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22573 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22574 variable(s). For conditional lastprivate look through outer
22575 GIMPLE_OMP_SCAN context.
22576 (lower_omp_1): For conditional lastprivate look through outer
22577 GIMPLE_OMP_SCAN context.
22579 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22580 member to combined_into_simd_safelen1.
22581 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22582 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22583 clauses if ctx->combined_into_simd_safelen1 put statements after the
22584 predicate conditionalized block rather than into it.
22586 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22588 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22590 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22591 Make the choice of <mode> explicit, giving...
22592 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22594 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22596 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22597 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22599 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22600 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22601 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22602 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22603 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22604 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22605 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22606 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22607 (*avx512f_scatterdi<mode>): Likewise.
22608 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22610 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22612 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22613 specify the mode iterator referenced by <mode>, giving...
22614 (*push1_h8300hs_<QHI:mode>): ...this.
22616 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22618 * config/gcn/gcn-valu.md
22619 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22620 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22621 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22622 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22623 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22624 but using the _exec comparison patterns.
22625 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22626 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22627 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22628 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22629 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22630 but using the _exec comparison patterns.
22632 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22634 * config/arm/sync.md
22635 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22636 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22637 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22638 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22639 <SIDI:cas_cmp_str>.
22641 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22643 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22644 (maybe_lookup_ctx): Add forward declaration.
22645 (omp_find_scan): Likewise. Walk into body of simd if composited
22646 with worksharing loop.
22647 (scan_omp_simd_scan): New function.
22648 (scan_omp_1_stmt): Call it.
22649 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22650 ctx->for_simd_scan_phase.
22651 (lower_rec_input_clauses): Do much less work for inscan reductions
22652 in ctx->for_simd_scan_phase is_simd regions.
22653 (lower_omp_scan): Set is_simd also on simd constructs composited
22654 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22655 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22656 emit their body after in simd constructs composited with worksharing
22658 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22660 * omp-low.c (omp_find_scan): Make static.
22661 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22662 the second loop, var2 represents the first partial sum and so needs
22663 to go before rprivb[ivar].
22665 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22667 * config/rs6000/rs6000-logue.c: Remove unused code.
22669 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22671 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22673 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22676 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22677 check with a frame laid out check.
22679 2019-07-05 Richard Biener <rguenther@suse.de>
22681 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22682 when comparing against a store with possibly the same value.
22684 2019-07-05 Richard Biener <rguenther@suse.de>
22686 PR tree-optimization/91091
22687 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22688 (walk_non_aliased_vuses): Likewise.
22689 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22690 (get_continuation_for_phi): New tbaa_p parameter and pass
22692 (walk_non_aliased_vuses): Likewise.
22693 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22694 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22695 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22697 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22698 (adjust_offsets_for_equal_base_address): New function.
22699 (vn_reference_lookup_3): Use it to catch more base equivalences.
22700 Handle and pass down tbaa_p flag.
22701 (vn_reference_lookup_pieces): Adjust.
22702 (vn_reference_lookup): Remove alias-set altering, instead pass
22703 down false as tbaa_p.
22705 2019-07-05 Richard Biener <rguenther@suse.de>
22707 PR tree-optimization/91091
22708 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22709 accesses can happen with -fno-strict-aliasing.
22711 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22713 * tree-ssa-alias.c (alias_stats): Add
22714 nonoverlapping_component_refs_since_match_p_must_overlap.
22715 (dump_alias_stats): Print it.
22716 (nonoverlapping_component_refs_since_match_p): Add early exit.
22717 (nonoverlapping_component_refs_p): Do not account early exit.
22719 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22721 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22722 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22723 (emit_eh_dispatch): Delete.
22724 (lower_catch): Emit the eh_dispatch manually and set the location of
22725 the first catch statement onto it.
22726 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22727 (lower_eh_dispatch): Propagate location.
22728 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22729 (eliminate_build): Likewise.
22731 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22733 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22734 phi nodes if possible.
22735 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22736 location info on the newly created statement.
22737 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22738 newly created increment if needed.
22740 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22742 PR middle-end/78884
22743 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22744 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22745 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22746 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22747 ctx->add_safelen1 is set.
22749 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22750 GOMP_loop_start at the start of second worksharing loop in a scan.
22751 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22752 worksharing loop in a scan even if there are conditional lastprivates,
22753 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22755 2019-07-04 Jan Hubicka <jh@suse.cz>
22757 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22758 Fix check for match in the ref walk.
22760 2019-07-04 Martin Liska <mliska@suse.cz>
22762 * tree-ssa-loop-niter.c
22763 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22764 (estimate_numbers_of_iterations):
22765 Support __builtin_expect_with_probability for analysis
22766 of # of loop iterations.
22768 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22770 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22771 * except.c: Likewise.
22772 * expr.c (expand_expr_real_1): Reject it.
22773 * gimplify.c (gimplify_expr): Gimplify it, within
22775 * tree-dump.c (dequeue_and_dump): Dump it.
22776 * tree-pretty-print.c (dump_generic_node): Likewise.
22777 * tree.c (block_may_fallthru): Handle it.
22778 * tree.def (EH_ELSE_EXPR): Introduce it.
22779 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22780 with GIMPLE_EH_ELSE as try/finally/else.
22782 2019-07-04 Richard Biener <rguenther@suse.de>
22785 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22786 parameter whether to disable GC collection.
22787 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22789 (execute_all_ipa_transforms): Likewise and pass it down.
22790 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22791 collection from applying IPA transforms.
22792 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22793 from applying IPA transforms.
22795 2019-07-04 Richard Biener <rguenther@suse.de>
22797 PR tree-optimization/90911
22798 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22799 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22800 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22801 scalar_loop_scaling.
22802 (vect_transform_loop): Scale scalar loop profile if needed.
22803 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22804 the loop copy from if-conversion adjust edge probabilities
22805 and scale the vectorized loop body profile, queue the scalar
22806 profile for updating after peeling.
22808 2019-07-04 Jan Hubicka <jh@suse.cz>
22810 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22811 parameters; return early for must-alias.
22812 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22813 outer types match, try nonoverlapping_component_refs
22814 if must-alias is not obvious.
22815 (indirect_refs_may_alias_p): Likewise.
22816 (refs_may_alias_p_2): Likewise.
22818 2019-07-04 Richard Biener <rguenther@suse.de>
22820 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22822 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22824 (struct vn_walk_cb_data): New callback data struct.
22825 (vn_reference_lookup_2): Adjust.
22826 (vn_reference_lookup_3): Likewise.
22827 (vn_reference_lookup_pieces): Likewise.
22828 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22829 (visit_reference_op_load): Adjust.
22831 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22833 PR tree-optimization/91063
22834 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22835 stmt from stmts sequence before calling vect_init_vector_1.
22838 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22841 * fwprop.c (reg_single_def_p): New function.
22842 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22843 (forward_propagate_into): New parameter reg_prop_only
22844 with default value false.
22845 Propagate def's src into loop only if SET_SRC and SET_DEST
22846 of def_set have single definitions.
22847 Likewise if reg_prop_only is set to true.
22848 (fwprop): New param fwprop_addr_p.
22849 Integrate fwprop_addr into fwprop.
22850 (fwprop_addr): Remove.
22851 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22853 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22854 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22855 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22857 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22859 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22860 in worksharing loop scans.
22862 PR tree-optimization/91074
22863 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22866 PR rtl-optimization/90756
22867 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22870 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22872 * config/aarch64/aarch64.md: Remove redundant constraints from
22873 define_expand but keep some patterns untouched if they are
22874 specially selected by TARGET_SECONDARY_RELOAD hook.
22875 * config/aarch64/aarch64-sve.md: Likewise.
22876 * config/aarch64/atomics.md: Remove redundant constraints from
22878 * config/aarch64/aarch64-simd.md: Likewise.
22880 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22882 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22883 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22884 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22886 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22889 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22891 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22892 (STARTFILE_SPEC): Split crt3 into a separate spec.
22893 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22894 (DARWIN_CRT2_SPEC): New.
22895 (DARWIN_CRT3_SPEC): New.
22896 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22897 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22898 (DARWIN_CRT3_SPEC): New.
22900 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22902 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22903 Change the RTL attribute "length" from "4" to "*" to allow the
22904 length attribute to be adjusted automatically for prefixed load,
22905 store, and add immediate instructions.
22906 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22908 (extendsi<mode>2, EXTSI iterator): Likewise.
22909 (movsi_internal1): Likewise.
22910 (movsi_from_sf): Likewise.
22911 (movdi_from_sf_zero_ext): Likewise.
22912 (mov<mode>_internal): Likewise.
22913 (movcc_internal1, QHI iterator): Likewise.
22914 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22915 (movsf_from_si): Likewise.
22916 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22917 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22918 (mov<mode>, FMOVE128 iterator): Likewise.
22919 (movdi_internal64): Likewise.
22920 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22922 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22923 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22924 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22925 (vsx_splat_v4sf): Likewise.
22927 2019-07-03 Mark Wielaard <mark@klomp.org>
22930 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22931 DW_AT_addr_base if there is actually a .debug_addr section with
22933 (output_addr_table): Add DWARF5 table header generation here after
22934 checking there are actually any addresses from...
22935 (dwarf2out_finish): ...here.
22937 2019-07-03 Richard Biener <rguenther@suse.de>
22939 PR middle-end/91069
22940 * match.pd (vec_perm -> bit_insert): Fix element read from
22943 2019-07-03 Martin Liska <mliska@suse.cz>
22945 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22946 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22948 * generic-match-head.c: Include dbgcnt.h.
22949 * gimple-match-head.c: Likewise.
22951 2019-07-03 Martin Liska <mliska@suse.cz>
22953 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22954 (GCOV_COUNTER_V_TOPN): New.
22955 (GCOV_COUNTER_V_INDIR): Use _topn.
22956 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22957 (GCOV_TOPN_VALUES): New.
22958 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22959 (GCOV_TOPN_VALUES_COUNTERS): New.
22960 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22962 (gimple_init_gcov_profiler): Rename variables from one_value
22964 (gimple_gen_one_value_profiler): Remove.
22965 (gimple_gen_topn_values_profiler): New function.
22966 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22967 names instead of SINGLE_VALUE.
22968 (stream_out_histogram_value): Likewise.
22969 (stream_in_histogram_value): Likewise.
22970 (get_most_common_single_value): Likewise.
22971 (gimple_divmod_fixed_value_transform): Likewise.
22972 (gimple_stringops_transform): Likewise.
22973 (gimple_divmod_values_to_profile): Likewise.
22974 (gimple_stringops_values_to_profile): Likewise.
22975 (gimple_find_values_to_profile): Likewise.
22976 * value-prof.h (enum hist_type): Rename to TOPN.
22977 (gimple_gen_one_value_profiler): Remove.
22978 (gimple_gen_topn_values_profiler): New.
22980 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22982 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22983 if it has the DW_AT_data_member_location attribute.
22985 2019-07-03 Richard Biener <rguenther@suse.de>
22987 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22990 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22992 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22993 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22994 (tlsdesc_small_sve_<mode>): Likewise.
22996 2019-07-03 Martin Liska <mliska@suse.cz>
22998 * Makefile.in: Define ZSTD_LIB.
22999 * common.opt: Adjust compression level
23000 to support also zstd levels.
23001 * config.in: Regenerate.
23002 * configure: Likewise.
23003 * configure.ac: Add --with-zstd and --with-zstd-include options
23005 * doc/install.texi: Mention zstd dependency.
23006 * gcc.c: Print supported LTO compression algorithms.
23007 * lto-compress.c (lto_normalized_zstd_level): Likewise.
23008 (lto_compression_zstd): Likewise.
23009 (lto_uncompression_zstd): Likewise.
23010 (lto_end_compression): Dispatch in between zlib and zstd.
23011 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
23012 (lto_uncompression_zlib): Make it static.
23013 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
23014 * lto-section-in.c (lto_get_section_data): Pass info
23015 about used compression.
23016 * lto-streamer-out.c: By default use zstd when possible.
23017 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
23018 (TV_IPA_LTO_COMPRESS): Likewise for compression.
23020 2019-07-03 Martin Liska <mliska@suse.cz>
23022 * lto-section-in.c (lto_get_section_data): Add "lto" section.
23023 * lto-section-out.c (lto_destroy_simple_output_block): Never
23024 compress LTO_section_lto section.
23025 * lto-streamer-out.c (produce_asm): Do not set major_version
23027 (lto_output_toplevel_asms): Likewise.
23028 (produce_lto_section): New function.
23029 (lto_output): Call produce_lto_section.
23030 (lto_write_mode_table): Do not set major_version and
23032 (produce_asm_for_decls): Likewise.
23033 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
23035 (struct lto_header): Remove.
23036 (struct lto_section): New struct.
23037 (struct lto_simple_header): Do not inherit from lto_header.
23038 (struct lto_file_decl_data): Add lto_section_header field.
23040 2019-07-03 Martin Liska <mliska@suse.cz>
23042 * lra-eliminations.c (eliminate_regs_in_insn): Remove
23044 * reg-stack.c (check_asm_stack_operands): Likewise.
23045 * tree-ssa-structalias.c (create_function_info_for): Likewise.
23046 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
23047 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
23048 force_expand_binop.
23050 2019-07-03 Martin Liska <mliska@suse.cz>
23052 PR tree-optimization/90892
23053 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
23054 in string constants.
23056 2019-07-03 Martin Liska <mliska@suse.cz>
23058 PR middle-end/90899
23059 * multiple_target.c (create_dispatcher_calls): Add to comdat
23060 group only if set for ifunc.
23062 2019-07-03 Martin Liska <mliska@suse.cz>
23065 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23066 Define local_object_name in outer scope in order to handle
23067 use-after-scope issue.
23069 2019-07-03 Martin Liska <mliska@suse.cz>
23071 * common.opt: Add fprofile-note.
23072 * coverage.c (coverage_init): Append the option
23074 * doc/invoke.texi: Document -fprofile-note.
23076 2019-07-03 Jakub Jelinek <jakub@redhat.com>
23078 PR tree-optimization/91033
23079 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
23080 vect_analyze_data_refs): Add bool * arguments.
23081 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
23082 if failure is due to scatter/gather, set *fatal to false if non-NULL.
23083 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23084 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
23085 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
23086 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
23087 vect_analyze_data_refs caller.
23089 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
23091 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
23092 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
23093 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
23094 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23095 OMP_CLAUSE__SCANTEMP_ entry.
23096 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
23097 * tree-pretty-print.c (dump_omp_clause): Likewise.
23098 * tree-nested.c (convert_nonlocal_omp_clauses,
23099 convert_local_omp_clauses): Likewise.
23100 * omp-general.h (struct omp_for_data): Add have_scantemp and
23101 have_nonctrl_scantemp members.
23102 * omp-general.c (omp_extract_for_data): Initialize them.
23103 * omp-low.c (struct omp_context): Add scan_exclusive member.
23104 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
23105 result again with GF_OMP_FOR_KIND_MASK. Initialize also
23106 ctx->scan_exclusive.
23107 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
23108 of !ctx->scan_inclusive.
23109 (lower_rec_input_clauses): Simplify gimplification of dtors using
23110 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
23111 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
23112 loops. Don't add barrier for reduction_omp_orig_ref if
23113 ctx->scan_??xclusive.
23114 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
23115 (lower_omp_scan): Use ctx->scan_exclusive instead
23116 of !ctx->scan_inclusive. Handle worksharing loops with inscan
23117 reductions. Use new_vard != new_var instead of repeated
23118 omp_is_reference calls.
23119 (omp_find_scan, lower_omp_for_scan): New functions.
23120 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
23122 * omp-expand.c (expand_omp_scantemp_alloc): New function.
23123 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
23124 and fd->have_scantemp.
23126 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
23127 on worksharing loop propagate it as shared clause to containing
23130 * omp-expand.c (expand_omp_for_static_nochunk,
23131 expand_omp_for_static_chunk): For nowait worksharing loop with
23132 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
23135 2019-07-02 qing zhao <qing.zhao@oracle.com>
23137 PR preprocessor/90581
23138 * doc/cppopts.texi: Add document for -fmax-include-depth.
23139 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
23141 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
23143 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
23144 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
23145 (mmx_packssdw): Ditto.
23146 (mmx_punpckhbw): Ditto.
23147 (mmx_punpcklbw): Ditto.
23148 (mmx_punpckhwd): Ditto.
23149 (mmx_punpcklwd): Ditto.
23150 (mmx_punpckhdq): Ditto.
23151 (mmx_punpckldq): Ditto.
23152 (*vec_dupv4hi): Ditto.
23153 (*vec_dupv2si): Ditto.
23154 (mmx_pmovmskb): Ditto.
23155 * config/i386/sse.md (sse_cvtpi2ps): Use
23156 TARGET_SSE2 && SSE_REG_P in split condition.
23157 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
23158 TARGET_SSSE3 && SSE_REGNO_P in split condition.
23159 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
23160 (ssse3_pshufbv8qi3): Ditto.
23161 (ssse3_palignrdi): Ditto.
23163 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
23165 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
23166 with inlined save and restore.
23168 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
23170 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
23171 to be inserted on single successor edge of the entry block. Then call
23172 commit_edge_insertions instead of inserting the instructions manually.
23173 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
23174 RTL expansion and rebuild jump labels chain.
23176 2019-07-02 Richard Biener <rguenther@suse.de>
23178 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
23180 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23182 * tree.c (build_common_tree_nodes): Initialize them.
23183 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23184 Make declarations comments.
23185 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
23186 chrec_known): Remove definitions.
23187 (initialize_scalar_evolutions_analyzer): Remove.
23188 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
23189 * tree-streamer.c (preload_common_nodes): Do not preload
23190 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
23192 2019-07-02 Jan Hubicka <jh@suse.cz>
23194 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
23197 2019-07-02 Jan Hubicka <jh@suse.cz>
23199 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
23201 (nonoverlapping_component_refs_since_match_p): ... this one;
23202 handle also non-decl bases; return -1 if search gave up.
23203 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
23204 nonoverlapping_component_refs_of_decl_p_no_alias to
23205 nonoverlapping_component_refs_since_match_p_may_alias,
23206 nonoverlapping_component_refs_since_match_p_no_alias.
23207 (dump_alias_stats): Update dumping.
23208 (aliasing_matching_component_refs_p): Break out from ...;
23209 dispatch to nonoverlapping_component_refs_for_decl_p
23210 and nonoverlapping_component_refs_since_match_p.
23211 (aliasing_component_refs_p): ... here; call
23212 nonoverlapping_component_refs_p in scenarios where we can not
23213 precisely determine base match.
23214 (decl_refs_may_alias_p): Use
23215 nonoverlapping_component_refs_since_match_p.
23216 (indirect_ref_may_alias_decl_p): Do not call
23217 nonoverlapping_component_refs_p.
23218 (indirect_refs_may_alias_p): Likewise.
23220 2019-07-02 Jan Hubicka <jh@suse.cz>
23222 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23223 to clobber of return value.
23225 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23227 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23228 for is_neon_type instructions that have not already been categorized.
23230 2019-07-02 Richard Biener <rguenther@suse.de>
23232 PR tree-optimization/58483
23233 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23234 for MEM_REF base hashing.
23235 (equal_mem_array_ref_p): Likewise for base comparison.
23237 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23239 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23240 parameterized name.
23241 (signbit<mode>2): Use that name. Simplify.
23243 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
23245 PR middle-end/66726
23246 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23247 Tune heuristic from PR71016 to allow MIN / MAX.
23249 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23251 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23252 parameterized name.
23253 (abs<mode>2): Use that name. Simplify.
23255 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23257 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23258 parameterized name.
23259 (neg<mode>2): Use that name. Simplify.
23261 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23263 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23265 (abs<mode>2): Use that name. Simplify.
23267 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23269 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23271 (neg<mode>2): Use that name. Simplify.
23273 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
23275 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23276 ("enabled" attribute): Handle sse_noavx isa attribute.
23277 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23278 Use TARGET_SSE && SSE_REGNO_P in split condition.
23279 (*vec_dupv2sf): Ditto.
23281 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23283 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23285 (floatsi<mode>2): Use that name. Simplify.
23287 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23289 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23290 parameterized name.
23291 (extenddf<mode>2_vsx): Make this a parameterized name.
23292 (extenddf<mode>2): Use those names. Simplify.
23294 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23296 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23298 (eh_return): Use that name. Simplify.
23300 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23302 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23303 (doloop_end): Use that name. Simplify.
23305 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23307 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23308 parameterized name.
23309 (indirect_jump): Use that name. Simplify.
23311 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23313 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23314 parameterized name.
23315 (abs<mode>2): Use that name. Simplify.
23317 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23319 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23320 parameterized name.
23321 (fix_trunc<mode>si2): Use that name. Simplify.
23323 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23325 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23326 (allocate_stack): Use that name. Simplify.
23328 2019-07-01 Martin Sebor <msebor@redhat.com>
23330 PR middle-end/90923
23331 * hash-map.h (hash_map::put): On insertion invoke element ctor.
23332 (hash_map::get_or_insert): Same. Reformat comment.
23333 * hash-set.h (hash_set::add): On insertion invoke element ctor.
23334 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23335 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23336 * hash-table.h (hash_table::operator=): Prevent copy assignment.
23337 (hash_table::hash_table (const hash_table&)): Use copy ctor
23338 instead of assignment to copy elements.
23340 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
23341 John David Anglin <danglin@gcc.gnu.org>
23344 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23345 using saved frame pointer.
23347 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
23349 PR middle-end/64242
23350 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23351 Add frame clobber and schedule blockage.
23353 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
23355 * doc/invoke.texi (Link Options): Further editorial changes to
23356 -flinker-output docs.
23358 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23360 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23361 Load both operands of a PLUS into registers separately.
23363 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23365 * config/s390/vector.md: Fix shift count operand printing.
23367 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23369 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23371 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23373 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23374 Use recog_data to test for an output operand.
23376 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23378 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23379 exclude any others that are disparaged or that are bound to need
23381 (ira_get_dup_out_num): Expand comment.
23383 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23385 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23386 constraint string for each operand/alternative combo. Only handle
23387 '%' at the start of constraint strings, and look for it outside
23390 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23392 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23393 alternative_mask instead of HARD_REG_SET to represent a
23394 bitmask of alternatives.
23395 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23396 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23398 2019-07-01 Martin Liska <mliska@suse.cz>
23400 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23401 use () for a constructor call.
23402 (test_applying_fixits_line_out_of_range): Likewise.
23403 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23405 (free_page): Likewise.
23407 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23409 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23410 parameter names to match usage (no functional change).
23411 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23413 2019-07-01 Richard Biener <rguenther@suse.de>
23415 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23417 (pass_fre::execute): Honor it.
23418 * passes.def: Adjust pass_fre invocations to allow iterating,
23419 add non-iterating pass_fre before late threading/dom.
23421 2019-07-01 Richard Biener <rguenther@suse.de>
23423 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23424 TARGET_MEM_REF handling to also handle address-taken ones.
23426 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23428 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23429 hardware attributes): Document avx512vp2intersect.
23431 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23433 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23434 (abs<mode>2): New expander.
23435 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23436 Use CODE_FOR_ssse3_absv8qi2.
23437 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23438 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23440 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23442 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23443 to sse, sse_noavx and avx. Update all uses.
23445 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23447 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23448 (*mmx_<plusminus_insn><mode>3): Ditto.
23449 (*mmx_mulv4hi3"): Ditto.
23450 (*mmx_smulv4hi3_highpart): Ditto.
23451 (*mmx_umulv4hi3_highpart): Ditto.
23452 (*mmx_pmaddwd): Ditto.
23453 (*sse2_umulv1siv1di3): Ditto.
23454 (*mmx_<code>v4hi3): Ditto.
23455 (*mmx_<code>v8qi3): Ditto.
23456 (mmx_ashr<mode>3): Ditto.
23457 ("mmx_<shift_insn><mode>3): Ditto.
23458 (*mmx_eq<mode>3): Ditto.
23459 (mmx_gt<mode>3): Ditto.
23460 (mmx_andnot<mode>3): Ditto.
23461 (*mmx_<code><mode>3): Ditto.
23462 (*mmx_pinsrw): Ditto.
23463 (*mmx_pextrw): Ditto.
23464 (mmx_pshufw_1): Ditto.
23465 (*mmx_uavgv8qi3): Ditto.
23466 (*mmx_uavgv4hi3): Ditto.
23467 ("mmx_psadbw): Ditto.
23468 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23469 (sse_cvttps2pi): Ditto.
23470 (ssse3_pmaddubsw): Ditto.
23471 (*ssse3_pmulhrswv4hi3): Ditto.
23472 (ssse3_psign<mode>3): Ditto.
23474 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23476 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23477 adjustment for bit-fields to all aggregate types.
23479 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23481 * config/rs6000/predicates.md (pcrel_address): Use
23482 SYMBOL_REF_LOCAL_P to determine if a label is local.
23483 (pcrel_external_address): New predicate.
23484 (non_prefixed_mem_operand): Delete, predicate not used.
23485 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23486 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23488 (SYMBOL_REF_PCREL_P): Likewise.
23491 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23493 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23494 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23495 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23497 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23499 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23500 override on extra_headers.
23502 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23504 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23505 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23507 (darwin_driver_init): Likewise.
23509 2019-06-28 Jan Beulich <jbeulich@suse.com>
23511 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23512 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23513 Eliminate redundant alternative.
23515 2019-06-28 Jan Beulich <jbeulich@suse.com>
23517 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23518 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23519 Use vector_operand.
23521 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23523 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23524 having a lower cost regardless of the speed option.
23526 2019-06-28 Jan Beulich <jbeulich@suse.com>
23528 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23529 vector_operand plus, on both alternatives, "Bm" constraint.
23531 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23533 * config/arm/arm.md: Remove redundant constraints from
23534 define_expand but leave reload_inm and reload_outm patterns
23535 untouched since they need special constraints to work.
23536 * config/arm/arm-fixed.md: Remove redundant constraints from
23538 * config/arm/iwmmxt.md: Likewise.
23539 * config/arm/neon.md: Likewise.
23540 * config/arm/sync.md: Likewise.
23541 * config/arm/thumb1.md: Likewise.
23542 * config/arm/vec-common.md: Likewise.
23544 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23546 * doc/install.texi: Document --disable-tm-clone-registry.
23548 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23551 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23554 PR tree-optimization/91010
23555 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23556 return true. Otherwise, don't call operand_equal_p if offset1 or
23557 offset2 is NULL and just return false.
23559 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23561 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23562 user-specified float mode choice for kernel mode code.
23564 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23566 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23569 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23571 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23572 use longcall for 64b code.
23574 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23576 * builtins.c (get_memory_rtx): Fix comment.
23577 * optabs.def (movmem_optab): Change to cpymem_optab.
23578 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23579 (emit_block_move_hints): Change movmem to cpymem.
23580 * defaults.h: Change movmem to cpymem.
23581 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23582 (default_use_by_pieces_infrastructure_p): Ditto.
23583 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23584 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23586 * config/aarch64/aarch64.h: Change movmem to cpymem.
23587 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23588 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23589 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23591 * config/arc/arc-protos.h: Change movmem to cpymem.
23592 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23593 * config/arc/arc.h: Change movmem to cpymem in comment.
23594 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23595 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23596 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23597 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23598 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23599 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23600 * config/avr/avr-protos.h: Change movmem to cpymem.
23601 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23602 avr_out_movmem): Change movmem to cpymem.
23603 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23604 Change movmem to cpymem.
23605 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23606 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23607 Change movmem to cpymem.
23608 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23609 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23610 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23611 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23612 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23613 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23614 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23615 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23616 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23617 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23618 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23619 expand_small_cpymem_or_setmem,
23620 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23621 expand_set_or_cpymem_constant_prologue,
23622 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23623 * config/i386/i386-protos.h: Change movmem to cpymem.
23624 * config/i386/i386.h: Change movmem to cpymem in comment.
23625 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23626 (setmem<mode>): Change expansion function name.
23627 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23628 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23629 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23630 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23631 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23632 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23633 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23635 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23636 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23637 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23638 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23639 Change movmem to cpymem.
23640 * config/mips/mips.h: Change movmem to cpymem.
23641 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23642 * config/nds32/nds32-memory-manipulation.c
23643 (nds32_expand_movmemsi_loop_unknown_size,
23644 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23645 nds32_expand_movmemsi_unroll,
23646 nds32_expand_movmemsi): Change movmem to cpymem.
23647 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23648 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23649 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23650 (pa_adjust_insn_length): Change call to compute_movmem_length.
23651 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23652 movmemdi, movmemdi_prereload,
23653 movmemdi_postreload): Change movmem to cpymem.
23654 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23655 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23656 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23657 * config/riscv/riscv.h: Change movmem to cpymem.
23658 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23659 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23660 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23662 * config/s390/s390-protos.h: Change movmem to cpymem.
23663 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23664 s390_expand_insv): Change movmem to cpymem.
23665 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23666 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23667 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23668 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23669 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23670 for nonexistent function.
23671 * config/vax/vax.h: Change movmem to cpymem in comment.
23672 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23673 * config/visium/visium.h: Change movmem to cpymem in comment.
23674 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23675 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23676 * doc/md.texi: Change movmem to cpymem and update description to match.
23677 * doc/rtl.texi: Change movmem to cpymem.
23678 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23679 * doc/tm.texi: Regenerate.
23681 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23683 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23684 -fvariable-expansion-in-unroller by default.
23685 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23688 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23691 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23692 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23694 * config.gcc(rs6000-*-*): Define target_gtfiles.
23696 2019-06-27 Jan Hubicka <jh@suse.cz>
23698 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23699 (add_type_duplicate): When odr hash is not allocated, to nothing.
23700 (odr_based_tbaa_p): New function.
23701 (set_type_canonical_for_odr_type): New function.
23702 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23703 set_type_canonical_for_odr_type): New.
23704 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23705 ODR based TBAA are not equivalent to non-ODR types.
23707 2019-06-27 Martin Liska <mliska@suse.cz>
23709 PR tree-optimization/90974
23710 PR rtl-optimization/90975
23711 PR rtl-optimization/90976
23713 PR tree-optimization/91017
23714 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23716 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23717 initial commit of IRA.
23718 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23720 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23721 Remove unused mode1.
23722 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23725 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23728 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23729 instead of register_operand for operands[1], add m to its constraints
23730 if operands[2] uses "C" constraint. Ensure in condition that if
23731 operands[2] is not 0, then operands[1] is not a MEM. For last two
23732 alternatives, use unaligned loads instead of aligned if operands[1] is
23733 misaligned_operand.
23735 2019-06-27 Martin Liska <mliska@suse.cz>
23737 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23739 * bt-load.c (move_btr_def): Likewise.
23740 * builtins.c (expand_builtin_apply_args_1): Likewise.
23741 (expand_builtin_apply): Likewise.
23742 * cfgexpand.c (expand_asm_stmt): Likewise.
23743 (construct_init_block): Likewise.
23744 * cfghooks.c (verify_flow_info): Likewise.
23745 * cfgloopmanip.c (remove_path): Likewise.
23746 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23747 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23748 * combine.c (simplify_if_then_else): Likewise.
23749 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23750 (choose_basereg): Likewise.
23751 (ix86_expand_prologue): Likewise.
23752 (ix86_preferred_output_reload_class): Likewise.
23753 * cselib.c (cselib_record_sets): Likewise.
23754 * df-scan.c (df_scan_alloc): Likewise.
23755 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23756 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23757 * emit-rtl.c (try_split): Likewise.
23758 * graphite-scop-detection.c (assign_parameter_index_in_region):
23760 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23761 * ira-color.c (setup_profitable_hard_regs): Likewise.
23762 * ira.c (rtx_moveable_p): Likewise.
23763 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23764 * read-rtl.c (read_subst_mapping): Likewise.
23765 * regrename.c (scan_rtx): Likewise.
23766 * reorg.c (fill_slots_from_thread): Likewise.
23767 * tree-inline.c (tree_function_versioning): Likewise.
23768 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23769 * tree-ssa-sink.c (statement_sink_location): Likewise.
23770 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23771 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23772 (vect_create_epilog_for_reduction): Likewise.
23773 * tree.c (build_nonstandard_integer_type): Likewise.
23775 2019-06-27 Richard Biener <rguenther@suse.de>
23777 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23779 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23781 PR tree-optimization/89772
23782 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23783 out-of-bound accesses checking.
23785 2019-06-27 Martin Liska <mliska@suse.cz>
23787 PR tree-optimization/91014
23788 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23789 when LHS is NULL_TREE.
23791 2019-06-27 Martin Liska <mliska@suse.cz>
23793 * symbol-summary.h (traverse): Pass
23794 argument a to the call of callback.
23795 (gt_ggc_mx): Mark arguments as unused.
23796 (gt_pch_nx): Likewise.
23798 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23801 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23804 2019-06-26 Jeff Law <law@redhat.com>
23806 PR tree-optimization/90883
23807 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23808 (delete_dead_or_redundant_assignment): Likewise.
23810 PR tree-optimization/90883
23811 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23812 * tree-ssa-dse.c: Update various comments to distinguish between
23813 dead and redundant stores.
23814 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23815 (dse_optimize_redundant_stores): New function.
23816 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23817 Distinguish between dead and redundant calls in dump output. All
23819 (delete_dead_or_redundant_assignment): Similarly for assignments.
23820 (dse_optimize_stmt): Handle _CHK variants. For statements which
23821 store 0 into multiple memory locations, try to prove a subsequent
23822 store is redundant.
23824 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23827 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23828 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23830 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23832 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23833 (branch_islands): New extern.
23834 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23835 * config/rs6000/rs6000.c: .. here.
23837 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23839 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23840 (powerpc*-*-*) ... to here.
23842 2019-06-26 Jeff Law <law@redhat.com>
23844 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23845 memcpy, memmove and memset builtins.
23846 (maybe_trim_memstar_call): Likewise.
23848 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23850 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23852 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23854 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23856 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23858 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23860 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23862 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23865 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23867 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23869 2019-06-26 Richard Biener <rguenther@suse.de>
23872 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23874 2019-06-26 Richard Biener <rguenther@suse.de>
23876 * lto-streamer.h (lto_bitmap_alloc): Remove.
23877 (lto_bitmap_free): Likewise.
23878 * lto-streamer.c (lto_bitmap_alloc): Remove.
23879 (lto_bitmap_free): Likewise.
23880 (lto_obstack): Likewise.
23881 (lto_obstack_initialized): Likewise.
23882 * lto-streamer-out.c (lto_output): Use own obstack for local
23883 bitmap, free it consistently.
23885 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23888 * config/i386/sse.md
23889 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23890 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23891 insns if operands[2] is misaligned_operand.
23893 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23895 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23897 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23900 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23902 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23904 2019-06-26 Martin Liska <mliska@suse.cz>
23906 PR tree-optimization/90973
23907 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23908 epilogue_cost_vec instead of prologue_cost_vec for
23911 2019-06-26 Martin Liska <mliska@suse.cz>
23913 * bb-reorder.c (connect_better_edge_p): Add missing else
23914 statement in the middle of if-else statements.
23916 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23917 H.J. Lu <hongjiu.lu@intel.com>
23918 Olga Makhotina <olga.makhotina@intel.com>
23920 * common/config/i386/i386-common.c
23921 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23922 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23923 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23924 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23925 (ix86_handle_option): Handle -mavx512vp2intersect.
23926 * config/i386/avx512vp2intersectintrin.h: New.
23927 * config/i386/avx512vp2intersectvlintrin.h: New.
23928 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23929 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23930 AVX512VP2INTERSECT.
23931 * config/i386/i386-builtin-types.def: Add new types.
23932 * config/i386/i386-builtin.def: Add new builtins.
23933 * config/i386/i386-builtins.c: (enum processor_features): Add
23934 F_AVX512VP2INTERSECT.
23935 (static const _isa_names_table isa_names_table): Ditto.
23936 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23937 __AVX512VP2INTERSECT__.
23938 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23939 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23940 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23941 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23942 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23943 * config/i386/i386-options.c (ix86_target_string): Add
23944 -mavx512vp2intersect.
23945 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23946 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23947 P2HImode and P2QImode.
23948 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23949 number for P2QImode and P2HImode.
23950 (ix86_regmode_natural_size): New function.
23951 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23952 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23953 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23954 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23955 * config/i386/i386.opt: Add -mavx512vp2intersect.
23956 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23957 avx512vp2intersectvlintrin.h.
23958 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23959 (define_mode_iterator VI48_AVX512VP2VL): New.
23960 (avx512vp2intersect_2intersect<mode>,
23961 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23962 * config.gcc: Add avx512vp2intersectvlintrin.h and
23963 avx512vp2intersectintrin.h to extra_headers.
23964 * doc/invoke.texi: Document -mavx512vp2intersect.
23966 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23968 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23970 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23972 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23973 savres_routine_syms, savres_routine_name, morestack_ref,
23974 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23975 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23976 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23977 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23978 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23979 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23980 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23981 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23982 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23983 get_stack_clash_protection_probe_interval,
23984 get_stack_clash_protection_guard_size,
23985 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23986 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23987 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23988 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23989 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23990 gen_frame_mem_offset, rs6000_savres_routine_name,
23991 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23992 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23993 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23994 rs6000_global_entry_point_prologue_needed_p,
23995 rs6000_get_separate_components, rs6000_components_for_bb,
23996 rs6000_disqualify_components, rs6000_emit_prologue_components,
23997 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23998 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23999 rs6000_output_savres_externs, rs6000_output_function_prologue,
24000 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24001 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24002 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24003 rs6000_output_function_epilogue, gen_add3_const,
24004 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24005 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24007 (machine_function): Moved to rs6000.h.
24008 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
24010 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
24011 savres_routine_syms, savres_routine_name, morestack_ref,
24012 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24013 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24014 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24015 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24016 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24017 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24018 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24019 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24020 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24021 get_stack_clash_protection_probe_interval,
24022 get_stack_clash_protection_guard_size,
24023 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24024 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24025 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24026 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24027 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24028 gen_frame_mem_offset, rs6000_savres_routine_name,
24029 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24030 ptr_regno_for_savres, rs6000_emit_savres_rtx,
24031 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24032 rs6000_global_entry_point_prologue_needed_p,
24033 rs6000_get_separate_components, rs6000_components_for_bb,
24034 rs6000_disqualify_components, rs6000_emit_prologue_components,
24035 rs6000_emit_epilogue_components, rs6000_set_handled_components,
24036 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24037 rs6000_output_savres_externs, rs6000_output_function_prologue,
24038 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24039 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24040 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24041 rs6000_output_function_epilogue, gen_add3_const,
24042 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24043 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24044 to here from rs6000.c.
24045 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
24046 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
24047 quad_address_offset_p) Moved to here from rs6000.c.
24048 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
24049 * config/config.gcc: Add new source file rs6000-logue.c to garbage
24052 2019-06-25 Martin Liska <mliska@suse.cz>
24054 * hash-table.c (hashtab_chk_error): Move here from ...
24055 * hash-table.h (hashtab_chk_error): ... here.
24057 2019-06-25 Martin Liska <mliska@suse.cz>
24059 PR tree-optimization/90978
24060 * df-scan.c (df_update_entry_block_defs): Remove dead else
24062 (df_update_exit_block_uses): Likewise.
24064 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
24065 Andrew Stubbs <ams@codesourcery.com>
24067 * config.gcc (thread_file): Set to gcn for AMD GCN.
24068 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
24069 (TARGET_EMUTLS_VAR_INIT): New hook.
24071 2019-06-25 Martin Jambor <mjambor@suse.cz>
24074 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
24076 2019-06-25 Richard Biener <rguenther@suse.de>
24078 PR tree-optimization/90930
24079 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
24080 into parallel form in the last pass instance.
24082 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
24084 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
24085 (arc_legitimize_pic_address): Simplify and cleanup the function.
24086 (SYMBOLIC_CONST): Remove.
24087 (prepare_pic_move): Likewise.
24088 (prepare_move_operands): Handle complex mov cases here.
24089 (arc_legitimize_address_0): Remove call to
24090 arc_legitimize_pic_address.
24091 (arc_legitimize_address): Remove call to
24092 arc_legitimize_tls_address.
24093 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
24094 (movhi_insn): Likewise.
24096 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24098 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
24100 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
24101 format of "__intN" types for UINTMAX_TYPE.
24102 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
24103 format of "__intN" types for SIZETYPE.
24104 * tree.c (build_common_tree_nodes): Accept "__intN__"
24105 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
24106 * doc/invoke.texi: Document that __intN__ disables pedantic
24109 2019-06-25 Jan Hubicka <jh@suse.cz>
24111 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
24112 base2_alias_set is non-zero before doing TBAA based disambiguation.
24114 2019-06-25 Martin Liska <mliska@suse.cz>
24116 PR tree-optimization/90973
24117 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
24118 of prologue and epilogue.
24120 2019-06-24 Jan Hubicka <jh@suse.cz>
24122 * ipa-utils.h (type_with_linkage_p): Verify that type is
24124 (odr_type_p): Remove extra return.
24125 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
24126 hash STRING_FLAG only for arrays and integers.
24127 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
24128 Update analogously.
24129 * tree-streamer-out.c (pack_ts_type_common_value_fields):
24131 * print-tree.c (print_node): Print cxx-odr-p
24133 * tree.c (need_assembler_name_p): Also check that type
24135 (verify_type_variant): Update verification of SRING_FLAG;
24136 also check CXX_ODR_P.
24137 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
24138 (TYPE_STRING_FLAG): Use it.
24139 (TYPE_CXX_ODR_P): New macro.
24140 * dwarf2out.c (gen_array_type_die): First check that type
24141 is an array and then test string flag.
24143 2019-06-24 Richard Biener <rguenther@suse.de>
24145 PR tree-optimization/90972
24146 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
24147 in common code, dealing with STRING_CST properly.
24149 2019-06-24 Richard Biener <rguenther@suse.de>
24151 PR tree-optimization/90930
24152 PR tree-optimization/90316
24153 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
24154 decrement of limit.
24156 2019-06-24 Martin Sebor <msebor@redhat.com>
24158 * tree-pretty-print.h: Remove unnecessary punctuation characters
24160 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
24162 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
24164 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
24165 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
24166 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
24168 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
24170 * config/rs6000/darwin.h: Handle GCC target pragma.
24172 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
24174 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
24176 2019-06-22 Jeff Law <law@redhat.com>
24178 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24180 2019-06-22 Jan Hubicka <jh@suse.cz>
24182 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
24183 give up on bitfields; continue searching for different refs
24186 2019-06-21 Jakub Jelinek <jakub@redhat.com>
24188 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24189 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
24190 containing the offset as possible simd lane access. Look through
24191 widening conversion. Move the
24192 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
24194 2019-06-21 Richard Biener <rguenther@suse.de>
24196 PR tree-optimization/90930
24197 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
24198 flag on new stmts to avoid re-processing them.
24200 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
24202 PR c++/90875 - added -Wswitch-outside-range option
24203 * doc/invoke.texi (Wswitch-outside-range): Document.
24205 2019-06-21 Jeff Law <law@redhat.com>
24207 PR tree-optimization/90949
24208 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
24209 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
24211 2019-06-21 Richard Biener <rguenther@suse.de>
24214 * dwarf2out.c (prune_unused_types_walk): Always consider
24215 function-local extern declarations as used.
24217 2019-06-21 Richard Biener <rguenther@suse.de>
24219 PR tree-optimization/90913
24220 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24221 the scalar variant of if-conversion versioning.
24223 2019-06-21 Jakub Jelinek <jakub@redhat.com>
24225 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24226 create another "omp scan inscan exclusive" array if
24227 !ctx->scan_inclusive.
24228 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24229 (lower_omp_scan): Likewise.
24230 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24231 2-bit bitfield for simd_lane_access_p member.
24232 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24233 aux == (void *)-4 as simd lane access.
24234 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
24235 comment with permutations to show the canonical permutation order.
24236 (vectorizable_scan_store): Handle exclusive scan.
24237 (vectorizable_store): Call vectorizable_scan_store even for
24238 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24240 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24241 "omp simd array" arrays with one byte elements.
24243 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
24245 * config/alpha/alpha.md (@unaligned_store<mode>):
24246 Rename from unaligned_store<mode>.
24247 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24248 * config/alpha/sync.md (@load_locked_<mode>): Rename
24249 from load_locked_<mode>.
24250 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24251 (@atomic_compare_and_swap<mode>_1): Rename
24252 from atomic_compare_and_swap<mode>_1.
24253 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24254 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24255 Use gen_reload_in_aligned and gen_unaligned_store.
24256 (emit_load_locked): Remove.
24257 (emit_store_conditional): Ditto.
24258 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24259 (alpha_split_compare_and_swap): Ditto.
24260 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24261 (alpha_split_compare_and_swap_12): Use gen_load_locked
24262 and gen_store_conditional.
24263 (alpha_split_atomic_exchange): Ditto.
24264 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24265 (alpha_split_atomic_exchange_12): Use gen_load_locked
24266 and gen_store_conditional.
24268 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
24270 * config/aarch64/aarch64-errata.h: New file.
24271 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24272 (CA53_ERR_843419_SPEC): Delete.
24273 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24274 * config/aarch64/aarch64-linux.h: Likewise.
24275 * config/aarch64/aarch64-netbsd.h: Likewise.
24276 * config/aarch64/aarch64-freebsd.h: Likewise.
24278 2019-06-20 Marek Polacek <polacek@redhat.com>
24280 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24282 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
24284 * config/rs6000/rs6000.md (isa attribute): Add support for
24285 for a future processor.
24287 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
24290 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24291 standard scalar operation pattern for V2DF.
24292 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24293 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24294 (*ieee_<ieee_maxmin><mode>3): Likewise.
24295 (vec_setv2df_0): Likewise.
24297 2019-06-20 Jan Hubicka <jh@suse.cz>
24299 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24300 parameter; it has no use in gimple memory model.
24301 (indirect_ref_may_alias_decl_p): Update.
24303 2019-06-20 Martin Liska <mliska@suse.cz>
24305 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24308 2019-06-20 Jakub Jelinek <jakub@redhat.com>
24310 * tree-vect-stmts.c (enum scan_store_kind): New type.
24311 (scan_store_can_perm_p): Change last argument from int * to
24312 vec<enum scan_store_kind> *, record precisely which permutations
24313 need whole vector left shift or that plus VEC_COND_EXPR.
24314 (vectorizable_scan_store): Adjust caller, use whole vector left shift
24315 and additional VEC_COND_EXPR only for those iterations that need it.
24317 2019-06-20 Alexandre Oliva <oliva@adacore.com>
24319 * config.gcc: Fix ARM --with-fpu checking and error message.
24321 2019-06-19 Marek Polacek <polacek@redhat.com>
24323 PR c++/60364 - noreturn after first decl not diagnosed.
24324 * attribs.c (get_attribute_namespace): No longer static.
24325 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
24327 (attr_noreturn_exclusions): Make it extern.
24328 * attribs.h (get_attribute_namespace): Declare.
24329 * tree-inline.c (function_attribute_inlinable_p): Use
24330 get_attribute_name.
24332 2019-06-19 Martin Sebor <msebor@redhat.com>
24334 PR tree-optimization/90626
24335 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24337 PR tree-optimization/90626
24338 * tree-ssa-strlen.c (strxcmp_unequal): New function.
24339 (handle_builtin_string_cmp): Call it.
24341 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24343 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24344 and DARWIN_NOPIE_SPEC.
24345 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24346 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24347 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24348 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24349 (DARWIN_EXPORT_DYNAMIC): Delete.
24350 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24351 and pie options processing to darwin.h.
24352 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24354 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24356 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24357 in computing the number of options to be moved.
24359 2019-06-19 Maya Rashish <coypu@sdf.org>
24361 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24362 (CLEAR_INSN_CACHE) Use it.
24364 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24366 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24368 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24370 PR middle-end/84521
24371 * builtins.c (expand_builtin_setjmp_setup): Save
24372 hard_frame_pointer_rtx.
24373 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24375 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24377 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24379 (remove_reg_equal_offset_note): Remove unused function.
24380 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24382 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24383 (arc_builtin_setjmp_frame_value): Remove function.
24384 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24385 (avr_builtin_setjmp_frame_value): Remove function.
24386 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24387 (ix86_builtin_setjmp_frame_value): Remove function.
24388 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24389 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24390 (sparc_builtin_setjmp_frame_value): Remove function.
24391 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24392 (vax_builtin_setjmp_frame_value): Remove function.
24393 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24394 pointer if has_nonlocal_label.
24396 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24398 * doc/md.texi: Document vec_shl_<mode> pattern.
24399 * optabs.def (vec_shl_optab): New optab.
24400 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24401 argument, if == vec_shl_optab, check for left whole vector shift
24402 pattern rather than right shift.
24403 (expand_vec_perm_const): Add vec_shl_optab support.
24404 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24406 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24407 can be handled by vec_shl_optab.
24408 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24409 (check_scan_store): Use it.
24410 (vectorizable_scan_store): If target can't do normal permutations,
24411 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24413 * config/i386/sse.md (vec_shl_<mode>): New expander.
24415 * omp-low.c (lower_rec_input_clauses): Handle references properly
24417 (lower_omp_scan): Likewise.
24419 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24421 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24422 mem_mode is BLKmode.
24424 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24427 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24428 pointer adjustment for the case of no callee-saved registers and
24429 stack frame bigger than 128 bytes.
24431 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24433 PR middle-end/90862
24434 * omp-low.c (check_omp_nesting_restrictions): Handle
24435 GF_OMP_TARGET_KIND_OACC_DECLARE.
24437 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24439 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24440 (@add<mode>3_carry): Rename from add<mode>3_carry.
24441 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24442 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24443 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24444 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24445 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24446 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24447 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24448 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24449 (cmpstrnsi): Use gen_cmp_1.
24450 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24451 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24452 (@umonitor_<mode>): Rename from umonitor_<mode>.
24453 * config/i386/i386-expand.c (ix86_expand_copysign):
24454 Use gen_copysign3_const and gen_copysign3_var.
24455 (ix86_expand_xorsign): Use gen_xorsign3_1.
24456 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24457 gen_sub3_carry_ccgz and gen_cmp1.
24458 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24459 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24460 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24461 (ix86_split_lshr): Ditto.
24462 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24464 2019-06-18 Jason Merrill <jason@redhat.com>
24466 * tree.c (build_constructor): Add MEM_STAT_DECL.
24468 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24470 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24471 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24472 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24473 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24474 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24475 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24476 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24477 Use CC_NZC instead of CC.
24478 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24479 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24480 (aarch64_print_operand): Handle E_CC_NZCmode.
24481 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24482 of gen_set_clobber_cc.
24484 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24486 * config/aarch64/aarch64-sve.md: Tabify file.
24488 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24490 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24491 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24492 * config/aarch64/aarch64-sve.md: Use it.
24494 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24496 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24497 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24498 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24499 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24500 (aarch64_expand_sve_vec_cmp_int): Use it.
24501 (aarch64_expand_sve_vec_cmp_float): Likewise.
24502 * config/aarch64/aarch64-sve.md: Likewise throughout.
24504 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24505 Kugan Vivekanandarajah <kuganv@linaro.org>
24507 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24508 (*cond_<optab><mode>_z): Fold into...
24509 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24510 operand 4 can be tied to operand 0 (either inherently or via RA).
24512 2019-06-18 Richard Biener <rguenther@suse.de>
24515 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24516 as if optimized away.
24518 2019-06-18 Tom de Vries <tdevries@suse.de>
24520 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24521 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24522 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24524 (define_insn "@set_softstack_<mode>"): ... this.
24525 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24526 (define_insn "@omp_simt_enter_<mode>"): ... this.
24527 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24528 (define_insn "@omp_simt_exit_<mode>"): ... this.
24530 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24532 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24533 vf parameter. Restore the previous iv step of nscalars_step,
24534 but give it iv_type rather than compare_type. Tweak code order
24535 to match the comments.
24536 (vect_set_loop_condition_masked): Update accordingly.
24537 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24538 for iv_precision. Tweak comment formatting.
24540 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24542 * config/darwin.c: Strip trailing whitespace.
24544 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24546 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24547 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24549 2019-06-18 Martin Jambor <mjambor@suse.cz>
24552 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24553 caller does not have flag_ipa_cp set.
24555 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24557 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24558 from "*fold_left_plus_<mode>", updated operands order.
24559 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24560 * internal-fn.c (mask_fold_left_direct): New define.
24561 (expand_mask_fold_left_optab_fn): Likewise.
24562 (direct_mask_fold_left_optab_supported_p): Likewise.
24563 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24564 * optabs.def (mask_fold_left_plus_optab): New optab.
24565 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24566 masked internal_fn for a reduction ifn.
24567 (vectorize_fold_left_reduction): Add support for masking reductions.
24569 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24571 PR middle-end/80791
24572 * target.def (predict_doloop_p): New hook.
24573 * targhooks.h (default_predict_doloop_p): New declaration.
24574 * targhooks.c (default_predict_doloop_p): New function.
24575 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24576 * doc/tm.texi: Regenerate.
24577 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24578 (TARGET_PREDICT_DOLOOP_P): New macro.
24579 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24581 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24583 * omp-low.c (struct omp_context): Add scan_inclusive field.
24584 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24586 (struct omplow_simd_context): Add lastlane member.
24587 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24588 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24590 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24591 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24592 (lower_omp_scan): New function.
24593 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24594 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24595 check 3rd argument if present rather than 2nd.
24596 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24597 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24599 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24600 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24602 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24603 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24604 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24606 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24607 IFN_GOMP_SIMD_LANE argument.
24608 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24609 encoded ->aux value.
24610 * tree-vect-stmts.c: Include attribs.h.
24611 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24612 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24614 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24615 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24617 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24620 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24621 (*nabs<mode>2_1): Ditto.
24622 (nabs sse-reg splitter): New splitter.
24623 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24625 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24627 PR bootstrap/90873.
24628 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24631 2019-06-17 Tom de Vries <tdevries@suse.de>
24633 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24634 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24635 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24637 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24639 (define_insn "omp_simt_enter_insn"): Rename to ...
24640 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24641 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24642 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24643 gen_omp_simt_enter_si.
24644 (define_expand "omp_simt_exit"): New.
24645 (define_insn "omp_simt_exit"): Rename to ...
24646 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24649 2019-06-17 Matthew Green <mrg@eterna.com.au>
24650 Maya Rashish <coypu@sdf.org>
24652 * config.gcc (aarch64*-*-netbsd*): New target.
24653 * config/aarch64/aarch64-netbsd.h: New file.
24654 * config/aarch64/t-aarch64-netbsd: Likewise.
24656 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24658 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24659 the access path from base to first VIEW_CONVERT_EXPR or
24662 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24664 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24665 access path on BIT_FIELD_REFs.
24667 2019-06-17 Martin Liska <mliska@suse.cz>
24670 * ipa-utils.h (odr_type_p): Remove dead code.
24672 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24674 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24675 alternative Solaris 11.4 format.
24676 * configure: Regenerate.
24678 2019-06-17 Tom de Vries <tdevries@suse.de>
24680 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24681 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24683 (define_insn "call_value_insn"): Rename to ...
24684 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24686 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24689 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24691 PR middle-end/64242
24692 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24693 frame clobbers and schedule block.
24694 (builtin_longjmp): Likewise.
24696 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24698 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24699 describe how to perform MSPABI compliant 64-bit shift.
24700 * config/msp430/msp430.md (ashldi3): New define_expand.
24701 (ashrdi3): New define_expand.
24702 (lshrdi3): New define_expand.
24704 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24706 * doc/sourcebuild.texi: Document new effective target keyword
24709 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24711 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24712 indirect_refs_may_alias_p): Revert accidental commits.
24714 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24715 at the end of structures.
24717 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24719 * config/darwin.c (machopic_indirect_call_target): Use renamed
24720 darwin_picsymbol_stubs to decide on output.
24721 (darwin_override_options): Handle darwin_picsymbol_stubs.
24722 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24723 (LD64_VERSION): Revise default.
24724 * config/darwin.opt: (mpic-symbol-stubs): New option.
24725 (darwin_picsymbol_stubs): New variable.
24726 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24727 rename to TARGET_MACHO_PICSYM_STUBS.
24728 * config/i386/i386.c (output_pic_addr_const): Likewise.
24729 * config/i386/i386.h Likewise.
24730 * config/rs6000/darwin.h: Likewise.
24731 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24732 darwin_picsymbol_stubs.
24734 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24736 * config/darwin.opt (prebind, noprebind, seglinkedit,
24737 noseglinkedit): Add RejectNegative.
24739 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24741 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24742 in my previous patch.
24744 2019-06-16 Tom de Vries <tdevries@suse.de>
24746 PR tree-optimization/89376
24747 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24749 2019-06-15 Maya Rashish <coypu@sdf.org>
24751 * doc/invoke.texi (Spec Files): Update location of the
24754 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24756 * doc/extend.texi (Common Function Attributes): Clarify
24757 no_sanitize. Fix grammar.
24759 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24761 * tree-ssa-alias.c (alias_stats): Add
24762 nonoverlapping_component_refs_p_may_alias,
24763 nonoverlapping_component_refs_p_no_alias,
24764 nonoverlapping_component_refs_of_decl_p_may_alias,
24765 nonoverlapping_component_refs_of_decl_p_no_alias.
24766 (dump_alias_stats): Dump them.
24767 (nonoverlapping_component_refs_of_decl_p): Add stats.
24768 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24771 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24773 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24774 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24776 (*anddi3_doubleword): Split before reload. Merge with
24777 anddi->zext pre-reload splitter.
24778 (*andndi3_doubleword): Split before reload.
24779 (*<code>di3_doubleword): Ditto.
24780 (*one_cmpldi2_doubleword): Ditto.
24782 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24784 PR middle-end/90779
24785 * gimplify.c: Include omp-offload.h and context.h.
24786 (gimplify_bind_expr): Add "omp declare target" attributes
24787 to static block scope variables inside of target region or target
24790 2019-06-15 Tom de Vries <tdevries@suse.de>
24792 PR tree-optimization/90009
24793 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24794 Return NULL if bb contains IFN_UNIQUE.
24796 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24798 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24799 (un): New define_mode_attr.
24800 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24801 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24802 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24804 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24806 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24808 * config/darwin.opt: Add RejectNegative where needed, reorder
24809 and add minimal functional descriptions.
24811 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24813 PR rtl-optimization/90765
24814 * calls.c (update_stack_alignment_for_call): New function.
24815 (expand_call): Call update_stack_alignment_for_call when
24816 outgoing parameter is passed in the stack.
24817 (emit_library_call_value_1): Likewise.
24818 * function.c (locate_and_pad_parm): Don't update
24819 stack_alignment_needed and preferred_stack_boundary.
24821 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24824 * config/i386/i386-features.c
24825 (dimode_scalar_chain::compute_convert_gain): Replace
24826 mmxsse_to_integer with sse_to_integer.
24827 * config/i386/i386.c (ix86_register_move_cost): Verify that
24828 moves between MMX and non-MMX units require secondary memory.
24829 Correct costs of moves between SSE and integer units.
24830 * config/i386/i386.h (processor_costs): Rename cost of moving
24831 SSE register to integer to sse_to_integer. Rename cost of
24833 2019-06-14 Matt Thomas <matt@3am-software.com>
24834 Matthew Green <mrg@eterna.com.au>
24835 Nick Hudson <skrll@netbsd.org>
24836 Maya Rashish <coypu@sdf.org>
24837 Richard Earnshaw <rearnsha@arm.com>
24839 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24840 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24841 * config/arm/netbsd-eabi.h: New file.
24842 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24844 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24845 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24846 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24847 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24849 2019-06-14 Richard Biener <rguenther@suse.de>
24851 * tree-loop-distribution.c (classify_partition): Return
24852 whether a reduction appeared in all partitions and do not
24853 stop builtin detection because of this.
24854 (distribute_loop): Sort a non-builtin partition last if
24855 there's a reduction in all partitions and make sure the
24856 partition prevailing as last is not a builtin.
24858 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24861 * ipa-prop.c (add_to_agg_contents_list): New function.
24862 (clobber_by_agg_contents_list_p): Likewise.
24863 (extract_mem_content): Likewise.
24864 (get_place_in_agg_contents_list): Delete.
24865 (determine_known_aggregate_parts): Renamed from
24866 determine_locally_known_aggregate_parts. New parameter
24869 2019-06-13 Martin Sebor <msebor@redhat.com>
24871 PR tree-optimization/90662
24872 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24875 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24878 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24879 dbase is not TARGET_MEM_REF.
24881 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24883 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24885 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24886 Do not generate DImode extends for 32bit targets.
24887 (and->zext post-reload splitter): Use gen_extend_insn
24888 instead of indirect functions.
24889 (anddi->zext pre-reload splitter): New.
24890 (*zext<mode>_doubleword_and): Remove.
24891 (*zext<mode>_doubleword): Ditto.
24892 (*zextsi_doubleword): Dittto.
24894 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24896 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24897 Use gen_sub3_insn instead of indirect function.
24898 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24900 (ix86_adjust_counter): Ditto.
24902 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24903 Lijia He <helijia@linux.ibm.com>
24905 PR tree-optimization/77820
24906 * tree-ssa-threadedge.c
24907 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24909 (thread_across_edge): Add call to
24910 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24912 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24914 * config/darwin-driver.c (validate_macosx_version_min): New.
24915 (darwin_default_min_version): Cleanup and validate supplied version.
24916 (darwin_driver_init): Likewise and push cleaned version into opts.
24918 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24920 PR tree-optimization/90869
24921 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24922 converts in MEM_REF referencing decl rather than view converts
24923 from decl type to MEM_REF type.
24925 2019-06-13 Richard Biener <rguenther@suse.de>
24927 PR tree-optimization/90856
24928 * tree-sra.c (build_ref_for_model): Only use
24929 build_reconstructed_reference when address-spaces are the same.
24931 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24933 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24934 wrap ei variable name in the declaration in ()s.
24935 (nvptx_single): Actually use mode_label variable. Formatting fix.
24937 2019-06-13 Richard Biener <rguenther@suse.de>
24939 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24940 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24941 also return the condition stmt.
24942 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24943 loop we can version and version that, reusing the loop version
24944 created by if-conversion instead of versioning again.
24946 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24948 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24950 * tree-vrp (value_range_base::may_contain_p): Call into
24951 value_inside_range.
24952 (value_inside_range): Make private inside value_range_base class.
24953 Take min/max from *this.
24954 (range_includes_p): Remove.
24955 * tree-vrp.h (value_range_base): Add value_inside_range.
24956 (range_includes_p): Remove.
24957 (range_includes_zero_p): Call may_contain_p.
24958 * vr-values.c (compare_range_with_value): Same.
24960 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24962 * doc/extend.texi (ARC Function Attributes): Update info.
24964 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24966 PR tree-optimization/89713
24967 * doc/invoke.texi (-ffinite-loops): Document new option.
24968 * common.opt (-ffinite-loops): New option.
24969 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24970 IFN_GOACC_LOOP calls as necessary.
24971 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24973 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24974 IFN_GOACC_LOOP call is not used.
24975 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24977 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24980 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24981 compare_type is not with Pmode size, we will create an IV with
24982 Pmode size with truncated use (i.e. converted to the correct type).
24983 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24984 (vect_iv_limit_for_full_masking): New. Factored out of
24985 vect_set_loop_condition_masked.
24986 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24987 (vect_iv_limit_for_full_masking): Declare.
24989 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24992 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24993 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24994 (get_alias_ptr_type_for_ptr_address): Likewise.
24995 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24996 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24997 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
25000 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
25002 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
25004 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
25006 * common/config/pru/pru-common.c: New file.
25007 * config.gcc: Add PRU target.
25008 * config/pru/alu-zext.md: New file.
25009 * config/pru/constraints.md: New file.
25010 * config/pru/predicates.md: New file.
25011 * config/pru/pru-opts.h: New file.
25012 * config/pru/pru-passes.c: New file.
25013 * config/pru/pru-pragma.c: New file.
25014 * config/pru/pru-protos.h: New file.
25015 * config/pru/pru.c: New file.
25016 * config/pru/pru.h: New file.
25017 * config/pru/pru.md: New file.
25018 * config/pru/pru.opt: New file.
25019 * config/pru/t-pru: New file.
25020 * doc/extend.texi: Document PRU pragmas.
25021 * doc/invoke.texi: Document PRU-specific options.
25022 * doc/md.texi: Document PRU asm constraints.
25024 2019-06-12 Martin Sebor <msebor@redhat.com>
25026 PR middle-end/90676
25027 * tree-pretty-print.c (dump_mem_ref): New function. Include
25028 MEM_REF type in output when different size than operand.
25029 (dump_generic_node): Move code to dump_mem_ref and call it.
25031 2019-06-12 Martin Sebor <msebor@redhat.com>
25033 PR tree-optimization/90662
25034 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
25037 2019-06-12 Tom de Vries <tdevries@suse.de>
25039 PR tree-optimization/90009
25040 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
25042 2019-06-12 Martin Liska <mliska@suse.cz>
25044 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
25046 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
25047 * mem-stats.h (mem_alloc_description::mem_alloc_description):
25048 Do not sanitize created maps.
25050 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
25052 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
25053 value_range::singleton_p.
25054 * tree-vrp.c (value_range_constant_singleton): Remove.
25055 * tree-vrp.h (value_range_constant_singleton): Remove.
25056 * vr-values.c (vr_values::singleton): Use
25057 value_range::singleton_p.
25059 2019-06-12 Jakub Jelinek <jakub@redhat.com>
25062 * cfgexpand.c (align_local_variable): Add really_expand argument,
25063 don't SET_DECL_ALIGN if it is false.
25064 (add_stack_var): Add really_expand argument, pass it through to
25065 align_local_variable.
25066 (expand_one_stack_var_1): Pass true as really_expand to
25067 align_local_variable.
25068 (expand_one_ssa_partition): Pass true as really_expand to
25070 (expand_one_var): Pass really_expand through to add_stack_var.
25072 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
25074 * config/arm/iterators.md (VABAL): New int iterator.
25075 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
25076 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
25077 UNSPEC_VABAL_U values.
25079 2019-06-12 Martin Liska <mliska@suse.cz>
25081 * value-prof.c (stream_out_histogram_value): Only first value
25084 2019-06-12 Jakub Jelinek <jakub@redhat.com>
25087 * symtab.c (symtab_node::set_section): Allow being called on aliases
25088 as long as they aren't analyzed yet.
25090 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
25092 * config/mips/mips.c (mips_final_postscan_insn): Modify call
25093 to `mips_set_text_contents_type' to indicate whether a
25094 non-debug insn follows.
25096 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
25098 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
25099 enabling -mpcrel by default.
25100 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
25101 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
25102 that the test against -mcpu=future is done first. Then test if
25103 -mprefixed-addr is on for -mpcrel.
25104 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
25106 2019-06-11 Jakub Jelinek <jakub@redhat.com>
25109 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
25110 instead of and.u%d.
25112 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
25114 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
25116 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
25118 PR c++/90449 - add -Winaccessible-base option.
25119 * doc/invoke.texi (Winaccessible-base): Document.
25121 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
25123 PR tree-optimization/62041
25124 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
25126 2019-06-11 Jason Merrill <jason@redhat.com>
25128 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
25129 * tree.c (get_tree_code_name): Likewise.
25130 * print-tree.c (print_node): Only briefly print a node with an
25133 2019-06-11 Jakub Jelinek <jakub@redhat.com>
25136 * trans-mem.c (tm_memopt_compute_available): Add assertion
25137 that blocks is not empty. Formatting fix.
25139 2019-06-11 Martin Liska <mliska@suse.cz>
25142 * hash-table.h: Extend create_gcc, add one parameter
25143 that is passed into hash_table::hash_table.
25145 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
25147 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
25149 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
25150 Emit clobber also for non-sse operations.
25151 (ix86_split_fp_absneg_operator): New function.
25152 * config/i386/i386.md (SSEMODEF): New mode iterator.
25153 (ssevecmodef): New mode attribute.
25154 (<code>tf2): Use absneg code iterator.
25155 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
25156 Add three-operand AVX alternatives.
25157 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
25158 Use absneg code iterator and X87MODEF mode iterator.
25159 (absneg fp_reg non-sse splitter): Call absneg code iterator
25160 and X87MODEF mode iterator.
25161 (absneg general_reg non-sse splitter): Use absneg code iterator
25162 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
25163 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
25164 code iterator. Add three-operand AVX alternative.
25165 (absneg sse_reg splitter): Use absneg code iterator
25166 and SSEMODEF mode iterator. Handle AVX operands.
25167 (absneg fp_reg splitter): Use absneg code iterator
25168 and MODEF mode iterator.
25169 (absneg general_reg splitter): Merge splitters using MODEF mode
25170 iterator. Use absneg code iterator. Call
25171 ix86_split_fp_absneg_operator.
25172 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
25173 Do not enable for non-sse modes before reload.
25174 (CSGNMODE): Remove.
25175 (CSGNVMODE): Ditto.
25176 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
25177 ssevecmodef mode attribute instaed of CSGNVMODE.
25178 (copysign<mode>3_const): Ditto.
25179 (copysign<mode>3_var): Ditto.
25180 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
25181 Use absneg code iterator. Simplify code using std::swap.
25182 * config/i386/predicates.md (absneg_operator): Remove.
25184 2019-06-10 Martin Sebor <msebor@redhat.com>
25186 * gimple-fold.c (get_range_strlen): Update comment that didn't
25187 make it into r267503 or related commits.
25189 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
25191 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
25192 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
25194 2019-06-10 Jakub Jelinek <jakub@redhat.com>
25196 * tree.def (OMP_SCAN): New tree code.
25197 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
25198 OMP_CLAUSE_EXCLUSIVE.
25199 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
25200 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
25201 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
25202 OMP_CLAUSE_{IN,EX}CLUSIVE.
25203 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25204 * tree-nested.c (convert_nonlocal_reference_stmt,
25205 convert_local_reference_stmt, convert_gimple_call): Handle
25207 * tree-pretty-print.c (dump_omp_clause): Handle
25208 OMP_CLAUSE_{IN,EX}CLUSIVE.
25209 (dump_generic_node): Handle OMP_SCAN.
25210 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
25211 * gimple.h (gomp_scan): New type.
25212 (is_a_helper <gomp_scan *>::test,
25213 is_a_helper <const gomp_scan *>::test): New templates.
25214 (gimple_build_omp_scan): Declare.
25215 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25216 gimple_omp_scan_set_clauses): New inline functions.
25217 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25218 * gimple.c (gimple_build_omp_scan): New function.
25219 (gimple_copy): Handle GIMPLE_OMP_SCAN.
25220 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25221 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25222 GIMPLE_OMP_TASKGROUP.
25223 (dump_gimple_omp_scan): New function.
25224 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25225 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25226 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25227 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25228 (is_gimple_stmt): Handle OMP_SCAN.
25229 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25230 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25231 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25232 mentioned in nested #pragma omp scan. Handle
25233 OMP_CLAUSE_{IN,EX}CLUSIVE.
25234 (gimplify_expr): Handle OMP_SCAN.
25235 * omp-low.c (check_omp_nesting_restrictions): For parent context,
25236 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
25238 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25241 2019-06-10 Martin Liska <mliska@suse.cz>
25243 * ipa-cp.c (ignore_edge_p): New function.
25244 (build_toporder_info): Use it.
25245 * ipa-inline.c (ignore_edge_p): New function.
25246 (inline_small_functions): Use it.
25247 * ipa-pure-const.c (ignore_edge_for_nothrow):
25248 Verify opt_for_fn for caller and callee.
25249 (ignore_edge_for_pure_const): Likewise.
25250 * ipa-reference.c (ignore_edge_p): Extend to check
25252 * ipa-utils.c (searchc): Refactor.
25253 * ipa-utils.h: Fix coding style.
25255 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25257 * config/arc/arc.c (arc_rtx_costs): Update costs.
25259 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25261 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25262 (arc_split_ior): Likewise.
25263 (arc_check_mov_const): Likewise.
25264 (arc_split_mov_const): Likewise.
25265 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25266 (arc_rtx_costs): Replace check Crr with Cax constraint.
25267 (prepare_move_operands): Cleanup, remove unused code.
25268 (arc_split_ior): New function.
25269 (arc_check_ior_const): Likewise.
25270 (arc_split_mov_const): Likewise.
25271 (arc_check_mov_const): Likewise.
25272 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25273 in define_insn_and_split pattern.
25274 (iorsi3): Likewise.
25275 (mulsi3_v2): Add new matching variant.
25276 (andsi3_i): Cleanup pattern.
25277 (rotrsi3_cnt1): Update pattern.
25278 (rotrsi3_cnt8): New pattern.
25279 (ashlsi2_cnt8): Likewise.
25280 (ashlsi2_cnt16): Likewise.
25281 * config/arc/constraints.md (C0p): Update constraint.
25283 (C0x): New pattern.
25284 (Cax): New pattern.
25286 2019-06-10 Martin Liska <mliska@suse.cz>
25288 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25289 Update coding style.
25290 (sem_item_optimizer::dump_cong_classes):
25291 Print how many items are in a non-singular class. Improve
25294 2019-06-10 Martin Liska <mliska@suse.cz>
25296 * value-prof.c (dump_histogram_value): Change dump format.
25297 (gimple_mod_subtract_transform): Remove legacy comment.
25299 2019-06-10 Martin Liska <mliska@suse.cz>
25301 * value-prof.c (dump_histogram_value): Print histogram values
25304 2019-06-10 Martin Liska <mliska@suse.cz>
25306 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25307 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25308 * ipa-profile.c (ipa_profile_generate_summary):
25309 Use get_most_common_single_value.
25310 * tree-profile.c (gimple_init_gcov_profiler):
25311 Instrument with __gcov_one_value_profiler_v2
25312 and __gcov_indirect_call_profiler_v4.
25313 * value-prof.c (dump_histogram_value):
25314 Print all values for HIST_TYPE_SINGLE_VALUE.
25315 (stream_out_histogram_value): Update assert for
25317 (stream_in_histogram_value): Set number of
25318 counters for HIST_TYPE_SINGLE_VALUE.
25319 (get_most_common_single_value): New.
25320 (gimple_divmod_fixed_value_transform):
25321 Use get_most_common_single_value.
25322 (gimple_ic_transform): Likewise.
25323 (gimple_stringops_transform): Likewise.
25324 (gimple_find_values_to_profile): Set number
25325 of counters for HIST_TYPE_SINGLE_VALUE.
25326 * value-prof.h (get_most_common_single_value): New.
25328 2019-06-10 Martin Liska <mliska@suse.cz>
25330 * hash-map.h: Pass default value to hash_table ctor.
25331 * hash-table.h: Add default value to call of a ctor.
25333 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
25335 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25336 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25338 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
25341 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25342 Call pa_output_function_label.
25343 (TARGET_ASM_FUNCTION_PROLOGUE): define.
25344 * config/pa/pa-protos.h (pa_output_function_label): Declare.
25345 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25347 (pa_linux_output_function_prologue): Declare.
25348 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25349 (pa_output_function_label): New.
25350 (pa_output_function_prologue): Revise to use pa_output_function_label.
25351 (pa_linux_output_function_prologue): New.
25352 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25354 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
25356 * tree-vrp.h (value_range_base::intersect): New.
25357 (value_range::intersect_helper): Move from here...
25358 (value_range_base::intersect_helper): ...to here.
25359 * tree-vrp.c (value_range::intersect_helper): Rename to...
25360 (value_range_base::intersect_helper): ...this, and rewrite to
25361 return a value instead of modifying THIS in place.
25362 Also, move equivalence handling...
25363 (value_range::intersect): ...here, while calling intersect_helper.
25364 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25366 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25368 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25370 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25372 * Makefile.in (genprogerr): Add condmd.
25373 (genprog): Remove it here.
25375 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25377 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25379 2019-06-07 Richard Biener <rguenther@suse.de>
25382 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25383 that appear after user labels.
25385 2019-06-07 Martin Liska <mliska@suse.cz>
25387 * cselib.c (cselib_init): Disable hash table
25389 * hash-set.h: Pass new default argument to m_table.
25390 * hash-table.c: Add global variable with hash table
25391 sanitization limit.
25392 * hash-table.h (Allocator>::hash_table): Add new argument
25394 (hashtab_chk_error): New.
25395 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25396 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25397 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25399 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25401 * common.opt (flto-odr-type-merging): Ignore.
25402 * invoke.texi (-flto-odr-type-merging): Remove.
25403 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25404 (can_be_vtable_hashed_p): Remove.
25405 (hash_odr_vtable): Remove.
25406 (odr_vtable_hasher::hash): Remove.
25407 (types_same_for_odr): Remove.
25408 (types_odr_comparable): Remove.
25409 (odr_vtable_hasher::equal): Remove.
25410 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25411 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25412 (get_odr_type): Do not use vtable hash.
25413 (dump_odr_type): Remove commented out code.
25414 (build_type_inheritance_graph): Do not allocate vtable hash.
25415 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25416 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25417 (odr_type_p): Likewise.
25418 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25421 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25423 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25424 immediately after same_types_for_tbaa_p returns -1 and continue
25425 looking for possible exact match; if matching types are arrays
25426 watch for partial overlaps.
25427 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25428 (indirect_refs_may_alias_p): Do type based disambiguation first;
25431 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25433 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25435 2019-06-07 Martin Liska <mliska@suse.cz>
25437 * doc/invoke.texi: Remove param.
25438 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25440 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25441 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25442 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25443 * profile.c (instrument_values): Remove
25444 HIST_TYPE_INDIR_CALL_TOPN.
25445 * tree-profile.c (init_ic_make_global_vars):
25446 Always build __gcov_indirect_call only.
25447 (gimple_init_gcov_profiler): Remove usage
25448 of PARAM_INDIR_CALL_TOPN_PROFILE.
25449 (gimple_gen_ic_profiler): Likewise.
25450 * value-prof.c (dump_histogram_value): Likewise.
25451 (stream_in_histogram_value): Likewise.
25452 (gimple_indirect_call_to_profile): Likewise.
25453 (gimple_find_values_to_profile): Likewise.
25454 * value-prof.h (enum hist_type): Likewise.
25456 2019-06-07 Martin Liska <mliska@suse.cz>
25458 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25461 2019-06-07 Martin Liska <mliska@suse.cz>
25463 PR tree-optimization/78902
25464 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25465 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25466 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25467 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25468 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25469 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25470 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25471 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25472 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25473 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25474 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25475 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25476 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25478 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25479 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25480 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25481 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25482 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25483 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25484 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25485 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25486 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25487 warn_unused_result attribute.
25488 (BUILT_IN_STRDUP): Likewise.
25489 (BUILT_IN_STRNDUP): Likewise.
25490 (BUILT_IN_ALLOCA): Likewise.
25491 (BUILT_IN_CALLOC): Likewise.
25492 (BUILT_IN_MALLOC): Likewise.
25493 (BUILT_IN_REALLOC): Likewise.
25495 2019-06-06 Jim Wilson <jimw@sifive.com>
25498 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25499 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25500 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25502 2019-06-06 Martin Sebor <msebor@redhat.com>
25504 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25505 (handle_builtin_malloc): Remove trailing spaces.
25506 (handle_builtin_memset): Same.
25507 (handle_builtin_memcmp): Same.
25508 (compute_string_length): Same.
25509 (determine_min_objsize): Same.
25510 (handle_builtin_string_cmp): Same.
25511 (handle_char_store): Same. Break up excessively long line.
25513 2019-06-06 Martin Jambor <mjambor@suse.cz>
25515 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25518 2019-06-06 Martin Jambor <mjambor@suse.cz>
25520 * tree-sra.c (struct access): New field grp_same_access_path.
25521 (dump_access): Dump it.
25522 (build_reconstructed_reference): New function.
25523 (build_ref_for_model): Use it if possible.
25524 (path_comparable_for_same_access): New function.
25525 (same_access_path_p): Likewise.
25526 (sort_and_splice_var_accesses): Set the new flag.
25527 (analyze_access_subtree): Likewise.
25528 (propagate_subaccesses_across_link): Propagate zero value of the new
25529 flag down the access tree.
25531 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25533 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25534 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25535 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25536 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25539 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25541 PR tree-optimization/90332
25542 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25543 Handle VALS containing two vectors.
25544 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25546 (@aarch64_combinez<mode>): ... This.
25547 (*aarch64_combinez_be<mode>): Rename to...
25548 (@aarch64_combinez_be<mode>): ... This.
25549 (vec_init<mode><Vhalf>): New define_expand.
25550 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25552 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25554 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25555 library functions only when not optimizing for size.
25556 (ashlsi3): Likewise.
25557 (ashrhi3): Likewise.
25558 (ashrsi3): Likewise.
25559 (lshrhi3): Likewise.
25560 (lshrsi3): Likewise.
25562 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25564 PR rtl-optimization/88751
25565 * ira.c (ira): Use the number of the actually referenced registers
25566 when calculating the threshold.
25568 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25570 * configure: Regenerate.
25572 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25574 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25575 register if it is in memory, so the shift can be emulated with a rotate
25577 (ashrhi3): Likewise.
25578 (lshrhi3): Likewise.
25580 2019-06-06 Martin Liska <mliska@suse.cz>
25582 PR tree-optimization/87954
25583 * match.pd: Simplify mult where both arguments are 0 or 1.
25585 2019-06-06 Richard Biener <rguenther@suse.de>
25587 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25588 put equivalences on UNDEFINED ranges.
25589 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25590 Make sure to drop defs of stmts added during simplification
25593 2019-06-06 Richard Biener <rguenther@suse.de>
25595 * tree-ssa-structalias.c: Include tree-cfg.h.
25596 (make_heapvar): Do not make heap vars artificial.
25597 (find_func_aliases_for_builtin_call): Handle stack allocation
25599 (find_func_aliases): Delay processing of simple enough returns
25601 (set_uids_in_ptset): Adjust.
25602 (find_what_var_points_to): Likewise.
25603 (solve_constraints): Do not dump points-to sets here.
25604 (compute_points_to_sets): Post-process return statements,
25605 amending the escaped solution. Dump points-to sets afterwards.
25606 (ipa_pta_execute): Dump points-to sets.
25608 2019-06-06 Martin Liska <mliska@suse.cz>
25611 * doc/install.texi: Fix HTML headers and
25612 titles for 'Installing GCC' pages.
25614 2019-06-06 Martin Liska <mliska@suse.cz>
25616 * ipa-icf-gimple.h (dump_message_1): Remove.
25617 (dump_message): Likewise.
25618 (return_false_with_message_1): Print also file.
25619 (return_false_with_msg): Likewise.
25620 (return_with_result): Likewise.
25621 (return_with_debug): Likewise.
25622 * ipa-icf.c (sem_function::equals_private): Remove call
25625 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25627 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25628 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25629 memory operand for it.
25630 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25632 2019-06-05 Martin Sebor <msebor@redhat.com>
25634 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25635 Adjust quoting and hyphenation.
25636 * convert.c (convert_to_real_1): Same.
25637 * gcc.c (driver_wrong_lang_callback): Same.
25638 (driver::handle_unrecognized_options): Same.
25639 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25640 * opts-common.c (cmdline_handle_error): Same.
25641 (read_cmdline_option): Same.
25642 * opts-global.c (complain_wrong_lang): Same.
25643 (print_ignored_options): Same.
25644 (handle_common_deferred_options): Same.
25645 * pretty-print.h: Same.
25646 * print-rtl.c (debug_bb_n_slim): Same.
25647 * sched-rgn.c (make_pass_sched_fusion): Same.
25648 * tree-cfg.c (verify_gimple_assign_unary): Same.
25649 (verify_gimple_label): Same.
25650 * tree-ssa-operands.c (verify_ssa_operands): Same.
25651 * varasm.c (do_assemble_alias): Same.
25652 (assemble_alias): Same.
25654 2019-06-05 Richard Henderson <rth@twiddle.net>
25656 * config/alpha/alpha.c (direct_return): Move down after
25657 struct machine_function definition; use saved frame_size;
25659 (struct machine_function): Add sa_mask, sa_size, frame_size.
25660 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25661 (alpha_compute_frame_layout): ... new function.
25662 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25663 (alpha_initial_elimination_offset): Use saved sa_size.
25664 (alpha_vms_initial_elimination_offset): Likewise.
25665 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25666 (alpha_expand_prologue): Use saved frame data. Merge integer
25667 and fp register save loops.
25668 (alpha_expand_epilogue): Likewise.
25669 (alpha_start_function): Use saved frame data.
25670 * config/alpha/alpha-protos.h (direct_return): Update.
25671 (alpha_sa_size): Remove.
25673 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25675 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25676 multiplication by a power-of-two value.
25677 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25678 and turn the modulo operation into a masking operation.
25680 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25683 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25684 with VOIDmode inner operands.
25686 2019-06-05 Richard Biener <rguenther@suse.de>
25688 PR middle-end/90726
25689 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25690 turn an expression graph into a tree.
25692 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25694 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25696 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25697 treat it like explicit monotonic schedule modifier.
25698 (expand_omp_for): Initialize has_lastprivate_conditional.
25699 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25702 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25703 references, lookup in in hash map MEM_REF operand instead of the
25705 (lower_omp_1): When looking for lastprivate conditional assignments,
25706 handle MEM_REFs with REFERENCE_TYPE operands.
25708 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25709 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25710 and references a VLA. Handle references to non-VLAs if is_simd
25711 all privatization clauses like reductions.
25712 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25713 If omp_is_reference, use always omp simd arrays and set
25714 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25715 fails, emit reference initialization.
25717 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25720 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25721 _mm_mask_fpclass_sd_mask): New intrinsics.
25722 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25723 * config/i386/i386-builtin.def
25724 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25726 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25727 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25728 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25729 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25730 case QI_FTYPE_V2SF_INT): Ditto.
25731 * config/i386/sse.md
25732 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25733 Extended to insnstructions with mask operands.
25735 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25737 * config/rs6000/constraints.md (define_register_constraint "wp"):
25739 (define_register_constraint "wq"): Delete.
25740 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25741 (rs6000_init_hard_regno_mode_ok): Adjust.
25742 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25743 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25744 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25745 (define_mode_attr VSa): Delete.
25746 (define_mode_attr VSisa): New.
25747 (rest of file): Adjust.
25748 * doc/md.texi (Machine Constraints): Adjust.
25750 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25752 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25753 (define_attr "enabled"): Handle those new isa values.
25755 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25757 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25758 (define_mode_attr VSr5): Delete.
25759 (define_mode_attr VStype_sqrt): Delete.
25760 (define_mode_iterator VSX_SPDP): Delete.
25761 (define_mode_attr VS_spdp_res): Delete.
25762 (define_mode_attr VS_spdp_insn): Delete.
25763 (define_mode_attr VS_spdp_type): Delete.
25764 (*vsx_sqrt<mode>2): Adjust.
25765 (vsx_<VS_spdp_insn>): Delete, split to...
25766 (vsx_xscvdpsp): ... this. New. And...
25767 (vsx_xvcvspdp): ... this. New. And...
25768 (vsx_xvcvdpsp): ... this. New.
25770 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25772 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25774 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25775 (rest of file): Adjust.
25777 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25779 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25780 (vsx_extract_<mode>_var): Ditto.
25782 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25784 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25787 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25789 * config/rs6000/constraints.md (define_register_constraint "ww"):
25791 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25792 (rs6000_init_hard_regno_mode_ok): Adjust.
25793 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25794 RS6000_CONSTRAINT_ww.
25795 * config/rs6000/rs6000.md: Adjust.
25796 * config/rs6000/vsx.md: Adjust.
25797 * doc/md.texi (Machine Constraints): Adjust.
25799 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25801 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25802 (define_mode_attr sd): New.
25803 (define_mode_attr s): New.
25804 (define_mode_attr Ftrad): Delete.
25805 (define_mode_attr Fvsx): Delete.
25806 (define_mode_attr Fs): Delete.
25807 (rest of file): Use the new mode attributes.
25808 * config.rs6000/vsx.md: Use the new mode attributes.
25810 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25812 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25815 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25817 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25818 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25819 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25821 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25824 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25825 C++ with strict ANSI requirements.
25827 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25829 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25830 computations when step is 1.
25832 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25834 * config/rs6000/constraints.md (define_register_constraint "wf"):
25836 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25837 (rs6000_init_hard_regno_mode_ok): Adjust.
25838 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25839 RS6000_CONSTRAINT_wf.
25840 * config/rs6000/rs6000.md: Adjust.
25841 * config/rs6000/vsx.md: Adjust.
25842 * doc/md.texi (Machine Constraints): Adjust.
25844 2019-06-04 Andrew Pinski <apinski@marvell.com>
25846 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25849 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25851 * config/rs6000/constraints.md (define_register_constraint "wd"):
25853 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25854 (rs6000_init_hard_regno_mode_ok): Adjust.
25855 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25856 RS6000_CONSTRAINT_wd.
25857 * config/rs6000/rs6000.md: Adjust.
25858 * config/rs6000/vsx.md: Adjust.
25859 * doc/md.texi (Machine Constraints): Adjust.
25861 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25863 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25864 (rest of file): Adjust.
25866 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25868 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25869 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25870 (vsx_splat_<mode>_reg): Adjust.
25872 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25874 * config/rs6000/constraints.md (define_register_constraint "ws"):
25876 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25877 (rs6000_init_hard_regno_mode_ok): Adjust.
25878 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25879 RS6000_CONSTRAINT_ws.
25880 * config/rs6000/rs6000.md: Adjust.
25881 * config/rs6000/vsx.md: Adjust.
25882 * doc/md.texi (Machine Constraints): Adjust.
25884 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25886 * config/rs6000/constraints.md (define_register_constraint "wv"):
25888 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25889 (rs6000_init_hard_regno_mode_ok): Adjust.
25890 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25891 RS6000_CONSTRAINT_wv.
25892 * config/rs6000/rs6000.md: Adjust.
25893 * config/rs6000/vsx.md: Adjust.
25894 * doc/md.texi (Machine Constraints): Adjust.
25896 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25898 * config/rs6000/constraints.md (define_register_constraint "wi"):
25900 (define_register_constraint "wt"): Delete.
25901 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25902 (rs6000_init_hard_regno_mode_ok): Adjust.
25903 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25904 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25905 * config/rs6000/rs6000.md: Adjust.
25906 * config/rs6000/vsx.md: Adjust.
25907 * doc/md.texi (Machine Constraints): Adjust.
25909 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25911 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25913 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25914 default_elf_asm_output_external.
25916 2019-06-04 Martin Liska <mliska@suse.cz>
25918 * ipa-icf.c (INCLUDE_LIST): Remove.
25919 (sem_item_optimizer::execute): Remove call to init_wpa.
25920 * ipa-icf.h (init_wpa): Remove.
25922 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25924 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25925 conditional on combined for simd.
25926 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25928 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25929 constructs, don't remove lastprivate_conditional_map, but instead set
25930 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25931 to parent construct temporaries.
25932 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25933 like !ctx->lastprivate_conditional_map.
25934 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25935 use up->outer context instead of up.
25936 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25937 gimple_omp_for_combined_p.
25938 (expand_omp_for_static_nochunk): Likewise.
25939 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25940 probably moved over into expand_omp_for_generic rather than being copied
25943 2019-06-04 Martin Liska <mliska@suse.cz>
25945 * value-prof.c (dump_histogram_value): Fix typo.
25946 (gimple_mod_subtract_transform): Likewise.
25948 2019-06-04 Richard Biener <rguenther@suse.de>
25950 PR middle-end/90726
25951 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25952 (tree_contains_chrecs): Likewise.
25953 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25954 exponential behaivor from ...
25955 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25957 (expression_expensive_p): Avoid exponential behavior and compute
25958 expanded size, rejecting any expansion.
25959 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25960 (idx_contains_abnormal_ssa_name_p): Likewise.
25961 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25962 (contains_abnormal_ssa_name_p): Simplify and use
25963 walk_tree_without_duplicates.
25965 2019-06-04 Richard Biener <rguenther@suse.de>
25967 PR tree-optimization/90738
25969 2019-06-03 Richard Biener <rguenther@suse.de>
25971 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25972 full reference tree and record in ref->ref.
25973 (vn_reference_lookup_3): Pass in original ref to
25974 ao_ref_init_from_vn_reference.
25975 (vn_reference_lookup): Likewise.
25976 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25977 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25978 Handle non-decl bases in the original reference.
25980 2019-06-04 Martin Liska <mliska@suse.cz>
25982 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25983 number of references.
25984 (sem_item_optimizer::do_congruence_step):
25985 (sem_item_optimizer::worklist_push): Dump how references
25987 (sem_item_optimizer::worklist_pop): Use heap.
25988 (sem_item_optimizer::process_cong_reduction): Likewise.
25989 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25991 2019-06-04 Martin Liska <mliska@suse.cz>
25993 * ipa-icf.h (struct sem_usage_pair_hash): New.
25994 (sem_usage_pair_hash::hash): Likewise.
25995 (sem_usage_pair_hash::equal): Likewise.
25996 (struct sem_usage_hash): Likewise.
25997 * ipa-icf.c (sem_item::sem_item): Initialize
25998 referenced_by_count.
25999 (sem_item::add_reference): Register a reference
26000 in ref_map and not in target->usages.
26001 (sem_item::setup): Remove initialization of
26003 (sem_item::~sem_item): Remove usage of dead vectors.
26004 (sem_item::dump): Remove dump of references.
26005 (sem_item_optimizer::sem_item_optimizer): Initialize
26007 (sem_item_optimizer::read_section): Remove useless
26009 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
26010 (sem_item_optimizer::build_graph): Pass m_references
26011 to ::add_reference.
26012 (sem_item_optimizer::verify_classes): Remove usage of dead
26014 (sem_item_optimizer::traverse_congruence_split): Return true
26015 when a class is split.
26016 (sem_item_optimizer::do_congruence_step_for_index): Use
26017 hash_map for look up of (sem_item *, index). That brings
26018 significant speed up.
26019 (sem_item_optimizer::do_congruence_step): Return true
26020 when a split is done.
26021 (congruence_class::is_class_used): Use referenced_by_count.
26023 2019-06-04 Alan Modra <amodra@gmail.com>
26026 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
26029 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
26031 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
26032 * config/rs6000/rs6000.c (direct_move_p): Adjust.
26033 (rs6000_secondary_reload_simple_move): Adjust.
26034 (rs6000_opt_masks): Neuter the "mfpgpr" option.
26035 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
26036 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
26039 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
26040 (floatunssi<mode>2_lfiwzx): Adjust.
26041 (fix_trunc<mode>si2_stfiwx): Adjust.
26042 (fixuns_trunc<mode>si2_stfiwx): Adjust.
26043 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
26044 (mfpgpr): Mark as deprecated.
26045 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
26046 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
26047 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
26049 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
26051 * config/rs6000/constraints.md (define_register_constraint "wg"):
26053 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26054 RS6000_CONSTRAINT_wg.
26055 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26056 (rs6000_init_hard_regno_mode_ok): Adjust.
26057 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
26058 Delete "wg" alternatives.
26059 * doc/md.texi (Machine Constraints): Adjust.
26061 2019-06-03 Alan Modra <amodra@gmail.com>
26063 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
26064 (get_uncond_jump_length): Assert length less than INT_MAX and
26067 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
26069 PR middle-end/64242
26070 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
26072 (expand_builtin_nonlocal_goto): Likewise.
26074 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26076 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
26077 (aarch64_asm_output_external): Declare.
26078 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
26079 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
26080 (aarch64_asm_output_alias): New.
26081 (aarch64_asm_output_external): New.
26082 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
26083 (ASM_OUTPUT_EXTERNAL): Define.
26085 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
26086 * tree-vrp.h (value_range_base::nonzero_p): New.
26087 (value_range_base::set_nonnull): Rename to...
26088 (value_range_base::set_nonzero): ...this.
26089 (value_range_base::set_null): Rename to...
26090 (value_range_base::set_zero): ...this.
26091 (value_range::set_nonnull): Remove.
26092 (value_range::set_null): Remove.
26093 * tree-vrp.c (range_is_null): Remove.
26094 (range_is_nonnull): Remove.
26095 (extract_range_from_binary_expr): Use value_range_base::*zero_p
26096 instead of range_is_*null.
26097 (extract_range_from_unary_expr): Same.
26098 (value_range_base::set_nonnull): Rename to...
26099 (value_range_base::set_nonzero): ...this.
26100 (value_range::set_nonnull): Remove.
26101 (value_range_base::set_null): Rename to...
26102 (value_range_base::set_zero): ...this.
26103 (value_range::set_null): Remove.
26104 (extract_range_from_binary_expr): Rename set_*null uses to
26106 (extract_range_from_unary_expr): Same.
26107 (union_helper): Same.
26108 * vr-values.c (get_value_range): Use set_*zero instead of
26110 (vr_values::extract_range_from_binary_expr): Same.
26111 (vr_values::extract_range_basic): Same.
26113 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
26116 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
26118 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26120 * config/aarch64/iterators.md (MAX_OPP): New code attr.
26121 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
26123 (aarch64_<su>abd<mode>_3): ... This.
26124 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
26126 2019-06-03 Richard Biener <rguenther@suse.de>
26128 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26129 full reference tree and record in ref->ref.
26130 (vn_reference_lookup_3): Pass in original ref to
26131 ao_ref_init_from_vn_reference.
26132 (vn_reference_lookup): Likewise.
26133 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26134 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26135 Handle non-decl bases in the original reference.
26137 2019-06-03 Martin Liska <mliska@suse.cz>
26139 * doc/generic.texi: Remove Java Trees.
26141 2019-06-03 Martin Liska <mliska@suse.cz>
26143 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
26144 returns 0 when operands are equal.
26146 2019-06-03 Richard Biener <rguenther@suse.de>
26148 PR tree-optimization/90716
26149 * tree-loop-distribution.c (destroy_loop): Process blocks in
26152 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26155 * vector-builder.h (vector_builder::count_dups): New method.
26156 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
26158 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
26159 (vec_init<mode><Vel>): New pattern.
26160 * config/aarch64/aarch64.c (emit_insr): New function.
26161 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
26162 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
26163 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
26164 (aarch64_sve_expand_vector_init): Define two overloaded functions.
26166 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26168 PR tree-optimization/90681
26169 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
26170 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
26171 special case for SLP, but fail on non-groupped loads.
26173 2019-06-03 Martin Liska <mliska@suse.cz>
26175 * cfg.c (debug): Use TDF_DETAILS for debug and
26176 print edge info only once.
26178 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
26181 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
26183 2019-06-01 Martin Sebor <msebor@redhat.com>
26185 PR middle-end/90694
26186 * tree-pretty-print.c (dump_generic_node): Add parentheses.
26188 2019-05-31 Jan Hubicka <jh@suse.cz>
26190 * alias.c: Include ipa-utils.h.
26191 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
26192 * ipa-devirt.c (prevailing_odr_type): New.
26193 * ipa-utils.h (previaling_odr_type): Declare.
26195 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
26196 Hongtao Liu <hongtao.liu@intel.com>
26199 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
26200 NOTE_INSN_DELETED_LABEL check.
26202 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
26203 Robert Suchanek <robert.suchanek@mips.com>
26205 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
26206 and 3rd operands of the fmadd/fmsub/maddv builtin.
26208 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26210 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
26211 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26212 on OMP_SIMD if not nested inside of worksharing loop that also has
26213 lastprivate conditional clause for the same decl.
26214 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26215 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26217 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
26219 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26221 (lower_lastprivate_clauses): Likewise.
26222 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26223 calling lower_rec_input_clauses.
26224 (lower_omp_for): Likewise.
26225 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26226 clause on simd construct.
26227 * omp-expand.c (expand_omp_simd): Initialize cond_var if
26228 OMP_CLAUSE__CONDTEMP_ clause is present.
26230 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26233 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
26236 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26237 TEX_D32, TEX_D64 or TEX_D128.
26239 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26241 * match.pd (~(vec?cst1:cst2)): New transformation.
26243 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26245 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26246 ((size_t)(A /[ex] B) CMP C): New transformation.
26248 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
26250 * doc/md.texi: Document define_insn_and_rewrite.
26251 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26252 * gensupport.c (queue_elem): Update comment.
26253 (replace_operands_with_dups): New function.
26254 (gen_rewrite_sequence): Likewise.
26255 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26256 * read-rtl.c (apply_subst_iterator): Likewise.
26257 (add_condition_to_rtx, named_rtx_p): Likewise.
26258 (rtx_reader::read_rtx_operand): Likewise.
26259 * config/aarch64/aarch64-sve.md
26260 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26261 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26262 define_insn_and_rewrite.
26263 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26264 Remove separate define_split.
26266 2019-05-31 Jan Hubicka <jh@suse.cz>
26268 * tree-ssa-alias.c (type_has_components_p): New function.
26269 (aliasing_component_refs_p): Use it.
26271 2019-05-31 Martin Liska <mliska@suse.cz>
26273 * gdbhooks.py: Add const_tree to TreePrinter.
26275 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
26278 * common.opt (feliminate-unused-debug-symbols): Enable by default.
26279 * doc/invoke.texi (Debugging Options): Document new default of
26280 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26282 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26284 PR tree-optimization/90671
26285 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26286 template_block used to be empty on the first call, don't use
26287 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26288 seq with bb_seq and set it with set_bb_seq.
26290 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
26292 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26294 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26295 Michael Meissner <meissner@linux.ibm.com>
26297 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26298 (prefixed_mem_operand): Likewise.
26299 (non_prefixed_mem_operand): Likewise.
26300 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26302 * config/rs6000/rs6000.c (print_operand_address): Handle
26303 PC-relative addresses.
26304 (mode_supports_prefixed_address_p): New function.
26305 (rs6000_prefixed_address): New function.
26306 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26307 (SYMBOL_REF_PCREL_P): Likewise.
26309 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26311 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26312 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26313 (gimplify_omp_for): If worksharing loop with lastprivate conditional
26314 is nested inside of parallel region, add _condtemp_ clause to both.
26315 * tree-nested.c (convert_nonlocal_omp_clauses,
26316 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26318 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26320 * omp-general.c (omp_extract_for_data): Compute it.
26321 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26322 (lower_rec_input_clauses): Likewise.
26323 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26324 clause is already present, just add one further one after it.
26325 (lower_lastprivate_clauses): Handle cond_ptr with array type.
26326 (lower_send_shared_vars): Clear _condtemp_ vars.
26327 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26328 or section or taskgroup.
26329 * omp-expand.c (determine_parallel_type): Disallow combining only if
26330 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
26331 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26332 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26333 expand_omp_for_static_chunk, expand_omp_for): Use
26334 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26335 determine if a special set of API routines are needed and if condtemp
26336 needs to be initialized, while always initialize cond_var if
26337 fd->lastprivate_conditional is non-zero.
26339 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26340 Michael Meissner <meissner@linux.ibm.com>
26342 * config/rs6000/constraints.md (eI): New constraint.
26343 * config/rs6000/predicates.md (cint34_operand): New predicate.
26344 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26345 (SIGNED_34BIT_OFFSET_P): Likewise.
26346 * doc/md.texi (eI): Document constraint.
26348 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
26350 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26352 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26353 Michael Meissner <meissner@linux.ibm.com>
26355 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26356 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26357 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26358 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26359 (OTHER_FUTURE_MASKS): Likewise.
26360 (POWERPC_MASKS): Likewise.
26361 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26362 specified without -mprefixed-addr or -mcpu=future. Error if
26363 -mprefixed-addr is specified without -mcpu=future.
26364 (rs6000_opt_masks): Add entry for prefixed-addr.
26365 * rs6000.opt (mprefixed-addr): New option.
26367 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26369 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26370 cfun->is_thunk check.
26372 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26374 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26377 2019-05-30 Martin Liska <mliska@suse.cz>
26379 * gdbinit.in: Fix 'ptc' command. Add trt
26380 that prints TREE_TYPE($).
26382 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26383 Alan Modra <amodra@gmail.com>
26385 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26387 (rs6000_indirect_call_template_1): ...and here.
26388 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26389 plt16_ha, plt16_lo, mtctr indirect calls. Use
26390 rs6000_pltseq_enum.
26391 (rs6000_decl_ok_for_sibcall): New function.
26392 (rs6000_function_ok_for_sibcall): Refactor.
26393 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26394 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26395 when pcrel. Reorganize.
26396 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26397 * rs6000.h (rs6000_pltseq_enum): New enum.
26398 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26399 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26400 (*pltseq_plt16_ha): Likewise.
26401 (*pltseq_plt16_lo): Likewise.
26402 (*pltseq_mtctr): Likewise.
26403 (*pltseq_plt_pcrel): New insn.
26404 (*call_local_aix): Handle @notoc calls.
26405 (*call_value_local_aix): Likewise.
26406 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26407 (*call_value_nonlocal_aix): Likewise.
26408 (*call_indirect_pcrel): New insn.
26409 (*call_value_indirect_pcrel): Likewise.
26411 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26413 * config/i386/sse.md (*save_multiple<mode>): Rename from
26414 save_multiple<mode>.
26415 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26416 (*restore_multiple_and_return<mode>): Rename from
26417 restore_multiple_and_return<mode>.
26418 (*restore_multiple_leave_return<mode>): Rename from
26419 restore_multiple_leave_return<mode>.
26421 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26423 * config.gcc (rx-*-linux*): New target.
26424 * config/rx/elf.opt: New file.
26425 * config/rx/linux.h: Likewise.
26426 * config/rx/t-linux: Likewise.
26427 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26429 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26430 (ASM_APP_OFF): Likewise.
26431 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26434 2019-05-29 Jan Hubicka <jh@suse.cz>
26436 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26437 variants are pointer equivalent.
26439 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26441 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26442 * config/aarch64/aarch64-sve2.md: New file.
26443 (<u>avg<mode>3_floor): New pattern.
26444 (<u>avg<mode>3_ceil): Likewise.
26445 (*<sur>h<addsub><mode>): Likewise.
26446 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26447 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26449 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26452 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26453 for var_opt_string printing. In cl_optimization_print_diff, print
26454 (null) instead of invoking undefined behavior if one of the
26455 var_opt_string pointers is NULL and use && instead of first || in the
26456 guarding condition. For var_target_other options, handle const char *
26457 target variables similarly to const char * optimize node variables.
26459 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26461 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26462 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26463 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26464 Add autib1716 and pacib1716 initialisation.
26465 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26466 for autib1716 and pacib1716.
26467 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26468 aarch64_post_cfi_startproc): Define.
26469 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26470 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26471 aarch64_handle_pac_ret_protection): Set default sign key to A.
26472 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26473 aarch64_expand_prologue): Add check for b-key.
26474 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26475 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26476 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26477 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26478 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26479 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26480 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26481 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26482 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26483 pauth_hint_num_a with pauth_hint_num.
26484 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26485 pauth_hint_num_a with pauth_hint_num.
26486 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26487 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26488 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26489 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26490 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26491 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26492 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26493 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26494 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26495 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26496 UNSPEC_AUTIA1716 respectively.
26497 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26498 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26499 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26500 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26501 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26502 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26504 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26506 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26507 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26508 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26509 explicit clause on combined parallel into implicit shared clause.
26510 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26511 and firstprivate if the decl has one too from combined parallel to
26512 the worksharing construct.
26514 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26515 Michael Meissner <meissner@linux.ibm.com>
26517 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26519 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26521 * rtl.h (LABEL_REF_P): New #define.
26523 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26525 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26527 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26529 * internal-fn.c: Marked mask_load_direct as vectorizable.
26530 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26531 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26532 combined even if masks different with allow_slp_p param.
26533 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26534 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26535 dissolve SLP-only vectorizable groups when SLP has been discarded.
26536 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26537 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26539 (vect_build_slp_tree_1): Fixed comment typo.
26540 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26541 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26542 loads for SLP only.
26543 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26545 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26547 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26549 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26550 Remove obsolete use_thunk reference.
26551 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26552 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26553 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26554 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26555 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26556 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26557 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26558 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26559 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26561 2019-05-28 Nathan Sidwell <nathan@acm.org>
26563 * tree.h (IDENTIFIER_ANON_P): New.
26564 (anon_aggrname_format, anon_aggname_p): Don't declare.
26565 (make_anon_name): Declare.
26566 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26567 (hash_tree): Likewise.
26568 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26569 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26570 (anon_cnt, make_anon_name): New.
26572 2019-05-28 Martin Liska <mliska@suse.cz>
26575 * opts-global.c (decode_options): Print help for all
26576 help_option_arguments.
26577 * opts.c (print_help): Add new argument.
26578 (common_handle_option): Remember all values into
26579 help_option_arguments.
26580 * opts.h (print_help): Add new argument.
26582 2019-05-28 Martin Liska <mliska@suse.cz>
26585 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26586 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26587 (func_checker::compare_bb): Call compare_loops.
26589 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26591 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26592 on sections construct.
26593 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26595 (lower_omp_sections): Handle lastprivate conditional.
26596 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26597 lastprivate_conditional_map.
26598 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26600 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26601 critical, taskgroup and section regions when looking for a region
26602 with non-NULL lastprivate_conditional_map.
26604 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26606 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26607 (*ix86_gen_sub3): Ditto.
26608 (*ix86_gen_sub3_carry): Ditto.
26609 (*ix86_gen_one_cmpl2): Ditto.
26610 (*ix86_gen_andsp): Ditto.
26611 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26612 (gen_and2_insn): New static function.
26613 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26614 Use gen_add3_insn instead of ix86_gen_add3.
26615 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26616 instead of ix86_gen_add3.
26617 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26618 Use gen_sub3_insn instead of ix86_gen_sub3.
26619 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26620 instead of ix86_gen_add3.
26621 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26622 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26623 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26624 * config/i386/i386-options.c (ix86_option_override_internal):
26625 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26626 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26628 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26630 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26631 and DW_OP_GNU_const_index opcodes.
26633 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26635 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26637 2019-05-27 Richard Biener <rguenther@suse.de>
26639 PR tree-optimization/90637
26640 * tree-ssa-sink.c (statement_sink_location): Honor the
26641 computed sink location for single-uses.
26643 2019-05-27 Richard Biener <rguenther@suse.de>
26645 PR middle-end/90610
26646 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26649 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26651 * config/i386/i386.md (@sub<mode>3_carry): Rename
26652 from sub<mode>3_carry.
26653 (@leave_<mode>): New expander.
26654 (*leave): Rename from leave.
26655 (*leave_rex64): Rename from leave_rex64.
26656 (@monitorx_<mode>): Rename from monitorx_<mode>.
26657 (@clzero_<mode>): Rename from clzero_<mode>.
26658 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26659 from sse3_monitor_<mode>.
26660 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26661 (*ix86_gen_leave): Ditto.
26662 (*ix86_gen_monitor): Ditto.
26663 (*ix86_gen_monitorx): Ditto.
26664 (*ix86_gen_clzero): Ditto.
26665 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26666 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26667 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26668 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26669 Use gen_sse3_monitor instead of ix86_gen_monitor.
26670 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26671 instead of ix86_gen_monitorx.
26672 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26673 instead of ix86_gen_clzero.
26674 * config/i386/i386-options.c (ix86_option_override_internal):
26675 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26676 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26678 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26680 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26681 Rename from tls_global_dynamic_64_<mode>.
26682 (@tls_local_dynamic_base_64_<mode>): Rename from
26683 tls_local_dynamic_base_64_<mode>.
26684 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26685 Remove indirect function.
26686 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26687 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26688 instead of ix86_gen_tls_global_dynamic_64.
26689 Use gen_tls_local_dynamic_base_64 instead of
26690 ix86_gen_tls_local_dynamic_base_64.
26691 * config/i386/i386-options.c (ix86_option_override_internal):
26692 Do not initialize ix86_gen_tls_global_dynamic_64 and
26693 ix86_gen_tls_local_dynamic_base_64.
26695 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26697 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26698 Rename from pro_epilogue_adjust_stack_<mode>_add.
26699 (@pro_epilogue_adjust_stack_sub_<mode>)
26700 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26701 (@allocate_stack_worker_probe_<mode>):
26702 Rename from allocate_stack_worker_probe_<mode>.
26703 (allocate_stack): Use gen_allocate_stack_worker_probe.
26704 (probe_stack): Use gen_probe_stack_1.
26705 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26706 (@adjust_stack_and_probe_<mode>): Rename from
26707 adjust_stack_and_probe<mode>.
26708 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26709 (stack_protect_set): Use gen_stack_protect_set_1.
26710 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26711 (stack_protect_test): Use gen_stack_protect_test_1.
26712 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26713 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26714 Remove indirect function.
26715 (*ix86_gen_adjust_stack_and_probe): Ditto.
26716 (*ix86_gen_probe_stack_range): Ditto.
26717 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26718 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26719 (ix86_adjust_stack_and_probe_stack_clash): Use
26720 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26721 (ix86_adjust_stack_and_probe): Ditto.
26722 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26723 of ix86_gen_probe_stack_range.
26724 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26725 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26726 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26727 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26728 CODE_FOR_stack_protect_test_{si,di}.
26729 * config/i386/i386-options.c (ix86_option_override_internal):
26730 Do not initialize ix86_gen_allocate_stack_worker,
26731 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26733 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26735 * doc/invoke.texi (Link Options): Many editorial changes around
26738 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26740 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26741 pre-Solaris 11 referene and most Studio compiler details.
26743 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26746 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26747 DImode to SImode in floating-point registers on 64-bit target.
26748 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26749 register_operand in xmpyu patterns.
26751 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26753 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26754 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26755 OMP_CLAUSE__REDUCTEMP_.
26756 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26757 OMP_CLAUSE__CONDTEMP_.
26758 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26759 * tree-pretty-print.c (dump_omp_clause): Likewise.
26760 * tree-nested.c (convert_nonlocal_omp_clauses,
26761 convert_local_omp_clauses): Likewise.
26762 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26763 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26764 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26766 (gimplify_omp_for): Warn and disable conditional modifier from
26767 lastprivate on loop iterators.
26768 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26770 * omp-general.c (omp_extract_for_data): Initialize it.
26771 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26773 (delete_omp_context): Delete it.
26774 (lower_lastprivate_conditional_clauses): New function.
26775 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26776 handle lastprivate conditional clauses.
26777 (lower_reduction_clauses): Add CLIST argument, emit it into
26778 the critical section if any.
26779 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26780 lower_reduction_clauses callers.
26781 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26782 to lower_lastprivate_clauses.
26783 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26784 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26785 clist into a critical section if not emitted there already by
26786 lower_reduction_clauses.
26787 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26789 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26790 conditional variables.
26791 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26793 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26794 expand_omp_for_static_chunk): Handle lastprivate conditional.
26795 (expand_omp_for): Handle fd.lastprivate_conditional like
26798 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26800 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26801 kernel does not exit cleanly.
26802 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26804 2019-05-24 Jason Merrill <jason@redhat.com>
26807 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26809 2019-05-24 Richard Biener <rguenther@suse.de>
26812 * tree-loop-distribution.c (struct partition): Add location
26814 (partition_alloc): Initialize all fields.
26815 (generate_memset_builtin): Use the location recorded in the
26816 partition for the generated call.
26817 (generate_memcpy_builtin): Likewise.
26818 (classify_partition): Record the location of a single store
26819 as location for the partition.
26821 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26823 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26826 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26829 * common/config/aarch64/aarch64-common.c
26830 (aarch64_rewrite_selected_cpu): Change local temporary variable
26831 type from unsigned long to uint64_t.
26832 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26833 aarch64_get_extension_string_for_isa_flags): Change declaration to
26834 match new definition by replacing unsigned long with uint64_t.
26836 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26839 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26840 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26841 Handle stack_protect_test_<mode> codegen similarly to corresponding
26844 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26846 * config/i386/darwin.h: Reject -mfentry*.
26847 * doc/sourcebuild.texi: Document mfentry target support.
26849 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26851 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26852 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26853 false for PC-relative functions.
26854 (rs6000_output_function_prologue): Change called function name to
26855 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26856 name,1" for PC-relative functions.
26857 (rs6000_elf_declare_function_name): Change called function name to
26858 rs6000_global_entry_point_prologue_needed_p.
26860 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26863 * config/i386/i386.c (gen_rtx_cost):
26864 Use ix86_tune_cost instead of ix86_cost.
26866 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26867 Michael Meissner <meissner@linux.ibm.com>
26868 Segher Boessenkool <segher@kernel.crashing.org>
26870 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26872 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26873 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26874 (rs6000_fndecl_pcrel_p): Likewise.
26875 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26876 error if -mpcrel is requested without -mcpu=future.
26877 (rs6000_opt_masks): Add entry for pcrel.
26878 (rs6000_fndecl_pcrel_p): New function.
26879 (rs6000_pcrel_p): Likewise.
26880 * config/rs6000/rs6000.opt (mpcrel): New option.
26881 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26883 2019-05-23 Jan Hubicka <jh@suse.cz>
26884 Martin Liska <mliska@suse.cz>
26886 PR tree-optimization/90576
26887 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26889 (aliasing_component_refs_p): Fix three way size compare conditional;
26890 give up earlier in case we can not decide on equivalence.
26892 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26893 Michael Meissner <meissner@linux.ibm.com>
26894 Segher Boessenkool <segher@kernel.crashing.org>
26896 * config.gcc: Add future cpu.
26897 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26898 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26900 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26901 (RS6000_CPU): New instantiation for future cpu.
26902 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26904 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26905 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26906 * config/rs6000/rs6000-tables.opt: Regenerate.
26907 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26908 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26909 (rs6000_machine_from_flags): Handle future cpu.
26910 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26911 PROCESSOR_POWER9 for now.
26912 (rs6000_adjust_cost): Likewise.
26913 (rs6000_issue_rate): Likewise.
26914 (rs6000_register_move_cost): Likewise.
26915 (rs6000_opt_masks): Add entry for future.
26916 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26917 (MASK_FUTURE): New #define.
26918 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26919 * config/rs6000/rs6000.opt (mfuture): New target option.
26920 * doc/invoke.texi (mcpu): Add future cpu.
26922 2019-05-23 Martin Liska <mliska@suse.cz>
26925 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26926 operation points to a temporary (pointed via tree_to_wide_ref)
26927 that is out of scope after the &.
26929 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26932 * doc/extend.texi (Function Names): Add missing word.
26934 2019-05-23 Richard Biener <rguenther@suse.de>
26936 PR tree-optimization/88440
26937 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26939 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26941 (generate_memcpy_builtin): Likewise.
26942 (distribute_loop): Pass in whether to only distribute patterns.
26943 (prepare_perfect_loop_nest): Also allow size optimization.
26944 (pass_loop_distribution::execute): When optimizing a loop
26945 nest for size allow pattern replacement.
26947 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26950 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26953 2019-05-23 Martin Liska <mliska@suse.cz>
26956 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26957 expression similarly to gimplify_decl_expr.
26959 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26961 * cse.c (cse_dump_path): s/dump_file/f.
26963 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26966 * diagnostic-format-json.cc: Include "selftest.h".
26967 (json_from_expanded_location): Only add "file" key for non-NULL
26969 (json_from_location_range): Don't add "start" and "finish"
26970 children if they are UNKNOWN_LOCATION.
26971 (selftest::test_unknown_location): New selftest.
26972 (selftest::test_bad_endpoints): New selftest.
26973 (selftest::diagnostic_format_json_cc_tests): New function.
26974 * json.cc (json::object::get): New function.
26975 (selftest::test_object_get): New selftest.
26976 (selftest::json_cc_tests): Call it.
26977 * json.h (json::object::get): New decl.
26978 * selftest-run-tests.c (selftest::run_tests): Call
26979 selftest::diagnostic_format_json_cc_tests.
26980 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26983 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26984 Andrew Stubbs <amd@codesourcery.com>
26986 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26987 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26988 (kernel): Rename to...
26989 (main_kernel): ... this.
26990 (load_image): Load _init_array and _fini_array kernels.
26991 (run): Add argument for kernel to run.
26992 (main): Run init_array_kernel before main_kernel, and
26993 fini_array_kernel after.
26994 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26995 amdgpu_hsa_kernel attribute on functions.
26996 (gcn_disable_constructors): Delete.
26997 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26998 * config/gcn/crt0.c (size_t): Define.
26999 (_init_array, _fini_array): New.
27000 (__preinit_array_start, __preinit_array_end,
27001 __init_array_start, __init_array_end,
27002 __fini_array_start, __fini_array_end): Declare weak references.
27004 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
27006 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
27008 2019-05-22 Jason Merrill <jason@redhat.com>
27010 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
27012 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
27015 * config/i386/i386-options.c (ix86_init_machine_status): Set
27016 stack_frame_required to true.
27017 * config/i386/i386.c (ix86_get_frame_size): New function.
27018 (ix86_frame_pointer_required): Replace get_frame_size with
27019 ix86_get_frame_size.
27020 (ix86_compute_frame_layout): Likewise.
27021 (ix86_find_max_used_stack_alignment): Changed to void. Set
27022 stack_frame_required.
27023 (ix86_finalize_stack_frame_flags): Always call
27024 ix86_find_max_used_stack_alignment. Replace get_frame_size with
27025 ix86_get_frame_size.
27026 * config/i386/i386.h (machine_function): Add stack_frame_required.
27028 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
27030 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
27032 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
27034 * common/config/aarch64/aarch64-common.c
27035 (struct aarch64_option_extension, struct processor_name_to_arch,
27036 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
27037 aarch64_contains_opt,
27038 aarch64_get_extension_string_for_isa_flags): Change type of
27039 variables storing flags to uint64_t.
27040 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
27041 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
27042 * config/aarch64/aarch64.c (struct processor,
27043 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
27044 aarch64_validate_march, aarch64_override_options,
27045 aarch64_option_print, aarch64_handle_attr_isa_flags,
27046 aarch64_declare_function_name, aarch64_start_file): Make flag
27047 variables uint64_t.
27048 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
27049 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
27050 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
27051 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
27052 * config/aarch64/driver-aarch64.c
27053 (struct aarch64_arch_extension, struct aarch64_core_data,
27054 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
27055 flag variables uint64_t.
27056 * doc/invoke.texi: Add documentation for new arguments.
27058 2019-05-22 Richard Biener <rguenther@suse.de>
27060 * alias.c (ao_ref_from_mem): Move stack-slot sharing
27062 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
27064 2019-05-22 Martin Liska <mliska@suse.cz>
27067 * doc/extend.texi: Document the change.
27069 2019-05-22 Richard Biener <rguenther@suse.de>
27071 PR tree-optimization/90450
27072 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
27073 (mem_ref_hasher::equal): Check it.
27074 (mem_ref_alloc): Initialize it.
27075 (gather_mem_refs_stmt): Set it.
27077 2019-05-22 Richard Biener <rguenther@suse.de>
27079 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
27081 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
27084 2019-05-22 Alan Modra <amodra@gmail.com>
27086 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
27087 (ASM_CPU_SPEC): Conditionally add -many.
27088 * config/rs6000/rs6000.c (rs6000_machine): New static var.
27089 (rs6000_machine_from_flags, emit_asm_machine): New functions..
27090 (rs6000_file_start): ..extracted from here, and modified to
27092 (rs6000_output_function_prologue): Emit .machine as necessary.
27094 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
27096 PR middle-end/90553
27097 * ira-lives.c (process_bb_node_lives): Consider defs
27098 for a call insn to be die before the call, not after.
27100 * function.c (assign_parm_setup_block): Raise alignment of
27101 stacked parameter only for STRICT_ALIGNMENT targets.
27103 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27105 * config/rs6000/constraints.md (define_register_constraint "wz"):
27107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27108 RS6000_CONSTRAINT_wz.
27109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27110 (rs6000_init_hard_regno_mode_ok): Adjust.
27111 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
27112 * doc/md.texi (Machine Constraints): Adjust.
27114 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27116 * config/rs6000/constraints.md (define_register_constraint "wl"):
27118 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27119 RS6000_CONSTRAINT_wl.
27120 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27121 (rs6000_init_hard_regno_mode_ok): Adjust.
27122 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
27123 * doc/md.texi (Machine Constraints): Adjust.
27125 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27127 * config/rs6000/constraints.md (define_register_constraint "wm"):
27129 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27130 RS6000_CONSTRAINT_wm.
27131 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27132 (rs6000_init_hard_regno_mode_ok): Adjust.
27133 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
27134 * doc/md.texi (Machine Constraints): Adjust.
27136 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27138 * config/rs6000/constraints.md (define_register_constraint "wk"):
27140 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27141 RS6000_CONSTRAINT_wk.
27142 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27143 (rs6000_init_hard_regno_mode_ok): Adjust.
27144 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
27145 * doc/md.texi (Machine Constraints): Adjust.
27147 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27149 * config/rs6000/constraints.md (define_register_constraint "wj"):
27151 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27152 RS6000_CONSTRAINT_wj.
27153 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27154 (rs6000_init_hard_regno_mode_ok): Adjust.
27155 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
27157 * config/rs6000/vsx.md: Ditto.
27158 * doc/md.texi (Machine Constraints): Adjust.
27160 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27162 * config/rs6000/constraints.md (define_register_constraint "wh"):
27164 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27165 RS6000_CONSTRAINT_wh.
27166 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27167 (rs6000_init_hard_regno_mode_ok): Adjust.
27168 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
27169 * doc/md.texi (Machine Constraints): Adjust.
27171 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
27174 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27175 Avoid calling gen_lowpart with CONST operand.
27177 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
27179 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
27180 field template_last_to_copy.
27181 (ssa_create_duplicates): Set it, and use it. Attempt to
27182 preserve more debug stmts.
27184 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
27186 * config/i386/sse.md (VF1_AVX2): New mode iterator.
27187 (signbit<mode>2): New expander
27189 2019-05-21 James Clarke <jrtc27@jrtc27.com>
27192 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
27193 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
27195 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
27197 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
27198 %ebx and %ecx bafore calling cpuid with leaf 1 or
27199 non-constant leaf argument.
27201 2019-05-21 Alan Modra <amodra@gmail.com>
27204 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
27205 power9 direct move cost.
27207 2019-05-21 Richard Biener <rguenther@suse.de>
27209 PR middle-end/90510
27210 * fold-const.c (fold_read_from_vector): New function.
27211 * fold-const.h (fold_read_from_vector): Declare.
27212 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
27213 single-element insert permutations. Canonicalize selector
27214 further and fix issue with last commit.
27216 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27218 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27219 parameter with default value false to declaration.
27220 (split_edges_for_insertion): New inline function. Wrapper for
27221 split_critical_edges with for_edge_insertion_p = true.
27222 * tree-cfg.c (split_critical_edges): Don't split non-critical
27223 edges if for_edge_insertion_p is false. Fix whitespace.
27224 * tree-ssa-pre.c (pass_pre::execute): Call
27225 split_edges_for_insertion instead of split_critical_edges.
27226 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27227 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27228 (pass_data_sink_code): Update function name in the comment.
27230 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27232 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27233 around is_value_included_in that knows how to handle BIT_AND_EXPR.
27234 (is_pred_expr_subset_of): Use the new function. Handle more cases where
27235 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27238 2019-05-21 Martin Liska <mliska@suse.cz>
27240 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27242 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27243 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27245 * config/rs6000/rs6000.c (rs6000_option_override_internal):
27247 (rs6000_function_arg): Likewise.
27248 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27249 (rs6000_expand_ternop_builtin): Use interval syntax.
27250 (get_element_number): Likewise.
27251 (altivec_expand_builtin): Likewise.
27252 (rs6000_get_function_versions_dispatcher): Quote target_clones.
27254 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27258 * function.h (struct function): Add calls_eh_return member.
27259 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27260 gimplifying __builtin_eh_return call.
27261 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27263 (expand_call_inline): Or in src_cfun->calls_eh_return into
27264 dst_cfun->calls_eh_return.
27265 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27266 cfun->calls_eh_return.
27267 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27268 * lto-streamer-out.c (output_struct_function_base): Write
27271 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
27273 PR rtl-optimization/43147
27274 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27275 IX86_BUILTIN_SHUFPD.
27277 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27279 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27280 (refs_may_alias_p_1): ... here; update stats.
27281 (refs_may_alias_p): Do not update stats here.
27283 2019-05-20 Richard Biener <rguenther@suse.de>
27285 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27286 doesn't produce pointers.
27287 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27288 the first operand points to.
27290 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27292 * tree-ssa-alias.c (compare_sizes): New function.
27293 (sompare_type_sizes): New function
27294 (aliasing_component_refs_p): Use it.
27295 (indirect_ref_may_alias_decl_p): Likewise.
27297 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27299 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27301 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27303 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27304 (LIBLSAN_EARLY_SPEC): Likewise.
27305 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27307 2019-05-20 Martin Liska <mliska@suse.cz>
27309 * config/i386/i386.c (ix86_libc_has_fast_function):
27310 Add ATTRIBUTE_UNUSED for the argument.
27312 2019-05-20 Richard Biener <rguenther@suse.de>
27314 * gimple-match-head.c: Include vec-perm-indices.h.
27315 * generic-match-head.c: Likewise.
27316 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27318 * fold-const.c (fold_vec_perm): Export.
27319 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27320 (match.pd): ...here.
27322 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27324 * cfgloop.h (struct loop): Add simdlen member.
27325 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27326 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27327 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27328 as new argument to autovectorize_vector_sizes target hook. If
27329 loop->simdlen, pick up vector size where the vectorization factor
27330 is equal to loop->simd, and if there is none, fall back to the first
27332 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27334 * omp-low.c (omp_clause_aligned_alignment): Likewise.
27335 * omp-general.c (omp_max_vf): Likewise.
27336 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27337 * tree-vect-slp.c (vect_slp_bb): Likewise.
27338 * target.def (autovectorize_vector_sizes): Add ALL argument and
27340 * doc/tm.texi: Adjust documentation.
27341 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27342 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27343 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27345 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27346 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27347 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27348 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
27349 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27350 preferred vector size is not 512-bit or 256-bit, just put those
27351 unpreferred ones last.
27353 2019-05-20 Martin Liska <mliska@suse.cz>
27355 * targhooks.c (default_libc_has_fast_function): New function.
27356 * targhooks.h (default_libc_has_fast_function): Likewise.
27358 2019-05-20 Martin Liska <mliska@suse.cz>
27360 PR middle-end/90263
27361 * builtins.c (expand_builtin_memory_copy_args): When having a
27362 target with fast mempcpy implementation do now use memcpy.
27363 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27364 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27365 * doc/tm.texi: Likewise.
27366 * doc/tm.texi.in: Likewise.
27368 * expr.c (emit_block_move_hints): Add 2 new arguments.
27369 * expr.h (emit_block_move_hints): Bail out when libcall
27370 to memcpy would be used.
27372 2019-05-20 Martin Liska <mliska@suse.cz>
27374 * profile-count.c: Add vertical spacing in order
27375 to separate functions.
27376 * profile-count.h: Likewise.
27378 2019-05-20 Martin Liska <mliska@suse.cz>
27380 * profile-count.h: Do not use full qualified
27382 * profile-count.c (profile_count::to_frequency): Likewise.
27384 2019-05-20 Martin Liska <mliska@suse.cz>
27386 * profile-count.h (enum profile_quality): Use capital letters
27387 for enum value names. Use the adjusted names.
27388 * profile-count.c: Use the adjusted names.
27390 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27392 * config/rs6000/constraints.md (define_register_constraint "wH"):
27394 (define_register_constraint "wI"): Delete.
27395 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27396 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27398 (rs6000_init_hard_regno_mode_ok): Adjust.
27399 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27400 resp. "d", or with "wa" as appropriate, all with "p8v".
27401 * config/rs6000/vsx.md: Ditto.
27402 * doc/md.texi (Machine Constraints): Adjust.
27404 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27406 * config/rs6000/constraints.md (define_register_constraint "wy"):
27408 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27409 RS6000_CONSTRAINT_wy.
27410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27411 (rs6000_init_hard_regno_mode_ok): Adjust.
27412 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27413 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27414 (define_mode_attr Fisa): New.
27415 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27416 * doc/md.texi (Machine Constraints): Adjust.
27418 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27420 * config/rs6000/constraints.md (define_register_constraint "wu"):
27422 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27423 RS6000_CONSTRAINT_wu.
27424 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27425 (rs6000_init_hard_regno_mode_ok): Adjust.
27426 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27428 (define_mode_attr Fa): Delete.
27429 * config/rs6000/vsx.md: Ditto.
27430 * doc/md.texi (Machine Constraints): Adjust.
27432 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27434 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27436 (define_register_constraint "wK"): Delete.
27437 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27438 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27439 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27440 (rs6000_init_hard_regno_mode_ok): Adjust.
27441 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27442 Replace "wK" constraint by "wH" with "p9v".
27443 * config/rs6000/vsx.md: Ditto.
27444 * doc/md.texi (Machine Constraints): Adjust.
27446 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27448 * config/rs6000/constraints.md (define_register_constraint "wb"):
27450 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27451 RS6000_CONSTRAINT_wb.
27452 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27453 (rs6000_init_hard_regno_mode_ok): Adjust.
27454 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27455 * config/rs6000/vsx.md: Ditto.
27456 * doc/md.texi (Machine Constraints): Adjust.
27458 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27460 * config/rs6000/constraints.md (define_register_constraint "wo"):
27462 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27463 RS6000_CONSTRAINT_wo.
27464 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27465 (rs6000_init_hard_regno_mode_ok): Adjust.
27466 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27467 * config/rs6000/altivec.md: Ditto.
27468 * doc/md.texi (Machine Constraints): Adjust.
27470 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27472 * config/darwin-c.c (darwin_register_objc_includes): Do not
27473 prepend the sysroot when building gnu-runtime header search
27476 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27478 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27479 instead of direct output of the asm.
27481 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27483 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27484 argument to be type bool (was int before).
27485 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27486 at first use. Use type bool for some variables. Fix a theoretical
27487 eh_return bug for svr4.
27489 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27491 * config/rs6000/rs6000.md (isa): New attribute.
27492 (enabled): New attribute.
27494 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27496 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27497 assemble_start_function and assemble_end_function.
27499 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27501 PR middle-end/89433
27502 * omp-general.c (oacc_verify_routine_clauses): Change formal
27503 parameters. Add checking if already marked with an OpenACC
27504 'routine' directive. Adjust all users.
27506 PR middle-end/89433
27507 * omp-general.c (oacc_build_routine_dims): Move some of its
27509 (oacc_verify_routine_clauses): ... this new function.
27510 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27512 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27514 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27515 formating of picbase labels to match other ports.
27517 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27519 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27520 in the generated code.
27522 2019-05-16 Martin Sebor <msebor@redhat.com>
27524 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27525 identifiers, keywords, operators, and types in diagnostics. Correct
27526 quoting, spelling, and sentence capitalization issues.
27527 (expand_builtin_atomic_is_lock_free): Same.
27528 (fold_builtin_next_arg): Same.
27529 * cfgexpand.c (expand_one_var): Same.
27530 (tree_conflicts_with_clobbers_p): Same.
27531 (expand_asm_stmt): Same.
27532 (verify_loop_structure): Same.
27533 * cgraphunit.c (process_function_and_variable_attributes): Same.
27534 * collect-utils.c (collect_execute): Same.
27535 * collect2.c (maybe_run_lto_and_relink): Same.
27536 (is_lto_object_file): Same.
27537 (scan_prog_file): Same.
27538 * convert.c (convert_to_real_1): Same.
27539 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27540 * except.c (verify_eh_tree): Same.
27541 * gcc.c (execute): Same.
27542 (eval_spec_function): Same.
27543 (run_attempt): Same.
27544 (driver::set_up_specs): Same.
27545 (compare_debug_auxbase_opt_spec_function): Same.
27546 * gcov-tool.c (unlink_gcda_file): Same.
27548 (do_rewrite): Same.
27549 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27550 * gimplify.c (gimplify_asm_expr): Same.
27551 (gimplify_adjust_omp_clauses): Same.
27552 * hsa-gen.c (gen_hsa_addr_insns): Same.
27553 (gen_hsa_insns_for_load): Same.
27554 (gen_hsa_cmp_insn_from_gimple): Same.
27555 (gen_hsa_insns_for_operation_assignment): Same.
27556 (gen_get_level): Same.
27557 (gen_hsa_alloca): Same.
27558 (omp_simple_builtin::generate): Same.
27559 (gen_hsa_atomic_for_builtin): Same.
27560 (gen_hsa_insns_for_call): Same.
27561 * input.c (dump_location_info): Same.
27562 * ipa-devirt.c (compare_virtual_tables): Same.
27563 * ira.c (ira_setup_eliminable_regset): Same.
27564 * lra-assigns.c (lra_assign): Same.
27565 * lra-constraints.c (lra_constraints): Same.
27566 * lto-streamer-in.c (lto_input_mode_table): Same.
27567 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27568 (merge_and_complain): Same.
27569 (compile_offload_image): Same.
27570 (compile_images_for_offload_targets): Same.
27571 (debug_objcopy): Same.
27574 * opts.c (print_specific_help): Same.
27575 (parse_no_sanitize_attribute): Same.
27576 (print_help): Same.
27577 (handle_param): Same.
27578 * plugin.c (add_new_plugin): Same.
27579 (parse_plugin_arg_opt): Same.
27580 (try_init_one_plugin): Same.
27581 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27582 operators, and types in diagnostics. Correct quoting and spelling
27584 * read-rtl-function.c (parse_edge_flag_token): Same.
27585 (function_reader::parse_enum_value): Same.
27586 * reg-stack.c (check_asm_stack_operands): Same.
27587 * regcprop.c (validate_value_data): Same.
27588 * sched-rgn.c (make_pass_sched_fusion): Same.
27589 * stmt.c (check_unique_operand_names): Same.
27590 * targhooks.c (default_target_option_pragma_parse): Same.
27591 * tlink.c (recompile_files): Same.
27592 * toplev.c (process_options): Same.
27593 (do_compile): Same.
27594 * trans-mem.c (diagnose_tm_1): Same.
27595 (ipa_tm_scan_irr_block): Same.
27596 (ipa_tm_diagnose_transaction): Same.
27597 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27598 format a tree code name in a diagnostic.
27599 (verify_types_in_gimple_min_lval): Same.
27600 (verify_types_in_gimple_reference): Same.
27601 (verify_gimple_call): Same.
27602 (verify_gimple_assign_unary): Same.
27603 (verify_gimple_assign_binary): Same.
27604 (verify_gimple_assign_ternary): Same.
27605 (verify_gimple_assign_single): Same.
27606 (verify_gimple_switch): Same.
27607 (verify_gimple_label): Same.
27608 (verify_gimple_phi): Same.
27609 (verify_gimple_in_seq): Same.
27610 (verify_eh_throw_stmt_node): Same.
27611 (collect_subblocks): Same.
27612 (gimple_verify_flow_info): Same.
27613 (do_warn_unused_result): Same.
27614 * tree-inline.c (expand_call_inline): Same.
27615 * tree-into-ssa.c (update_ssa): Same.
27616 * tree.c (tree_int_cst_elt_check_failed): Same.
27617 (tree_vec_elt_check_failed): Same.
27618 (omp_clause_operand_check_failed): Same.
27619 (verify_type_variant): Same.
27620 (verify_type): Same.
27621 * value-prof.c (verify_histograms): Same.
27622 * varasm.c (assemble_start_function): Same.
27624 2019-05-16 Martin Sebor <msebor@redhat.com>
27626 * config/i386/i386-expand.c (get_element_number): Quote keywords
27627 and other internal names in diagnostics. Adjust other diagnostic
27628 formatting issues noted by -Wformat-diag.
27629 * config/i386/i386-features.c
27630 (ix86_mangle_function_version_assembler_name): Same.
27631 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27632 * config/i386/i386.c (ix86_function_type_abi): Same.
27633 (ix86_function_ms_hook_prologue): Same.
27634 (classify_argument): Same.
27635 (ix86_expand_prologue): Same.
27636 (ix86_md_asm_adjust): Same.
27637 (ix86_memmodel_check): Same.
27639 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27641 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27642 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27645 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27648 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27649 intrinsics without SSE/SSE2/SSSE3.
27650 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27652 (*mmx_uavgv8qi3): Likewise.
27654 2019-05-17 Richard Biener <rguenther@suse.de>
27656 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27657 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27659 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27661 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27662 vec_sldw insn pattern.
27664 2019-05-17 Richard Biener <rguenther@suse.de>
27666 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27668 2019-05-17 Martin Liska <mliska@suse.cz>
27671 * toplev.c (output_stack_usage): With LTO and sanitizer it
27672 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27673 has no file location.
27675 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27678 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27679 sz0 is equal to sz1, instead return false in that case.
27681 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27682 has non-constant expression, force sctx.lane and use two
27683 argument IFN_GOMP_SIMD_LANE instead of single argument.
27684 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27685 two argument IFN_GOMP_SIMD_LANE without lhs.
27686 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27688 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27690 (LOOP_REQUIRES_VERSIONING): Or in
27691 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27692 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27694 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27695 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27696 from simd if clause if needed.
27698 2019-05-16 Richard Biener <rguenther@suse.de>
27700 * tree-affine.c (expr_to_aff_combination): New function split
27702 (tree_to_aff_combination): ... here.
27703 (aff_combination_expand): Avoid building a GENERIC tree.
27705 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27707 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27708 assemble_start_function and assemble_end_function calls.
27709 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27710 assemble_start_function and assemble_end_function.
27711 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27712 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27713 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27714 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27715 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27716 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27717 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27718 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27719 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27720 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27721 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27722 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27724 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27725 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27726 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27727 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27728 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27729 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27730 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27731 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27732 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27733 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27734 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27735 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27736 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27737 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27739 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27740 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27741 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27743 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27745 * tree-ssa-alias.c (alias_stats): Add
27746 aliasing_component_refs_p_may_alias and
27747 aliasing_component_refs_p_no_alias.
27748 (dump_alias_stats): Print aliasing_component_refs_p stats.
27749 (aliasing_component_refs_p): Update stats.
27751 2019-05-16 Martin Liska <mliska@suse.cz>
27754 * multiple_target.c (expand_target_clones): Do not allow
27755 target_clones being used with a symbol that is an alias.
27757 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27759 PR tree-optimization/90394
27760 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27761 positives rather than ICE for cases where (code2 == NE_EXPR
27762 && code1 == BIT_AND_EXPR).
27764 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27767 * tree-core.h (struct tree_decl_common): Document
27768 decl_nonshareable_flag for PARM_DECLs.
27769 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27770 * calls.c (expand_call): Don't try tail call if caller
27771 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27772 passed on the stack and callee needs to pass any arguments on the
27774 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27775 else if instead of series of mutually exclusive ifs. Handle
27776 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27777 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27779 * lto-streamer.h (LTO_major_version): Bump to 9.
27781 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27783 PR tree-optimization/90106
27784 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27785 new parameter as new internal function call, also move it to new
27787 (use_internal_fn): Pass internal function call to
27788 shrink_wrap_one_built_in_call_with_conds.
27790 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27792 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27794 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27795 safelen_int and set loop->dont_vectorize.
27797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27800 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27802 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27804 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27805 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27806 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27812 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27813 define_insn_and_split to support SSE emulation.
27814 (*vec_extractv2sf_0): Likewise.
27815 (*vec_extractv2sf_1): Likewise.
27816 (*vec_extractv2si_0): Likewise.
27817 (*vec_extractv2si_1): Likewise.
27818 (*vec_extractv2si_zext_mem): Likewise.
27819 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27820 (vec_extractv2sf_1 splitter): Likewise.
27821 (vec_extractv2sfsf): Likewise.
27822 (vec_setv2si): Likewise.
27823 (vec_extractv2si_1 splitter): Likewise.
27824 (vec_extractv2sisi): Likewise.
27825 (vec_setv4hi): Likewise.
27826 (vec_extractv4hihi): Likewise.
27827 (vec_setv8qi): Likewise.
27828 (vec_extractv8qiqi): Likewise.
27829 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27830 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27831 (vec_extractv2sisi): Likewise.
27832 (vec_extractv4hihi): Likewise.
27833 (vec_extractv8qiqi): Likewise.
27834 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27835 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27836 (vec_initv2sisi): Likewise.
27837 (vec_initv4hihi): Likewise.
27838 (vec_initv8qiqi): Likewise.
27839 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27840 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27841 (vec_setv4hi): Likewise.
27842 (vec_setv8qi): Likewise.
27844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27847 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27848 TARGET_MMX_WITH_SSE.
27849 (MMXMODE:*mov<mode>_internal): Likewise.
27850 (MMXMODE:movmisalign<mode>): Likewise.
27852 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27855 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27856 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27857 (sse2_cvtpd2pi): Ditto.
27858 (sse2_cvttpd2pi): Ditto.
27859 (*vec_concatv2sf_sse4_1): Ditto.
27860 (*vec_concatv2sf_sse): Ditto.
27861 (*vec_concatv2si_sse4_1): Ditto.
27862 (*vec_concatv2si): Ditto.
27863 (*vec_concatv4si_0): Ditto.
27864 (*vec_concatv2di_0): Ditto.
27866 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27869 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27874 * config/i386/sse.md (ssse3_palignrdi): Changed to
27875 define_insn_and_split to support SSE emulation.
27877 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27880 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27882 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27885 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27886 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27889 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27892 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27893 or TARGET_MMX_WITH_SSE.
27894 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27896 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27899 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27901 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27904 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27905 Changed to define_insn_and_split to support SSE emulation.
27907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27910 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27911 Changed to define_insn_and_split to support SSE emulation.
27913 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27916 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27917 (*mmx_<emms>): This.
27918 (mmx_<emms>): New expander.
27920 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27923 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27925 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27927 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27930 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27932 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27935 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27940 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27941 TARGET_MMX_WITH_SSE.
27942 (*mmx_uavgv4hi3): Add SSE emulation.
27944 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27947 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27948 and TARGET_MMX_WITH_SSE.
27949 (*mmx_uavgv8qi3): Add SSE emulation.
27951 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27954 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27955 maskmovdqu for __MMX_WITH_SSE__.
27957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27960 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27961 TARGET_MMX and TARGET_MMX_WITH_SSE.
27962 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27964 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27967 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27968 define_insn_and_split to support SSE emulation.
27970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27973 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27974 and TARGET_MMX_WITH_SSE.
27975 (mmx_<code>v8qi3): Likewise.
27976 (smaxmin:<code>v4hi3): New.
27977 (umaxmin:<code>v8qi3): Likewise.
27978 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27979 (umaxmin:*mmx_<code>v8qi3): Likewise.
27981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27984 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27985 TARGET_MMX_WITH_SSE.
27986 (*mmx_pinsrw): Add SSE emulation.
27988 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27991 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27993 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27996 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27997 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
28000 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28003 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
28004 (sse_cvttps2pi): Likewise.
28006 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28009 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
28010 TARGET_MMX_WITH_SSE.
28011 (mmx_pshufw_1): Add SSE emulation.
28012 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
28013 TARGET_MMX_WITH_SSE to support SSE emulation.
28015 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28018 * config/i386/constraints.md (Yw): New constraint.
28019 * config/i386/mmx.md (*vec_dupv2si): Changed to
28020 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
28021 support SSE emulation.
28023 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28026 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
28027 TARGET_MMX_WITH_SSE.
28028 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
28030 (mmx_gt<mode>3): Likewise.
28032 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28035 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
28036 TARGET_MMX_WITH_SSE. Add SSE support.
28038 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28041 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
28042 TARGET_MMX_WITH_SSE.
28043 (any_logic:<code><mode>3): New.
28044 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
28047 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28050 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
28051 TARGET_MMX_WITH_SSE. Add SSE emulation.
28052 (mmx_<shift_insn><mode>3): Likewise.
28053 (ashr<mode>3): New.
28054 (<shift_insn><mode>3): Likewise.
28056 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28059 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
28060 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
28062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28065 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
28066 TARGET_MMX_WITH_SSE.
28067 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
28070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28073 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
28074 TARGET_MMX_WITH_SSE.
28076 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
28079 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28082 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
28083 (plusminus:mmx_<plusminus_insn><mode>3): Check
28084 TARGET_MMX_WITH_SSE.
28085 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
28086 (<plusminus_insn><mode>3): New.
28087 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
28088 (*mmx_<plusminus_insn><mode>3): Likewise.
28090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28093 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
28094 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
28096 * config/i386/mmx.m (mmx_punpckhbw): Changed to
28097 define_insn_and_split to support SSE emulation.
28098 (mmx_punpcklbw): Likewise.
28099 (mmx_punpckhwd): Likewise.
28100 (mmx_punpcklwd): Likewise.
28101 (mmx_punpckhdq): Likewise.
28102 (mmx_punpckldq): Likewise.
28104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28105 Uros Bizjak <ubizjak@gmail.com>
28108 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
28110 (ix86_split_mmx_pack): Likewise.
28111 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
28113 (ix86_split_mmx_pack): Likewise.
28114 * config/i386/i386.md (mmx_isa): New.
28115 (enabled): Also check mmx_isa.
28116 * config/i386/mmx.md (any_s_truncate): New code iterator.
28117 (s_trunsuffix): New code attr.
28118 (mmx_packsswb): Removed.
28119 (mmx_packssdw): Likewise.
28120 (mmx_packuswb): Likewise.
28121 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
28122 MMX packsswb/packuswb with SSE2.
28123 (mmx_packssdw): Likewise.
28124 * config/i386/predicates.md (register_mmxmem_operand): New.
28126 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28129 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28130 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
28131 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
28132 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
28133 (ix86_vector_mode_supported_p): Likewise.
28134 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
28136 2019-05-15 Martin Liska <mliska@suse.cz>
28138 PR middle-end/90478
28139 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28140 Check for overflow.
28142 2019-05-15 Richard Biener <rguenther@suse.de>
28144 * tree-into-ssa.c (pass_build_ssa::execute): Run
28145 update_address_taken before going into SSA.
28147 2019-05-15 Richard Biener <rguenther@suse.de>
28149 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
28150 as __BIT_FIELD_REF with type with -gimple.
28152 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
28154 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
28155 semantically equivalent branches (left over after prior refactorings).
28157 2019-05-15 Richard Biener <rguenther@suse.de>
28159 PR tree-optimization/88828
28160 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
28163 2019-05-14 Richard Biener <rguenther@suse.de>
28165 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
28166 as __VIEW_CONVERT with -gimple.
28168 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28171 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
28174 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
28176 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
28177 define_split to become a define_insn_and_split.
28179 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
28181 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
28183 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
28184 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
28185 (sibcall_epilogue): Adjust.
28186 (epilogue): Adjust.
28188 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28190 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
28191 to unsupported ones.
28192 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
28193 * config.host: Likewise.
28194 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
28195 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
28196 __svr4__]: Remove "brand" fallback.
28197 [!KSTAT_DATA_STRING]: Remove.
28198 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
28200 (comdat_group): Likewise.
28201 (set_have_as_tls): Likewise.
28202 (gcc_cv_target_dl_iterate_phdr): Likewise.
28203 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
28204 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
28205 * configure: Regenerate.
28206 * doc/install.texi: Simplify Solaris target triplets.
28207 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
28208 (Specific, *-*-solaris2*): Document Solaris 10 removal.
28209 Remove Solaris 10 references.
28210 Remove obsolete Solaris bug reference.
28211 (Specific, sparc-sun-solaris2.10): Remove.
28213 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
28215 * config/i386/i386.md (any_div): New code iterator.
28216 (paired_mod): New code attribute.
28217 (sgnprefix): Handle DIV and UDIV RTXes.
28219 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28220 and udivmod<mode>4 patterns using any_div code iterator.
28221 (divmod splitters): Macroize splitters using any_div code iterator.
28222 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28223 (*udivmodsi4_pow2_zext_2): Ditto.
28224 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28225 and *udivmod<mode>4_noext patterns using any_div code iterator.
28226 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28227 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28228 patterns using any_div code iterator.
28229 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28230 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28231 patterns using any_div code iterator.
28232 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28233 udivmodhiqi3 patterns using any_extend code iterator.
28235 2019-05-14 Richard Biener <rguenther@suse.de>
28236 H.J. Lu <hongjiu.lu@intel.com>
28238 PR tree-optimization/88828
28239 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28240 permuting in a single non-constant element not extracted
28243 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
28245 * internal-fn.def (SIGNBIT): New.
28246 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28248 (signbitv4sf2): Likewise.
28250 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
28253 * config/mips/mips.c (mips_split_move): Skip forward SRC into
28254 next insn when the SRC reg is dead.
28256 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
28258 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28259 (alloc_cand_and_find_basis): Ditto.
28260 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28261 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28262 (create_add_imm_cand, slsr_process_cast): Ditto.
28263 (slsr_process_copy, replace_mult_candidate): Ditto.
28264 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28265 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28266 (pass_strength_reduction::execute): Init the first NULL element.
28268 2019-05-13 Nathan Sidwell <nathan@acm.org>
28270 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
28271 (run_attempt): Reformat line break.
28273 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
28276 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28277 data registers in sibcall epilogues.
28278 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28280 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
28283 * configure.ac (--enable-frame-pointer):
28284 Disable by default for cygwin and mingw.
28285 * configure: Regenerate.
28287 2019-05-13 Nathan Sidwell <nathan@acm.org>
28289 * dwarf2out.c (breakout_comdat_types): Move comment to correct
28291 (const_ok_for_output_1): Balance parens around #if/#else/#endif
28292 (gen_member_die): Move abstract origin check earlier. Only VARs
28293 can be static_inline_p. Simplify splicing control flow.
28295 2019-05-13 Richard Biener <rguenther@suse.de>
28297 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28299 (vect_build_slp_tree_1): Likewise.
28301 2019-05-13 Richard Biener <rguenther@suse.de>
28303 PR tree-optimization/90402
28304 * tree-if-conv.c (tree_if_conversion): Value number only
28305 the loop body by making the latch an exit of the region
28307 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28309 (do_rpo_vn): Deal with multiple edges into the entry block
28310 that are not backedges inside the region by skipping PHIs
28311 of the entry block.
28313 2019-05-13 Richard Biener <rguenther@suse.de>
28315 PR tree-optimization/90316
28316 * tree-ssa-pre.c (insert_aux): Fold into ...
28317 (insert): ... this function. Use a RPO walk to reduce the
28318 number of required iterations.
28320 2019-05-13 Martin Liska <mliska@suse.cz>
28322 PR tree-optimization/90416
28323 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28324 string instead of passing the second part as va_arg argument.
28326 2019-05-13 Martin Liska <mliska@suse.cz>
28328 PR gcov-profile/90380
28329 * gcov.c (handle_cycle): Do not support zero cycle count,
28330 it should not be possible.
28331 (path_contains_zero_cycle_arc): New function.
28332 (circuit): Ignore zero cycle arc counts.
28334 2019-05-13 Martin Liska <mliska@suse.cz>
28336 PR gcov-profile/90380
28337 * gcov.c (enum loop_type): Remove the enum and
28339 (handle_cycle): Assert that we should not reach
28341 (circuit): Use loop_found instead of a tri-state loop_type.
28342 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28345 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28348 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28349 (ix86_output_indirect_branch_via_reg): Use output mechanism
28350 accounting for __USER_LABEL_PREFIX__.
28351 (ix86_output_indirect_branch_via_push): Likewise.
28352 (ix86_output_function_return): Likewise.
28353 (ix86_output_indirect_function_return): Likewise.
28355 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28357 * doc/md.texi: Document use of code attributes in rtx patterns.
28358 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28359 * read-rtl.c (find_code): Split out search loops into...
28360 (maybe_find_code): ...this new function.
28361 (check_code_iterator): Make the error message more informative.
28362 (check_code_attribute): New function.
28363 (rtx_reader::rtx_alloc_for_name): Likewise.
28364 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28365 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28366 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28367 <max_opp> directly as an rtx code instead of via a match_operator.
28368 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28369 (<su>abd<mode>_3): Update accordingly.
28371 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28373 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28374 is given, print the state of the EH "save world" computation for
28377 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28380 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28381 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28383 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28385 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28386 Use pinsrd for TARGET_SSE4_1.
28387 * config/i386/sse.md (movdi_to_sse): Ditto.
28389 2019-05-10 Richard Biener <rguenther@suse.de>
28391 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28392 (do_rpo_vn): Initialize next_value_id.
28394 2019-05-10 Martin Liska <mliska@suse.cz>
28396 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28399 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28401 PR tree-optimization/90385
28402 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28403 arguments of the exit phis.
28406 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28407 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28409 (copy_tree_body_r): Likewise.
28410 (copy_fn): Set id.do_not_fold to true.
28412 2019-05-10 Martin Liska <mliska@suse.cz>
28414 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28415 Reapply changes from r269790.
28417 2019-05-10 Martin Liska <mliska@suse.cz>
28419 PR middle-end/90340
28420 * doc/invoke.texi: New params.
28421 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28422 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28423 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28425 * tree-switch-conversion.h (struct jump_table_cluster):
28428 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28430 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28432 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28434 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28436 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28438 PR rtl-optimization/88879
28439 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28441 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28444 * config/arm/arm.c (callee_saved_reg_p): Move before
28445 thumb_find_work_register.
28446 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28447 thumb_find_work_register. Only call df_get_live_out once.
28448 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28449 (thumb_find_work_register): Use
28450 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28451 algorithms to locate a spare call clobbered reg.
28453 2019-05-09 Martin Liska <mliska@suse.cz>
28455 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28456 and MAX_EXPR in GIMPLE FE format.
28458 2019-05-09 Martin Liska <mliska@suse.cz>
28460 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28461 * gimple-pretty-print.c (dump_gimple_bb_header):
28463 (pp_cfg_jump): Dump edge probability.
28464 * profile-count.c (profile_quality_as_string): Simplify
28465 with a static array.
28466 (parse_profile_quality): New function.
28467 (profile_count::dump): Simplify with a static array.
28468 (profile_count::from_gcov_type): Add new argument.
28469 * profile-count.h (parse_profile_quality): Likewise.
28470 * predict.h (set_hot_bb_threshold): New.
28471 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28473 * predict.c (get_hot_bb_threshold): Set from the new param.
28474 (set_hot_bb_threshold): New.
28476 2019-05-09 Richard Biener <rguenther@suse.de>
28478 PR tree-optimization/90395
28479 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28480 rewrite vector stores that throw internally.
28482 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28484 * cif-code.def (CHKP): Remove.
28487 * configure.ac (--enable-frame-pointer): Disable by default for
28489 * configure: Regenerate.
28491 2019-05-09 Alan Modra <amodra@gmail.com>
28494 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28495 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28496 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28497 cost for general <-> vsx when direct moves are available.
28498 Cost union classes at minimal cost for any reg in the class.
28499 Correct calculation for moves between vsx, float, and altivec.
28500 Don't return a low cost for moves between special regs. Don't
28501 use hard coded register numbers.
28502 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28503 (rs6000_ira_change_pseudo_allocno_class): New function.
28504 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28505 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28507 (movsi_internal1): Don't disparage vector alternatives.
28508 (mov<mode>_internal): Likewise, excepting alternative that
28510 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28511 we <- b alternative.
28513 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28516 PR tree-optimization/89060
28517 * tree-ssa-live.h (live_vars_map): New typedef.
28518 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28519 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28520 (struct compute_live_vars_data): New type.
28521 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28522 live_vars_at_stmt, destroy_live_vars): New functions.
28523 * tree-tailcall.c: Include tree-ssa-live.h.
28524 (live_vars, live_vars_vec): New global variables.
28525 (find_tail_calls): Perform variable life analysis before punting.
28526 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28527 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28529 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28530 Perform variable life analysis to select variables that really need
28532 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28533 instead set id->eh_landing_pad_dest and assert it is the same.
28534 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28536 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28537 Richard Earnshaw <rearnsha@arm.com>
28540 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28542 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28543 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28544 register if both the epilogue and prologue can use call-clobbered
28546 (thumb1_unexpanded_epilogue): Use
28547 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28548 picking temporaries for restoring high regs to match that of the
28549 prologue where possible.
28550 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28551 the list of work registers. Detect if the return address is still live
28552 at the end of the prologue and avoid using it for a work register if so.
28553 If the return address is not live, add LR to the list of pushable regs
28554 after the first pass.
28556 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28558 PR tree-optimization/90078
28559 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28560 (INFTY): Increase the value for infinite cost.
28561 (struct comp_cost): Promote type of members to int64_t.
28562 (infinite_cost): Don't set complexity in initialization.
28563 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28564 overflows to infinite_cost.
28565 (adjust_setup_cost): Promote type of parameter and cost computation
28567 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28569 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28570 cost computation to int64_t.
28571 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28572 int64_t's format specifier in dump.
28574 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28576 PR tree-optimization/90240
28577 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28578 with respect to scaling factor pre-computed for each basic block.
28579 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28580 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28581 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28582 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28583 live range for array of loop's basic blocks. Cleanup aux field of
28584 loop's basic blocks.
28586 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28588 PR tree-optimization/90356
28589 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28591 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28593 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28594 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28595 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28596 (ix86_handle_option): Handle -mavx512bf16.
28597 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28599 * config/i386/avx512bf16vlintrin.h: New.
28600 * config/i386/avx512bf16intrin.h: New.
28601 * config/i386/cpuid.h (bit_AVX512BF16): New.
28602 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28603 * config/i386/i386-builtin-types.def: Add new types.
28604 * config/i386/i386-builtin.def: Add new builtins.
28605 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28607 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28608 (ix86_option_override_internal): Handle BF16.
28609 (ix86_valid_target_attribute_inner_p): Ditto.
28610 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28611 * config/i386/i386-builtin.c (enum processor_features): Add
28613 (static const _isa_names_table isa_names_table): Ditto.
28614 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28615 (PTA_AVX512BF16): Ditto.
28616 * config/i386/i386.opt: Add -mavx512bf16.
28617 * config/i386/immintrin.h: Include avx512bf16intrin.h
28618 and avx512bf16vlintrin.h.
28619 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28620 avx512f_cvtneps2bf16_<mode><mask_name>,
28621 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28622 * config/i386/subst.md (mask_half): Add new subst.
28623 * doc/invoke.texi: Document -mavx512bf16.
28625 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28627 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28628 Delete declaration.
28629 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28630 (rs6000_debug_legitimize_reload_address): Delete.
28631 (rs6000_legitimize_reload_address_ptr): Delete.
28632 (rs6000_option_override_internal): Adjust.
28633 (mem_operand_gpr): Adjust comment.
28634 (legitimate_lo_sum_address_p): Ditto.
28635 (rs6000_legitimize_reload_address): Delete.
28636 (rs6000_debug_legitimize_reload_address): Delete.
28637 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28639 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28642 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28643 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28644 to compute vector element selector for both constant and variable
28647 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28649 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28650 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28651 ashrdi3_cvt using SWI48 mode iterator.
28653 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28655 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28656 (aarch64_<su>abd<mode>_3): Likewise.
28657 (*aarch64_<su>abd<mode>_3): New define_insn.
28658 (<sur>sad<vsi2qi>): New define_expand.
28659 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28660 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28661 (build_vect_cond_expr): Likewise.
28663 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28665 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28666 clobbers outside of accessible_reg_set.
28667 * config/i386/i386.c (ix86_conditional_register_usage):
28668 Disable register sets by clearing corresponding bits in
28669 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28670 call_used_regs and don't clear corresponding reg_names array members.
28672 2019-05-07 Richard Biener <rguenther@suse.de>
28674 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28675 not specified still compute a comp_vectype for invariant
28678 2019-05-07 Richard Biener <rguenther@suse.de>
28680 PR tree-optimization/90316
28681 * tree-ssa-pre.c (translate_vuse_through_block): When
28682 same_valid is NULL do not bother to search for a virtual
28684 (phi_translate_1): When operands changed we cannot keep
28685 the same value-number so do not bother to ask whether
28686 that's possible from translate_vuse_through_block.
28688 2019-05-07 Martin Liska <mliska@suse.cz>
28690 * bitmap.c (bitmap_register): Come up with
28691 alloc_descriptor_max_uid and assign it for
28693 (register_overhead): Use get_descriptor as
28695 (release_overhead): New.
28696 (bitmap_elem_to_freelist): Call it.
28697 (bitmap_elt_clear_from): Likewise.
28698 (bitmap_obstack_free): Likewise.
28699 (bitmap_move): Sensitively release memory.
28700 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28701 (bitmap_initialize): Initialize alloc_descriptor to zero.
28702 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28704 2019-05-07 Richard Biener <rguenther@suse.de>
28706 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28707 we build a SLP node. Remove max_size and limiting.
28708 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28710 2019-05-07 Richard Biener <rguenther@suse.de>
28712 PR tree-optimization/90316
28713 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28714 limit by reference.
28715 (walk_non_aliased_vuses): Take walking limit argument.
28716 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28717 walking if it is reached instead of just counting.
28718 (get_continuation_for_phi): Likewise.
28719 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28720 limiting to the callback.
28721 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28722 (vn_reference_lookup_3): Likewise.
28723 (vn_reference_lookup_pieces): Likewise.
28724 (vn_reference_lookup): Likewise.
28725 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28726 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28727 (avail_exprs_stack::lookup_avail_expr): Likewise.
28729 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28731 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28732 for comparaible types in the second direction even if first one
28733 hits incomparable type.
28735 2019-05-07 Richard Biener <rguenther@suse.de>
28738 * lto-wrapper.c (debug_objcopy): Use the original filename
28739 including archive offset for the filename used for -save-temps.
28741 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28743 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28746 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28747 Hongtao Liu <hongtao.liu@intel.com>
28751 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28752 Modified, original implementation isn't correct.
28754 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28756 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28757 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28758 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28759 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28760 (FRAME_POINTER_REGNUM): Change numbering.
28761 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28762 (alt_reg_names): Adjust.
28763 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28765 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28766 (DWARF_FRAME_REGISTERS): Delete.
28767 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28768 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28770 (REG_ALLOC_ORDER): Adjust.
28771 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28772 (REG_CLASS_CONTENTS): Adjust.
28773 (RETURN_ADDR_RTX): Change comment.
28774 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28776 (REGISTER_NAMES): Adjust.
28777 (ADDITIONAL_REGISTER_NAMES): Adjust.
28778 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28780 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28782 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28784 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28785 (DWARF_FRAME_REGISTERS): Adjust.
28786 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28788 (REG_ALLOC_ORDER): Adjust.
28789 (enum reg_class): Delete SPR_REGS.
28790 (REG_CLASS_NAMES): Delete SPR_REGS.
28791 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28792 (REGISTER_NAMES): Adjust.
28793 (ADDITIONAL_REGISTER_NAMES): Adjust.
28794 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28795 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28796 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28797 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28798 (htm_spr_regno): Delete.
28799 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28801 (rs6000_dbx_register_number): Adjust.
28803 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28805 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28807 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28809 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28810 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28812 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28814 PR tree-optimization/88709
28815 PR tree-optimization/90271
28816 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28817 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28818 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28820 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28821 of the store merging group is larger than
28822 PARAM_STORE_MERGING_MAX_SIZE parameter.
28823 (split_group): Add bzero_first argument. If set, always emit first
28824 the first store which must be = {} of the whole area and then for the
28825 rest of the stores consider all zero bytes as paddings.
28826 (imm_store_chain_info::output_merged_store): Check if first store
28827 is = {} of the whole area and if yes, determine which setting of
28828 bzero_first for split_group gives smaller number of stores. Adjust
28829 split_group callers.
28830 (lhs_valid_for_store_merging_p): Allow decls.
28831 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28833 (pass_store_merging::process_store): Likewise.
28835 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28838 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28839 handling of V1TImode.
28841 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28844 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28845 and enable_frame_pointer ...
28846 * configure.ac: ... here. Update help strings for
28847 --enable-frame-pointer.
28848 * configure: Regenerate.
28849 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28850 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28851 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28852 (USE_X86_64_FRAME_POINTER): Ditto.
28854 2019-05-06 Martin Liska <mliska@suse.cz>
28856 * config.gcc: Append to target_gtfiles and fix indentation.
28858 2019-05-06 Richard Biener <rguenther@suse.de>
28860 PR tree-optimization/90358
28861 * tree-vect-stmts.c (get_group_load_store_type): Properly
28862 detect unused upper half of load.
28863 (vectorizable_load): Likewise.
28865 2019-05-06 Richard Biener <rguenther@suse.de>
28867 PR tree-optimization/88828
28868 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28869 (simplify_vector_constructor): ...here. Handle constants in
28872 2019-05-06 Richard Biener <rguenther@suse.de>
28874 PR tree-optimization/90328
28875 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28876 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28877 is valid in the loop nest before using it.
28878 (initialize_data_dependence_relation): Adjust.
28879 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28880 loop as loop-nest to dr_may_alias_p.
28882 2019-05-06 Richard Biener <rguenther@suse.de>
28884 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28886 2019-05-06 Richard Biener <rguenther@suse.de>
28888 PR tree-optimization/90316
28889 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28890 compute target on demand.
28891 (get_continuation_for_phi): Remove code walking stmts to
28892 get to a target virtual operand which could end up being
28895 2019-05-06 Martin Liska <mliska@suse.cz>
28898 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28899 when -mabi is selected to a non-default version.
28901 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28902 Martin Liska <mliska@suse.cz>
28904 * Makefile.in: Add lto-dump.texi.
28905 * cgraph.h: Add new functions get_visibility_string and
28906 get_symtab_type_string.
28907 * doc/gcc.texi: Include lto-dump section.
28908 * doc/lto-dump.texi: New file.
28909 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28910 (parse_dump_option): Factor out this function.
28911 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28912 (parse_dump_option): Export the function.
28913 * symtab.c (symtab_node::get_visibility_string): New function.
28914 (symtab_node::get_symtab_type_string): Likewise.
28916 2019-05-06 Martin Liska <mliska@suse.cz>
28918 * config/i386/i386-builtins.c: New file.
28919 * config/i386/i386-builtins.h: New file.
28920 * config/i386/i386-expand.c: New file.
28921 * config/i386/i386-expand.h: New file.
28922 * config/i386/i386-features.c: New file.
28923 * config/i386/i386-features.h: New file.
28924 * config/i386/i386-options.c: New file.
28925 * config/i386/i386-options.h: New file.
28926 * config.gcc: Add new files into extra_objs and
28928 * config/i386/i386.c: Split content of the file
28929 into newly introduced files.
28930 * config/i386/i386.h: Declare common variables
28932 * config/i386/t-i386: Define dependencies for new files.
28934 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28937 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28938 Restrict 'all' variant to 32-bit configurations.
28939 (unaligned_loadhiu): Likewise.
28940 (unaligned_storehi): Likewise.
28941 (unaligned_storesi): Likewise.
28942 (unaligned_loadhis): Disable when compiling for thumb1.
28944 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28946 PR tree-optimization/90269
28947 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28950 2019-05-03 Martin Liska <mliska@suse.cz>
28952 * hash-map.h: Add is_empty function.
28953 * hash-set.h: Likewise.
28954 * hash-table.h: Likewise.
28955 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28956 elements () == 0 (and similar usages).
28957 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28958 * gimplify.c (gimplify_bind_expr): Likewise.
28959 (gimplify_switch_expr): Likewise.
28960 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28961 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28962 * postreload-gcse.c (dump_hash_table): Likewise.
28963 (gcse_after_reload_main): Likewise.
28964 * predict.c (combine_predictions_for_bb): Likewise.
28965 * tree-parloops.c (reduction_phi): Likewise.
28966 (separate_decls_in_region): Likewise.
28967 (transform_to_exit_first_loop): Likewise.
28968 (gen_parallel_loop): Likewise.
28969 (gather_scalar_reductions): Likewise.
28970 (try_create_reduction_list): Likewise.
28971 * var-tracking.c (dump_vars): Likewise.
28972 (emit_notes_for_changes): Likewise.
28973 (vt_emit_notes): Likewise.
28975 2019-05-03 Richard Biener <rguenther@suse.de>
28977 PR tree-optimization/90316
28978 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28981 2019-05-03 Richard Biener <rguenther@suse.de>
28983 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28984 peeling for gaps by loading only lower halves of vectors
28986 (vectorizable_load): Likewise.
28988 2019-05-03 Richard Biener <rguenther@suse.de>
28990 PR middle-end/89518
28991 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28993 2019-05-03 Richard Biener <rguenther@suse.de>
28995 PR middle-end/87314
28996 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28997 Handle STRING_CST vs DECL or STRING_CST.
28999 2019-05-03 Richard Biener <rguenther@suse.de>
29001 PR tree-optimization/88963
29002 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
29003 vector loads feeding only BIT_FIELD_REFs to component
29004 loads. Rewrite stores fed by CONSTRUCTORs to component
29007 2019-05-03 Jakub Jelinek <jakub@redhat.com>
29009 * opts.h (finish_options): Remove lang_mask argument.
29010 (print_help, help_option_argument): Declare.
29011 * opts.c (print_help): Remove forward declaration, no longer static.
29012 (finish_options): Remove lang_mask argument, don't call print_help
29014 * opts-global.c (decode_options): Adjust finish_option caller, call
29017 PR tree-optimization/90303
29018 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
29019 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
29021 2019-05-03 Richard Biener <rguenther@suse.de>
29023 PR tree-optimization/89698
29024 * gimple-fold.c (canonicalize_constructor_val): Early out
29025 for constants, handle unfolded INTEGER_CSTs as they appear in
29026 C++ virtual table ctors.
29028 2019-05-03 Richard Biener <rguenther@suse.de>
29030 * passes.c (execute_function_todo): Remove dead code.
29032 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
29034 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
29035 the internal register number, for any "real" register.
29037 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
29039 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
29040 correct numbers for TFHAR, TFIAR, TEXASR.
29042 2019-05-02 Richard Biener <rguenther@suse.de>
29044 PR tree-optimization/89653
29045 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
29046 update-address-taken before the pass.
29047 * passes.def (pass_tree_loop_init): Put comment before it.
29049 2019-05-02 Richard Biener <rguenther@suse.de>
29051 PR tree-optimization/89509
29052 * tree-ssa-structalias.c (compute_dependence_clique): Look
29053 at the first subvar when determining whether it is restrict.
29055 2019-05-02 Richard Biener <rguenther@suse.de>
29057 PR tree-optimization/90273
29058 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
29059 useless debug stmts.
29061 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
29063 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
29065 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
29067 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
29068 VEC_COND_EXPR be inserted to emulate a conditional internal function.
29069 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
29070 (vectorizable_reduction): Use the functions above to vectorize in a
29071 fully masked loop codes that don't have a conditional internal
29074 2019-05-02 Martin Liska <mliska@suse.cz>
29076 * cgraphclones.c: Call valid_attribute_p with 1 for
29078 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
29079 it's for target attribute.
29080 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
29081 Add new boolean argument.
29082 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
29084 (ix86_valid_target_attribute_tree): Pass target_clone_attr
29085 to ix86_valid_target_attribute_inner_p.
29086 (ix86_valid_target_attribute_p): Pass flags argument to
29087 ix86_valid_target_attribute_inner_p.
29088 (get_builtin_code_for_version): Use 0 as it's target attribute.
29090 2019-05-02 Martin Liska <mliska@suse.cz>
29092 * gcc.c (process_command): Add dummy file only
29094 * opts-global.c (decode_options): Pass lang_mask.
29095 * opts.c (print_help): New function.
29096 (finish_options): Print --help if help_option_argument
29098 (common_handle_option): Factor out content of OPT__help_
29100 * opts.h (finish_options): Add new argument.
29102 2019-05-02 Martin Liska <mliska@suse.cz>
29105 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
29106 With -minline-all-stringops use inline expansion using 4B loop.
29107 * doc/invoke.texi: Document the change of
29108 -minline-all-stringops.
29110 2019-05-01 Jeff Law <law@redhat.com>
29112 PR tree-optimization/88797
29113 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
29114 PHI feeds a conditional on the RHS of an assignment.
29116 2019-04-30 Andrew Waterman <andrew@sifive.com>
29117 Jim Wilson <jimw@sifive.com>
29119 * config/riscv/constraints.md (L): New.
29120 * config/riscv/predicates.md (lui_operand): New.
29121 (sfb_alu_operand): New.
29122 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
29123 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
29124 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
29125 * config/riscv/risc.md (type): Add sfb_alu.
29126 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
29127 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
29128 (branch_zero<mode>): Delete.
29129 (mov<mode>cc): New.
29130 (mov<GPR:mode><X:mode>cc): Likewise.
29131 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
29133 2019-04-30 Nathan Sidwell <nathan@acm.org>
29135 * tree.h (MARK_TS_EXP): New.
29137 2019-04-30 Martin Liska <mliska@suse.cz>
29139 * opts.c (enable_warning_as_error): Provide hints
29140 for unknown options.
29142 2019-04-30 Martin Liska <mliska@suse.cz>
29145 * doc/invoke.texi: Add missing dash for gas-locview-support
29146 and gno-as-locview-support.
29148 2019-04-30 Jakub Jelinek <jakub@redhat.com>
29151 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
29152 whitespace at the start of target attribute string.
29154 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29157 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
29158 Define __ARM_FEATURE_ATOMICS.
29160 2019-04-30 Martin Liska <mliska@suse.cz>
29162 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
29163 into built_in_function enum. Remove code for endp == 2 and
29164 use BUILT_IN_* constants.
29165 (gimple_fold_builtin): Call the function with fcode.
29167 2019-04-30 Martin Liska <mliska@suse.cz>
29169 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
29170 DECL_FUNCTION_CODE into ix86_builtins enum before
29171 the switch statement.
29173 2019-04-30 Jakub Jelinek <jakub@redhat.com>
29175 PR tree-optimization/89475
29176 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
29179 2019-04-30 Martin Liska <mliska@suse.cz>
29181 PR translation/90274
29182 * opts.c (print_filtered_help): Wrap string in _(...).
29184 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
29186 PR tree-optimization/90240
29188 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29190 PR tree-optimization/90078
29191 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29192 checks for infinite_cost overflow.
29194 2019-04-29 Jeff Law <law@redhat.com>
29196 * passes.def: Move -Wrestrict pass after copy propagation.
29198 2019-04-29 Maya Rashish <coypu@sdf.org>
29200 * config.gcc (default_gnu_indirect_function): Default to yes
29201 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
29202 sparc*-*-netbsd*, x86_64-*-netbsd*.
29204 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
29206 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
29207 where cond2 is NE_EXPR.
29208 (is_value_included_in): Update comment.
29210 2019-04-29 Richard Biener <rguenther@suse.de>
29212 PR tree-optimization/90278
29213 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29214 EH on comparison simplification.
29216 2019-04-29 Jason Merrill <jason@redhat.com>
29218 PR c++/82081 - tail call optimization breaks noexcept
29219 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29220 nothrow function to a might-throw function into a tail call.
29222 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
29224 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29225 (DDR_INNER_LOOP): Likewise.
29226 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29227 (initialize_data_dependence_relation): Likewise.
29228 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29230 2019-04-29 Jakub Jelinek <jakub@redhat.com>
29232 PR rtl-optimization/90257
29233 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29237 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29241 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29244 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29247 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29249 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29251 2019-04-29 Richard Biener <rguenther@suse.de>
29253 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29256 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
29258 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
29259 varasm.h, and netbsd-protos.h.
29261 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
29264 * config/i386/i386-protos.h (ix86_data_alignment): Change
29265 the second argument type to unsigned int.
29266 * config/i386/i386.c (ix86_data_alignment): Change "align"
29267 argument type to unsigned int.
29269 2019-04-27 Martin Liska <mliska@suse.cz>
29271 PR middle-end/90258
29272 * opt-suggestions.c (option_proposer::build_option_suggestions):
29273 When get_valid_option_values returns empty values, add the
29274 misspelling candidate.
29276 2019-04-26 Jim Wilson <jimw@sifive.com>
29278 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29280 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29281 Pass orig_mode to riscv_build_integer.
29282 (riscv_split_integer): Pass mode to riscv_move_integer.
29283 (riscv_legitimize_const_move): Likewise.
29284 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29285 promoted_mode. Replace force_reg call with code to load constant into
29286 promoted reg and then subreg it for the store.
29287 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29288 riscv_move_integer.
29290 2018-04-26 Eugene Sharygin <eush@ispras.ru>
29292 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29295 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
29297 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29298 commentary about the encoding of precision.
29300 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
29302 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29303 * config/i386/t-freebsd64: New file.
29304 * config.gcc: Add the t-freebsd64 for multilib support.
29306 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
29308 * doc/extend.texi (vector_size): Add missing comma after @xref.
29310 2019-04-25 Jakub Jelinek <jakub@redhat.com>
29312 * BASE-VER: Set to 10.0.0.
29314 2019-04-25 Richard Biener <rguenther@suse.de>
29316 PR middle-end/89765
29317 * gimplify.c (gimplify_expr): Avoid turning a lvalue
29318 VIEW_CONVERT_EXPR into one operating on an rvalue.
29320 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
29323 * config/i386/i386.c (feature_priority): Moved to file scope.
29324 (processor_features): Likewise.
29325 (processor_model): Likewise.
29326 (_arch_names_table): Likewise.
29327 (arch_names_table): Likewise.
29328 (_feature_list): Removed.
29329 (feature_list): Likewise.
29330 (_isa_names_table): Moved to file scope. Add priority.
29331 (isa_names_table): Likewise.
29332 (get_builtin_code_for_version): Replace feature_list with
29333 isa_names_table. Update error message for P_ZERO priority.
29335 2019-04-25 Richard Biener <rguenther@suse.de>
29337 * tree-pass.h (make_pass_phi_only_cprop): Remove.
29338 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29340 2019-04-24 Jeff Law <law@redhat.com>
29342 PR tree-optimization/90037
29343 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29344 * passes.def: Replace all instance of phi-only cprop with the
29345 lattice propagator. Move propagation pass from after erroneous
29346 path isolation to before erroneous path isolation.
29347 * tree-ssa-phionlycprop.c: Remove.
29349 2019-04-24 Richard Biener <rguenther@suse.de>
29351 PR middle-end/90213
29352 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29353 by size and BITS_PER_UNIT on poly-wide-ints.
29355 2019-04-25 Richard Biener <rguenther@suse.de>
29357 PR middle-end/90194
29358 * match.pd: Add pattern to simplify view-conversion of an
29361 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29363 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29364 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29365 for Go on 32 bit AIX.
29366 * config/rs6000/aix72.h: Likewise.
29368 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29371 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29372 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29374 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29377 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29378 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29379 for restored hard frame pointer.
29380 (s390_sched_dependencies_evaluation): Implement new target hook.
29381 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29383 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29385 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29386 * config/arc/arc.c (arc_init): Cleanup warning message.
29387 (arc_override_options): Likewise.
29389 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29392 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29393 a register if both if_true and if_false are MEMs.
29395 PR tree-optimization/90208
29396 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29397 after labels of new_bb, not before them.
29399 PR tree-optimization/90211
29400 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29401 which are not SSA_NAMEs.
29403 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29405 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29407 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29409 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29411 PR rtl-optimization/87979
29412 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29415 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29417 PR rtl-optimization/84032
29418 * modulo-sched.c (ps_insn_find_column): Change condition so that
29419 branch will always be the last insn in a row inside partial
29422 2019-04-23 Richard Biener <rguenther@suse.de>
29425 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29426 dest_single_pred_p argument.
29427 (remove_forwarder_block): Adjust.
29428 (remove_forwarder_block_with_phi): Likewise.
29430 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29431 Bernd Edlinger <bernd.edlinger@hotmail.de>
29432 Jakub Jelinek <jakub@redhat.com>
29435 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29436 if used with general-regs-only.
29437 (arm_conditional_register_usage): Don't add non-general regs if
29439 (arm_valid_target_attribute_rec): Handle general-regs-only.
29440 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29442 (TARGET_HARD_FLOAT_SUB): Define.
29443 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29444 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29445 (TARGET_REALLY_IWMMXT2): Likewise.
29446 * config/arm/arm.opt: Add -mgeneral-regs-only.
29447 * doc/extend.texi: Document ARM general-regs-only target.
29448 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29450 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29452 PR tree-optimization/90078
29453 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29454 checks for infinite_cost overflow.
29456 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29458 PR tree-optimization/90021
29459 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29460 and check univariate against it.
29461 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29462 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29464 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29468 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29471 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29474 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29476 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29478 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29480 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29481 names using operand format, rather than hard-wired.
29482 (speculation_barrier): Likewise.
29484 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29486 PR tree-optimization/88055
29487 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29488 (gen_one_condition): Use it if !HONOR_NANS.
29490 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29492 PR middle-end/90139
29493 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29494 assign_temp instead of gen_reg_rtx.
29496 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29498 PR translation/90118
29499 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29500 Add missing space before %<.
29502 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29504 PR rtl-optimization/87871
29505 * ira-lives.c (make_object_dead): Don't add conflicts to
29506 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29508 2019-04-18 Martin Sebor <msebor@redhat.com>
29510 PR middle-end/89797
29511 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29512 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29513 assuming type size fits in SHWI.
29515 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29518 * ipa-inline.c (flatten_function): New parameter UPDATE.
29519 (ipa_inline, early_inliner): Use it.
29521 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29523 * fold-const.c (int_const_binop): Return early on failure.
29525 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29527 PR middle-end/85164
29528 * combine.c (force_int_to_mode): Cast the argument rather than
29529 the result of known_alignment.
29530 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29532 2019-04-18 Richard Biener <rguenther@suse.de>
29535 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29537 (remove_forwarder_block): ... here.
29538 (remove_forwarder_block_with_phi): Also move debug stmts here.
29540 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29542 PR translation/79183
29543 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29544 inform where appropriate.
29546 2019-04-18 Richard Biener <rguenther@suse.de>
29548 * tree.c (get_qualified_type): Put found type variants at the
29549 head of the variant list.
29551 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29553 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29555 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29558 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29559 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29560 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29561 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29562 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29564 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29566 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29567 even for allocno's with no conflicts.
29568 (print_conflicts): Print an extra newline.
29570 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29572 * auto-inc-dec.c (attempt_change): Set the alignment of the
29573 temporary memory to that of the original.
29575 2019-04-17 Joao Moreira <jmoreira@suse.de>
29577 * targhooks.c (default_print_patchable_function_entry): Emit
29578 __patchable_function_entries section with writable flags to allow
29579 relocation resolution.
29581 2019-04-17 Jonny Grant <jg@jguk.org>
29583 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29585 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29587 PR middle-end/90095
29588 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29589 on lowpart SUBREGs.
29591 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29593 * config/arc/arc.c (arc_init): Format diagnostic string.
29594 (arc_override_options): Likewise.
29595 (check_if_valid_regno_const): Likewise.
29596 (arc_reorg): Likewise.
29598 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29601 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29603 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29605 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29606 (*movdi_update1): Use Pmode.
29607 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29608 (movdi_<mode>_update_stack): Rename to ...
29609 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29611 (*movsi_update1): Use Pmode.
29612 (*movsi_update2): Use Pmode.
29613 (movsi_update): Rename to ...
29614 (movsi_<mode>_update): ... this. Use Pmode.
29615 (movsi_update_stack): Fix condition.
29616 (*movhi_update1): Use Pmode. Fix argument to
29617 avoiding_indexed_address_p.
29618 (*movhi_update2): Ditto.
29619 (*movhi_update3): Ditto.
29620 (*movhi_update4): Ditto.
29621 (*movqi_update1): Ditto.
29622 (*movqi_update2): Ditto.
29623 (*movqi_update3): Ditto.
29624 (*movsf_update1, *movdf_update1): Merge, rename to...
29625 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29626 avoiding_indexed_address_p. Add "size" attribute.
29627 (*movsf_update2, *movdf_update2): Merge, rename to...
29628 (*mov<mode>_update2): This. Ditto.
29629 (*movsf_update3): Use Pmode. Fix argument to
29630 avoiding_indexed_address_p.
29631 (*movsf_update4): Ditto.
29632 (allocate_stack): Simplify condition. Adjust pattern names.
29634 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29637 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29638 whitespace at the start of target attribute string.
29640 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29643 * config/rs6000/power9.md: Add store forwarding bypass.
29645 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29648 * valtrack.c (dead_debug_insert_temp): Reset debug references
29649 to the return value of a call being removed.
29651 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29653 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29654 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29655 implement target hook.
29656 (arc_memory_move_cost): New function.
29657 (TARGET_REGISTER_MOVE_COST): Define.
29658 (TARGET_MEMORY_MOVE_COST): Likewise.
29659 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29660 (MEMORY_MOVE_COST): Likewise.
29662 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29664 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29665 (sibcall_value_insn): Likewise.
29666 * config/arc/constraints.md (Rs5): Remove.
29668 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29670 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29671 for last two fake registers.
29672 (arc_conditional_register_usage): Make sure fake frame and arg
29673 pointer regs are in general regs class.
29674 (FRAME_POINTER_MASK): Remove.
29675 (RETURN_ADDR_MASK): Remove.
29676 (arc_must_save_register): Use hard frame regnum.
29677 (frame_restore_reg): Use hard_frame_pointer_rtx.
29678 (arc_save_callee_saves): Likewise.
29679 (arc_restore_callee_saves): Likewise.
29680 (arc_save_callee_enter): Likewise.
29681 (arc_restore_callee_leave): Likewise.
29682 (arc_save_callee_milli): Likewise.
29683 (arc_eh_return_address_location): Likewise.
29684 (arc_check_multi): Use hard frame regnum.
29685 (arc_can_eliminate): Likewise.
29686 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29687 for register allocator.
29688 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29689 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29690 (FRAME_POINTER_REGNUM): Change it to a fake register.
29691 (HARD_FRAME_POINTER_REGNUM): Defined.
29692 (ARG_POINTER_REGNUM): Change it to a new fake register.
29693 (ELIMINABLE_REGS): Update.
29694 (REGISTER_NAMES): Update names.
29695 * config/arc/arc.md (LP_START): Remove.
29696 (LP_END): Likewise.
29697 (shift_si3_loop): Update pattern.
29699 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29701 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29702 to avoid delay slot scheduling.
29703 (arc_must_save_register): Don't save SP.
29704 * config/arc/arc.md (stack_tie): Remove.
29705 (UNSPEC_ARC_STKTIE): Likewise.
29707 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29708 Shiva Chen <shiva0217@gmail.com>
29710 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29711 code gen with large shift amount.
29713 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29715 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29718 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29721 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29722 print -m64/-mx32/-m32 if it is true.
29723 (ix86_debug_options, ix86_function_specific_print): Pass true as
29724 ADD_ABI_P to ix86_target_string.
29725 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29726 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29727 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29729 PR rtl-optimization/90082
29730 * dce.c (can_delete_call): New function.
29731 (deletable_insn_p, mark_insn): Use it.
29733 PR tree-optimization/90090
29734 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29736 (is_division_by_square): Likewise. Formatting fix.
29738 2019-04-16 Richard Biener <rguenther@suse.de>
29740 PR tree-optimization/56049
29741 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29742 equality check if alias-set zero will prevail.
29744 2019-04-15 Jeff Law <law@redhat.com>
29746 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29747 size and alignment as unsigned.
29749 2019-04-15 Richard Biener <rguenther@suse.de>
29752 * tree-loop-distribution.c (destroy_loop): Preserve correct
29755 2019-04-15 Richard Biener <rguenther@suse.de>
29757 PR tree-optimization/90071
29758 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29759 abnormal operands from def stmts.
29761 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29763 PR rtl-optimization/89794
29764 * combine.c (count_auto_inc): New function.
29765 (try_combine): Count how many auto_inc expressions there were in the
29766 original instructions. Ensure we have the same number in the new
29767 instructions. Remove the code that tried to ensure auto_inc side
29768 effects on i1 and i0 are not lost.
29770 2019-04-15 Richard Biener <rguenther@suse.de>
29773 * tree.h (auto_var_p): Declare.
29774 * tree.c (auto_var_p): New function, split out from ...
29775 (auto_var_in_fn_p): ... here.
29776 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29778 (new_var_info): Initialize it.
29779 (set_uids_in_ptset): Also set the shadow variable uid if required.
29780 (ipa_pta_execute): Postprocess points-to solutions assigning
29781 shadow variable uids for locals that may reach their containing
29782 function recursively.
29783 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29784 assert but instead check whether the points-to solution is
29787 2019-04-15 Martin Jambor <mjambor@suse.cz>
29790 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29793 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29795 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29797 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29798 Kito Cheng <kito.cheng@gmail.com>
29799 Shiva Chen <shiva0217@gmail.com>
29801 * config/nds32/nds32-md-auxiliary.c
29802 (nds32_legitimize_pic_address): Use new PIC pattern.
29803 (nds32_legitimize_tls_address): Use new TLS pattern.
29804 (nds32_output_symrel): New.
29805 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29806 (nds32_alloc_relax_group_id): Ditto.
29807 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29808 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29810 (nds32_group_tls_insn): Ditto.
29811 (nds32_group_float_insns): Ditto.
29812 * config/nds32/nds32.md (tls_le): New.
29815 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29817 * configure: Add nds32 target for dwarf2 debug_line checking.
29818 * configure.ac: Regenerated.
29820 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29823 * ipa-devirt.c (skip_in_fields_list_p): New.
29824 (odr_types_equivalent_p): Use it.
29826 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29829 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29830 instead of strncmp when checking for thumb and arm. Formatting fixes.
29832 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29834 * doc/install.texi: Document --with-target-system-zlib.
29836 2019-04-12 Martin Sebor <msebor@redhat.com>
29842 * targhooks.c (default_vector_alignment): Avoid assuming
29843 argument fits in SHWI.
29844 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29845 a shift expression.
29846 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29848 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29850 PR rtl-optimization/89965
29851 * dce.c: Include rtl-iter.h.
29852 (struct check_argument_load_data): New type.
29853 (check_argument_load): New function.
29854 (find_call_stack_args): Check for loads from stack slots still tracked
29855 in sp_bytes and punt if any is found.
29857 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29859 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29861 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29862 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29864 2019-04-12 Martin Liska <mliska@suse.cz>
29866 PR middle-end/89970
29867 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29869 (separate_attrs): Handle multiple 'default's.
29870 (expand_target_clones): Rework error handling code.
29872 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29875 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29876 mode of vector rather than mode of destination for move instruction.
29877 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29878 Use QI inner mode with V16QI vector mode.
29880 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29883 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29884 "invalid %%t operand" in output_operand_lossage message.
29886 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29888 * config/s390/predicates.md (permute_pattern_operand): New
29890 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29891 operand for the permute pattern.
29892 ("*vec_perm<mode>"): New insn definition.
29893 ("bswap<mode>"): Generate the permute pattern operand in the
29894 expander and perform the operand reloads for pre arch13 level
29896 ("*bswap<mode>_emu"): Rename to ...
29897 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29898 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29899 Add the USE operand for the permute pattern.
29900 ("*vec_set_bswap_vec<mode>"): Likewise.
29902 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29905 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29906 and gcc_unreachable if it fails, just call tree_to_uhwi which
29907 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29908 Start warning message with a lower-case letter. Formatting fixes.
29910 PR rtl-optimization/90026
29911 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29912 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29913 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29914 in cfglayout mode, use emit_barrier_after_bb.
29916 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29918 PR rtl-optimization/87763
29919 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29922 2019-04-11 Tom de Vries <tdevries@suse.de>
29924 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29925 max macro using statement expression.
29927 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29929 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29930 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29931 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29932 read_only_private_data_section using xcoff_private_rodata_section_name.
29933 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29935 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29938 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29940 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29942 PR rtl-optimization/89965
29943 * dce.c (sp_based_mem_offset): New function.
29944 (find_call_stack_args): Use sp_based_mem_offset.
29946 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29948 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29950 2019-04-11 Richard Biener <rguenther@suse.de>
29952 PR tree-optimization/90020
29953 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29954 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29955 * tree-ssa-pre.c (compute_avail): Use it to not put
29956 possibly trapping references after a call that might not
29957 return into EXP_GEN.
29958 * gcse.c (compute_hash_table_work): Do not elide
29959 marking a block containing a call if the call might not
29962 2019-04-11 Richard Biener <rguenther@suse.de>
29964 PR tree-optimization/90018
29965 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29966 Test both SLP and interleaving variants.
29968 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29970 * config/s390/8561.md: New file.
29971 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29972 Add arch13 cpu model.
29973 * config/s390/s390-opts.h (enum processor_type): Likewise.
29974 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29975 (s390_get_unit_mask): Likewise.
29976 (s390_is_fpd): Likewise.
29977 (s390_is_fxd): Likewise.
29978 * config/s390/s390.h (s390_tune_attr): Likewise.
29979 * config/s390/s390.md: Include arch13 pipeline description.
29980 * config/s390/s390.opt: Add arch13.
29982 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29984 PR rtl-optimization/87763
29985 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29987 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29989 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29991 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29992 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29993 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29994 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29996 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29998 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29999 "Although" in -fipa-icf documentation.
30001 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
30002 of using multiple -g options.
30004 2019-04-10 Martin Liska <mliska@suse.cz>
30006 PR gcov-profile/89959
30007 * doc/gcov.texi: Make documentation of -x option
30010 2019-04-10 Richard Biener <rguenther@suse.de>
30012 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
30014 (DR_GROUP_SAME_DR_STMT): Remove.
30015 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
30016 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
30017 replace with assert.
30018 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
30019 (vect_record_grouped_load_vectors): Remove unreachable code.
30021 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
30024 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
30025 obsolete reference to N.
30027 2019-04-10 Jakub Jelinek <jakub@redhat.com>
30029 PR middle-end/90025
30030 * expr.c (store_expr): Set properly size on the MEM passed to
30034 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
30035 with strlen in between hostsz-3 and hostsz-1 inclusive when no
30036 translation is needed, and when translation is needed, only append
30037 ... if the string length is hostsz or more bytes long. Avoid using
30040 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
30043 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
30044 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
30046 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
30047 differences directly.
30048 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
30050 2019-04-09 Jakub Jelinek <jakub@redhat.com>
30052 PR translation/90011
30053 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30055 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
30057 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
30058 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
30059 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
30060 trailing space from -gsplit-dwarf diagnostics.
30062 PR tree-optimization/89998
30063 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
30064 instead of integer_type_node if possible, don't add ranges if return
30065 type is not compatible with int.
30066 * gimple-fold.c (gimple_fold_builtin_sprintf,
30067 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
30070 2019-04-09 Martin Liska <mliska@suse.cz>
30072 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
30073 * doc/install.texi: Document the new config.
30075 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
30077 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
30078 use gimple_expr_type for load and store calls. Skip over the
30079 condition argument in a conditional internal function.
30080 Protect use of TREE_INT_CST_LOW.
30082 2019-04-09 Jakub Jelinek <jakub@redhat.com>
30085 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
30086 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
30087 trailing period from it too.
30089 2019-04-08 wu yuan <wuyuan5@huawei.com>
30091 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
30092 * config/aarch64/aarch64.md: Add "tsv110.md".
30093 * config/aarch64/tsv110.md: New file.
30095 2019-04-08 Richard Biener <rguenther@suse.de>
30097 PR tree-optimization/90006
30098 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
30101 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
30104 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
30106 (fma_root_node): Likewise.
30107 (func_fma_steering): Likewise.
30109 2019-04-08 Jakub Jelinek <jakub@redhat.com>
30111 PR rtl-optimization/89865
30112 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
30114 PR rtl-optimization/89865
30115 * config/i386/i386.md
30116 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
30117 numbers not to clash with the additional operands[4].
30118 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
30119 with extra register copy in the middle.
30121 2019-04-08 Martin Liska <mliska@suse.cz>
30123 PR gcov-profile/89961
30124 * doc/gcov.texi: Document data_file.
30125 * gcov.c (generate_results): Add data_info into JSON output.
30127 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
30129 PR tree-optimization/89725
30130 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
30131 loop's chrec as invariant symbol.
30132 * tree-chrec.h (chrec_contains_symbols): New parameter.
30133 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
30134 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
30135 function of loops not in DDR's loop_nest.
30136 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
30138 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
30141 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
30144 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
30147 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
30148 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
30150 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
30152 * sched-deps.c (sched_macro_fuse_insns): Check return value of
30153 targetm.fixed_condition_code_regs.
30155 2019-04-05 Richard Biener <rguenther@suse.de>
30159 * tree-cfgcleanup.c (remove_forwarder_block): Always move
30160 debug bind stmts but reset them if they are not valid at the
30163 2019-04-05 Martin Liska <mliska@suse.cz>
30165 PR translation/89936
30166 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
30167 order to wrap keywords or arguments.
30168 * collect2.c (main): Likewise.
30169 (scan_prog_file): Likewise.
30170 (scan_libraries): Likewise.
30171 * common/config/riscv/riscv-common.c
30172 (riscv_subset_list::parsing_subset_version): Likewise.
30173 (riscv_subset_list::parse_std_ext): Likewise.
30174 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30176 * config/arm/arm.c (arm_option_override): Likewise.
30177 * config/cris/cris.c (cris_print_operand): Likewise.
30178 * config/darwin-c.c (darwin_pragma_options): Likewise.
30179 (darwin_pragma_unused): Likewise.
30180 (darwin_pragma_ms_struct): Likewise.
30181 * config/ft32/ft32.c (ft32_print_operand): Likewise.
30182 * config/i386/i386.c (print_reg): Likewise.
30183 (ix86_print_operand): Likewise.
30184 * config/i386/xm-djgpp.h: Likewise.
30185 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
30186 * config/m32c/m32c.c (m32c_option_override): Likewise.
30187 * config/msp430/msp430.c (msp430_option_override): Likewise.
30188 * config/nds32/nds32.c (nds32_option_override): Likewise.
30189 * config/nvptx/mkoffload.c (main): Likewise.
30190 * config/rx/rx.c (rx_print_operand): Likewise.
30191 (valid_psw_flag): Likewise.
30192 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
30193 (vms_pragma_nomember_alignment): Likewise.
30194 (vms_pragma_extern_model): Likewise.
30195 * lto-wrapper.c (compile_offload_image): Likewise.
30196 * omp-offload.c (oacc_parse_default_dims): Likewise.
30197 * symtab.c (symtab_node::verify_base): Likewise.
30198 * tlink.c (recompile_files): Likewise.
30199 (start_tweaking): Likewise.
30200 * tree-profile.c (parse_profile_filter): Likewise.
30202 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
30204 PR tree-optimization/89956
30205 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
30206 multiple negates of the same value.
30208 2019-04-04 Martin Sebor <msebor@redhat.com>
30210 PR middle-end/89957
30211 PR middle-end/89911
30212 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
30213 have the same precision since the function crashes otherwise.
30214 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30215 has non-zero arguments.
30217 2019-04-04 Martin Sebor <msebor@redhat.com>
30219 PR middle-end/89934
30220 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30221 out if the number of arguments is less than expected.
30223 2019-04-04 Jeff Law <law@redhat.com>
30225 PR rtl-optimization/89399
30226 * ree.c (combine_set_extension): Use single_set rather than
30227 digging into PATTERN for items on the candidate list.
30228 (combine_reaching_defs): Likewise.
30230 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
30232 PR rtl-optimization/46590
30233 * loop-invariant.c (find_defs): Move df_remove_problem and
30234 df_process_deferred_rescans to move_invariants.
30235 Move df_live_add_problem and df_live_set_all_dirty calls
30236 to move_invariants.
30237 (move_invariants): Likewise.
30238 (move_loop_invariants): Likewise, making the df_live calls
30239 conditional on -O. Remove the problem again if we added it
30242 2019-04-03 qing zhao <qing.zhao@oracle.com>
30244 PR tree-optimization/89730
30245 * ipa-inline.c (can_inline_edge_p): Delete the checking for
30246 -flive-patching=inline-only-static.
30247 (can_inline_edge_by_limits_p): Add the checking for
30248 -flive-patching=inline-only-static and grant always_inline
30249 even when -flive-patching=inline-only-static is specified.
30251 2019-04-03 Jeff Law <law@redhat.com>
30253 PR rtl-optimization/81025
30254 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30256 2019-04-03 Richard Biener <rguenther@suse.de>
30258 PR tree-optimization/84101
30259 * tree-vect-stmts.c: Include explow.h for hard_function_value,
30260 regs.h for hard_regno_nregs.
30261 (cfun_returns): New helper.
30262 (vect_model_store_cost): When vectorizing a store to a decl
30263 we return and the function ABI returns in a multi-reg location
30264 account for the possible spilling that will happen.
30266 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
30268 * config/s390/s390.c (s390_legitimate_address_p): Reject long
30269 displacement addresses for vector mode operands.
30271 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
30273 * config/arc/arc.c (GMASK_LEN): Define.
30274 (arc_restore_callee_saves): Restore first blink when
30277 2019-04-03 Sudakshina Das <sudi.das@arm.com>
30279 * doc/extend.texi: Add deprecated comment on sign-return-address
30280 function attribute and add mbranch-protection.
30281 * doc/invoke.texi: Add bti to the options for mbranch-protection.
30283 2019-04-03 Richard Biener <rguenther@suse.de>
30286 * lto-wrapper.c (run_gcc): Avoid implicit rules making
30287 the all target phony.
30289 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
30293 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30294 Return false for variable DImode shifts.
30295 (dimode_scalar_chain::compute_convert_gain): Do not handle
30296 register count operand in variable DImode shifts.
30297 (dimode_scalar_chain::make_vector_copies): Remove support to copy
30298 count argument of a variable shift instruction to a vector register.
30299 (dimode_scalar_chain::convert_reg): Remove support to convert
30300 count argument of a variable shift instruction.
30302 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30304 PR rtl-optimization/84206
30305 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30306 iterating over loop headers.
30308 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30310 PR rtl-optimization/85876
30311 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30312 beyond the original fence.
30314 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
30316 * config.gcc: Mark spu* targets as deprecated/obsolete.
30318 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30320 * config/s390/s390-builtin-types.def: New builtin function type
30321 definitions. Remove unused types.
30322 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30323 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30324 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30325 overloaded builtins.
30326 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30327 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30328 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30329 (vec_double, vec_signed, vec_unsigned): Define to use the new
30330 overloaded builtins.
30331 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30334 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30336 * config/s390/s390-builtin-types.def: New builtin function type
30338 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30339 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30340 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30341 (s390_vstrszh, s390_vstrszf): New low-level builtins.
30342 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30343 constant definitions.
30344 * config/s390/vecintrin.h (vec_search_string_cc)
30345 (vec_search_string_until_zero_cc): New builtin name definitions.
30346 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30348 ("vec_vstrs<mode>"): New insn definition.
30350 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30352 * config/s390/s390-builtin-types.def: Add new builtin function
30354 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30355 New overloaded builtins.
30356 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30358 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30359 (UNSPEC_VEC_SLDBYTE): ... this.
30360 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30361 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30363 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30364 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30365 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30367 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30369 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30370 New insn definition.
30371 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30372 * config/s390/vector.md (V_HW_HSD): ... here.
30374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30376 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30377 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30378 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30379 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30380 New insn definitions.
30382 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30384 * config/s390/s390-builtin-types.def: Add new builtin function type.
30385 * config/s390/s390-builtins.def: Add overloaded builtin
30386 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30387 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30388 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30389 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30390 ("eltswap<mode>"): New expander.
30391 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30394 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30396 * config/s390/s390-builtin-types.def: Add new builtin function types.
30397 * config/s390/s390-builtins.def: Add overloaded builtin
30398 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30400 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30401 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30402 ("bswap<mode>"): New expander.
30403 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30405 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30407 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30408 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30409 vector builtin version number in __VEC__.
30411 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30413 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30415 (SFSI): New mode attribute.
30416 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30417 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30419 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30420 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30421 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30422 ("floatsi<mode>2"): Add wcefb instruction.
30424 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30426 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30427 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30429 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30430 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30431 support 32 bit fp-int conversions. Rename to ...
30432 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30433 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30434 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30435 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30438 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30440 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30441 if-then-else constructs if we can use the select instruction.
30442 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30444 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30446 * config/s390/s390.md ("*popcountdi_arch13_cc")
30447 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30449 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30450 Append _z196 to make it ...
30451 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30452 ("popcounthi2_z196"): ... this.
30453 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30454 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30456 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30458 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30459 certain compares for arch13 in order to make use of the condition
30460 code result produced by the new instructions.
30461 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30462 nxrk, and nxgrk instruction patterns.
30463 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30464 (inv_no): Add new code iterator together with some attributes.
30465 ("*andc_split_<mode>"): Disable splitter for arch13.
30466 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30467 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30468 ("*<ANDOR:bitops_name>c<GPR:mode>")
30469 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30470 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30471 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30472 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30474 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30476 * common/config/s390/s390-common.c (processor_flags_table): New
30478 * config.gcc: Support arch13 with the --with-arch= configure flag.
30479 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30480 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30481 * config/s390/s390.c (s390_get_sched_attrmask)
30482 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30483 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30484 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30485 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30486 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30488 * config/s390/s390.opt: Support arch13 as processor type in
30489 command line options.
30491 2019-04-02 Martin Liska <mliska@suse.cz>
30493 PR translation/89912
30494 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30495 Fix param description of graphite-max-arrays-per-scop.
30497 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30499 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30500 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30501 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30503 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30505 PR rtl-optimization/85412
30506 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30507 sel_sched_region_1, not after.
30509 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30511 PR rtl-optimization/86928
30512 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30513 compute_live if necessary.
30514 (sel_redirect_edge_and_branch): Likewise.
30516 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30518 PR rtl-optimization/89865
30519 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30520 register if it is a part of small class.
30522 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30524 PR rtl-optimization/87273
30525 * sel-sched-ir.c (merge_fences): Remove assert.
30527 2019-04-01 Richard Biener <rguenther@suse.de>
30529 PR tree-optimization/46590
30530 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30531 (dom_walker::m_reachability): Add in place of...
30532 (dom_walker::m_skip_unreachable_blocks): ...this.
30533 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30534 Move complex initialization ...
30535 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30536 lazily and initialize edge flags on each invocation.
30537 (dom_walker::bb_reachable): Use m_reachability.
30539 2019-04-01 Martin Liska <mliska@suse.cz>
30542 * opt-suggestions.c (option_proposer::build_option_suggestions):
30543 Add variant without any argument in order to provide better
30546 2019-04-01 Richard Biener <rguenther@suse.de>
30549 * gimple.c: Include langhooks.h.
30550 (gimple_get_alias_set): Treat enumeral types as the underlying
30553 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30554 Eric Botcazou <ebotcazou@adacore.com>
30556 PR rtl-optimization/89862
30557 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30558 that operates on the full registers for WORD_REGISTER_OPERATIONS
30561 2019-03-29 Jim Wilson <jimw@sifive.com>
30563 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30564 Clear MASK_RVC and then set if C subset supported.
30566 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30569 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30570 non-addressable complit into its initializer if it is volatile.
30572 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30574 * opts-common.c (integral_argument): Set errno properly in one case.
30576 2019-03-29 Martin Liska <mliska@suse.cz>
30578 * doc/invoke.texi: Remove -Wchkp from documentation.
30580 2019-03-29 Martin Liska <mliska@suse.cz>
30582 * dbgcnt.c (print_limit_reach): New function.
30585 2019-03-29 Martin Liska <mliska@suse.cz>
30587 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30588 (dbg_cnt_process_opt): Parse first tokens aas
30589 dbg_cnt_process_single_pair is also using strtok.
30591 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30593 PR rtl-optimization/87485
30594 * function.c (expand_function_end): Move stack_protect_epilogue
30595 before loading of return value into hard register(s).
30597 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30599 PR middle-end/89621
30600 * tree-inline.h (struct copy_body_data): Add
30601 dont_remap_vla_if_no_change flag.
30602 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30603 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30604 and remap_type_2 returns false.
30605 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30606 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30607 only from where it is copied to nested contexts.
30609 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30612 * config/i386/i386.md (RMW operation with LEA peephole):
30613 Use LEAMODE mode attribute instead of SWI mode iterator for
30616 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30619 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30620 Also process XEXP (src, 0) of a shift insn.
30622 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30624 PR middle-end/89725
30625 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30626 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30628 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30630 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30632 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30633 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30634 immediately after first one with df_analyze in between, but rather
30635 process all bbs, queueing ones that need second pass in a worklist,
30636 df_analyze, process queued debug insn changes and if second pass is
30637 needed, process bbs from worklist, df_analyze, process queued debug
30640 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30641 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30642 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30644 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30647 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30650 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30653 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30654 function for 32-bit MS_ABI.
30655 (function_value_ms_32): New function.
30657 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30659 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30660 (movdi): Call gen_movdi_symbol_save_scc.
30661 (gen_movdi_symbol_save_scc): New insn and split.
30663 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30665 PR rtl-optimization/89313
30666 * function.c (matching_constraint_num): New static function.
30667 (match_asm_constraints_1): Use it. Fixup white space and comment.
30668 Don't replace inputs with non-matching constraints which conflict
30669 with early clobber outputs.
30671 2019-03-27 Jeff Law <law@redhat.com>
30673 PR rtl-optimization/87761
30674 PR rtl-optimization/89826
30675 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30677 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30678 note problem to get REG_DEAD/REG_UNUSED notes updated.
30680 2019-03-27 Richard Biener <rguenther@suse.de>
30682 PR tree-optimization/89463
30683 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30684 queue edges to remove.
30685 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30686 dead stmts. Delay edge removal until PHIs are removed to
30687 make debug-stmt creation not confused by seemingly degenerate
30690 2019-03-27 Alan Modra <amodra@gmail.com>
30692 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30694 * config/rs6000/darwin.h: Likewise.
30695 * config/rs6000/rs6000.c: Likewise.
30697 2019-03-27 Alan Modra <amodra@gmail.com>
30699 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30700 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30702 2019-03-26 Andrew Waterman <andrew@sifive.com>
30703 Jim Wilson <jimw@sifive.com>
30705 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30706 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30707 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30708 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30709 (generic_alu): Add auipc to type list.
30710 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30711 (riscv_microarchitecture): Declare.
30712 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30713 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30715 (riscv_microarchitecture): New.
30716 (sifive_7_tune_info): New.
30717 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30718 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30720 (riscv_store_data_bypass_p): New.
30721 (riscv_option_override): Set riscv_microarchitecture from
30722 cpu->microarchitecture.
30723 * config/riscv/riscv.md: Include sifive-7.md.
30726 (auipc<mode>): Change type to auipc.
30727 (restore_stack_nonlocal): New.
30728 * config/riscv/sifive-7.md: New.
30729 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30731 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30734 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30735 Also process XEXP (src, 0) of a shift insn.
30737 2019-03-26 Richard Biener <rguenther@suse.de>
30739 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30740 (copy_debug_stmt): Likewise.
30741 (expand_call_inline): Likewise.
30742 (copy_bb): Avoid redundant lookup & set of gimple_block.
30743 * gimple-low.c (lower_gimple_return): Likewise.
30744 (lower_builtin_setjmp): Likewise.
30746 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30748 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30749 is constant 0, turn into static const data member initialized to false.
30750 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30751 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30753 2019-03-26 Jason Merrill <jason@redhat.com>
30754 Jakub Jelinek <jakub@redhat.com>
30756 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30758 (mem_alloc_description::release_object_overhead): Fix comment typos.
30759 * hash-table.h (hash_table::~hash_table): Call
30760 release_instance_overhead only if m_entries is non-NULL, otherwise
30761 call unregister_descriptor.
30763 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30765 PR tree-optimization/81740
30766 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30767 In case of outer loop vectorization, check for backward dependence
30768 at the inner loop if outer loop dependence is reversed.
30770 2019-03-26 Alan Modra <amodra@gmail.com>
30772 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30773 rs6000_vector_mem init. Correct wI and wJ comment.
30775 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30777 PR rtl-optimization/88347
30778 PR rtl-optimization/88423
30779 * sched-deps.c (sched_analyze_insn): Take into account that for
30780 tablejumps the barrier appears after a label and a jump_table_data.
30782 2019-03-25 Martin Sebor <msebor@redhat.com>
30785 * c-common.c (check_user_alignment): Rename local. Correct maximum
30786 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30787 convert it to UHWI when it fits.
30789 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30792 * dwarf2out.c (premark_used_variables): New function.
30793 (prune_unused_types_walk): Do not mark not premarked external
30795 (prune_unused_types): Call premark_used_variables.
30797 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30799 PR rtl-optimization/89676
30800 * lra-constraints.c (curr_insn_transform): Do match reload for
30801 early clobbers when the match was successful only for different
30804 2019-03-25 Martin Sebor <msebor@redhat.com>
30806 * doc/extend.texi (Common Type Attributes): Document vector_size.
30807 (Common Variable Attributes): Mention size constraint. Correct
30809 (Vector Extensions): Use @dfn when defining bas type. Clarify
30810 base type and size constraints.
30812 2019-03-25 Richard Biener <rguenther@suse.de>
30814 PR tree-optimization/89789
30815 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30816 changes from non-undefined back to undefined.
30818 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30820 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30821 heap string and a gc string, but since this variable is unknown to
30822 ggc the gc string might get reused and corrupted. Fixed by always
30823 using a heap string.
30825 2019-03-25 Richard Biener <rguenther@suse.de>
30827 PR tree-optimization/89779
30828 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30829 to remove IV defs, delay actual removal.
30830 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30831 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30832 very end, properly also reset loop control IV information.
30834 2019-03-25 Richard Biener <rguenther@suse.de>
30836 PR tree-optimization/89802
30837 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30838 move EH data to folded stmt.
30840 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30842 * config/s390/s390-builtin-types.def: Remove few unused types and
30843 fix sort order for others.
30845 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30847 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30848 expected and found types with -mdebug during builtin matching.
30850 2019-03-25 Richard Biener <rguenther@suse.de>
30852 PR middle-end/89790
30853 * fold-const.c (operand_equal_p): Revert last change with
30856 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30858 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30859 notes for the result of the __tls_get_addr calls.
30860 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30862 2019-03-24 Jeff Law <law@redhat.com>
30864 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30866 PR rtl-optimization/87761
30867 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30868 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30870 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30871 rescans. Reprocess blocks as needed, calling df_analyze before
30872 reprocessing. Always call df_analyze before fixing up debug bind
30875 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30877 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30880 2019-03-22 Andrew Pinski <apinski@marvell.com>
30882 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30883 attrribute for uxtw.
30885 2019-03-26 Jeff Law <law@redhat.com>
30887 PR rtl-optimization/87761
30888 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30889 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30890 (mips_split_move): Accept new INSN argument. Try to forward SRC
30891 into the next instruction.
30892 (mips_split_move_insn): Pass INSN through to mips_split_move.
30894 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30896 PR rtl-optimization/89676
30897 * lra-constraints.c (curr_insn_transform): Do match reload for
30898 early clobbers even if the match was successful.
30900 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30903 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30905 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30907 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30909 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30911 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30912 <avx512>_fmsub_<mode>_mask3<round_name>,
30913 <avx512>_fnmadd_<mode>_mask3<round_name>,
30914 <avx512>_fnmsub_<mode>_mask3<round_name>,
30915 avx512f_vmfmadd_<mode>_mask3<round_name>,
30916 avx512f_vmfmsub_<mode>_mask3<round_name>,
30917 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30918 instead of register_operand and %v instead of v for match_operand 1.
30919 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30920 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30921 <round_nimm_predicate> instead of register_operand and %v instead of v
30922 for match_operand 1.
30924 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30925 <avx512>_fmadd_<mode>_mask3<round_name>,
30926 <avx512>_fmsub_<mode>_mask<round_name>,
30927 <avx512>_fmsub_<mode>_mask3<round_name>,
30928 <avx512>_fnmadd_<mode>_mask<round_name>,
30929 <avx512>_fnmadd_<mode>_mask3<round_name>,
30930 <avx512>_fnmsub_<mode>_mask<round_name>,
30931 <avx512>_fnmsub_<mode>_mask3<round_name>,
30932 <avx512>_fmaddsub_<mode>_mask<round_name>,
30933 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30934 <avx512>_fmsubadd_<mode>_mask<round_name>,
30935 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30936 <round_nimm_predicate> instead of nonimmediate_operand.
30937 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30938 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30939 Use register_operand instead of <round_nimm_predicate> for the
30940 operand that needs to match output.
30941 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30942 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30943 Likewise. Formatting fixes.
30946 * config/i386/i386.c (enum ix86_builtins): Remove
30947 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30948 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30949 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30950 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30951 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30952 __builtin_ia32_vfmsubss3_mask3): New builtins.
30953 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30954 avx512f_vmfmadd_<mode>_mask3<round_name>,
30955 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30956 *avx512f_vmfmsub_<mode>_mask<round_name>,
30957 avx512f_vmfmsub_<mode>_mask3<round_name>,
30958 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30959 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30960 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30961 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30962 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30963 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30964 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30965 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30966 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30967 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30968 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30969 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30970 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30971 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30972 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30973 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30974 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30975 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30976 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30977 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30978 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30979 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30980 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30981 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30982 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30983 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30984 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30985 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30987 2019-03-21 Martin Sebor <msebor@redhat.com>
30989 PR tree-optimization/89350
30990 * builtins.c (compute_objsize): Also ignore offsets whose upper
30992 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30993 (builtin_memref::builtin_memref): Initialize new member.
30994 Allow EXPR to be null.
30995 (builtin_memref::extend_offset_range): Replace local with a member.
30996 Avoid assuming pointer offsets are unsigned.
30997 (builtin_memref::set_base_and_offset): Determine base object
30998 before computing offset range.
30999 (builtin_access::builtin_access): Handle memset.
31000 (builtin_access::generic_overlap): Replace local with a member.
31001 (builtin_access::strcat_overlap): Same.
31002 (builtin_access::overlap): Same.
31003 (maybe_diag_overlap): Same.
31004 (maybe_diag_access_bounds): Same.
31005 (wrestrict_dom_walker::check_call): Handle memset.
31006 (check_bounds_or_overlap): Same.
31008 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
31009 Jakub Jelinek <jakub@redhat.com>
31012 * tree.c (fld_type_variant, fld_incomplete_type_of,
31013 fld_process_array_type): Call fld->pset.add and don't call
31014 add_tree_to_fld_list if it returns true.
31015 (free_lang_data_in_type): Similarly with self-recursive call. Purge
31016 non-marked types from TYPE_NEXT_VARIANT list.
31017 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
31019 2019-03-21 Jakub Jelinek <jakub@redhat.com>
31021 * hash-table.h (hash_table): Add Lazy template parameter defaulted
31022 to false, if true, don't alloc_entries during construction, but defer
31023 it to the first method that needs m_entries allocated.
31024 (hash_table::hash_table, hash_table::~hash_table,
31025 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
31026 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
31027 hash_table::clear_slot, hash_table::traverse_noresize,
31028 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
31029 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
31031 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
31032 NO_INSERT instead of find_with_hash.
31033 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
31034 hash_set::m_table): Add Lazy to template params of hash_table.
31035 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
31036 * attribs.c (test_attribute_exclusions): Likewise.
31037 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
31038 hash_set. Add tests for hash_set with Lazy = true.
31040 2019-03-21 Richard Biener <rguenther@suse.de>
31042 PR tree-optimization/89779
31043 * tree.c (tree_nop_conversion): Consolidate and fix defensive
31044 checks with respect to released SSA names now having error_mark_node
31046 * fold-const.c (operand_equal_p): Likewise.
31048 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
31051 * config/s390/s390.c (global_not_special_regno_p): Move to make it
31053 (s390_optimize_register_info): Use global_not_special_regno_p to
31054 check for global regs.
31056 2019-03-20 Jakub Jelinek <jakub@redhat.com>
31059 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
31060 update this_alternative nor this_alternative_set.
31062 2019-03-19 Jim Wilson <jimw@sifive.com>
31065 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
31066 align, size, offset. Use them to handle a BLKmode reference. Update
31068 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
31070 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31072 PR rtl-optimization/89768
31073 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
31074 instead of GEN_INT.
31075 (unroll_loop_runtime_iterations): Likewise.
31077 2019-03-19 Martin Sebor <msebor@redhat.com>
31079 PR tree-optimization/89644
31080 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
31081 rather than endptr as an indicator of nul-termination.
31083 PR tree-optimization/89644
31084 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
31085 arrays in determining sequence sizes in strncpy and stpncpy.
31087 2019-03-19 Martin Liska <mliska@suse.cz>
31089 PR middle-end/89737
31090 * predict.c (combine_predictions_for_bb): Empty likely_edges and
31091 unlikely_edges if there's an edge that belongs to both these sets.
31093 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
31096 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
31097 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
31098 go via a stack temporary.
31100 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31103 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
31104 instead of gen_rtx_SUBREG.
31105 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
31107 2019-03-19 Richard Biener <rguenther@suse.de>
31110 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
31112 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
31116 * tree.c (free_lang_data_in_decl): Do not free context of C++
31119 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31122 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
31123 subs for the first alternative except when operands[3] is 1.
31126 * gimplify.c (gimplify_asm_expr): For output argument with
31127 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
31130 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
31132 PR rtl-optimization/89753
31133 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31134 explicit unrolling factor even more robust.
31136 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31139 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
31140 compensation use x2 += 1 instead of x2 -= -1 and when honoring
31141 signed zeros, do another copysign after the compensation.
31143 2019-03-18 Martin Sebor <msebor@redhat.com>
31145 PR tree-optimization/89720
31146 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
31147 more conservatively, the same as anti-range.
31149 2019-03-18 Richard Biener <rguenther@suse.de>
31151 PR middle-end/88945
31152 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
31153 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
31154 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
31155 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
31157 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
31159 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
31160 Extend queue to 1024 entries.
31161 Add "consumed" field.
31162 (gomp_print_output): Remove print_index parameter.
31163 Add final parameter.
31164 Change limit to unsigned.
31165 Use consumed field to implement circular buffer.
31166 Detect interrupted print in final pass.
31167 Flush output at the end.
31168 (run): Update gomp_print_output usage.
31169 (main): Initialize kernargs->output_data.consumed.
31171 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
31173 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
31174 calculation of the minimum number of scalar iterations for
31175 fully-predicated loops.
31177 2019-03-18 Martin Jambor <mjambor@suse.cz>
31179 PR tree-optimization/89546
31180 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
31181 any propagation to its children took place.
31183 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
31186 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
31187 parameter, and make use of it.
31188 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
31190 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31192 * config/arc/arc.opt (mcode-density-frame): Get the inital value
31193 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
31194 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31195 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31196 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
31197 match what the ops is doing.
31198 (push_multi_fp_blink): Likewise.
31199 * config/arc/arc.c (arc_override_options): Enable enter/leave when
31200 compiling for size and elf target.
31201 (arc_save_callee_enter): Adjust note to match what enter/leave
31204 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31206 * config/arc/arc.md (tst_movb): Fix constraint.
31208 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31210 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
31212 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31214 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31215 * config/arc/arc.c (arc_conditional_register_usage): Remove all
31216 reg_alloc_order references.
31217 (size_alloc_order): Define.
31218 (arc_adjust_reg_alloc_order): New function.
31219 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31221 (ADJUST_REG_ALLOC_ORDER): Define.
31222 (HONOR_REG_ALLOC_ORDER): Likewise.
31224 2019-03-18 Richard Biener <rguenther@suse.de>
31227 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31228 loads and stores a bit more.
31230 2019-03-18 Richard Biener <rguenther@suse.de>
31233 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31234 load pessimization to stores as well.
31236 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
31238 PR middle-end/86979
31239 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31240 successor, use NULL as its av set.
31242 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
31244 PR rtl-optimization/89721
31245 * lra-constraints (invariant_p): Return false if side_effects_p holds.
31247 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
31250 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31251 When handling vec_extract, use modular arithmetic to allow
31252 constant selectors greater than vector length.
31253 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31254 V1TImode vectors to have constant selector values greater than 0.
31255 Use modular arithmetic to compute vector index.
31256 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31257 index for in-memory vectors. Correct code generation for
31258 in-register vectors.
31259 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31262 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
31266 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31269 2019-03-15 Jakub Jelinek <jakub@redhat.com>
31272 * tree.c (inchash::add_expr): Strip any location wrappers.
31273 * fold-const.c (operand_equal_p): Move stripping of location wrapper
31274 after hash verification.
31277 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31278 SIGN_EXTEND and ZERO_EXTEND.
31280 2019-03-14 Jason Merrill <jason@redhat.com>
31281 Jakub Jelinek <jakub@redhat.com>
31283 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31284 than if is_empty (*slot).
31285 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31286 existing elt and for elt removal.
31287 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31288 of already removed elt.
31290 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
31293 * config/i386/i386.c (remove_partial_avx_dependency): Handle
31294 REG_EH_REGION note.
31296 2019-03-14 Martin Liska <mliska@suse.cz>
31299 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31301 2019-03-14 Richard Biener <rguenther@suse.de>
31304 * config/i386/i386.c (make_resolver_func): Properly set
31305 DECL_CONTEXT on the RESULT_DECL.
31306 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31308 2019-03-14 Richard Biener <rguenther@suse.de>
31310 * gimple-pretty-print.c: Include cfgloop.h.
31311 (dump_gimple_phi): Adjust.
31312 (dump_gimple_bb_header): Dump loop header for GIMPLE.
31313 (pp_cfg_jump): Adjust.
31314 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31315 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31316 (lower_phi_internal_fn): Remove.
31317 (verify_gimple_call): Remove IFN_PHI special-casing.
31318 (dump_function_to_file): Dump IL state.
31319 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31320 done to deal with PHI nodes being present in non-SSA state.
31322 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31325 * multiple_target.c (create_dispatcher_calls): Change
31326 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31327 In the node->iterate_referring loop, push *ref rather than ref, call
31328 ref->remove_reference () and always pass 0 to iterate_referring.
31330 PR rtl-optimization/89679
31331 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31332 would contain a paradoxical SUBREG.
31334 2019-03-14 Richard Biener <rguenther@suse.de>
31336 PR tree-optimization/89710
31337 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31340 2019-03-14 Martin Liska <mliska@suse.cz>
31342 * coverage.c (coverage_begin_function): Stream also
31344 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
31345 documentation about function declaration location.
31346 * gcov-dump.c (tag_function): Print whole range
31347 of function declaration.
31348 * gcov.c (struct function_info): Add end_column field.
31349 (function_info::function_info): Initialize it.
31350 (output_json_intermediate_file): Output {start,end}_column
31352 (read_graph_file): Read end_column.
31354 2019-03-14 Richard Biener <rguenther@suse.de>
31356 PR middle-end/89698
31357 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31358 that the access types are similar.
31360 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31362 PR tree-optimization/89703
31363 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31364 aren't compatible also with builtin_decl_explicit. Check pure
31365 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31366 and BUILT_IN_STPNCPY{,_CHK}.
31368 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31371 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31372 addr32 prefix to VSIB address for X32.
31373 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31375 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31376 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31377 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31378 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31379 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31380 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31381 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31382 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31383 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31384 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31385 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31386 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31387 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31388 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31389 (*avx512f_scatterdi<mode>): Likewise.
31391 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31394 * lra-constraints.c (inherit_in_ebb): Update
31395 potential_reload_hard_regs along with live_hard_regs.
31397 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31400 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31402 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31404 2019-03-13 Martin Sebor <msebor@redhat.com>
31406 PR tree-optimization/89662
31407 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31410 2019-03-13 Richard Biener <rguenther@suse.de>
31412 PR middle-end/89677
31413 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31414 throw FP expressions at tree-affine.
31416 2019-03-14 Richard Biener <rguenther@suse.de>
31418 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31419 dump negative integer constants using _Literal (type) -num.
31421 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31423 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31424 nonlocal_value member.
31426 PR middle-end/88588
31427 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31428 (ipa_simd_modify_function_body): Handle PHIs.
31430 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31432 * config/s390/s390.c (s390_option_override_internal): Use more
31433 aggressive inlining parameters.
31435 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31437 * config/s390/3906.md: New file.
31438 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31439 (LONGRUNNING_THRESHOLD): Remove.
31440 (MAX_SCHED_MIX_SCORE): Decrease.
31441 (MAX_SCHED_MIX_DISTANCE): Decrease.
31442 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31443 (struct s390_sched_state): New struct to hold scheduling state.
31444 (S390_SCHED_STATE_NORMAL): Remove.
31445 (S390_SCHED_STATE_CRACKED): Remove.
31446 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31447 (s390_get_sched_attrmask): Use new attribute.
31448 (s390_get_unit_mask): Use new units.
31449 (s390_is_fpd): New function.
31450 (s390_is_fxd): New function.
31451 (s390_is_longrunning): New function.
31452 (s390_sched_score): Use new functions.
31453 (s390_sched_reorder): Likewise.
31454 (s390_sched_variable_issue): Rework and use new functions.
31455 (s390_sched_init): Use new functions.
31456 * config/s390/s390.h (s390_tune_attr): Add z14.
31457 * config/s390/s390.md: Add z14.
31459 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31461 * config/s390/2964.md: Update pipeline description.
31462 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31463 (LONGRUNNING_THRESHOLD): Remove.
31464 (LATENCY_FACTOR): Remove.
31465 (s390_get_unit_mask): Add unit.
31466 (s390_sched_score): Use fxd/fpd.
31467 (s390_sched_variable_issue): Use fxd/fpd.
31469 2019-03-12 Martin Liska <mliska@suse.cz>
31471 * config/i386/i386.c: Reword an error message.
31473 2019-03-12 Martin Jambor <mjambor@suse.cz>
31475 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31476 terminate with newline.
31478 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31481 * config/s390/s390.md (tabort): Use %wd instead of
31482 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31483 letters and periods.
31484 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31485 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31488 PR middle-end/89663
31489 * builtins.c (expand_builtin_int_roundingfn,
31490 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31491 gcc_unreachable if validate_arglist fails.
31493 2019-03-12 Richard Biener <rguenther@suse.de>
31495 PR tree-optimization/89664
31496 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31497 free the occurance tree after the early out.
31499 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31501 PR middle-end/89655
31503 * vr-values.c (vr_values::update_value_range): If
31504 old_vr->varying_p (), don't update it, make new_vr also VARYING
31507 2019-03-11 Martin Liska <mliska@suse.cz>
31509 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31510 Fix double string quoting.
31512 2019-03-11 Martin Liska <mliska@suse.cz>
31514 * collect-utils.c (collect_wait): Wrap apostrophes
31515 in gcc internal format with %'.
31516 * collect2.c (main): Likewise.
31517 (scan_prog_file): Likewise.
31518 (scan_libraries): Likewise.
31519 * config/i386/i386.c (ix86_expand_call): Likewise.
31520 (ix86_handle_interrupt_attribute): Likewise.
31521 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31522 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31523 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31524 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31525 * symtab.c (symtab_node::verify_base): Likewise.
31526 * tree-cfg.c (verify_gimple_label): Likewise.
31527 * tree.c (verify_type_variant): Likewise.
31529 2019-03-11 Martin Liska <mliska@suse.cz>
31531 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31532 in a string format message and fix GNU coding style.
31533 (expand_builtin_set_thread_pointer): Likewise.
31534 * common/config/aarch64/aarch64-common.c
31535 (aarch64_rewrite_selected_cpu): Likewise.
31536 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31537 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31538 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31539 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31540 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31541 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31542 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31543 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31544 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31545 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31547 * common/config/riscv/riscv-common.c
31548 (riscv_subset_list::parsing_subset_version): Likewise.
31549 (riscv_subset_list::parse_std_ext): Likewise.
31550 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31551 (riscv_subset_list::parse): Likewise.
31552 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31553 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31554 (aarch64_override_options_internal): Likewise.
31555 (aarch64_validate_mcpu): Likewise.
31556 (aarch64_validate_march): Likewise.
31557 (aarch64_validate_mtune): Likewise.
31558 (aarch64_override_options): Likewise.
31559 * config/alpha/alpha.c (alpha_option_override): Likewise.
31560 * config/arc/arc.c (arc_init): Likewise.
31561 (parse_mrgf_banked_regs_option): Likewise.
31562 (arc_override_options): Likewise.
31563 (arc_expand_builtin_aligned): Likewise.
31564 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31565 (arm_expand_builtin): Likewise.
31566 * config/arm/arm.c (arm_option_check_internal): Likewise.
31567 (arm_configure_build_target): Likewise.
31568 (arm_option_override): Likewise.
31569 (arm_options_perform_arch_sanity_checks): Likewise.
31570 (arm_handle_cmse_nonsecure_entry): Likewise.
31571 (arm_handle_cmse_nonsecure_call): Likewise.
31572 (arm_tls_referenced_p): Likewise.
31573 (thumb1_expand_prologue): Likewise.
31574 * config/avr/avr.c (avr_option_override): Likewise.
31575 * config/bfin/bfin.c (bfin_option_override): Likewise.
31576 * config/c6x/c6x.c (c6x_option_override): Likewise.
31577 * config/cr16/cr16.c (cr16_override_options): Likewise.
31578 * config/cris/cris.c (cris_option_override): Likewise.
31579 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31580 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31581 * config/darwin.c (darwin_override_options): Likewise.
31582 * config/frv/frv.c (frv_expand_builtin): Likewise.
31583 * config/h8300/h8300.c (h8300_option_override): Likewise.
31584 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31585 (ix86_option_override_internal): Likewise.
31586 (warn_once_call_ms2sysv_xlogues): Likewise.
31587 (ix86_expand_prologue): Likewise.
31588 (split_stack_prologue_scratch_regno): Likewise.
31589 (ix86_warn_parameter_passing_abi): Likewise.
31590 * config/ia64/ia64.c (fix_range): Likewise.
31591 * config/m68k/m68k.c (m68k_option_override): Likewise.
31592 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31593 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31594 (mips_set_compression_mode): Likewise.
31595 * config/mmix/mmix.c (mmix_option_override): Likewise.
31596 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31597 * config/msp430/msp430.c (msp430_option_override): Likewise.
31598 * config/nds32/nds32.c (nds32_option_override): Likewise.
31599 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31600 (nios2_option_override): Likewise.
31601 (nios2_expand_custom_builtin): Likewise.
31602 * config/nvptx/mkoffload.c (main): Likewise.
31603 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31604 * config/pa/pa.c (fix_range): Likewise.
31605 (pa_option_override): Likewise.
31606 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31607 (riscv_option_override): Likewise.
31608 * config/rl78/rl78.c (rl78_option_override): Likewise.
31609 * config/rs6000/aix61.h: Likewise.
31610 * config/rs6000/aix71.h: Likewise.
31611 * config/rs6000/aix72.h: Likewise.
31612 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31613 * config/rs6000/freebsd64.h: Likewise.
31614 * config/rs6000/linux64.h: Likewise.
31615 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31616 (rs6000_expand_zeroop_builtin): Likewise.
31617 (rs6000_expand_mtfsb_builtin): Likewise.
31618 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31619 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31620 (rs6000_invalid_builtin): Likewise.
31621 (rs6000_expand_split_stack_prologue): Likewise.
31622 * config/rs6000/rtems.h: Likewise.
31623 * config/rx/rx.c (valid_psw_flag): Likewise.
31624 (rx_expand_builtin): Likewise.
31625 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31626 * config/s390/s390.c (s390_expand_builtin): Likewise.
31627 (s390_function_profiler): Likewise.
31628 (s390_option_override_internal): Likewise.
31629 (s390_option_override): Likewise.
31630 * config/sh/sh.c (sh_option_override): Likewise.
31631 (sh_builtin_saveregs): Likewise.
31632 (sh_fix_range): Likewise.
31633 * config/sh/vxworks.h: Likewise.
31634 * config/sparc/sparc.c (sparc_option_override): Likewise.
31635 * config/spu/spu.c (spu_option_override): Likewise.
31636 (fix_range): Likewise.
31637 * config/visium/visium.c (visium_option_override): Likewise.
31638 (visium_handle_interrupt_attr): Likewise.
31639 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31640 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31641 (dbg_cnt_process_opt): Likewise.
31642 * dwarf2out.c (output_dwarf_version): Likewise.
31643 * except.c (expand_eh_return): Likewise.
31644 * gcc.c (defined): Likewise.
31645 (driver_handle_option): Likewise.
31646 (process_command): Likewise.
31647 (compare_files): Likewise.
31648 (driver::prepare_infiles): Likewise.
31649 (driver::do_spec_on_infiles): Likewise.
31650 (driver::maybe_run_linker): Likewise.
31651 * omp-offload.c (oacc_parse_default_dims): Likewise.
31652 * opts-global.c (handle_common_deferred_options): Likewise.
31653 * opts.c (parse_sanitizer_options): Likewise.
31654 (common_handle_option): Likewise.
31655 (enable_warning_as_error): Likewise.
31656 * passes.c (enable_disable_pass): Likewise.
31657 * plugin.c (parse_plugin_arg_opt): Likewise.
31658 (default_plugin_dir_name): Likewise.
31659 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31660 (default_pch_valid_p): Likewise.
31661 * toplev.c (init_asm_output): Likewise.
31662 (process_options): Likewise.
31663 (toplev::run_self_tests): Likewise.
31664 * tree-cfg.c (verify_gimple_call): Likewise.
31665 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31666 (tree_inlinable_function_p): Likewise.
31667 * var-tracking.c (vt_find_locations): Likewise.
31669 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31671 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31672 only on the else branch.
31674 2019-03-11 Martin Liska <mliska@suse.cz>
31676 * gcov.c (output_intermediate_json_line): Print function
31678 (output_json_intermediate_file): Add new argument.
31679 * doc/gcov.texi: Document the change.
31681 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31683 PR rtl-optimization/89588
31684 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31685 explicit unrolling factor more robust.
31687 2019-03-11 Richard Biener <rguenther@suse.de>
31689 PR tree-optimization/89649
31690 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31691 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31692 on the prolog and epilog loops.
31693 (vect_loop_versioning): Return copy of loop.
31694 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31695 on the non-vectorized version of the loop.
31697 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31700 * config/i386/sse.md (*vec_extractv2di_0_sse):
31701 Add (=r,x) alternative and corresponding splitter.
31703 2019-03-10 Martin Jambor <mjambor@suse.cz>
31705 PR tree-optimization/85762
31706 PR tree-optimization/87008
31707 PR tree-optimization/85459
31708 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31709 it points to if there is a type changing MEM_REF. Adjust all callers.
31710 (build_accesses_from_assign): Disable total scalarization if
31711 contains_vce_or_bfcref_p returns true through the new parameter, for
31714 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31717 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31718 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31721 * common.opt (fdiagnostics-show-labels,
31722 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31723 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31724 gas-locview-support, ginline-points, ginternal-reset-location-views):
31725 Terminate description text with a dot.
31726 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31727 * config/mcore/mcore.opt (m210, m340): Likewise.
31728 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31729 mnops=): Start description text with a capital letter.
31730 * config/arc/arc.opt (msize-level=): Likewise.
31731 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31732 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31733 mnewlib): Likewise.
31734 * config/ft32/ft32.opt (msim): Likewise.
31735 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31736 (mnodiv, mnopm): Terminate description text with a dot.
31737 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31739 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31741 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31744 PR rtl-optimization/89634
31745 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31746 are modified in BB_END (e->src) instruction.
31748 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31751 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31752 messages more amenable to translation, and improve wording.
31754 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31756 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31757 ud- and du-chains between phases.
31759 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31762 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31763 instead of POLY_INT_CST.
31765 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31767 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31770 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31775 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31776 (_mm_storeu_si64): Ditto.
31778 2019-03-08 Martin Liska <mliska@suse.cz>
31781 * config/i386/i386.c (ix86_option_override_internal): Disable
31782 jump tables when retpolines are used.
31784 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31787 * ipa-split.c (execute_split_functions): Do not split
31788 'noinline' or 'section' function.
31790 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31793 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31794 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31795 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31798 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31799 from diagnostics. Formatting fixes.
31802 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31803 warn_odr diagnostics.
31806 * lra-constraints.c (process_alt_operands): Avoid one space before
31807 " at the end of line and another after " on another line in a string
31809 * attribs.c (handle_dll_attribute): Likewise.
31810 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31812 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31813 warning_at or inform messages in G_() if there is no ?:.
31815 PR tree-optimization/89550
31816 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31817 returned true. Formatting fixes.
31818 (expand_builtin_strnlen): Formatting fixes.
31819 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31820 if warning_at returned true.
31821 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31823 2019-03-08 Richard Biener <rguenther@suse.de>
31825 PR middle-end/89578
31826 * cfgloop.h (struct loop): Add owned_clique field.
31827 * cfgloopmanip.c (copy_loop_info): Copy it.
31828 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31830 * tree-inline.c (copy_loops): Remap owned_clique.
31831 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31832 * lto-streamer-out.c (output_cfg): Likewise.
31834 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31837 * config/darwin.c: Include intl.h.
31838 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31839 composing the message out of two separate parts.
31841 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31844 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31845 doesn't start with a capital letter and doesn't end with a dot.
31846 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31847 with a capital letter.
31848 (ix86_mangle_function_version_assembler_name): Likewise.
31849 (ix86_generate_version_dispatcher_body): Likewise.
31850 (fold_builtin_cpu): Likewise.
31851 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31852 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31853 translators, wrap full type name in %qs.
31855 PR translation/79999
31856 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31857 depend clause with source (or sink) modifier.
31858 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31861 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31862 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31863 (avx512f_load<mode>_mask): New define_expand.
31864 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31865 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31866 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31867 __builtin_ia32_movess_mask): New builtins.
31868 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31869 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31870 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31871 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31873 2019-03-07 Martin Jambor <mjambor@suse.cz>
31876 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31877 for extern inline functions.
31879 2019-03-07 Martin Jambor <mjambor@suse.cz>
31882 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31883 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31884 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31885 have multiple callees. At the end check if declarations match as
31886 opposed to cgraph_nodes.
31888 2019-03-07 Martin Liska <mliska@suse.cz>
31890 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31891 which is equivalent to searching for this in clones chain.
31892 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31893 names with a neighbour and special case first node in a chain.
31895 2019-01-25 Jason Merrill <jason@redhat.com>
31897 PR c++/80916 - spurious "static but not defined" warning.
31898 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31899 for an internal symbol with DECL_EXTERNAL.
31901 2019-04-07 Richard Biener <rguenther@suse.de>
31903 PR middle-end/89618
31904 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31905 * tree-inline.c (copy_loops): Simplify.
31907 2019-03-07 Martin Liska <mliska@suse.cz>
31909 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31911 2019-03-07 Richard Biener <rguenther@suse.de>
31913 PR tree-optimization/89595
31914 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31915 stmt iterator as reference, take boolean output parameter to
31916 indicate whether the stmt was removed and thus the iterator
31918 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31919 stmts created by folding.
31921 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31924 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31927 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31929 PR rtl-optimization/88845
31930 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31932 * lra.c (remove_scratches_1): New function.
31933 (remove_scratches): Use it.
31934 (lra_emit_move): Likewise.
31936 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31938 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31939 unaligned_access variable.
31940 * config/arc/arc.c (arc_override_options): Set unaligned access
31941 default on for HS CPUs.
31942 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31944 2019-03-06 Martin Liska <mliska@suse.cz>
31946 PR gcov-profile/89577
31947 * doc/gcov.texi: Prefer to use --coverage.
31948 * doc/sourcebuild.texi: Likewise.
31950 2019-03-02 Jason Merrill <jason@redhat.com>
31952 PR c++/86485 - -Wmaybe-unused with empty class ?:
31953 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31955 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31958 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31961 PR middle-end/89590
31962 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31963 exactly one argument.
31965 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31966 Richard Sandiford <richard.sandiford@arm.com>
31968 PR tree-optimization/89570
31969 * match.pd (vec_cond into cond_op simplification): Don't use
31970 get_conditional_internal_fn, use as_internal_fn (cond_op).
31972 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31975 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31976 to decide when to split off a non-zero offset from a symbol.
31977 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31978 in function symbols.
31980 2019-03-05 Richard Biener <rguenther@suse.de>
31982 PR tree-optimization/89594
31983 * tree-if-conv.c (pass_if_conversion::execute): Handle
31984 case where .LOOP_VECTORIZED_FUNCTION was removed.
31986 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31989 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31990 instead alloca it only when needed with the needed size.
31992 PR tree-optimization/89570
31993 * match.pd (vec_cond into cond_op simplification): Guard with
31994 vectorized_internal_fn_supported_p test and #if GIMPLE.
31996 PR tree-optimization/89566
31997 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31998 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31999 Punt if get_user_idx_format succeeds, but idx_format argument is
32000 not provided or doesn't have pointer type, or if idx_args is above
32001 number of provided arguments.
32003 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
32005 PR tree-optimization/89437
32006 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
32008 2019-03-04 Richard Biener <rguenther@suse.de>
32010 PR middle-end/89572
32011 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
32014 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
32016 PR tree-optimization/89487
32017 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
32018 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
32019 (distribute_loop): Don't do runtime alias check if there is non-
32020 addressable data reference.
32021 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
32022 is a register variable.
32024 2019-03-02 Jakub Jelinek <jakub@redhat.com>
32027 * config/arm/arm.md (cmpsi2_addneg): Use
32028 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
32029 If operands[2] is 0 or INT_MIN, force use of subs.
32030 (*compare_scc splitter): Use gen_int_mode.
32031 (*negscc): Likewise.
32032 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
32034 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
32035 Monk Chiang <sh.chiang04@gmail.com>
32037 * common/config/riscv/riscv-common.c: Include sstream.
32038 (riscv_subset_list::to_string): New.
32039 (riscv_arch_str): Likewise.
32040 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
32041 * config.in: Regen.
32042 * config/riscv/riscv-protos.h (riscv_arch_str): New.
32043 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
32044 (riscv_emit_attribute): New.
32045 (riscv_file_start): Emit attribute if needed.
32046 (riscv_option_override): Init riscv_emit_attribute_p.
32047 * config/riscv/riscv.opt (mriscv-attribute): New option.
32048 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
32049 * configure: Regen.
32050 * doc/install.texi: Document --with-riscv-attribute.
32051 * doc/invoke.texi: Document -mriscv-attribute.
32053 * common/config/riscv/riscv-common.c:
32054 Include config/riscv/riscv-protos.h.
32055 (INCLUDE_STRING): Defined.
32056 (RISCV_DONT_CARE_VERSION): Defined.
32057 (riscv_subset_t): Declare.
32058 (riscv_subset_t::riscv_subset_t): New.
32059 (riscv_subset_list): Declare.
32060 (riscv_subset_list::riscv_subset_list): New.
32061 (riscv_subset_list::~riscv_subset_list): Likewise.
32062 (riscv_subset_list::parsing_subset_version): Likewise.
32063 (riscv_subset_list::parse_std_ext): Likewise.
32064 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
32065 (riscv_subset_list::add): Likewise.
32066 (riscv_subset_list::lookup): Likewise.
32067 (riscv_subset_list::xlen): Likewise.
32068 (riscv_subset_list::parse): Likewise.
32069 (riscv_supported_std_ext): Likewise.
32070 (current_subset_list): Likewise.
32071 (riscv_parse_arch_string): Using riscv_subset_list::parse to
32074 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
32076 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32077 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
32078 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
32080 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
32082 PR rtl-optimization/85899
32083 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
32084 fallthru edges leading to the exit block.
32086 2019-03-01 Tamar Christina <tamar.christina@arm.com>
32089 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
32090 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
32092 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
32094 PR tree-optimization/89535
32095 * tree-vect-stmts.c (vectorizable_call): Record the vector types
32096 for each operand. Calculate the fallback choice for mask operands
32097 and pass it to vect_get_vec_def_for_operand.
32099 2019-03-01 Richard Biener <rguenther@suse.de>
32101 PR middle-end/89541
32102 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
32103 get virtual operands.
32104 (get_expr_operands): Handle CONST_DECL like other decls.
32106 2019-03-01 Jakub Jelinek <jakub@redhat.com>
32108 PR middle-end/89503
32109 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
32110 on DECL_P and EXPR_P.
32112 2019-03-01 Richard Biener <rguenther@suse.de>
32114 PR middle-end/89497
32115 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
32116 argument, defaulted to zero.
32117 * passes.c (execute_function_todo): Pass down SSA update flags
32118 to cleanup_tree_cfg.
32119 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
32120 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
32122 (cleanup_tree_cfg): Get and pass down SSA update flags.
32124 2019-03-01 Jakub Jelinek <jakub@redhat.com>
32127 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
32128 early_lto_debug argument.
32130 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
32132 PR tree-optimization/89536
32133 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
32134 only whether bit #0 of the value is 0 instead of the entire value.
32136 2019-02-28 Marek Polacek <polacek@redhat.com>
32138 PR c++/87068 - missing diagnostic with fallthrough statement.
32139 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
32140 at the end of a seq, save its location to walk_stmt_info.
32141 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
32144 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
32147 * tree.c (find_atomic_core_type): Move ahead in file.
32148 (check_base_type): Correctly compare alignments of atomic types.
32150 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
32153 * config/i386/i386.c (get_builtin_code_for_version): Identify
32154 Westmere from PCLMUL, instead of AES.
32156 2019-02-28 Jakub Jelinek <jakub@redhat.com>
32159 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
32160 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
32163 2019-02-28 Tamar Christina <tamar.christina@arm.com>
32166 * config/aarch64/aarch64-option-extensions.def: Document it.
32167 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
32170 2019-02-28 Jakub Jelinek <jakub@redhat.com>
32173 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
32174 builtins if they don't have a single scalar floating point argument.
32177 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
32179 PR rtl-optimization/89490
32180 * varasm.c (get_block_for_section): Bail out for mergeable sections.
32181 (default_use_anchors_for_symbol_p, output_object_block): Assert the
32182 block section is not mergeable.
32184 2019-02-27 Jakub Jelinek <jakub@redhat.com>
32187 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
32188 old define_insn to ...
32189 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
32190 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
32191 Rename old define_insn to ...
32192 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
32193 (thumb2_casesi_internal_pic): New define_expand. Rename old
32195 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
32196 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
32197 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
32199 2019-02-27 Richard Biener <rguenther@suse.de>
32202 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
32204 2019-02-27 Richard Biener <rguenther@suse.de>
32206 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
32209 2019-02-27 Richard Biener <rguenther@suse.de>
32212 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
32213 parameter, prefix section name with .gnu.debuglto_ if true.
32214 (dwarf2out_finish): Pass false to output_comdat_type_unit.
32215 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32217 2019-02-27 Richard Biener <rguenther@suse.de>
32220 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32221 rather than on use_debug_types, doing what output_die does.
32222 (value_format): Likewise.
32224 2019-02-27 Martin Jambor <mjambor@suse.cz>
32225 Martin Sebor <msebor@redhat.com>
32227 * doc/invoke.texi (Warning Options): Reword description of
32228 -Wno-absolute-value.
32230 2019-02-27 Jakub Jelinek <jakub@redhat.com>
32232 PR tree-optimization/89280
32233 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32234 builtin_setjmp_setup_bb): New functions.
32235 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32236 When visiting __builtin_setjmp_setup block, queue in special
32237 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32238 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
32239 from visited after the loop if they don't have any visited successor
32242 2018-02-26 Steve Ellcey <sellcey@marvell.com>
32244 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32246 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32248 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32251 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32252 with types other than sizetype/ssizetype.
32254 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32256 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32257 (enum sparc_processor_type): ...this.
32258 (enum sparc_code_model_type): New enumeration type.
32259 (enum sparc_memory_model_type): Tweak comments.
32260 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32262 (mcmodel): Use sparc_code_model enumeration and variable.
32263 (sparc_code_model): New enumeration.
32264 (mdebug): Add Undocumented marker.
32265 * config/sparc/sparc.h (enum cmodel): Delete.
32266 (sparc_cmodel): Likewise.
32267 (TARGET_CM_MEDLOW): Adjust to above renaming.
32268 (TARGET_CM_MEDMID): Likewise.
32269 (TARGET_CM_MEDANY): Likewise.
32270 (TARGET_CM_EMBMEDANY): Likewise.
32271 * config/sparc/sparc.c (sparc_cmodel): Delete.
32272 (sparc_option_override): Remove string/value mapping support for the
32273 code model. Move code and memory model support to after the handling
32274 of target flags. Do private machine setup last.
32275 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32276 (sparc_legitimize_reload_address): Likewise.
32277 (sparc_output_mi_thunk): Likewise.
32278 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32280 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32282 PR tree-optimization/89500
32283 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32284 (handle_builtin_strlen): Remove noncst_bound variable. Always
32285 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
32286 cst if the first cst bytes starting at x are known to be non-zero,
32287 even if the string is not zero terminated. Don't try to modify
32288 *si for strnlen. Update strlen_to_stridx only for strlen or if
32289 we can prove strnlen returns the same value as strlen would.
32291 2019-02-26 Martin Liska <mliska@suse.cz>
32293 * alloc-pool.h (struct pool_usage): Remove extra
32295 * bitmap.h (struct bitmap_usage): Likewise.
32296 * ggc-common.c (struct ggc_usage): Likewise.
32297 * mem-stats.h (struct mem_usage): Likewise.
32298 (mem_alloc_description::dump): Print dash lines
32299 here and repeat header at the end of a table report.
32300 It's then more readable.
32301 * tree-phinodes.c (phinodes_print_statistics): Make
32302 horizontal alignment.
32303 * tree-ssanames.c (ssanames_print_statistics): Likewise.
32304 * vec.c (struct vec_usage): Remove extra print_dash_line.
32305 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32307 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
32309 * doc/extend.texi (__builtin_object_size):
32310 Use @pxref instead of @xref inside parenthesis.
32311 (__builtin_has_attribute): Add missing comma after @xref.
32312 (__builtin_object_size): Ditto.
32313 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32315 2019-02-26 Jeff Law <law@redhat.com>
32317 PR rtl-optimization/87761
32318 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32319 detect obviously dead insns and delete them.
32321 2019-02-26 Richard Biener <rguenther@suse.de>
32323 PR tree-optimization/89505
32324 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32325 to handle restrict pointed-to vars with multiple subvars
32328 2019-02-26 Richard Biener <rguenther@suse.de>
32330 PR tree-optimization/89489
32331 * tree-parloops.c (create_loop_fn): Copy over last_clique.
32333 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32335 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32336 and move around comment.
32337 <BIT_AND_EXPR>: Likewise.
32338 <BIT_NOT_EXPR>: Add specific handling for boolean types.
32340 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32343 * config/i386/i386.c (remove_partial_avx_dependency): Call
32344 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32345 after changing possibly many instructions to use that pseudo. Fix up
32346 insertion of v4sf_const0 setter at the start of bb.
32348 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32351 * doc/extend.texi (Variadic Pointer Args): New section.
32353 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32354 Martin Sebor <msebor@gmail.com>
32356 * common.opt (Wattribute-alias): Likewise.
32357 * doc/invoke.texi (Option Summary): List general form of
32358 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32359 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32360 Add cross-references.
32361 (-Wattribute-alias): Rewrite and correct default. Mention
32362 considered attributes (same as for -Wmissing-attributes).
32364 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32366 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32367 (_mm_cvtpd_ps): Likewise.
32368 (_mm_cvttpd_epi32): Likewise.
32371 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32372 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32375 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32377 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32380 * common/config/aarch64/aarch64-common.c
32381 (struct aarch64_option_extension): Add is_synthetic.
32382 (all_extensions): Use it.
32383 (TARGET_OPTION_INIT_STRUCT): Define hook.
32384 (struct gcc_targetm_common): Moved to end.
32385 (all_extensions_by_on): New.
32386 (opt_ext_cmp, typedef opt_ext): New.
32387 (aarch64_option_init_struct): New.
32388 (aarch64_contains_opt): New.
32389 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32390 * config/aarch64/aarch64-option-extensions.def
32391 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32392 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32393 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32394 Set is_synthetic to false.
32395 (crypto): Set is_synthetic to true.
32396 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32399 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32401 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32402 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32403 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32404 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32405 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32406 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32407 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32408 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32410 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32411 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32412 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32413 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32414 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32415 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32416 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32417 vfmlsl_laneq_high_f16): ... To this.
32418 * config/arm/neon.md: Update comments.
32420 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32422 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32423 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32424 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32425 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32426 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32427 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32428 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32429 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32431 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32432 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32433 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32434 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32435 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32436 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32437 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32438 vfmlslq_laneq_high_f16): ... To this.
32440 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32442 PR rtl-optimization/86096
32443 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32444 comparing mw_order values.
32446 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32449 * config/arm/arm.md (*subsi3_carryin_const): Use
32450 arm_neg_immediate_operand predicate instead of
32451 arm_not_immediate_operand, "L" constraint instead of "K" and
32452 print it using %n2 instead of %B2.
32453 (*subsi3_carryin_const0): New define_insn.
32454 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32455 instead of arm_not_operand and "I" constraint instead of "K" and
32456 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32457 another match_operand and in the condition check that it is negation
32459 (*subsi3_carryin_compare_const0): New define_ins.
32460 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32461 *subsi3_carryin_const.
32462 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32463 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32466 * config/arm.vfp.md (*negdf2_vfp): Use
32467 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32468 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32470 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32472 PR rtl-optimization/89445
32473 * simplify-rtx.c (simplify_ternary_operation): Don't use
32474 simplify_merge_mask on operands that may trap.
32475 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32476 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32477 second operand is CONST_VECTOR, check if any element could be zero.
32478 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32479 their operands can trap.
32481 2019-02-23 Martin Sebor <msebor@redhat.com>
32483 * gimple-ssa-sprintf.c (target_strtol): Rename...
32484 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32485 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32486 check for range error.
32488 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32491 * opts-common.c (prune_options): Also prune joined switches
32492 with Negative and RejectNegative.
32493 * config/i386/i386.opt (march=): Add Negative(march=).
32494 (mtune=): Add Negative(mtune=).
32495 * doc/options.texi: Document Negative used together with Joined
32496 and RejectNegative.
32498 2019-02-22 Martin Sebor <msebor@redhat.com>
32500 * doc/extend.texi (Other Builtins): Add
32501 __builtin_is_constant_evaluated.
32503 2019-02-22 Richard Biener <rguenther@suse.de>
32505 PR tree-optimization/87609
32506 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32508 2019-02-22 Jeff Law <law@redhat.com>
32510 PR rtl-optimization/87761
32511 * config/mips/mips.md: Add new combiner pattern to recognize
32512 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32514 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32517 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32518 destination register in peepholes generating patterns for ADDS/SUBS.
32519 (add<mode>3_compare0,
32520 *addsi3_compare0_uxtw, add<mode>3_compareC,
32521 add<mode>3_compareV_imm, add<mode>3_compareV,
32522 *adds_<optab><ALLX:mode>_<GPI:mode>,
32523 *subs_<optab><ALLX:mode>_<GPI:mode>,
32524 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32525 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32526 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32527 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32528 sub<mode>3_compare1): Allow stack pointer for source register.
32529 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32531 2019-02-22 Martin Sebor <msebor@redhat.com>
32533 PR tree-optimization/88993
32534 PR tree-optimization/88853
32535 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32537 (sprintf_dom_walker::call_info::is_string_func): New helper.
32538 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32539 for formatted string functions.
32540 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32542 2019-02-22 Martin Sebor <msebor@redhat.com>
32545 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32546 unreachable subexpressions.
32548 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32549 Hongtao Liu <hongtao.liu@intel.com>
32550 Sunil K Pandey <sunil.k.pandey@intel.com>
32553 * config/i386/i386-passes.def: Add
32554 pass_remove_partial_avx_dependency.
32555 * config/i386/i386-protos.h
32556 (make_pass_remove_partial_avx_dependency): New.
32557 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32559 (pass_data_remove_partial_avx_dependency): New.
32560 (pass_remove_partial_avx_dependency): Likewise.
32561 (make_pass_remove_partial_avx_dependency): Likewise.
32562 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32563 (*extendsfdf2): Add avx_partial_xmm_update.
32564 (truncdfsf2): Likewise.
32565 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32566 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32568 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32570 PR middle-end/85598
32571 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32574 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32577 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32578 (PTA_SKYLAKE): Add PTA_AES.
32579 (PTA_GOLDMONT): Likewise.
32581 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32583 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32584 instruction if enabled.
32585 (aarch64_override_options): Remove reference to return address key.
32587 2019-02-22 Richard Biener <rguenther@suse.de>
32589 PR tree-optimization/89440
32590 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32591 not necessary assert.
32593 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32596 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32597 (oacc_replace_fn_attrib_attr): ... this new function.
32598 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32599 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32601 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32603 * config/arm/arm-cpus.in (ares): Rename to...
32604 (neoverse-n1): ... This. Add ares as alias.
32605 * config/arm/arm-tables.opt: Regenerate.
32606 * config/arm/arm-tune.md: Likewise.
32607 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32609 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32611 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32612 * config/aarch64/aarch64-tune.md: Regenerate.
32613 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32615 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32617 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32618 (neoversen1_tunings): ... This.
32619 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32620 (neoverse-n1): New CPU.
32621 * config/aarch64/aarch64-tune.md: Regenerate.
32622 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32624 2019-02-22 Richard Biener <rguenther@suse.de>
32626 PR middle-end/87609
32627 * cfghooks.h (dependence_hash): New typedef.
32628 (struct copy_bb_data): New type.
32629 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32630 (duplicate_block): Likewise.
32631 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32632 (copy_bbs): Create and pass down copy_bb_data.
32633 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32634 (rtl_duplicate_bb): Likewise.
32635 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32636 remap dependence info.
32638 2019-02-22 Richard Biener <rguenther@suse.de>
32640 PR tree-optimization/87609
32641 * tree-core.h (tree_base): Document special clique values.
32642 * tree-inline.c (remap_dependence_clique): Do not use the
32643 special clique value of one.
32644 (maybe_set_dependence_info): Use clique one.
32645 (clear_dependence_clique): New callback.
32646 (compute_dependence_clique): Clear clique one from all refs
32647 before assigning it (again).
32649 2019-02-21 Martin Sebor <msebor@redhat.com>
32651 * doc/extend.texi (__clear_cache): Correct signature.
32653 2019-02-21 Ian Lance Taylor <iant@golang.org>
32656 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32657 than output_constant_def.
32658 (add_constant_to_table): New static function.
32659 (output_constant_def): Call add_constant_to_table.
32660 (tree_output_constant_def): Likewise.
32662 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32665 * builtins.c (fold_builtin_arith_overflow): If first two args are
32666 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32669 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32672 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32673 error for -mindirect-branch/-mfunction-return with incompatible
32676 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32679 * constraints.md (q): Remove.
32680 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32683 2019-02-21 Martin Jambor <mjambor@suse.cz>
32686 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32687 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32688 (omp_adjust_for_condition): ...here. Added necessary parameters.
32689 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32690 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32691 proper values to new parameters of omp_adjust_for_condition.
32693 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32695 PR middle-end/89412
32696 * expr.c (expand_assignment): If result is a MEM, use change_address
32697 instead of simplify_gen_subreg.
32699 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32700 David Malcolm <dmalcolm@redhat.com>
32702 PR middle-end/89091
32703 * fold-const.c (decode_field_reference): Return NULL_TREE if
32704 lang_hooks.types.type_for_size returns NULL. Check it before
32705 overwriting *exp_. Use return NULL_TREE instead of return 0.
32707 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32709 PR middle-end/88074
32710 PR middle-end/89415
32711 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32714 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32717 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32718 TARGET_SSE in addition to TARGET_SSE_MATH.
32720 (ix86_excess_precision): Ditto.
32721 (ix86_float_exceptions_rounding_supported_p): Ditto.
32722 (use_rsqrt_p): Ditto.
32723 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32725 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32728 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32729 linenum_arith_t when determining if two adjacent line spans are
32730 close enough to merge.
32731 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32732 lines within each line_span.
32734 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32737 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32738 paradoxical SUBREGS.
32740 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32743 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32744 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32745 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32748 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32750 * config/gcn/gcn.c (print_operand): Fix typo.
32752 2019-02-19 Richard Biener <rguenther@suse.de>
32754 PR middle-end/88074
32755 * toplev.c (do_compile): Initialize mpfr's exponent range
32756 based on available float modes.
32758 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32760 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32761 as long as the epilogue isn't completed.
32763 2019-02-18 Martin Sebor <msebor@redhat.com>
32765 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32766 __has_cpp_attribute, and __has_include.
32768 2019-02-18 Martin Sebor <msebor@redhat.com>
32770 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32772 2019-02-18 Martin Sebor <msebor@redhat.com>
32774 PR middle-end/89294
32775 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32777 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32779 2019-02-18 Richard Biener <rguenther@suse.de>
32781 PR tree-optimization/89296
32782 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32783 of no-warning flag to cases that might emit the bogus warning.
32785 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32788 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32790 * config/arm/vfp.md (*movdi_vfp): Likewise.
32791 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32792 "q" constraint for operands[0].
32795 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32796 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32797 pattern in a temporary buffer.
32798 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32799 than 64-operands[2].
32802 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32803 s390_indirect_branch_settings): Define unconditionally.
32804 (s390_set_current_function): Likewise, but guard the whole body except
32805 the s390_indirect_branch_settings call with
32806 #if S390_USE_TARGET_ATTRIBUTE.
32807 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32809 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32810 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32811 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32812 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32813 HOST_WIDE_INT_1U instead of 1ULL.
32814 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32815 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32816 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32817 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32819 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32822 2019-02-18 Martin Jambor <mjambor@suse.cz>
32824 PR tree-optimization/89209
32825 * tree-sra.c (create_access_replacement): New optional parameter
32826 reg_tree. Use it as a type if non-NULL and access type is not of
32828 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32829 to create_access_replacement.
32830 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32831 Check lacc is non-NULL before attempting to re-create it on the RHS.
32833 2019-02-18 Martin Liska <mliska@suse.cz>
32836 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32838 (symbol_table::free_edge): Recycle m_summary_id.
32839 * cgraph.h (get_summary_id): New.
32840 (symbol_table::release_symbol): Set m_summary_id to -1
32842 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32843 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32844 function_summary to fast_function_summary.
32845 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32846 * ipa-pure-const.c (class funct_state_summary_t):
32847 Switch from function_summary to fast_function_summary.
32848 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32849 (class ipa_ref_opt_summary_t): Switch from function_summary
32850 to fast_function_summary.
32851 * symbol-summary.h (class function_summary_base): New class
32852 that is created from base of former function_summary.
32853 (function_summary_base::unregister_hooks): New.
32854 (class function_summary): Inherit from function_summary_base.
32855 (class call_summary_base): New class
32856 that is created from base of former call_summary.
32857 (class call_summary): Inherit from call_summary_base.
32858 (struct is_same): New.
32859 (class fast_function_summary): New summary class.
32860 (class fast_call_summary): New summary class.
32861 * vec.h (vec_safe_grow_cleared): New function.
32863 2019-02-18 Martin Liska <mliska@suse.cz>
32865 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32866 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32867 * doc/tm.texi: Document new target hook.
32868 * doc/tm.texi.in: Likewise.
32869 * target.def: Add new target macro.
32870 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32873 2019-02-17 Alan Modra <amodra@gmail.com>
32876 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32877 output reg on add insn.
32878 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32880 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32883 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32884 (PMULHRSW): Likewise.
32885 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32887 (ssse3_pmulhrswv4hi3): New expander.
32889 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32891 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32892 MMX. Add isa attribute.
32894 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32896 PR rtl-optimization/66152
32897 * builtins.h (c_readstr): Declare.
32898 * builtins.c (c_readstr): Remove forward declaration. Add
32899 null_terminated_p argument, if false, read all bytes from the
32900 string instead of stopping after '\0'.
32901 * expr.c (string_cst_read_str): New function.
32902 (store_expr): Use string_cst_read_str instead of
32903 builtin_strncpy_read_str. Try to store by pieces the whole
32904 exp_len first, and only if that fails, split it up into
32905 store by pieces followed by clear_storage. Formatting fix.
32907 * config/i386/i386.md (*movqi_internal): Remove static from
32908 buf variable. Use output_asm_insn (buf, operands); return "";
32909 instead of return buf;.
32910 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32911 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32912 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32914 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32916 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32917 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32918 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32919 (CC1_SPEC): Likewise.
32920 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32922 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32924 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32925 the base address on 64-bit strict-alignment platforms.
32927 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32929 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32931 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32933 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32935 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32937 PR rtl-optimization/88308
32938 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32939 on copied instruction.
32941 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32943 * final.c (insn_current_reference_address): Replace test on JUMP_P
32944 with test on jump_to_label_p.
32945 * config/visium/visium-passes.def: New file.
32946 * config/visium/t-visium (PASSES_EXTRA): Define.
32947 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32948 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32949 (TRAMPOLINE_ALIGNMENT): Define.
32950 * config/visium/visium.c (visium_option_override): Do not register
32951 the machine-specific reorg pass here.
32952 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32954 (output_branch): Adjust threshold for long branch instruction.
32955 * config/visium/visium.md (cpu): Move around.
32956 (length): Adjust for the GR6.
32958 2019-02-15 Richard Biener <rguenther@suse.de>
32959 Jakub Jelinek <jakub@redhat.com>
32961 PR tree-optimization/89278
32962 * tree-loop-distribution.c: Include tree-eh.h.
32963 (generate_memset_builtin, generate_memcpy_builtin): Call
32964 rewrite_to_non_trapping_overflow on builtin->size before passing it
32965 to force_gimple_operand_gsi.
32967 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32970 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32972 * opth-gen.awk: Likewise.
32974 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32976 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32977 Enable MMX, SSE and SSE2 by default.
32978 * config/i386/i386.c (ix86_option_override_internal): Do not
32979 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32981 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32983 PR rtl-optimization/89354
32984 * combine.c (make_extraction): Punt if extraction_mode is narrower
32987 2019-02-14 Maya Rashish <coypu@sdf.org>
32989 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32990 * config/netbsd-d.c: New file.
32991 * config/t-netbsd: Add netbsd-d.o
32993 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32995 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32996 affects_type_identity to true for aarch64_vector_pcs.
32997 (aarch64_comp_type_attributes): New function.
32998 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
33000 2019-02-14 Tamar Christina <tamar.christina@arm.com>
33003 * config/arm/iterators.md (ANY64): Add V4HF.
33005 2019-02-14 Martin Liska <mliska@suse.cz>
33007 PR rtl-optimization/89242
33008 * dce.c (delete_unmarked_insns): Call free_dominance_info we
33009 process a transformation.
33011 2019-02-14 Jakub Jelinek <jakub@redhat.com>
33013 PR tree-optimization/89314
33014 * fold-const.c (fold_binary_loc): Cast strlen argument to
33015 const char * before dereferencing it. Formatting fixes.
33017 PR middle-end/89284
33018 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
33020 2019-02-13 Ian Lance Taylor <iant@golang.org>
33022 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
33023 and set current index for other optimizations.
33025 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
33027 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
33028 nonimmediate_operand as operand 2 predicate.
33029 (vec_set<VF2_512_256:mode>_0): Ditto.
33030 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
33031 (*vec_concatv2si): Remove alternative 2.
33032 (*vec_concatv4si_0): Use vm constraint for alternative 0.
33033 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
33034 (vec_concatv2di): Split alternatives 4,5,6 to ...
33035 (*vec_concatv2di_0) ... new pattern.
33037 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
33040 * config/arm/arm.c (ldm_stm_operation_p) Set
33041 addr_reg_in_reglist correctly for first register.
33042 (load_multiple_sequence): Remove dead base check.
33043 (gen_ldm_seq): Correctly set write_back for Thumb-1.
33045 2019-02-13 Tamar Christina <tamar.christina@arm.com>
33048 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
33049 Expose as @aarch64_pred_mov.
33050 * config/aarch64/aarch64.c (aarch64_classify_address):
33051 Use expand_insn which legitimizes operands.
33053 2019-02-13 Martin Liska <mliska@suse.cz>
33055 * builtins.h (expand_builtin_with_bounds): Remove declaration.
33056 * calls.c (struct arg_data): Remove special_slot, pointer_arg
33057 and pointer_offset fields.
33058 (initialize_argument_information): Remove usage of dead
33060 * cgraph.h (struct cgraph_thunk_info): Remove
33061 add_pointer_bounds_args.
33062 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
33064 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
33066 * config/i386/i386.c (ix86_function_arg_advance): Remove
33068 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
33069 (def_builtin): Remove usage of dead fields.
33070 (ix86_add_new_builtins): Likewise.
33071 * ipa-fnsummary.c (compute_fn_summary): Likewise.
33072 * ipa-icf.c (sem_function::equals_wpa): Likewise.
33073 (sem_function::init): Likewise.
33074 (sem_variable::merge): Likewise.
33075 * ipa-visibility.c (function_and_variable_visibility): Likewise.
33076 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
33077 * lto-cgraph.c (lto_output_node): Likewise.
33078 (lto_output_varpool_node): Likewise.
33079 (input_node): Likewise.
33080 (input_varpool_node): Likewise.
33081 * lto-streamer-out.c (lto_output): Likewise.
33082 * tree-inline.c (expand_call_inline): Remove usage of
33084 * tree-inline.h (struct copy_body_data): Likewise.
33085 * varpool.c (varpool_node::dump): Likewise.
33087 2019-02-13 Jakub Jelinek <jakub@redhat.com>
33089 PR middle-end/89303
33090 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
33091 into pt->vars_contains_escaped_heap instead of setting
33092 pt->vars_contains_escaped_heap to it.
33094 PR middle-end/89281
33095 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
33096 INTVAL (size), compare it to GET_MODE_MASK instead of
33097 1 << GET_MODE_BITSIZE.
33100 * config/i386/predicates.md (x86_64_immediate_operand): Allow
33101 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
33104 2019-02-13 Martin Liska <mliska@suse.cz>
33107 * cfgrtl.c (remove_barriers_from_footer): New function.
33108 (try_redirect_by_replacing_jump): Use it.
33109 (cfg_layout_redirect_edge_and_branch): Likewise.
33111 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33113 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
33114 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
33115 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
33116 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
33117 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
33118 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
33120 * config/rs6000/rs6000.c (builtin_function_type)
33121 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
33122 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
33123 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
33124 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
33125 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
33127 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
33129 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
33130 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
33132 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
33135 * config/i386/i386.md (*movoi_internal_avx): Revert revision
33136 268678 and revision 268657.
33137 (*movti_internal): Likewise.
33139 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
33142 * config/s390/s390.c (s390_decompose_address): Update comment.
33143 (s390_check_qrst_address): Reject invalid address forms after
33146 2019-02-12 Martin Liska <mliska@suse.cz>
33149 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
33150 we need default values of funct_state for a function that
33153 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
33155 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
33156 the object to pick the size of stores on strict-alignment platforms.
33158 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
33159 (*movdi_insn_sp32): Likewise.
33160 (*movdi_insn_sp64): Likewise.
33162 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
33165 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
33166 types that needs constructiong.
33167 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
33169 2019-02-12 Richard Biener <rguenther@suse.de>
33171 PR tree-optimization/89253
33172 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
33173 duplicate the loop.
33175 2019-02-11 David Malcolm <dmalcolm@redhat.com>
33178 * input.c (selftest::test_line_offset_overflow): New selftest.
33179 (selftest::input_c_tests): Call it.
33181 2019-02-11 Martin Sebor <msebor@redhat.com>
33183 PR tree-optimization/88771
33184 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
33185 when -Wstringop-overflow is set.
33186 (builtin_memref::builtin_memref): Adjust excessive upper bound
33187 only when lower bound is not excessive.
33188 (maybe_diag_overlap): Detect and diagnose excessive bounds via
33189 -Wstringop-ovefflow.
33190 (maybe_diag_offset_bounds): Rename...
33191 (maybe_diag_access_bounds): ...to this.
33192 (check_bounds_or_overlap): Adjust for name change above.
33194 2019-02-11 Martin Sebor <msebor@redhat.com>
33197 * builtins.c (max_object_size): Move from here...
33198 * builtins.h (max_object_size): ...and here...
33199 * tree.c (max_object_size): ...to here...
33200 * tree.h (max_object_size): ...and here.
33202 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
33204 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
33205 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
33206 for correct semantics.
33208 2019-02-11 Alan Modra <amodra@gmail.com>
33210 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
33211 -mlongcall and -mpltseq.
33212 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
33213 (RS/6000 and PowerPC Options <-mpltseq>): Document.
33214 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33215 * config/rs6000/sysv4.opt (mpltseq): New option.
33216 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33217 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33218 support is lacking. Don't allow -mpltseq with -mbss-plt.
33219 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33220 -mpltseq given for ELFv1.
33221 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33222 Only use UNSPEC_PLTSEQ for inline PLT calls.
33223 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
33224 use UNSPEC_PLTSEQ for inline PLT calls.
33225 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33226 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33227 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33228 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33229 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33230 (pltseq_mtctr_<mode>): Likewise.
33232 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33234 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33236 * configure: Regenerate.
33238 2019-02-11 Jakub Jelinek <jakub@redhat.com>
33241 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33244 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33246 * function.c (assign_parm_setup_block): Use the stored
33247 size, not the passed size, when allocating stack-space,
33248 also for a parameter with alignment larger than
33249 MAX_SUPPORTED_STACK_ALIGNMENT.
33251 2019-02-11 Martin Liska <mliska@suse.cz>
33254 * ipa-cp.c (build_toporder_info): Remove usage of a param.
33255 * ipa-inline.c (inline_small_functions): Likewise.
33256 * ipa-pure-const.c (propagate_pure_const): Likewise.
33257 (propagate_nothrow): Likewise.
33258 * ipa-reference.c (propagate): Likewise.
33259 * ipa-utils.c (struct searchc_env): Remove unused field.
33260 (searchc): Always search across AVAIL_INTERPOSABLE.
33261 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33262 the only called IPA pure const can properly not propagate
33263 across interposable boundary.
33264 * ipa-utils.h (ipa_reduced_postorder): Remove param.
33266 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
33268 * config/nds32/nds32.md (call_internal, call_value_internal,
33269 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33271 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33273 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33276 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
33278 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33281 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33283 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33285 2019-02-10 Jakub Jelinek <jakub@redhat.com>
33287 PR tree-optimization/89268
33288 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33289 if preds is non-NULL.
33291 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33294 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33297 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33299 * config/nds32/nds32.md (trap): New pattern.
33301 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33303 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33306 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33308 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33311 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33313 * ipa-visibility.c (localize_node): Also do not localize
33314 LDPR_PREVAILING_DEF_IRONLY_EXP.
33316 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33319 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33320 instead of type_with_linkage.
33322 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33325 * params.def (uninlined-function-insns, uninlined-function-time,
33326 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33327 bound so we don't get overflows.
33329 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
33331 * config/rs6000/rs6000-string.c (expand_compare_loop,
33332 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33335 2019-02-09 Jakub Jelinek <jakub@redhat.com>
33337 PR middle-end/89246
33338 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33339 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33340 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33342 2019-02-09 Alan Modra <amodra@gmail.com>
33345 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33346 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
33349 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
33351 PR middle-end/88560
33352 * lra-constraints.c (process_alt_operands): Don't increase reject
33353 for memory when offset memory is required.
33355 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33357 * config/s390/vector.md: Implement vector copysign.
33359 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33361 * expr.c (expand_constructor): Correct indentations.
33363 2019-02-08 Richard Biener <rguenther@suse.de>
33365 PR tree-optimization/89247
33366 * tree-if-conv.c: Include tree-cfgcleanup.h.
33367 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33368 (tree_if_conversion): Pass through predicate vector.
33369 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33370 inline, see if any if-converted loops we refrece in
33371 LOOP_VECTORIZED calls vanished and fixup.
33372 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33374 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33376 * config/s390/constraints.md (jdd): New constraint.
33378 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33381 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33382 upper 16 vector registers without TARGET_AVX512VL.
33383 (*movti_internal): Likewise.
33385 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33387 PR rtl-optimization/89234
33388 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33389 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33390 (copy_reg_eh_region_note_backward): Likewise.
33392 2019-02-08 Richard Biener <rguenther@suse.de>
33394 PR middle-end/89223
33395 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33396 doesn't fit in HWI.
33397 (analyze_subscript_affine_affine): Handle failure from
33398 initialize_matrix_A.
33400 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33402 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33405 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33407 PR tree-optimization/86637
33408 PR tree-optimization/89235
33409 * tree-vect-loop.c (optimize_mask_stores): Add an
33410 auto_purge_vect_location sentinel to ensure that vect_location is
33412 * tree-vectorizer.c
33413 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33414 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33415 to ensure that vect_location is purged on exit.
33416 (pass_slp_vectorize::execute): Likewise, replacing the manual
33418 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33420 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33422 * config/aarch64/iterators.md (max_opp): New code_attr.
33423 (USMAX): New code iterator.
33424 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33425 (aarch64_smax): Likewise.
33426 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33427 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33430 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33433 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33434 for TARGET_AVX512VL.
33435 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33437 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33439 * config/s390/s390-builtin-types.def: Add new types.
33440 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33441 (s390_vec_xlw4): Make the memory operand into a const pointer.
33442 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33444 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33445 a new vector type with the alignment of the scalar memory operand.
33447 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33448 Jakub Jelinek <jakub@redhat.com>
33451 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33452 arm_count_ldrdstrd_insns): New declarations.
33453 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33455 (valid_operands_ldrd_strd): New function.
33456 (arm_count_ldrdstrd_insns): New function.
33457 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33458 sets instead of single DImode set and define new insns to match this.
33460 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33462 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33463 Make it a C initializer.
33465 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33468 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33470 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33472 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33473 Use neon_dot<q> for type.
33474 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33476 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33478 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33479 Use neon_dot<q> for type.
33480 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33481 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33483 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33485 PR rtl-optimization/89225
33486 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33489 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33491 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33492 after restoring registers saved to allocate the frame on Windows.
33494 2019-02-06 Richard Biener <rguenther@suse.de>
33496 PR tree-optimization/89182
33497 * graphite.h (cached_scalar_evolution_in_region): Declare.
33498 * graphite.c (struct seir_cache_key): New.
33499 (struct sese_scev_hash): Likewise.
33500 (seir_cache): New global.
33501 (cached_scalar_evolution_in_region): New function.
33502 (graphite_transform_loops): Allocate and release seir_cache.
33503 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33504 cached_scalar_evolution_in_region.
33505 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33507 (scop_detection::graphite_can_represent_expr: Use
33508 cached_scalar_evolution_in_region.
33509 (scop_detection::stmt_simple_for_scop_p): Likewise.
33510 (find_params_in_bb): Likewise.
33511 (gather_bbs::before_dom_children): Likewise.
33512 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33513 (add_loop_constraints): Likewise.
33515 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33517 PR middle-end/89210
33518 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33519 operand to new_unary_operation only if both element types are integral
33520 and it isn't a widening conversion. Return NULL_TREE if
33521 new_unary_operation failed.
33523 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33526 * config/s390/s390.md: Remove load and test FP splitter.
33528 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33531 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33532 expand_compare_loop, expand_block_compare_gpr,
33533 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33534 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33535 #include "profile-count.h" and "predict.h" for types and functions
33536 needed to work with REG_BR_PROB notes.
33538 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33541 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33542 for the long branch case.
33544 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33547 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33548 can throw, non-call exceptions are enabled and we can't delete
33549 dead exceptions or alter cfg. Set must_clean if
33550 delete_insn_and_edges returns true, don't set it blindly for calls.
33551 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33553 PR rtl-optimization/89195
33554 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33555 of the original MEM.
33557 2019-02-05 Martin Liska <mliska@suse.cz>
33559 PR gcov-profile/89000
33560 * gcov.c (function_summary): Remove argument.
33561 (file_summary): New function.
33562 (print_usage): Replace tabs with spaces.
33563 (generate_results): Use new function file_summary.
33565 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33568 * optabs.c (prepare_cmp_insn): Pass x and y to
33569 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33571 2019-02-05 Richard Biener <rguenther@suse.de>
33573 PR middle-end/89150
33574 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33575 (struct bitmap_element): Drop chain_prev so we properly recurse on
33576 the prev member, supporting tree views.
33577 (struct bitmap_head): GTY skip the obstack member.
33579 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33582 * doc/extend.texi (Vector Extensions): Add an example of using vector
33583 types together with x86 intrinsics.
33585 2019-02-04 Alan Modra <amodra@gmail.com>
33587 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33588 str[] size to 160, and comment.
33590 2019-02-04 Alan Modra <amodra@gmail.com>
33592 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33593 (rs6000_pltseq_template): Guard output of TLS markers with
33594 TARGET_TLS_MARKERS.
33595 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33596 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33597 to use inline PLT sequences.
33598 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33599 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33600 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33602 2019-02-04 Martin Liska <mliska@suse.cz>
33605 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33606 out when ipa_fn_summaries does not contain entry for callee.
33608 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33610 * config/sparc/sparc.h: Remove superfluous blank lines.
33611 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33612 (got_register_rtx): ...this.
33613 (sparc_got): Adjust to above renaming.
33614 (sparc_tls_got): Likewise.
33615 (sparc_delegitimize_address): Likewise.
33616 (sparc_output_mi_thunk): Likewise.
33617 (sparc_init_pic_reg): Likewise.
33618 (save_local_or_in_reg_p): Fix test on the GOT register.
33619 (USE_HIDDEN_LINKONCE): Move around.
33620 (get_pc_thunk_name): Likewise.
33621 (gen_load_pcrel_sym): Likewise.
33622 (load_got_register): Likewise.
33624 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33626 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33627 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33629 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33631 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33632 into consideration.
33634 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33636 * config.gcc (with_nds32_lib, glibc):
33637 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33638 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33639 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33641 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33644 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33645 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33646 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33647 (*rcpsf2_sse): Ditto.
33648 (*rsqrtsf2_sse): Ditto.
33649 (sse4_1_round<mode<2): Ditto.
33651 2019-02-03 Richard Biener <rguenther@suse.de>
33654 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33657 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33659 PR middle-end/87887
33660 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33661 Punt with warning on aggregate return or argument types. Ignore
33662 type/mode checking for uniform arguments.
33664 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33666 * combine.c (try_combine): Do not print "Can't combine" messages unless
33667 printing failed combination attempts.
33669 2019-02-01 Martin Jambor <mjambor@suse.cz>
33672 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33673 segment and global segment variables before making them static.
33675 2019-02-01 Martin Jambor <mjambor@suse.cz>
33677 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33678 missed optimization dump with dump_enabled_p.
33680 2019-02-01 Richard Biener <rguenther@suse.de>
33682 PR middle-end/88597
33683 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33684 the instantiate cache.
33685 (instantiate_scev_binary): Elide second operand procesing
33686 if equal to the first.
33687 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33688 (chrec_contains_undetermined): Likewise.
33689 (tree_contains_chrecs): Likewise.
33691 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33693 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33695 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33697 PR tree-optimization/89143
33698 * wide-int-range.h (wide_int_range_absu): Declare.
33699 * wide-int-range.cc (wide_int_range_absu): New function.
33700 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33702 PR tree-optimization/88107
33703 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33704 instead of assertion that eh_region_outermost is non-NULL, if it
33705 is NULL, set *ALL to true and return NULL.
33706 (move_sese_region_to_fn): Adjust caller, if all is set, call
33707 duplicate_eh_regions with NULL region.
33709 2019-02-01 Richard Biener <rguenth@suse.de>
33711 PR rtl-optimization/88593
33712 * mode-switching.c (optimize_mode_switching): Free dominators before
33713 calling cleanup_cfg.
33715 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33717 PR tree-optimization/88932
33718 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33720 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33722 PR middle-end/89137
33723 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33724 bogus clang warning.
33726 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33729 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33730 alternative to avoid partial SSE register stall for TARGET_AVX.
33731 (truncdfsf2): Ditto.
33732 (sse4_1_round<mode>2): Ditto.
33734 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33736 PR tree-optimization/89008
33737 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33738 process anything of the form X * 0.
33740 2019-01-31 Richard Biener <rguenther@suse.de>
33742 PR tree-optimization/89135
33743 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33744 with abnormal preds.
33746 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33749 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33750 always_inline callees into no_sanitize_address callers.
33752 2019-01-31 Richard Biener <rguenther@suse.de>
33754 PR rtl-optimization/89115
33755 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33757 2019-01-30 Martin Sebor <msebor@redhat.com>
33760 * doc/extend.texi (cast to a union): Correct and expand.
33762 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33764 PR rtl-optimization/87246
33765 * lra-constraints.c (simplify_operand_subreg): Reload memory
33766 in subreg if the address became invalid.
33768 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33771 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33772 Disable for little-endian.
33774 2019-01-30 Richard Biener <rguenther@suse.de>
33776 PR rtl-optimization/89115
33777 * opts.c (default_options_optimization): Reduce
33778 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33779 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33782 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33784 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33785 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33786 type of vector element when vec_extract is implemented by direct
33789 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33791 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33793 2019-01-30 Richard Biener <rguenther@suse.de>
33795 PR tree-optimization/89111
33796 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33797 canonicalization to appropriately sized access types.
33799 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33802 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33803 for arguments to functions that are TU-local and shouldn't be
33804 referenced by assembly.
33806 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33808 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33811 2019-01-29 Martin Sebor <msebor@redhat.com>
33814 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33816 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33820 * omp-simd-clone.c (simd_clone_clauses_extract)
33821 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33822 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33824 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33826 * config.gcc: Force .init_array for ARC.
33828 2019-01-29 Richard Biener <rguenther@suse.de>
33831 * dwarf2out.c (collect_skeleton_dies): New helper.
33832 (copy_decls_for_unworthy_types): Call it.
33833 (build_abbrev_table): Assert we do not try to replace
33834 DW_AT_signature refs with local refs.
33836 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33838 PR middle-end/89002
33839 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33840 for lastprivate/linear IV, push gimplify context around gimplify_assign
33841 and, if it needed any temporaries, pop it into a gimple bind around the
33844 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33846 * common.opt (-Wattribute-alias): Remove "no-" from name.
33847 Make -Wattribute-alias command line option and
33848 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33850 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33853 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33854 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33856 (bmi2): Add missing @opindex.
33857 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33858 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33859 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33860 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33861 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33862 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33863 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33864 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33865 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33866 xsavec, xsaveopt and xsaves options.
33868 2019-01-28 Richard Biener <rguenther@suse.de>
33871 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33874 2019-01-28 Richard Biener <rguenther@suse.de>
33876 PR tree-optimization/88739
33877 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33878 BIT_FIELD_REFs only are applied to mode-precision operands
33879 when they are integral.
33880 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33881 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33882 BIT_FIELD_REFs of non-mode-precision integral operands.
33884 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33887 * config/i386/sse.md
33888 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33889 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33890 first constants in pairs are multiples of 2. Formatting fixes.
33891 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33892 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33893 first constants in each quadruple are multiples of 4. Formatting fixes.
33895 2019-01-26 Martin Jambor <mjambor@suse.cz>
33898 * tree-inline.c: Include tree-cfgcleanup.h.
33899 (delete_unreachable_blocks_update_callgraph): Move...
33900 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33901 ...here, make externally visible, make second argument bool, adjust
33903 * tree-cfgcleanup.c: Include cgraph.h.
33904 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33906 * ipa-prop.c: Include tree-cfgcleanup.h.
33907 (ipcp_transform_function): Call
33908 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33910 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33912 PR rtl-optimization/88846
33913 * ira.c (process_set_for_memref_referenced_p): New.
33914 (memref_referenced_p): Add new param. Use
33915 process_set_for_memref_referenced_p. Add new switch cases.
33916 (memref_used_between_p): Pass new arg to memref_referenced_p.
33918 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33921 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33922 argument ABI_BREAK. Set to true if the calculated alignment has
33923 changed in gcc-9. Check bit-fields for their base type alignment.
33924 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33925 (aarch64_function_arg_boundary): Likewise.
33926 (aarch64_gimplify_va_arg_expr): Likewise.
33928 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33930 PR middle-end/89037
33931 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33932 instead of accessing TREE_INT_CST_ELT directly.
33934 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33936 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33937 fenv_exceptions description.
33939 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33941 PR rtl-optimization/87763
33942 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33943 Allow SUBREG when matching CC_NZmode compare.
33945 2019-01-25 Richard Biener <rguenther@suse.de>
33947 PR tree-optimization/89049
33948 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33949 Look at the pattern stmt to determine if the stmt is vectorized.
33951 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33953 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33954 (pred_mov<mode>): Handle all-register forms using both a new
33955 alternative and a split.
33957 2019-01-25 Richard Biener <rguenther@suse.de>
33959 PR tree-optimization/86865
33960 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33961 Reject non-do-while loops.
33963 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33965 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33966 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33967 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33968 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33969 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33970 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33971 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33972 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33973 vlogical_operand, gpc_reg_operand, int_reg_operand,
33974 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33975 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33976 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33977 (save_world_operation, restore_world_operation, lmw_operation,
33978 stmw_operation): Use MEM_P and REG_P.
33979 (tie_operand): Use MEM_P.
33980 (vrsave_operation, crsave_operation): Use REG_P.
33981 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33982 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33983 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33984 (call_operand): Use HARD_REGISTER_P.
33985 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33987 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33988 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33989 quad_aligned_load_p, replace_swapped_aligned_store,
33990 recombine_lvx_pattern, replace_swapped_aligned_load,
33991 recombine_stvx_pattern): Use MEM_P.
33992 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33993 Use MEM_P and SYMBOL_REF_P.
33994 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33995 (insn_is_swappable_p): Use REG_P and MEM_P.
33996 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33997 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33999 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
34000 Use CONST_DOUBLE_P.
34001 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
34003 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
34004 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
34005 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
34006 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
34008 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34009 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
34010 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
34011 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
34012 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
34013 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
34014 rs6000_split_logical_di): Use CONST_INT_P.
34015 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
34016 REG_P and SYMBOL_REF_P.
34017 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
34018 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
34019 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
34020 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
34021 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
34022 (small_data_operand, print_operand_address): Use CONST_INT_P and
34024 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
34025 (rs6000_init_hard_regno_mode_ok, direct_move_p):
34026 Use HARD_REGISTER_NUM_P.
34027 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
34028 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
34029 SUBREG_P and SYMBOL_REF_P.
34030 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
34031 and HARD_REGISTER_NUM_P.
34032 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
34034 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
34035 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
34037 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
34038 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
34039 find_addr_reg): Use REG_P.
34040 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
34041 (rs6000_emit_le_vsx_move): Use SUBREG_P.
34042 (offsettable_ok_by_alignment, constant_pool_expr_p,
34043 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
34044 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
34045 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
34046 rs6000_assemble_integer, create_TOC_reference,
34047 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
34048 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
34049 (rs6000_split_vec_extract_var): Use reg_or_subregno.
34050 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34051 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34052 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34053 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34054 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
34055 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
34056 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
34057 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
34058 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
34059 and cbranch<mode>4): Use CONST_INT_P.
34060 (multiple define_splits): Use REG_P and SUBREG_P.
34061 (define_expands call, call_value): Use MEM_P.
34062 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
34063 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
34064 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
34065 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
34066 and HARD_REGISTER_NUM_P.
34067 (multiple define_splits): Use HARD_REGISTER_NUM_P.
34069 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
34071 PR rtl-optimization/88948
34072 * rtl.h (prepare_copy_insn): New prototype.
34073 * gcse.c (prepare_copy_insn): New function, split out from
34074 process_insert_insn.
34075 (process_insert_insn): Use prepare_copy_insn.
34076 * store-motion.c (replace_store_insn): Use prepare_copy_insn
34077 instead of gen_move_insn.
34079 2019-01-24 Jakub Jelinek <jakub@redhat.com>
34082 * config/i386/i386.c (ix86_pic_register_p): Return true for
34083 UNSPEC_SET_GOT too.
34085 PR tree-optimization/88964
34086 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
34087 punt if HONOR_SNANS (chrec).
34089 PR middle-end/89015
34090 * tree-nested.c (convert_nonlocal_reference_stmt,
34091 convert_local_reference_stmt, convert_tramp_reference_stmt,
34092 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
34093 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
34094 or GIMPLE_OMP_TASK.
34096 PR tree-optimization/89027
34097 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
34098 for "omp simd array" variables.
34100 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
34103 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
34104 force the alignment of m_val.
34106 2019-01-24 Richard Biener <rguenther@suse.de>
34109 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
34110 When in "legacy" debug mode make sure to reset self-origins.
34112 2019-01-24 Martin Liska <mliska@suse.cz>
34114 PR gcov-profile/88994
34115 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
34116 result will be always smaller or equal to the original.
34117 * gcov.c (mangle_name): Fix else branch where we should
34118 also copy to PTR and shift the pointer.
34120 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
34122 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
34123 * vr-values.c (find_case_label_ranges): Fix a comment typo.
34125 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
34127 * common/config/i386/i386-common.c
34128 (OPTION_MASK_ISA_ENQCMD_SET,
34129 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
34130 (ix86_handle_option): Handle -menqcmd.
34131 * config.gcc (enqcmdintrin.h): New header file.
34132 * config/i386/cpuid.h (bit_ENQCMD): New bit.
34133 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
34135 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
34137 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
34138 __builtin_ia32_enqcmds): New builtins.
34139 * config/i386/i386-c.c (__ENQCMD__): New macro.
34140 * config/i386/i386-option.c (ix86_target_string): Add
34142 (ix86_valid_target_attribute_inner_p): Likewise.
34143 * config/i386/i386-expand.c
34144 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
34145 IX86_BUILTIN_ENQCMDS.
34146 * config/i386/i386.h (TARGET_ENQCMD): New.
34147 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
34148 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
34149 (movdir64b_<mode>): Parameterize to enable share expansion code
34150 with ENQCMD in function ix86_expand_builtin.
34151 * config/i386/i386.opt: Add -menqcmd.
34152 * config/i386/immintrin.h: Include enqcmdintrin.h.
34153 * config/i386/enqcmdintrin.h: New intrinsic file.
34154 * doc/invoke.texi: Add -menqcmd.
34156 2019-01-23 Bin Cheng <bin.cheng@arm.com>
34157 Steve Ellcey <sellcey@marvell.com>
34160 * recog.c (address_operand): Return false on wrong mode for address.
34161 (constrain_operands): Check for mode with 'p' constraint.
34163 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
34166 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
34167 Disparage MMX alternative.
34168 (sse2_cvtpd2pi): Ditto.
34169 (sse2_cvttpd2pi): Ditto.
34171 2019-01-23 David Malcolm <dmalcolm@redhat.com>
34174 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
34175 use-after-free of the result of
34176 aarch64_get_extension_string_for_isa_flags.
34178 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34181 * doc/extend.texi: Document break and continue behavior in
34182 statement expressions.
34184 2019-01-23 Richard Biener <rguenther@suse.de>
34186 PR tree-optimization/89008
34187 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
34188 not leave another stray operand.
34190 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34192 * BASE-VER: Bump to 9.0.1.
34194 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
34196 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
34197 thunk that returns by reference, use the type of the return object
34198 of the thunk instead of that of the alias to build the dereference.
34200 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
34202 * config/arc/atomic.md: Add operand to DMB instruction.
34204 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34206 PR tree-optimization/88964
34207 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
34208 build_zero_cst instead of build_int_cst. Return false for loop
34209 invariants which honor signed zeros.
34211 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
34213 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34215 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34218 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34219 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34220 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34222 PR middle-end/88968
34223 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34224 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34227 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34228 Disable for little endian.
34230 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34233 * config/arm/arm.c (arm_needs_double_word_align): Check
34234 DECL_BIT_FIELD_TYPE.
34236 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
34237 H.J. Lu <hongjiu.lu@intel.com>
34240 * config/i386/i386-builtin.def: Add mask2 to all builtin
34241 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34243 * config/i386/i386.c (BDESC): Add mask2 to the definition.
34244 (BDESC_FIRST): Likewise.
34245 (define_builtin): Add an argument for mask2. Updated to handle
34246 both ix86_isa_flags and ix86_isa_flags2.
34247 (define_builtin_const): Likewise.
34248 (define_builtin_pure): Likewise.
34249 (define_builtin2): Deleted.
34250 (define_builtin_const2): Likewise.
34251 (builtin_description): Add a member, mask2.
34252 (bdesc_*): Add mask2 to builtin initializations.
34253 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34254 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
34256 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34258 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
34261 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34264 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34267 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34268 alignment is dominated by a bitfield with 64-bit aligned base type.
34269 (arm_function_arg): Emit a warning if the alignment has changed since
34270 earlier GCC releases.
34271 (arm_function_arg_boundary): Likewise.
34272 (arm_setup_incoming_varargs): Likewise.
34274 2019-01-22 Richard Biener <rguenther@suse.de>
34276 PR tree-optimization/88862
34277 * graphite-scop-detection.c
34278 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34280 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
34282 * doc/extend.tex (AMD GCN Function Attributes): New section.
34283 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34284 * doc/invoke.texi (AMD GCN Options): New section.
34285 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34287 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
34289 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34290 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34292 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34294 PR tree-optimization/88044
34295 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34296 is false in the first iteration, but !every_iteration, return false
34297 instead of true with niter->niter zero.
34299 PR rtl-optimization/88904
34300 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34301 any nonequal registers before processing BB_END (b).
34304 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34306 (expand_binop_directly, expand_doubleword_clz,
34307 expand_doubleword_popcount, expand_ctz, expand_ffs,
34308 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34310 PR rtl-optimization/49429
34312 PR rtl-optimization/86334
34314 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34315 addressable from here...
34316 (emit_block_op_via_libcall): ... to here.
34318 2019-01-22 Richard Biener <rguenther@suse.de>
34320 * tree-vect-loop.c (vect_analyze_loop_operations): Use
34321 auto_vec for cost vector to fix memleak.
34322 (vectorize_fold_left_reduction): Properly gather SLP defs.
34323 (vectorizable_comparison): Do not swap operands to properly
34326 2019-01-22 Alan Modra <amodra@gmail.com>
34329 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34330 stays a reg. Allow a const_int.
34331 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34332 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34333 (IS_NOMARK_TLSGETADDR): Define.
34334 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34335 (rs6000_output_tlsargs): New function.
34336 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34337 __tls_get_addr call takes an arg.
34338 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34339 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34341 (call_value_nonlocal_sysv): ..or here, delete split.
34342 (tls_gdld_nomark): Delete.
34343 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34344 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
34345 (call_value_nonlocal_sysv): Likewise.
34346 (call_value_nonlocal_sysv_secure): Likewise.
34347 (call_value_nonlocal_aix): Likewise.
34348 (call_value_indirect_aix): Likewise.
34349 (call_value_indirect_elfv2): Likewise.
34350 (call_value_local32, call_value_local64): Disable for no-mark tls.
34351 (call_value_local_aix): Likewise.
34353 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
34356 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34357 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34359 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34361 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34362 string contents as hash_map keys.
34364 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34367 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34368 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34369 instead of TYPE_ALIGN.
34370 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34371 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34372 pointer from TYPE_STUB_DECL.
34374 2019-01-21 Richard Biener <rguenther@suse.de>
34376 PR tree-optimization/88934
34377 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34378 at the possibly non-constant operand.
34379 (vect_get_constant_vectors): Adjust.
34381 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34384 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34385 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34386 instead of _X86INTRIN_H_INCLUDED.
34387 * onfig/i386/clwbintrin.h: Likewise.
34388 * config/i386/pkuintrin.h: Likewise.
34389 * config/i386/prfchwintrin.h: Likewise.
34390 * config/i386/rdseedintrin.h: Likewise.
34391 * config/i386/wbnoinvdintrin.h: Likewise.
34392 * config/i386/xsavecintrin.h: Likewise.
34393 * config/i386/xsavesintrin.h: Likewise.
34394 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34395 * config/i386/xsaveintrin.h: Likewise.
34396 * config/i386/xsaveoptintrin.h: Likewise.
34397 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34398 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34399 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34400 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34401 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34402 * config/i386/immintrin.h: Here.
34404 2019-01-20 Martin Jambor <mjambor@suse.cz>
34407 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34408 with aa_walk_budget.
34409 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34410 aa_walk_budget_p parameter.
34411 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34412 walk. Updated all callers.
34413 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34414 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34416 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34417 parameter info. Extract info from fbi. Pass fbi to recursive calls
34418 and to unmodified_parm.
34419 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34420 info, updated call to will_be_nonconstant_expr_predicate.
34421 (param_change_prob): New parameter fbi, limit AA walking.
34422 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34423 calls to various above functions.
34424 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34425 parameter. Use it to limit AA walking.
34426 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34427 fbi, limit AA walk.
34428 (detect_type_change): New parameter fbi, pass it on to
34429 detect_type_change_from_memory_writes.
34430 (detect_type_change_ssa): Likewise.
34431 (aa_overwalked): Removed.
34432 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34433 accordingly, adjust to the neew AA limiting scheme.
34434 (parm_ref_data_preserved_p): Likewise.
34435 (ipa_compute_jump_functions_for_edge): Adjust call to
34437 (ipa_analyze_call_uses): Likewise.
34438 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34439 (ipa_analyze_node): Initialize aa_walk_budget.
34440 (ipcp_transform_function): Likewise.
34441 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34442 to get_dynamic_type.
34444 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34446 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34447 outside of #if CHECKING_P code.
34449 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34451 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34452 New function, split out from...
34453 (loop_versioning::analyze_stride): ...here.
34454 (loop_versioning::find_per_loop_multiplication): Use gassign.
34455 (loop_versioning::analyze_term_using_scevs): Return a success code.
34456 (loop_versioning::analyze_arbitrary_term): New function.
34457 (loop_versioning::analyze_address_fragment): Use
34458 analyze_arbitrary_term if all else fails.
34460 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34463 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34466 2019-01-18 Richard Biener <rguenther@suse.de>
34468 PR tree-optimization/88903
34469 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34470 scalar stmts a SLP shift amount is composed of when detecting
34473 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34476 * config/arm/arm-cpus.in (mp): New feature.
34477 (sec): New feature.
34478 (fgroup ARMv7ve): Add mp and sec features.
34479 (arch armv7-a): Add options to allow mp and sec extensions.
34480 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34481 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34482 extenstions to the base architecture.
34483 (cpu cortex-a8): Add sec extension to the base architecture.
34484 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34485 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34486 variants down to the base v7-a varaint.
34487 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34488 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34489 of permitted extensions for -march=armv7-a and for
34490 -mcpu=generic-armv7-a.
34492 2019-01-18 Martin Liska <mliska@suse.cz>
34494 * params.def: Fix comment.
34495 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34497 (gimple_gen_ic_func_profiler): Likewise.
34499 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34501 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34502 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34503 and put in error checks for stack protector guard options.
34504 (aarch64_stack_protect_guard): New.
34505 (TARGET_STACK_PROTECT_GUARD): Define.
34506 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34507 (reg_stack_protect_address<mode>): New.
34508 (stack_protect_set): Adjust for SSP_GLOBAL.
34509 (stack_protect_test): Likewise.
34510 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34511 (-mstack-protector-guard): Likewise.
34512 (-mstack-protector-guard-offset): Likewise.
34514 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34516 PR tree-optimization/86214
34517 * tree-inline.h (struct copy_body_data): Add
34518 add_clobbers_to_eh_landing_pads member.
34519 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34520 (copy_edges_for_bb): Call it if EH edge destination is <
34521 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34522 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34523 if flag_stack_reuse != SR_NONE and clear it afterwards.
34525 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34528 * doc/install.texi (with-multilib-list): Document for aarch64.
34530 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34533 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34534 (("..."))) with ("...").
34536 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34538 * doc/extend.texi (Built-in Functions for Memory Model Aware
34539 Atomic Operations): Document atomic fetch and nand.
34541 2019-01-18 Martin Liska <mliska@suse.cz>
34542 Richard Biener <rguenther@suse.de>
34544 PR middle-end/88587
34545 * cgraph.h (create_version_clone_with_body): Add new argument
34547 * cgraphclones.c (cgraph_node::create_version_clone): Add
34548 DECL_ATTRIBUTES to a newly created decl. And call
34549 valid_attribute_p so that proper cl_target_optimization_node
34550 is set for the newly created declaration.
34551 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34553 (expand_target_clones): Do not call valid_attribute_p, it must
34555 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34558 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34561 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34562 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34563 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34565 2019-01-17 Martin Sebor <msebor@redhat.com>
34567 PR middle-end/88273
34568 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34569 Handle anti-ranges the same as no range at all.
34571 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34573 * config/aarch64/aarch64.c (cgraph.h): New include.
34574 (intl.h): New include.
34575 (supported_simd_type): New function.
34576 (currently_supported_simd_type): Ditto.
34577 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34578 (aarch64_simd_clone_adjust): Ditto.
34579 (aarch64_simd_clone_usable): Ditto.
34580 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34581 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34582 (TARGET_SIMD_CLONE_USABLE): Ditto.
34583 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34584 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34587 2019-01-17 Martin Sebor <msebor@redhat.com>
34589 PR tree-optimization/88800
34590 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34591 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34592 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34593 redundant argument. Add new argument and issue diagnostics under
34594 its control. Detect out-of-bounds access even with warnings
34596 (check_bounds_or_overlap): Change return type. Add argument.
34597 (wrestrict_dom_walker::check_call): Adjust.
34598 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34599 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34600 check_bounds_or_overlap's return value.
34601 (handle_builtin_stxncpy): Same.
34602 (handle_builtin_strcat): Same.
34604 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34605 Kwok Cheung Yeung <kcy@codesourcery.com>
34606 Julian Brown <julian@codesourcery.com>
34607 Tom de Vries <tom@codesourcery.com>
34609 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34611 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34613 * doc/sourcebuild.texi: Document dg-require-effective-target
34614 llvm_binutils and offload_gcn.
34616 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34617 Kwok Cheung Yeung <kcy@codesourcery.com>
34618 Julian Brown <julian@codesourcery.com>
34619 Tom de Vries <tom@codesourcery.com>
34621 * doc/sourcebuild.texi: Document dg-required-effective-target
34624 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34625 Kwok Cheung Yeung <kcy@codesourcery.com>
34626 Julian Brown <julian@codesourcery.com>
34627 Tom de Vries <tom@codesourcery.com>
34628 Jan Hubicka <hubicka@ucw.cz>
34629 Martin Jambor <mjambor@suse.cz>
34631 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34632 * configure.ac: Check for dlopen.
34633 * configure: Regenerate.
34635 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34636 Kwok Cheung Yeung <kcy@codesourcery.com>
34637 Julian Brown <julian@codesourcery.com>
34638 Tom de Vries <tom@codesourcery.com>
34639 Jan Hubicka <hubicka@ucw.cz>
34640 Martin Jambor <mjambor@suse.cz>
34642 * common/config/gcn/gcn-common.c: New file.
34643 * config/gcn/driver-gcn.c: New file.
34644 * config/gcn/gcn-builtins.def: New file.
34645 * config/gcn/gcn-hsa.h: New file.
34646 * config/gcn/gcn-modes.def: New file.
34647 * config/gcn/gcn-opts.h: New file.
34648 * config/gcn/gcn-passes.def: New file.
34649 * config/gcn/gcn-protos.h: New file.
34650 * config/gcn/gcn-run.c: New file.
34651 * config/gcn/gcn-tree.c: New file.
34652 * config/gcn/gcn.c: New file.
34653 * config/gcn/gcn.h: New file.
34654 * config/gcn/gcn.opt: New file.
34655 * config/gcn/t-gcn-hsa: New file.
34657 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34658 Kwok Cheung Yeung <kcy@codesourcery.com>
34659 Julian Brown <julian@codesourcery.com>
34660 Tom de Vries <tom@codesourcery.com>
34661 Jan Hubicka <hubicka@ucw.cz>
34662 Martin Jambor <mjambor@suse.cz>
34664 * config/gcn/constraints.md: New file.
34665 * config/gcn/gcn-valu.md: New file.
34666 * config/gcn/gcn.md: New file.
34667 * config/gcn/predicates.md: New file.
34669 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34671 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34672 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34673 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34674 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34676 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34679 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34680 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34681 it and document registers.
34683 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34685 * config/aarch64/aarch64.c (ares_tunings): Define.
34686 * config/aarch64/aarch64-cores.def (ares): Use the above.
34688 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34692 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34694 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34695 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34696 (_mm512_maskz_fixupimm_round_pd): Ditto.
34697 (_mm512_fixupimm_round_ps): Ditto.
34698 (_mm512_maskz_fixupimm_round_ps): Ditto.
34699 (_mm_fixupimm_round_sd): Ditto.
34700 (_mm_maskz_fixupimm_round_sd): Ditto.
34701 (_mm_fixupimm_round_ss): Ditto.
34702 (_mm_maskz_fixupimm_round_ss): Ditto.
34703 (_mm512_fixupimm_pd): Ditto.
34704 (_mm512_maskz_fixupimm_pd): Ditto.
34705 (_mm512_fixupimm_ps): Ditto.
34706 (_mm512_maskz_fixupimm_ps): Ditto.
34707 (_mm_fixupimm_sd): Ditto.
34708 (_mm_maskz_fixupimm_sd): Ditto.
34709 (_mm_fixupimm_ss): Ditto.
34710 (_mm_maskz_fixupimm_ss): Ditto.
34711 (_mm512_mask_fixupimm_round_pd): Update builtin.
34712 (_mm512_mask_fixupimm_round_ps): Ditto.
34713 (_mm_mask_fixupimm_round_sd): Ditto.
34714 (_mm_mask_fixupimm_round_ss): Ditto.
34715 (_mm512_mask_fixupimm_pd): Ditto.
34716 (_mm512_mask_fixupimm_ps): Ditto.
34717 (_mm_mask_fixupimm_sd): Ditto.
34718 (_mm_mask_fixupimm_ss): Ditto.
34719 * config/i386/avx512vlintrin.h:
34720 (_mm256_fixupimm_pd): Update parameters and builtin.
34721 (_mm256_maskz_fixupimm_pd): Ditto.
34722 (_mm256_fixupimm_ps): Ditto.
34723 (_mm256_maskz_fixupimm_ps): Ditto.
34724 (_mm_fixupimm_pd): Ditto.
34725 (_mm_maskz_fixupimm_pd): Ditto.
34726 (_mm_fixupimm_ps): Ditto.
34727 (_mm_maskz_fixupimm_ps): Ditto.
34728 (_mm256_mask_fixupimm_pd): Update builtin.
34729 (_mm256_mask_fixupimm_ps): Ditto.
34730 (_mm_mask_fixupimm_pd): Ditto.
34731 (_mm_mask_fixupimm_ps): Ditto.
34732 * config/i386/i386-builtin-types.def: Add new types and remove
34734 * config/i386/i386-builtin.def: Update builtin definitions.
34735 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34736 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34737 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34738 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34739 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34740 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34741 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34742 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34743 * config/i386/subst.md:
34744 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34745 (round_saeonly_sd_mask_op4): Ditto.
34746 (round_saeonly_expand_operand5): Ditto.
34747 (round_saeonly_expand): Update.
34749 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34753 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34755 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34756 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34757 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34758 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34759 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34760 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34761 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34763 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34767 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34770 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34771 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34772 instead of UNSPEC_FIXUPIMM.
34774 2019-01-17 Richard Biener <rguenther@suse.de>
34777 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34778 and friends for the LTO part of debug info.
34780 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34782 PR tree-optimization/86214
34783 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34786 PR rtl-optimization/88870
34787 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34788 throw if we can't alter the cfg or delete dead exceptions.
34789 (mark_insn): Don't call find_call_stack_args for such calls.
34791 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34793 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34794 prototypes for vec_st.
34795 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34796 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34797 mainly on signed/unsigned long long and double.
34799 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34802 * combine.c (delete_noop_moves): Convert to "bool" return,
34803 returning true if any edges are eliminated.
34804 (combine_instructions): Also return true if delete_noop_moves
34807 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34809 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34810 correct max nunits for endian swap.
34811 (aarch64_expand_fcmla_builtin): Correct subreg code.
34812 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34813 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34816 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34818 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34819 Handle split indirect COMPLEX_TYPE arguments.
34821 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34824 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34825 bit is set by add and compare.
34826 (CC_ADC): New CC_MODE.
34827 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34828 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34829 comparison. Add detection for CC_ADCmode.
34830 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34832 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34833 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34834 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34835 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34836 to eliminate the need for zero-extending the operands.
34837 (add<mode>3_compareC_imm): Delete. Merge into ...
34838 (add<mode>3_compareC): ... this. Restructure the comparison to
34839 eliminate the need for zero-extending the operands.
34840 (add<mode>3_carryin): Use LTU for the overflow detection.
34841 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34842 Reexpress comparison for overflow.
34843 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34844 (add<mode>3_carryinC): Likewise.
34845 (add<mode>3_carryinV): Use LTU for carry between partials.
34846 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34847 handling of CC_Cmode and add CC_ADCmode.
34848 (aarch64_borrow_operation): Likewise.
34850 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34852 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34853 Remove patternmode.
34854 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34855 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34856 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34857 Remove endianness conversion.
34859 2019-01-16 Martin Liska <mliska@suse.cz>
34861 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34863 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34865 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34866 (path_prefix_reset): Move up in the source file.
34867 (find_fortran_preinclude_file): Make complex search for the
34868 fortran header files.
34870 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34872 * godump.c (go_output_typedef): When outputting a typedef, refer
34873 to the underlying type by its name and not its structure.
34875 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34878 * tree.c (build_function_type): Assert that arg_types is not
34881 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34883 PR inline-asm/52813
34884 * doc/extend.texi: Document that listing the stack pointer in the
34885 clobber list of an asm is a deprecated feature.
34886 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34887 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34888 warning instead of an error for clobbers of the stack pointer.
34889 Add a note explaining why.
34891 2019-01-15 Richard Biener <rguenther@suse.de>
34894 * dwarf2out.c (gen_member_die): Do not generate inheritance
34897 2019-01-15 Richard Biener <rguenther@suse.de>
34899 PR tree-optimization/88855
34900 * tree-if-conv.c (combine_blocks): Collect
34901 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34903 2019-01-15 Tom de Vries <tdevries@suse.de>
34906 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34907 lhs == NULL_TREE for gang-level reduction.
34909 2019-01-15 Richard Biener <rguenther@suse.de>
34910 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34913 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34914 return true if SSA_NAME is already marked in visited bitmap.
34915 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34917 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34919 PR tree-optimization/88775
34920 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34921 equal == 0 equality pointer comparisons some more if compared in
34922 integral types and either one points to an automatic var and the
34923 other to a global, or we can prove at least one points to the middle
34924 or both point to start or both point to end.
34926 2019-01-14 Andi Kleen <ak@linux.intel.com>
34928 * Makefile.in: Lower autofdo sampling rate by 10x.
34929 * Makefile.tpl: Dito.
34931 2019-01-14 Tom Honermann <tom@honermann.net>
34933 * defaults.h: Define CHAR8_TYPE.
34935 2019-01-14 Martin Sebor <msebor@redhat.com>
34938 * doc/extend.texi (Darwin Format Checks): Clarify.
34940 2019-01-14 Richard Biener <rguenther@suse.de>
34942 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34943 whether we are in (simplify ...) or (match ...) context.
34945 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34947 PR rtl-optimization/88796
34948 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34949 * cfgexpand.c (stack_protect_prologue): Initialize
34950 crtl->stack_protect_guard_decl.
34951 * function.c (stack_protect_epilogue): Use it instead of calling
34952 targetm.stack_protect_guard again.
34953 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34954 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34955 crtl->stack_protect_guard_decl.
34956 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34957 on the returned MEM_EXPR.
34959 2019-01-12 Tom de Vries <tdevries@suse.de>
34961 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34962 vector length using -fopenacc-dim.
34964 2019-01-12 Tom de Vries <tdevries@suse.de>
34966 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34967 lengths into account.
34969 2019-01-12 Svante Signell <svante.signell@gmail.com>
34971 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34972 (TARGET_CAN_SPLIT_STACK): Define.
34973 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34975 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34977 * params.def (inline-unit-growth): Set to 40.
34979 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34981 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34983 2019-01-12 Tom de Vries <tdevries@suse.de>
34985 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34986 region calling vector-partitionable routine, set default_vector_length
34989 2019-01-12 Tom de Vries <tdevries@suse.de>
34991 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34992 variable default_vector_length.
34994 2019-01-12 Tom de Vries <tdevries@suse.de>
34996 PR middle-end/88703
34997 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34998 from oacc_default_dims, as oacc_validate_dims would do it, and apply
35001 2019-01-12 Tom de Vries <tdevries@suse.de>
35003 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
35004 (nvptx_goacc_validate_dims): Add used parameter.
35005 * doc/tm.texi: Regenerate.
35006 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
35007 argument to call to targetm.goacc.validate_dims.
35008 (default_goacc_validate_dims): Add used
35010 * target.def (validate_dims): Add used parameter in DEFHOOK.
35011 * targhooks.h (default_goacc_validate_dims): Add used parameter.
35013 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35015 PR middle-end/85956
35017 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
35019 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
35020 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
35021 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
35022 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
35024 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
35026 PR rtl-optimization/87305
35028 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
35029 for little endian pseudos used as paradoxical subreg.
35031 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35033 PR tree-optimization/88693
35034 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
35035 for STRING_CSTs that don't contain any NUL characters in the first
35036 TREE_STRING_LENGTH bytes.
35038 2019-01-11 Alan Modra <amodra@gmail.com>
35042 * genattrtab.c (min_fn): Don't translate values.
35043 (min_attr_value): Return INT_MAX when the value can't be calculated.
35044 Return minimum among any values that can be calculated.
35045 (max_attr_value): Adjust.
35047 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35049 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
35051 2019-01-11 Steve Ellcey <sellcey@marvell.com>
35053 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35054 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
35055 (aarch64_return_call_with_max_clobbers): New function.
35056 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
35057 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
35059 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
35060 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
35061 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
35062 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
35063 * cselib.c (cselib_process_insn): Add argument to
35064 targetm.hard_regno_call_part_clobbered call.
35065 * ira-conflicts.c (ira_build_conflicts): Ditto.
35066 * ira-costs.c (ira_tune_allocno_costs): Ditto.
35067 * lra-constraints.c (inherit_reload_reg): Ditto.
35068 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
35069 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
35070 argument. Call targetm.return_call_with_max_clobbers.
35071 Add argument to targetm.hard_regno_call_part_clobbered call.
35072 (calls_have_same_clobbers_p): New function.
35073 (process_bb_lives): Add call_insn and last_call_insn variables.
35074 Pass call_insn to check_pseudos_live_through_calls.
35075 Modify if stmt to check targetm.return_call_with_max_clobbers.
35076 Update setting of flush variable.
35077 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
35079 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
35080 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
35081 targetm.hard_regno_call_part_clobbered call.
35082 * reginfo.c (choose_hard_reg_mode): Ditto.
35083 * regrename.c (check_new_reg_p): Ditto.
35084 * reload.c (find_equiv_reg): Ditto.
35085 * reload1.c (emit_reload_insns): Ditto.
35086 * sched-deps.c (deps_analyze_insn): Ditto.
35087 * sel-sched.c (init_regs_for_mode): Ditto.
35088 (mark_unavailable_hard_regs): Ditto.
35089 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
35090 * target.def (hard_regno_call_part_clobbered): Add insn argument.
35091 (return_call_with_max_clobbers): New target function.
35092 * doc/tm.texi: Regenerate.
35093 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
35094 * hooks.c (hook_bool_uint_mode_false): Change to
35095 hook_bool_insn_uint_mode_false.
35096 * hooks.h (hook_bool_uint_mode_false): Ditto.
35098 2019-01-11 Steve Ellcey <sellcey@marvell.com>
35100 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35101 (aarch64_remove_extra_call_preserved_regs): New function.
35102 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
35103 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
35104 * doc/tm.texi: Regenerate.
35105 * final.c (get_call_reg_set_usage): Call new hook.
35106 * target.def (remove_extra_call_preserved_regs): New hook.
35107 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
35108 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
35110 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35113 * passes.c (finish_optimization_passes): Call print_combine_total_stats
35114 inside of pass_combine_1 dump rather than pass_profile_1.
35116 2019-01-11 Tom de Vries <tdevries@suse.de>
35118 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
35119 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
35120 (PTX_NUM_PER_WORKER_BARRIERS): Define.
35121 (nvptx_apply_dim_limits): Prevent vector_length 64 and
35124 2019-01-11 Tom de Vries <tdevries@suse.de>
35126 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
35128 2019-01-11 Jan Beulich <jbeulich@suse.com>
35130 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
35131 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
35132 sse2_cvtsi2sd): Add {l}.
35133 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
35136 2019-01-10 Jakub Jelinek <jakub@redhat.com>
35139 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
35141 (*float<floatunssuffix>v2div2sf2): New define_insn.
35142 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
35143 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
35144 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
35145 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
35146 match_operands with "const0_operand" "C".
35148 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35150 * config/aarch64/aarch64-builtins.c
35151 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
35152 (aarch64_init_simd_builtins): ...Here
35154 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
35156 PR rtl-optimization/87305
35158 (setup_live_pseudos_and_spill_after_risky_transforms): Check
35159 allocation for big endian pseudos used as paradoxical subregs and
35160 spill them if it is wrong.
35161 * lra-constraints.c (lra_constraints): Add a comment.
35163 2019-01-10 Richard Biener <rguenther@suse.de>
35165 PR tree-optimization/88792
35166 * tree-ssa-pre.c (get_representative_for): Do not return a
35169 2019-01-10 Jakub Jelinek <jakub@redhat.com>
35171 PR middle-end/84877
35173 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
35174 (assign_parm_setup_block): Do the argument slot realignment here
35177 2019-01-10 Stefan Agner <stefan@agner.ch>
35180 * config/arm/arm.c (arm_option_override_internal): Force
35181 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
35183 2019-01-10 Jakub Jelinek <jakub@redhat.com>
35186 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
35189 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35191 * config/arm/arm-builtins.c
35192 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
35193 (MAC_LANE_PAIR_QUALIFIERS): New.
35194 (arm_expand_builtin_args): Use it.
35195 (arm_expand_builtin_1): Likewise.
35196 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
35197 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
35198 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
35199 * config/arm/arm_neon.h:
35200 (vcadd_rot90_f16): New.
35201 (vcaddq_rot90_f16): New.
35202 (vcadd_rot270_f16): New.
35203 (vcaddq_rot270_f16): New.
35206 (vcmla_lane_f16): New.
35207 (vcmla_laneq_f16): New.
35208 (vcmlaq_lane_f16): New.
35209 (vcmlaq_laneq_f16): New.
35210 (vcmla_rot90_f16): New.
35211 (vcmlaq_rot90_f16): New.
35212 (vcmla_rot90_lane_f16): New.
35213 (vcmla_rot90_laneq_f16): New.
35214 (vcmlaq_rot90_lane_f16): New.
35215 (vcmlaq_rot90_laneq_f16): New.
35216 (vcmla_rot180_f16): New.
35217 (vcmlaq_rot180_f16): New.
35218 (vcmla_rot180_lane_f16): New.
35219 (vcmla_rot180_laneq_f16): New.
35220 (vcmlaq_rot180_lane_f16): New.
35221 (vcmlaq_rot180_laneq_f16): New.
35222 (vcmla_rot270_f16): New.
35223 (vcmlaq_rot270_f16): New.
35224 (vcmla_rot270_lane_f16): New.
35225 (vcmla_rot270_laneq_f16): New.
35226 (vcmlaq_rot270_lane_f16): New.
35227 (vcmlaq_rot270_laneq_f16): New.
35228 (vcadd_rot90_f32): New.
35229 (vcaddq_rot90_f32): New.
35230 (vcadd_rot270_f32): New.
35231 (vcaddq_rot270_f32): New.
35234 (vcmla_lane_f32): New.
35235 (vcmla_laneq_f32): New.
35236 (vcmlaq_lane_f32): New.
35237 (vcmlaq_laneq_f32): New.
35238 (vcmla_rot90_f32): New.
35239 (vcmlaq_rot90_f32): New.
35240 (vcmla_rot90_lane_f32): New.
35241 (vcmla_rot90_laneq_f32): New.
35242 (vcmlaq_rot90_lane_f32): New.
35243 (vcmlaq_rot90_laneq_f32): New.
35244 (vcmla_rot180_f32): New.
35245 (vcmlaq_rot180_f32): New.
35246 (vcmla_rot180_lane_f32): New.
35247 (vcmla_rot180_laneq_f32): New.
35248 (vcmlaq_rot180_lane_f32): New.
35249 (vcmlaq_rot180_laneq_f32): New.
35250 (vcmla_rot270_f32): New.
35251 (vcmlaq_rot270_f32): New.
35252 (vcmla_rot270_lane_f32): New.
35253 (vcmla_rot270_laneq_f32): New.
35254 (vcmlaq_rot270_lane_f32): New.
35255 (vcmlaq_rot270_laneq_f32): New.
35256 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35257 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35258 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35259 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35260 vcmlaq_lane270): New.
35261 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35262 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35263 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35264 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35265 (arm_option_reconfigure_globals): Use them.
35266 * config/arm/iterators.md (VDF, VQ_HSF): New.
35267 (VCADD, VCMLA): New.
35268 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35269 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35271 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35272 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35274 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35276 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35277 Add qualifier_lane_pair_index.
35278 (emit-rtl.h): Include.
35279 (TYPES_QUADOP_LANE_PAIR): New.
35280 (aarch64_simd_expand_args): Use it.
35281 (aarch64_simd_expand_builtin): Likewise.
35282 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35284 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35285 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35286 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35287 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35288 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35289 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35290 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35291 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35292 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35293 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35294 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35295 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35296 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35297 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35298 Add __ARM_FEATURE_COMPLEX.
35299 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35300 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35301 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35302 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35303 fcmlaq_lane270): New.
35304 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35305 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35306 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35307 * config/aarch64/arm_neon.h:
35308 (vcadd_rot90_f16): New.
35309 (vcaddq_rot90_f16): New.
35310 (vcadd_rot270_f16): New.
35311 (vcaddq_rot270_f16): New.
35314 (vcmla_lane_f16): New.
35315 (vcmla_laneq_f16): New.
35316 (vcmlaq_lane_f16): New.
35317 (vcmlaq_rot90_lane_f16): New.
35318 (vcmla_rot90_laneq_f16): New.
35319 (vcmla_rot90_lane_f16): New.
35320 (vcmlaq_rot90_f16): New.
35321 (vcmla_rot90_f16): New.
35322 (vcmlaq_laneq_f16): New.
35323 (vcmla_rot180_laneq_f16): New.
35324 (vcmla_rot180_lane_f16): New.
35325 (vcmlaq_rot180_f16): New.
35326 (vcmla_rot180_f16): New.
35327 (vcmlaq_rot90_laneq_f16): New.
35328 (vcmlaq_rot270_laneq_f16): New.
35329 (vcmlaq_rot270_lane_f16): New.
35330 (vcmla_rot270_laneq_f16): New.
35331 (vcmlaq_rot270_f16): New.
35332 (vcmla_rot270_f16): New.
35333 (vcmlaq_rot180_laneq_f16): New.
35334 (vcmlaq_rot180_lane_f16): New.
35335 (vcmla_rot270_lane_f16): New.
35336 (vcadd_rot90_f32): New.
35337 (vcaddq_rot90_f32): New.
35338 (vcaddq_rot90_f64): New.
35339 (vcadd_rot270_f32): New.
35340 (vcaddq_rot270_f32): New.
35341 (vcaddq_rot270_f64): New.
35345 (vcmla_lane_f32): New.
35346 (vcmla_laneq_f32): New.
35347 (vcmlaq_lane_f32): New.
35348 (vcmlaq_laneq_f32): New.
35349 (vcmla_rot90_f32): New.
35350 (vcmlaq_rot90_f32): New.
35351 (vcmlaq_rot90_f64): New.
35352 (vcmla_rot90_lane_f32): New.
35353 (vcmla_rot90_laneq_f32): New.
35354 (vcmlaq_rot90_lane_f32): New.
35355 (vcmlaq_rot90_laneq_f32): New.
35356 (vcmla_rot180_f32): New.
35357 (vcmlaq_rot180_f32): New.
35358 (vcmlaq_rot180_f64): New.
35359 (vcmla_rot180_lane_f32): New.
35360 (vcmla_rot180_laneq_f32): New.
35361 (vcmlaq_rot180_lane_f32): New.
35362 (vcmlaq_rot180_laneq_f32): New.
35363 (vcmla_rot270_f32): New.
35364 (vcmlaq_rot270_f32): New.
35365 (vcmlaq_rot270_f64): New.
35366 (vcmla_rot270_lane_f32): New.
35367 (vcmla_rot270_laneq_f32): New.
35368 (vcmlaq_rot270_lane_f32): New.
35369 (vcmlaq_rot270_laneq_f32): New.
35370 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35371 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35372 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35373 (FCADD, FCMLA): New.
35375 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35377 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35381 * config/pa/pa.c: Change "can not" to "cannot".
35382 * gimple-ssa-evrp-analyze.c: Likewise.
35383 * ipa-icf.c: Likewise.
35384 * ipa-polymorphic-call.c: Likewise.
35385 * ipa-pure-const.c: Likewise.
35386 * lra-constraints.c: Likewise.
35387 * lra-remat.c: Likewise.
35388 * reload1.c: Likewise.
35389 * reorg.c: Likewise.
35390 * tree-ssa-uninit.c: Likewise.
35392 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35396 * Makefile.in: Mechanically replace "can not" with "cannot".
35397 * alias.c: Likewise.
35398 * builtins.c: Likewise.
35399 * calls.c: Likewise.
35400 * cgraph.c: Likewise.
35401 * cgraph.h: Likewise.
35402 * cgraphclones.c: Likewise.
35403 * cgraphunit.c: Likewise.
35404 * combine-stack-adj.c: Likewise.
35405 * combine.c: Likewise.
35406 * common/config/i386/i386-common.c: Likewise.
35407 * config/aarch64/aarch64.c: Likewise.
35408 * config/alpha/sync.md: Likewise.
35409 * config/arc/arc.c: Likewise.
35410 * config/arc/predicates.md: Likewise.
35411 * config/arm/arm-c.c: Likewise.
35412 * config/arm/arm.c: Likewise.
35413 * config/arm/arm.h: Likewise.
35414 * config/arm/arm.md: Likewise.
35415 * config/arm/cortex-r4f.md: Likewise.
35416 * config/csky/csky.c: Likewise.
35417 * config/csky/csky.h: Likewise.
35418 * config/darwin-f.c: Likewise.
35419 * config/epiphany/epiphany.md: Likewise.
35420 * config/i386/i386.c: Likewise.
35421 * config/i386/sol2.h: Likewise.
35422 * config/m68k/m68k.c: Likewise.
35423 * config/mcore/mcore.h: Likewise.
35424 * config/microblaze/microblaze.md: Likewise.
35425 * config/mips/20kc.md: Likewise.
35426 * config/mips/sb1.md: Likewise.
35427 * config/nds32/nds32.c: Likewise.
35428 * config/nds32/predicates.md: Likewise.
35429 * config/pa/pa.c: Likewise.
35430 * config/rs6000/e300c2c3.md: Likewise.
35431 * config/rs6000/rs6000.c: Likewise.
35432 * config/s390/s390.h: Likewise.
35433 * config/sh/sh.c: Likewise.
35434 * config/sh/sh.md: Likewise.
35435 * config/spu/vmx2spu.h: Likewise.
35436 * cprop.c: Likewise.
35437 * dbxout.c: Likewise.
35438 * df-scan.c: Likewise.
35439 * doc/cfg.texi: Likewise.
35440 * doc/extend.texi: Likewise.
35441 * doc/fragments.texi: Likewise.
35442 * doc/gty.texi: Likewise.
35443 * doc/invoke.texi: Likewise.
35444 * doc/lto.texi: Likewise.
35445 * doc/md.texi: Likewise.
35446 * doc/objc.texi: Likewise.
35447 * doc/rtl.texi: Likewise.
35448 * doc/tm.texi: Likewise.
35450 * emit-rtl.c: Likewise.
35451 * emit-rtl.h: Likewise.
35452 * except.c: Likewise.
35453 * expmed.c: Likewise.
35454 * expr.c: Likewise.
35455 * fold-const.c: Likewise.
35456 * genautomata.c: Likewise.
35457 * gimple-fold.c: Likewise.
35458 * hard-reg-set.h: Likewise.
35459 * ifcvt.c: Likewise.
35460 * ipa-comdats.c: Likewise.
35461 * ipa-cp.c: Likewise.
35462 * ipa-devirt.c: Likewise.
35463 * ipa-fnsummary.c: Likewise.
35464 * ipa-icf.c: Likewise.
35465 * ipa-inline-transform.c: Likewise.
35466 * ipa-inline.c: Likewise.
35467 * ipa-polymorphic-call.c: Likewise.
35468 * ipa-profile.c: Likewise.
35469 * ipa-prop.c: Likewise.
35470 * ipa-pure-const.c: Likewise.
35471 * ipa-reference.c: Likewise.
35472 * ipa-split.c: Likewise.
35473 * ipa-visibility.c: Likewise.
35475 * ira-build.c: Likewise.
35476 * ira-color.c: Likewise.
35477 * ira-conflicts.c: Likewise.
35478 * ira-costs.c: Likewise.
35479 * ira-int.h: Likewise.
35480 * ira-lives.c: Likewise.
35483 * loop-invariant.c: Likewise.
35484 * loop-unroll.c: Likewise.
35485 * lower-subreg.c: Likewise.
35486 * lra-assigns.c: Likewise.
35487 * lra-constraints.c: Likewise.
35488 * lra-eliminations.c: Likewise.
35489 * lra-lives.c: Likewise.
35490 * lra-remat.c: Likewise.
35491 * lra-spills.c: Likewise.
35493 * lto-cgraph.c: Likewise.
35494 * lto-streamer-out.c: Likewise.
35495 * postreload-gcse.c: Likewise.
35496 * predict.c: Likewise.
35497 * profile-count.h: Likewise.
35498 * profile.c: Likewise.
35499 * recog.c: Likewise.
35501 * reload.c: Likewise.
35502 * reload1.c: Likewise.
35503 * reorg.c: Likewise.
35504 * resource.c: Likewise.
35505 * rtl.def: Likewise.
35507 * rtlanal.c: Likewise.
35508 * sched-deps.c: Likewise.
35509 * sched-ebb.c: Likewise.
35510 * sched-rgn.c: Likewise.
35511 * sel-sched-ir.c: Likewise.
35512 * sel-sched.c: Likewise.
35513 * shrink-wrap.c: Likewise.
35514 * simplify-rtx.c: Likewise.
35515 * symtab.c: Likewise.
35516 * target.def: Likewise.
35517 * toplev.c: Likewise.
35518 * tree-call-cdce.c: Likewise.
35519 * tree-cfg.c: Likewise.
35520 * tree-complex.c: Likewise.
35521 * tree-core.h: Likewise.
35522 * tree-eh.c: Likewise.
35523 * tree-inline.c: Likewise.
35524 * tree-loop-distribution.c: Likewise.
35525 * tree-nrv.c: Likewise.
35526 * tree-profile.c: Likewise.
35527 * tree-sra.c: Likewise.
35528 * tree-ssa-alias.c: Likewise.
35529 * tree-ssa-dce.c: Likewise.
35530 * tree-ssa-dom.c: Likewise.
35531 * tree-ssa-forwprop.c: Likewise.
35532 * tree-ssa-loop-im.c: Likewise.
35533 * tree-ssa-loop-ivcanon.c: Likewise.
35534 * tree-ssa-loop-ivopts.c: Likewise.
35535 * tree-ssa-loop-niter.c: Likewise.
35536 * tree-ssa-phionlycprop.c: Likewise.
35537 * tree-ssa-phiopt.c: Likewise.
35538 * tree-ssa-propagate.c: Likewise.
35539 * tree-ssa-threadedge.c: Likewise.
35540 * tree-ssa-threadupdate.c: Likewise.
35541 * tree-ssa-uninit.c: Likewise.
35542 * tree-ssanames.c: Likewise.
35543 * tree-streamer-out.c: Likewise.
35544 * tree.c: Likewise.
35545 * tree.h: Likewise.
35546 * vr-values.c: Likewise.
35548 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35550 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35551 (ix86_split_xorsign): Ditto.
35552 * config/i386/i386.c (ix86_expand_xorsign): New function.
35553 (ix86_split_xorsign): Ditto.
35554 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35555 (xorsign<mode>3): New expander.
35556 (xorsign<mode>3_1): New insn_and_split pattern.
35557 * config/i386/sse.md (xorsign<mode>3): New expander.
35559 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35561 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35562 (*tablejump_sp64): Likewise.
35563 (*tablejump<P:mode>): ...this.
35564 (*call_address_sp32): Merge into...
35565 (*call_address_sp64): Likewise.
35566 (*call_address<P:mode>): ...this.
35567 (*call_symbolic_sp32): Merge into...
35568 (*call_symbolic_sp64): Likewise.
35569 (*call_symbolic<P:mode>): ...this.
35570 (call_value): Remove constraint and add predicate.
35571 (*call_value_address_sp32): Merge into...
35572 (*call_value_address_sp64): Likewise.
35573 (*call_value_address<P:mode>): ...this.
35574 (*call_value_symbolic_sp32): Merge into...
35575 (*call_value_symbolic_sp64): Likewise.
35576 (*call_value_symbolic<P:mode>): ...this.
35577 (*sibcall_symbolic_sp32): Merge into...
35578 (*sibcall_symbolic_sp64): Likewise.
35579 (*sibcall_symbolic<P:mode>): ...this.
35580 (sibcall_value): Remove constraint and add predicate.
35581 (*sibcall_value_symbolic_sp32): Merge into...
35582 (*sibcall_value_symbolic_sp64): Likewise.
35583 (*sibcall_value_symbolic<P:mode>): ...this.
35584 (window_save): Minor tweak.
35585 (*branch_sp32): Merge into...
35586 (*branch_sp64): Likewise.
35587 (*branch<P:mode>): ...this.
35589 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35590 James Clarke <jrtc27@jrtc27.com>
35593 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35594 consistently in TLS address generation and adjust code to the renaming
35595 of patterns. Mark calls to __tls_get_addr as const.
35596 * config/sparc/sparc.md (tgd_hi22): Turn into...
35597 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35598 (tgd_lo10): Turn into...
35599 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35600 (tgd_add32): Merge into...
35601 (tgd_add64): Likewise.
35602 (tgd_add<P:mode>): ...this and use Pmode throughout.
35603 (tldm_hi22): Turn into...
35604 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35605 (tldm_lo10): Turn into...
35606 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35607 (tldm_add32): Merge into...
35608 (tldm_add64): Likewise.
35609 (tldm_add<P:mode>): ...this and use Pmode throughout.
35610 (tldm_call32): Merge into...
35611 (tldm_call64): Likewise.
35612 (tldm_call<P:mode>): ...this and use Pmode throughout.
35613 (tldo_hix22): Turn into...
35614 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35615 (tldo_lox10): Turn into...
35616 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35617 (tldo_add32): Merge into...
35618 (tldo_add64): Likewise.
35619 (tldo_add<P:mode>): ...this and use Pmode throughout.
35620 (tie_hi22): Turn into...
35621 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35622 (tie_lo10): Turn into...
35623 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35624 (tie_ld64): Use DImode throughout.
35625 (tie_add32): Merge into...
35626 (tie_add64): Likewise.
35627 (tie_add<P:mode>): ...this and use Pmode throughout.
35628 (tle_hix22_sp32): Merge into...
35629 (tle_hix22_sp64): Likewise.
35630 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35631 (tle_lox22_sp32): Merge into...
35632 (tle_lox22_sp64): Likewise.
35633 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35634 (*tldo_ldub_sp32): Merge into...
35635 (*tldo_ldub_sp64): Likewise.
35636 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35637 (*tldo_ldub1_sp32): Merge into...
35638 (*tldo_ldub1_sp64): Likewise.
35639 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35640 (*tldo_ldub2_sp32): Merge into...
35641 (*tldo_ldub2_sp64): Likewise.
35642 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35643 (*tldo_ldsb1_sp32): Merge into...
35644 (*tldo_ldsb1_sp64): Likewise.
35645 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35646 (*tldo_ldsb2_sp32): Merge into...
35647 (*tldo_ldsb2_sp64): Likewise.
35648 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35649 (*tldo_ldub3_sp64): Use DImode throughout.
35650 (*tldo_ldsb3_sp64): Likewise.
35651 (*tldo_lduh_sp32): Merge into...
35652 (*tldo_lduh_sp64): Likewise.
35653 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35654 (*tldo_lduh1_sp32): Merge into...
35655 (*tldo_lduh1_sp64): Likewise.
35656 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35657 (*tldo_ldsh1_sp32): Merge into...
35658 (*tldo_ldsh1_sp64): Likewise.
35659 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35660 (*tldo_lduh2_sp64): Use DImode throughout.
35661 (*tldo_ldsh2_sp64): Likewise.
35662 (*tldo_lduw_sp32): Merge into...
35663 (*tldo_lduw_sp64): Likewise.
35664 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35665 (*tldo_lduw1_sp64): Use DImode throughout.
35666 (*tldo_ldsw1_sp64): Likewise.
35667 (*tldo_ldx_sp64): Likewise.
35668 (*tldo_stb_sp32): Merge into...
35669 (*tldo_stb_sp64): Likewise.
35670 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35671 (*tldo_sth_sp32): Merge into...
35672 (*tldo_sth_sp64): Likewise.
35673 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35674 (*tldo_stw_sp32): Merge into...
35675 (*tldo_stw_sp64): Likewise.
35676 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35677 (*tldo_stx_sp64): Use DImode throughout.
35679 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35681 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35682 check configure option to set BTI and Return Address Signing.
35683 * configure.ac: Add --enable-standard-branch-protection and
35684 --disable-standard-branch-protection.
35685 * configure: Regenerated.
35686 * doc/install.texi: Document the same.
35688 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35689 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35691 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35692 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35693 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35695 * config/aarch64/aarch64-bti-insert.c: New file.
35696 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35698 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35700 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35701 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35702 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35703 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35705 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35707 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35708 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35709 Disable bti for -mbranch-protection=none.
35710 (aarch64_handle_standard_branch_protection): Enable bti for
35711 -mbranch-protection=standard.
35712 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35713 -mbranch-protection.
35714 (aarch64_bti_enabled): Check if bti is enabled.
35715 * config/aarch64/aarch64.opt: Declare target variable.
35716 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35718 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35720 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35721 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35722 (aarch64_expand_epilogue): Likewise.
35723 (aarch64_output_mi_thunk): Likewise.
35724 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35725 TAILCALL_ADDR_REGS to x16 and x17.
35726 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35728 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35730 * config/aarch64/aarch64-option-extensions.def: Define
35731 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35732 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35733 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35734 (AARCH64_FL_PREDRES): New.
35735 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35736 AARCH64_FL_PREDRES by default.
35737 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35739 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35741 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35743 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35744 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35745 * doc/invoke.texi: Document ARMv8.5-A.
35747 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35749 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35750 (xorsign<mode>3): Likewise.
35752 2019-01-09 Jelinek <jakub@redhat.com>
35754 PR middle-end/88758
35755 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35756 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35758 PR rtl-optimization/88331
35759 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35760 not currently_expanding_to_rtl.
35762 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35764 * doc/invoke.texi (-Os): Remove trailing spaces.
35765 (-finline-functions): Remove reference to -O2.
35767 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35769 PR rtl-optimization/79593
35770 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35772 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35773 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35775 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35778 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35782 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35783 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35785 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35788 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35789 ix86_avx_u128_mode_entry.
35791 2019-01-08 Martin Liska <mliska@suse.cz>
35793 PR tree-optimization/88753
35794 * tree-switch-conversion.c (switch_conversion::build_one_array):
35795 Come up with local variable constructor. Convert first to
35796 type of constructor values.
35798 2019-01-08 Richard Biener <rguenther@suse.de>
35800 PR tree-optimization/86554
35801 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35802 rpo_avail): Move earlier.
35803 (visit_nary_op): When value-numbering to expressions
35804 with different overflow behavior make sure there's an
35805 available expression on the path.
35807 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35809 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35810 aarch64_parse_branch_protection,
35811 struct aarch64_branch_protect_type,
35812 aarch64_handle_no_branch_protection,
35813 aarch64_handle_standard_branch_protection,
35814 aarch64_validate_mbranch_protection,
35815 aarch64_handle_pac_ret_protection,
35816 aarch64_handle_attr_branch_protection,
35817 accepted_branch_protection_string,
35818 aarch64_pac_ret_subtypes,
35819 aarch64_branch_protect_types,
35820 aarch64_handle_pac_ret_leaf): Define.
35821 (aarch64_override_options_after_change_1, aarch64_override_options):
35822 Add check for accepted_branch_protection_string.
35823 (aarch64_option_save): Save accepted_branch_protection_string.
35824 (aarch64_option_restore): Save accepted_branch_protection_string.
35825 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35826 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35827 msign-return-address.
35828 * doc/invoke.texi: Add mbranch-protection.
35830 2019-01-08 Alan Modra <amodra@gmail.com>
35833 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35834 Delete "unknownp" parameter. Adjust callers. Handle
35835 CONST_INT, PLUS, MINUS, and MULT.
35836 (attr_value_aligned): Renamed from or_attr_value.
35837 (min_attr_value): Return INT_MIN for unhandled rtl case..
35838 (min_fn): ..and translate to INT_MAX here.
35839 (write_length_unit_log): Modify to cope without "unknown".
35840 (write_attr_value): Handle IF_THEN_ELSE.
35842 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35844 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35845 optimization for masked stores.
35847 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35849 PR middle-end/88567
35850 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35851 output vector directly to duplicate_and_interleave instead of
35852 going through a temporary. Postpone insertion of ctor_seq to
35853 the end of the loop.
35855 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35858 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35859 unsigned_p. Handle signed and unsigned overflow correction as
35861 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35863 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35865 (add<mode>3_compareV_imm): Make this callable for expanding.
35866 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35867 aarch64_plus_operand for operand 2.
35868 (subv<GPI:mode>_insn): New insn pattern.
35869 (subv<GPI:mode>_imm): Likewise.
35870 (negv<GPI:mode>3): New expand pattern.
35871 (negv<GPI:mode>_insn): New insn pattern.
35872 (negv<GPI:mode>_cmp_only): Likewise.
35873 (cmpv<GPI:mode>_insn): Likewise.
35874 (subvti4): Use register_operand for operand 1. Update call to
35875 aarch64_expand_subvti.
35876 (usubvti4): Likewise.
35877 (negvti3): New expand pattern.
35878 (negdi_carryout): New insn pattern.
35879 (negvdi_carryinV): New insn pattern.
35880 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35881 version the named version.
35882 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35884 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35886 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35888 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35889 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35890 (sub<mode>3_carryinCV): Delete.
35891 (sub<GPI:mode>3_carryinV): New expand pattern.
35892 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35894 2019-01-07 Richard Biener <rguenther@suse.de>
35896 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35897 of tree_operand_hash.
35899 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35901 PR tree-optimization/88598
35902 * tree.h (single_nonzero_element): Declare.
35903 * tree.c (single_nonzero_element): New function.
35904 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35905 if I is the only nonzero element of CST.
35907 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35909 PR tree-optimization/88598
35910 * tree.h (initializer_each_zero_or_onep): Declare.
35911 * tree.c (initializer_each_zero_or_onep): New function.
35912 (signed_or_unsigned_type_for): Handle float types too.
35913 (unsigned_type_for, signed_type_for): Update comments accordingly.
35914 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35915 x & { 0 or -1, 0 or -1, ... }.
35917 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35919 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35920 with x86_64-pc-linux-gnu.
35922 2019-01-07 Tom de Vries <tdevries@suse.de>
35925 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35927 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35930 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35932 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35933 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35934 TARGET_AVX512F as condition.
35937 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35938 const_not_ok_for_debug_p target hook.
35939 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35940 on UNSPEC and subexpressions thereof if all subexpressions of the
35941 UNSPEC are CONSTANT_P.
35943 PR tree-optimization/88676
35944 * tree-ssa-phiopt.c (two_value_replacement): New function.
35945 (tree_ssa_phiopt_worker): Call it.
35948 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35949 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35952 * tree-vect-generic.c: Include insn-config.h and recog.h.
35953 (expand_vector_piecewise): Add defaulted ret_type argument,
35954 if non-NULL, use that in preference to type for the result type.
35955 (expand_vector_parallel): Formatting fix.
35956 (do_vec_conversion, do_vec_narrowing_conversion,
35957 expand_vector_conversion): New functions.
35958 (expand_vector_operations_1): Call expand_vector_conversion
35959 for VEC_CONVERT ifn calls.
35960 * internal-fn.def (VEC_CONVERT): New internal function.
35961 * internal-fn.c (expand_VEC_CONVERT): New function.
35962 * fold-const-call.c (fold_const_vec_convert): New function.
35963 (fold_const_call): Use it for CFN_VEC_CONVERT.
35964 * doc/extend.texi (__builtin_convertvector): Document.
35966 2019-01-07 Tom de Vries <tdevries@suse.de>
35968 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35969 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35970 vector_red_partition, vector_red_sym): New global variables.
35971 (nvptx_option_override): Initialize vector_red_sym.
35972 (nvptx_declare_function_name): Restore red_partition register.
35973 (nvptx_file_end): Emit code to declare the vector reduction variables.
35974 (nvptx_output_red_partition): New function.
35975 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35976 large vector reductions.
35977 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35978 (nvptx_init_builtins): Add VECTOR_ADDR.
35979 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35980 Handle nvptx_expand_shared_addr.
35981 (nvptx_get_shared_red_addr): Add vector argument and handle large
35983 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35985 (nvptx_goacc_reduction_init): Likewise.
35986 (nvptx_goacc_reduction_fini): Likewise.
35987 (nvptx_goacc_reduction_teardown): Likewise.
35988 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35989 init,fini,teardown}.
35990 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35991 (nvptx_set_current_function): Init vector_red_partition.
35992 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35993 (nvptx_red_partition): New insn.
35994 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35996 2019-01-07 Tom de Vries <tdevries@suse.de>
35999 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
36002 2019-01-07 Tom de Vries <tdevries@suse.de>
36004 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
36005 (nvptx_option_override): Init oacc_bcast_partition.
36006 (nvptx_init_oacc_workers): New function.
36007 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
36008 (nvptx_needs_shared_bcast): New function.
36009 (nvptx_find_par): Generalize to enable vectors to use shared-memory
36010 to propagate state.
36011 (nvptx_shared_propagate): Initialize vector bcast partition and
36012 synchronization state.
36013 (nvptx_single): Generalize to enable vectors to use shared-memory
36014 to propagate state.
36015 (nvptx_process_pars): Likewise.
36016 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
36017 * config/nvptx/nvptx.h (struct machine_function): Add
36018 bcast_partition and sync_bar members.
36020 2019-01-07 Tom de Vries <tdevries@suse.de>
36022 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
36023 (nvptx_apply_dim_limits): New function.
36024 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
36027 2019-01-07 Tom de Vries <tdevries@suse.de>
36029 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
36030 as late as possible.
36032 2019-01-07 Tom de Vries <tdevries@suse.de>
36034 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
36035 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
36036 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
36037 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
36038 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
36040 2019-01-07 Tom de Vries <tdevries@suse.de>
36042 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
36044 2019-01-07 Tom de Vries <tdevries@suse.de>
36046 * omp-offload.c (oacc_get_min_dim): New function.
36047 * omp-offload.h (oacc_get_min_dim): Declare.
36049 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
36052 * config/i386/i386.c (function_value_ms_64): Return small sturct in
36053 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
36055 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36059 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
36061 * ipa-inline.c (edge_badness): Use inlined_time instead of
36062 inline_summaries->get.
36064 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36066 * opts.c (enable_fdo_optimizations): Enable
36067 version-loops-for-strides, loop-interchange, unrol-and-jam
36068 and tree-loop-distribution.
36069 * invoke.texi: Document newly enabled options.
36071 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36073 * doc/invoke.texi (max-inline-insns-small): New parameters.
36074 * ipa-inline.c (want_early_inline_function_p): simplify.
36075 (want_inline_small_function_p): Fix pasto from previous patch;
36076 use max-inline-insns-small bound.
36077 * params.def (max-inline-insns-small): New param.
36078 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
36079 variables correctly.
36081 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36083 * doc/invoke.texi: Document max-inline-insns-size,
36084 uninlined-function-insns, uninlined-function-time,
36085 uninlined-thunk-insns and uninlined-thunk-time.
36086 * params.def: Add max-inline-insns-size,
36087 uninlined-function-insns, uninlined-function-time,
36088 uninlined-thunk-insns and uninlined-thunk-time.
36089 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
36091 * ipa-inline.c (can_inline_edge_by_limits_p,
36092 want_inline_small_function_p): Use new parameters.
36094 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36096 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
36098 2019-01-05 Jakub Jelinek <jakub@redhat.com>
36100 PR middle-end/82564
36102 * expr.c (expand_assignment): For calls returning VLA structures
36103 if to_rtx is not a MEM, force it into a stack temporary.
36106 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
36107 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
36108 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
36109 subexpressions of both operands.
36110 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
36111 subrtxes are CONSTANT_P.
36112 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
36113 2018-11-09 changes.
36115 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
36117 * params.def (hot-bb-count-ws-permille): Set to 990.
36119 2019-01-04 Martin Sebor <msebor@redhat.com>
36122 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
36125 2019-01-04 Martin Sebor <msebor@redhat.com>
36128 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
36130 2019-01-04 Jakub Jelinek <jakub@redhat.com>
36132 * gdbinit.in: Turn off pagination for the skip commands, restore
36133 it to previous state afterwards.
36135 2019-01-04 Jakub Jelinek <jakub@redhat.com>
36138 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
36139 of GET_MODE (opN) as modes of the libcall arguments.
36141 2019-01-04 Jan Beulich <jbeulich@suse.com>
36143 * config/i386/sse.md
36144 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
36145 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
36146 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36147 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36148 avx512f_vmcmp<mode>3<round_saeonly_name>,
36149 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
36150 avx512f_maskcmp<mode>3,
36151 <avx512>_cvt<ssemodesuffix>2mask<mode>,
36152 <avx512>_cvt<ssemodesuffix>2mask<mode>,
36153 *<avx512>_cvtmask2<ssemodesuffix><mode>,
36154 *<avx512>_cvtmask2<ssemodesuffix><mode>,
36155 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36156 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36157 <avx512>_gt<mode>3<mask_scalar_merge_name>,
36158 <avx512>_gt<mode>3<mask_scalar_merge_name>,
36159 <avx512>_testm<mode>3<mask_scalar_merge_name>,
36160 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
36161 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
36162 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
36163 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
36164 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
36165 avx512cd_maskb_vec_dup<mode>,
36166 avx512cd_maskw_vec_dup<mode>,
36167 avx512dq_fpclass<mode><mask_scalar_merge_name>,
36168 avx512dq_vmfpclass<mode>,
36169 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
36172 2019-01-03 Martin Sebor <msebor@redhat.com>
36174 PR tree-optimization/88659
36175 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
36177 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
36179 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
36180 unaligned vsx and avoid lxvd2x/stxvd2x.
36181 (gen_lvx_v4si_move): New function.
36183 2019-01-03 Tom de Vries <tdevries@suse.de>
36185 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
36186 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
36188 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
36190 2019-01-03 Tom de Vries <tdevries@suse.de>
36192 * config/nvptx/nvptx.c (struct offload_attrs): New.
36193 (populate_offload_attrs): New function. Factor mask extraction out of
36194 nvptx_reorg. Add extraction of dimensions.
36195 (nvptx_reorg): Use populate_offload_attrs.
36197 2019-01-03 Tom de Vries <tdevries@suse.de>
36199 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
36200 cases for oacc_min_dims_p and routine_p. Add asserts for
36201 oacc_default_dims_p and offload_region_p.
36203 2019-01-03 Tom de Vries <tdevries@suse.de>
36205 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
36206 factored out of ...
36207 (nvptx_goacc_validate_dims): ... here.
36209 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36211 PR tree-optimization/85574
36212 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36214 (struct ssa_equip_hash_traits): Declare.
36215 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36217 2019-01-03 Jakub Jelinek <jakub@redhat.com>
36220 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36221 change it to qualified_type.
36223 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36225 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36226 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36228 2019-01-02 Martin Sebor <msebor@redhat.com>
36229 Jeff Law <law@redhat.com>
36231 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36232 (get_range_strlen_tree): Update appropriately.
36234 * gimple-fold.h (get_range_strlen): Drop unused last argument.
36236 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36237 rather than set_range_info.
36238 * tree-ssa-strlen.c (set_strlen_range): Extracted from
36239 maybe_set_strlen_range. Handle potentially boundary crossing
36240 cases more conservatively.
36241 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36242 Call set_strlen_range.
36243 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36245 PR middle-end/88663
36246 * gimple-fold.c (get_range_strlen): Update prototype to no longer
36247 need the flexp argument.
36248 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
36249 from calls to get_range_strlen. Update comments. Just update
36250 VAL for an unterminated const char array and let the reset of the
36251 code handle it normally. No longer try to set *flexp. Adjust
36253 (get_range_strlen): Update for the new get_range_strlen API.
36254 (get_maxval_strlen): Similarly.
36255 (gimple_fold_builtin_strlen): Handle update meaning of return value
36256 from get_range_strlen.
36257 * gimple-ssa-sprintf.c (get_string_length): Update for the new
36258 get_range_strlen API.
36260 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
36263 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36264 false at WPA time when body was removed.
36266 2019-01-02 Martin Liska <mliska@suse.cz>
36268 PR tree-optimization/88650
36269 * predict.c (set_even_probabilities): Calculate probability
36270 remainer only when really used.
36272 2019-01-02 Richard Biener <rguenther@suse.de>
36274 PR middle-end/88651
36275 * tree-data-ref.c (analyze_subscript_affine_affine): Use
36276 widest_ints when mangling max_stmt_execution results.
36278 2019-01-02 Richard Biener <rguenther@suse.de>
36280 PR tree-optimization/88621
36281 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36282 bitfields when canoncalizing.
36284 2019-01-02 Richard Biener <rguenther@suse.de>
36287 * config/i386/x86-tune-costs.h (intel_cost): Adjust
36288 cost of cheap SSE instruction.
36290 2019-01-02 Richard Biener <rguenther@suse.de>
36293 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36294 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36296 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36297 set after UIDs before splitting them.
36299 2019-01-01 Martin Sebor <msebor@redhat.com>
36300 Jeff Law <law@redhat.com>
36302 * gimple-fold.c (get_range_strlen_tree): Record if the computed
36303 length is optimistic. If it is, then arrange to compute the
36304 conservative length as well.
36306 * gimple-fold.h (get_range_strlen): Update prototype.
36307 * builtins.c (check_access): Update call to get_range_strlen to use
36308 c_strlen_data pointer. Change various variable accesses to instead
36309 pull data from the c_strlen_data structure.
36310 (check_strncat_sizes, expand_builtin_strncat): Likewise.
36311 * calls.c (maybe_warn_nonstring_arg): Likewise.
36312 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
36313 minimum length if maximum lengh is unknown.
36314 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
36315 that used c_strlen, it's no longer needed. Restructure slightly.
36316 (format_string): Set unlikely range appropriately.
36317 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
36319 (get_range_strlen): Accept c_strlen_data pointer for external
36320 call sites as well. Pass through to call to internal get_range_strlen.
36321 Adjust minlen, maxlen and maxbound as needed.
36322 (get_maxval_strlen): Update comments.
36323 (gimple_fold_builtin_strlen): Update call to get_range_strlen
36324 to use c_strlen_data pointer. Change variable accesses to instead
36325 use c_strlen_data data members.
36327 * gimple-fold.c (get_range_strlen): Update prototype.
36328 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
36329 local variables. Use pdata to return information to caller.
36330 Update calls to get_range_strlen. Update pdata->maxbound.
36331 (get_range_strlen -- static version): Similarly.
36332 (get_range_strlen -- extern version): Update for internal
36333 get_range_strlen API change. Convert to external data format.
36334 (get_maxval_strlen): Similarly.
36336 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
36338 * coverage.c (get_coverage_counts): Use current_function_decl.
36339 * profile.c (read_thunk_profile): New function.
36340 (branch_prob): Add THUNK parameter.
36341 * tree-profile.c (tree_profiling): Handle thunks.
36342 * value-prof.c (init_node_map): Handle thunks.
36343 * value-prof.h (branch_prob): Upate prototype.
36344 (read_thunk_profile): Declare.
36346 2019-01-01 Jakub Jelinek <jakub@redhat.com>
36348 Update copyright years.
36350 * gcc.c (process_command): Update copyright notice dates.
36351 * gcov-dump.c (print_version): Ditto.
36352 * gcov.c (print_version): Ditto.
36353 * gcov-tool.c (print_version): Ditto.
36354 * gengtype.c (create_file): Ditto.
36355 * doc/cpp.texi: Bump @copying's copyright year.
36356 * doc/cppinternals.texi: Ditto.
36357 * doc/gcc.texi: Ditto.
36358 * doc/gccint.texi: Ditto.
36359 * doc/gcov.texi: Ditto.
36360 * doc/install.texi: Ditto.
36361 * doc/invoke.texi: Ditto.
36363 Copyright (C) 2019 Free Software Foundation, Inc.
36365 Copying and distribution of this file, with or without modification,
36366 are permitted in any medium without royalty provided the copyright
36367 notice and this notice are preserved.