1 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
3 * config/aarch64/iterators.md (vccore): New iterator.
4 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
6 (*vec_series<mode>_plus): Likewise.
8 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
10 * omp-low.c (scan_omp_for): Use clause location in warning.
12 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
14 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
15 (add_const_value_attribute): Likewise.
17 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
19 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
20 handling direct_slp_reduc, allow the PHI arguments to have
21 a different type from the vector elements.
23 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
25 * tree-vect-stmts.c (vectorizable_condition): Record the loop
26 masks required for extract-last reductions.
28 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
30 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
31 original scalar statement rather than a pattern statement.
32 (vectorizable_condition): Likewise, in the handling of extract-last
35 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
37 * tree-vect-loop.c (vectorizable_reduction): Don't use
38 EXTRACT_LAST_REDUCTION for chained reductions.
40 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
42 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
43 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
44 second demangled name.
46 2019-12-10 Jakub Jelinek <jakub@redhat.com>
48 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
50 2019-12-10 Martin Liska <mliska@suse.cz>
52 PR tree-optimization/92862
53 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
54 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
57 2019-12-09 David Malcolm <dmalcolm@redhat.com>
60 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
61 label_text ctor call with label_text::borrow.
62 * gcc-rich-location.h (text_range_label::get_text): Replace
63 label_text ctor called with false with label_text::borrow.
65 2019-12-09 David Malcolm <dmalcolm@redhat.com>
67 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
69 (selftest::test_diagnostic_show_locus_unknown_location): Remove
70 initial newline from expected outputs.
71 (selftest::test_one_liner_simple_caret): Likewise.
72 (selftest::test_one_liner_caret_and_range): Likewise.
73 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
74 (selftest::test_one_liner_fixit_insert_before): Likewise.
75 (selftest::test_one_liner_fixit_insert_after): Likewise.
76 (selftest::test_one_liner_fixit_remove): Likewise.
77 (selftest::test_one_liner_fixit_replace): Likewise.
78 (selftest::test_one_liner_fixit_replace_non_equal_range):
80 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
82 (selftest::test_one_liner_fixit_validation_adhoc_locations):
84 (selftest::test_one_liner_many_fixits_1): Likewise.
85 (selftest::test_one_liner_many_fixits_2): Likewise.
86 (selftest::test_one_liner_labels): Likewise.
87 (selftest::test_one_liner_simple_caret_utf8): Likewise.
88 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
89 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
91 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
92 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
93 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
94 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
95 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
97 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
99 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
101 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
102 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
103 (selftest::test_one_liner_labels_utf8): Likewise.
104 (selftest::test_add_location_if_nearby): Likewise.
105 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
106 (selftest::test_overlapped_fixit_printing): Likewise.
107 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
108 (selftest::test_overlapped_fixit_printing_2): Likewise.
109 (selftest::test_fixit_insert_containing_newline): Likewise.
110 (selftest::test_fixit_insert_containing_newline_2): Likewise.
111 (selftest::test_fixit_replace_containing_newline): Likewise.
112 (selftest::test_fixit_deletion_affecting_newline): Likewise.
113 (selftest::test_line_numbers_multiline_range): Likewise.
114 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
115 before call to diagnostic_show_locus.
116 (diagnostic_append_note): Likewise.
118 2019-12-09 Martin Sebor <msebor@redhat.com>
122 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
124 * hash-table.h (hash_table::expand): Use placement new to copy
125 construct objects in uninitialized storage.
126 (hash_table::empty_slow): Avoid invoking copy assignment on
127 uninitialized objects.
129 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
131 PR preprocessor/49973
132 * input.c (location_compute_display_column): New function to help with
133 multibyte awareness in diagnostics.
134 (test_cpp_utf8): New self-test.
135 (input_c_tests): Call the new test.
136 * input.h (location_compute_display_column): Declare.
137 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
138 to all classes and functions.
139 (enum column_unit): New enum.
140 (class exploc_with_display_col): New class.
141 (class layout_point): Convert m_column member to array m_columns[2].
142 (layout_range::contains_point): Add col_unit argument.
143 (test_layout_range_for_single_point): Pass new argument.
144 (test_layout_range_for_single_line): Likewise.
145 (test_layout_range_for_multiple_lines): Likewise.
146 (line_bounds::convert_to_display_cols): New function.
147 (layout::get_state_at_point): Add col_unit argument.
148 (make_range): Use empty filename rather than dummy filename.
149 (get_line_width_without_trailing_whitespace): Rename to...
150 (get_line_bytes_without_trailing_whitespace): ...this.
151 (test_get_line_width_without_trailing_whitespace): Rename to...
152 (test_get_line_bytes_without_trailing_whitespace): ...this.
153 (class layout): m_exploc changed to exploc_with_display_col from
154 plain expanded_location.
155 (layout::get_linenum_width): New accessor member function.
156 (layout::get_x_offset_display): Likewise.
157 (layout::calculate_linenum_width): New subroutine for the constuctor.
158 (layout::calculate_x_offset_display): Likewise.
159 (layout::layout): Use the new subroutines. Add multibyte awareness.
160 (layout::print_source_line): Add multibyte awareness.
161 (layout::print_line): Likewise.
162 (layout::print_annotation_line): Likewise.
163 (line_label::line_label): Likewise.
164 (layout::print_any_labels): Likewise.
165 (layout::annotation_line_showed_range_p): Likewise.
166 (get_printed_columns): Likewise.
167 (class line_label): Rename m_length to m_display_width.
168 (get_affected_columns): Rename to...
169 (get_affected_range): ...this; add col_unit argument and multibyte
171 (class correction): Add m_affected_bytes and m_display_cols
172 members. Rename m_len to m_byte_length for clarity. Add multibyte
173 awareness throughout.
174 (correction::insertion_p): Add multibyte awareness.
175 (correction::compute_display_cols): New function.
176 (correction::ensure_terminated): Use new member name m_byte_length.
177 (line_corrections::add_hint): Add multibyte awareness.
178 (layout::print_trailing_fixits): Likewise.
179 (layout::get_x_bound_for_row): Likewise.
180 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
181 with _utf8 suffix removed, testing multibyte awareness.
182 (test_one_liner_caret_and_range_utf8): Likewise.
183 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
184 (test_one_liner_fixit_insert_before_utf8): Likewise.
185 (test_one_liner_fixit_insert_after_utf8): Likewise.
186 (test_one_liner_fixit_remove_utf8): Likewise.
187 (test_one_liner_fixit_replace_utf8): Likewise.
188 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
189 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
190 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
191 (test_one_liner_many_fixits_1_utf8): Likewise.
192 (test_one_liner_many_fixits_2_utf8): Likewise.
193 (test_one_liner_labels_utf8): Likewise.
194 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
195 (test_overlapped_fixit_printing_utf8): Likewise.
196 (test_overlapped_fixit_printing): Adapt for changes to
197 get_affected_columns, get_printed_columns and class corrections.
198 (test_overlapped_fixit_printing_2): Likewise.
199 (test_linenum_sep): New constant.
200 (test_left_margin): Likewise.
201 (test_offset_impl): Helper function for new test.
202 (test_layout_x_offset_display_utf8): New test.
203 (diagnostic_show_locus_c_tests): Call new tests.
205 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
207 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
208 TYPE_CANONICAL from the element type only if it is true. Remove a few
209 obsolete lines and adjust recursive call.
210 (fld_process_array_type): Adjust call to build_array_type_1.
211 (build_array_type): Likewise.
212 (build_nonshared_array_type): Likewise.
214 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
216 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
217 %s to %o in asm output.
218 (gather<mode>_insn_2offsets<exec>): Likewise.
220 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
222 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
225 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
227 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
229 (unnamed define_insn_and_split): Delete.
230 (unnamed define_insn): Delete.
231 (unnamed define_insn): Delete.
232 (unnamed define_split): Delete.
234 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
236 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
239 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
242 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
243 dataflow luids once basic blocks have been reordered.
244 * haifa-sched.c (reemit_notes): Create df insn record for each
246 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
247 insn has an insn record before trying to use it.
249 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
251 * common/config/i386/i386-common.c
252 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
253 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
254 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
255 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
256 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
257 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
258 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
259 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
260 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
261 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
262 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
263 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
264 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
265 OPTION_MASK_ISA_AVX512BF16_UNSET,
266 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
267 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
268 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
269 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
270 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
271 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
272 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
273 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
274 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
275 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
276 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
277 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
278 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
279 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
280 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
281 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
282 OPTION_MASK_ISA_ENQCMD): Ditto.
283 * config/i386/i386-builtin.def
284 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
285 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
286 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
287 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
288 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
289 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
290 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
291 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
292 * config/i386/i386-c.c
293 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
294 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
295 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
296 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
297 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
298 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
299 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
300 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
301 OPTION_MASK_ISA_ENQCMD): Ditto.
302 * config/i386/i386-option.c: Ditto
303 * config/i386/i386.opt: Ditto..
304 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
305 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
306 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
307 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
308 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
309 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
310 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
311 TARGET_ISA_ENQCMD): Ditto.
313 2019-12-09 Sudakshina Das <sudi.das@arm.com>
314 Richard Sandiford <richard.sandiford@arm.com>
316 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
317 vect_model_simple_cost call on scalar_shift_arg.
319 2019-12-09 Jakub Jelinek <jakub@redhat.com>
321 PR tree-optimization/92834
322 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
323 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
325 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
327 PR tree-optimization/89007
328 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
329 target support available, generate code to distribute rshift over plus
332 2019-12-09 Martin Liska <mliska@suse.cz>
335 * cgraph.c (symbol_table_test::symbol_table_test): Fix
337 * cgraph.h (symtab_node::symtab_node): New constructor.
338 (cgraph_node::cgraph_node): Likewise.
339 (varpool_node::varpool_node): Likewise.
340 (symbol_table::allocate_cgraph_symbol): Use newly
342 (symbol_table::allocate_cgraph_symbol): Remove.
343 * cgraphunit.c (symtab_terminator): Likewise.
344 * varpool.c (varpool_node::create_empty): Use newly
347 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
351 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
352 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
353 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
354 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
355 * config/i386/i386.c (ix86_print_operand): New operand substitution.
356 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
358 (ix86_expand_sse_cmp): Relax condition for integer mask from
359 512-bit vector to all 128/256/512-bit vector. Delete code gen
360 for avx512f compare patterns since we have generic pattern now.
361 (ix86_expand_sse_movcc): Adjust condition and codegen for
363 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
364 when corresponding vector compare is available.
366 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
369 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
371 * config/nios2/linux.h (LINK_EH_SPEC): Define.
373 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
375 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
376 * cgraph.h (cgrpah_node): Likewise.
377 (tp_first_run_node_cmp): Deeclare.
378 * cgraphunit.c (node_cmp): Rename to ...
379 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
380 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
381 (expand_all_functions): Collect tp_first_run and normal functions to
382 two vectors so the other functions remain sorted. Do not check for
383 flag_profile_reorder_functions it is function local flag.
384 * profile.c (compute_value_histograms): Update tp_first_run printing.
386 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
388 * opts.c (common_handle_option): Do not clear ipa_reference for
391 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
393 * ipa-split.c (split_function): Preserve 0 tp_first_run.
395 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
397 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
400 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
402 PR tree-optimization/92860
403 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
406 2019-12-07 Marek Polacek <polacek@redhat.com>
408 PR c++/91678 - wrong error with decltype and location wrapper.
409 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
411 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
414 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
415 sure to pass a valid inner mode in calls to simplify_gen_subreg.
417 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
418 David Malcolm <dmalcolm@redhat.com>
419 Jakub Jelinek <jakub@redhat.com>
422 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
423 instead of ST sequence to terminate OSC 8 strings.
425 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
426 Vladimir Makarov <vmakarov@redhat.com>
428 PR rtl-optimization/92176
429 * lra.c (simplify_subreg_regno): Don't permit unconditional
430 changing mode for LRA too.
432 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
434 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
435 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
436 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
439 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
441 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
444 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
446 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
447 (VEC_1REG_ALT): Likewise.
448 (VEC_ALL1REG_MODE): New mode iterator.
449 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
450 (VEC_1REG_INT_ALT): Likewise.
451 (VEC_ALL1REG_INT_MODE): New mode interator.
452 (VEC_ALL1REG_INT_ALT): Likewise.
453 (VEC_REG_MODE): Remove V64QI and V64HI.
454 (VEC_ALLREG_MODE): New mode interator.
455 (vec_merge): Change to VEC_ALLREG_MODE.
456 (vec_merge_with_clobber): Likewise.
457 (vec_merge_with_vcc): Likewise.
458 (mov<mode>): Likewise.
459 (mov<mode>_unspec): Likewise.
460 (*mov<mode>): Change to VEC_ALL1REG_MODE.
461 (mov<mode>_exec): Likewise.
462 (*mov<mode>_exec_match): Likewise.
463 (mov<mode>_sgprbase): Likewise.
464 (reload_in<mode>): Change to VEC_ALLREG_MODE.
465 (reload_out<mode>): Likewise.
466 (scalar address splits): Likewise.
467 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
468 (vec_set<mode>): Change to VEC_ALLREG_MODE.
469 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
470 (vec_duplicate<mode><exec>): Likewise.
471 (vec_extract<mode><scalar_mode>): Likewise.
472 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
473 (gather_load<mode>): Likewise.
474 (gather<mode>_exec): Likewise.
475 (gather<mode>_expr<exec>): Likewise.
476 (gather<mode>_insn_1offset<exec>): Likewise.
477 (gather<mode>_insn_1offset_ds<exec>): Likewise.
478 (gather<mode>_insn_2offsets<exec>): Likewise.
479 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
480 (VEC_INT_MODE): Remove V64QI and V64HI.
481 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
482 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
484 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
485 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
486 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
487 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
488 (maskstore<mode>di): Likewise.
489 (mask_gather_load<mode>): Likewise.
490 (mov_from_lane63_<mode>): Likewise.
491 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
492 and V64HImode vectorization.
493 (gcn_related_vector_mode): New function.
494 (TARGET_VECTORIZE_RELATED_MODE): New define.
496 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
497 Kwok Cheung Yeung <kcy@codesourcery.com>
499 * omp-low.c (lower_omp_target): For optional arguments, deref once
500 more to obtain the type.
502 2019-12-06 Richard Biener <rguenther@suse.de>
504 * match.pd (nop_convert): Remove empty match. Use nop_convert?
507 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
509 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
510 for empty vectors. Avoid using ordered_remove and instead
511 shuffle the vector as we go.
513 2019-12-06 Richard Biener <rguenther@suse.de>
515 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
517 (expr::opt_grp): Add and initialize.
518 (lower_opt_convert): Rename to ...
519 (lower_opt): ... and work on opt_grp, simply switching operations
520 from being optional to being present or not.
521 (has_opt_convert): Rename to ...
522 (has_opt): ... and adjust.
523 (parser::parse_operation): Return the optional opt_grp,
524 remove special-casing of conditional operations and more generally
526 (parser::parse_expr): Stick on the parsed opt_grp and perform
528 (parser::parse_for): Remove now unnecessary code.
530 * doc/match-and-simplify.texi: Mention ? now works on all
531 unary operations and also match predicates.
533 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
535 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
536 functions, not inline clones.
538 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
540 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
542 2019-12-06 Richard Biener <rguenther@suse.de>
544 * genmatch.c (c_expr::gen_transform): Emit newlines from line
545 number changes rather than after every semicolon.
547 2019-12-06 Richard Biener <rguenther@suse.de>
549 PR tree-optimization/92819
550 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
551 into the last lane. For two-element vectors try inserting
552 into the last lane when inserting into the first fails.
554 2019-12-06 Jakub Jelinek <jakub@redhat.com>
556 * common.opt (fprofile-partial-training): Terminate description with
559 2019-12-05 Martin Sebor <msebor@redhat.com>
562 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
563 left uninitialized by get_addr_base_and_unit_offset on failure.
565 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
567 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
568 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
569 (detect_type_change): Likewise.
570 (detect_type_change_ssa): Likewise.
571 (ipa_analyze_virtual_call_uses): Update.
573 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
575 * config/nios2/linux.h (LINK_EH_SPEC): Define.
577 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
579 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
581 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
583 * cgraphclones.c (localize_profile): New function.
584 (cgraph_node::create_clone): Use it for partial profiles.
585 * common.opt (fprofile-partial-training): New flag.
586 * doc/invoke.texi (-fprofile-partial-training): Document.
587 * ipa-cp.c (update_profiling_info): For partial profiles do not
588 set function profile to zero.
589 * profile.c (compute_branch_probabilities): With partial profile
590 watch if edge count is zero and turn all probabilities to guessed.
591 (compute_branch_probabilities): For partial profiles do not apply
592 profile when entry count is zero.
593 * tree-profile.c (tree_profiling): Only do value_profile_transformations
594 when profile is read.
596 2019-12-05 Sudakshina Das <sudi.das@arm.com>
598 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
599 check from if condition.
601 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
603 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
604 and Fortran's optional arguments, unconditionally add the is-present
605 condition before the libgomp call.
607 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
610 * tree-core.h (OEP_BITWISE): New flag.
611 * fold-const.c (operand_compare::operand_equal_p): Handle it.
612 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
614 2019-12-05 Richard Biener <rguenther@suse.de>
617 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
618 heuristics on what don't care element to choose.
619 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
621 2019-12-05 Martin Liska <mliska@suse.cz>
623 PR gcov-profile/92817
624 * coverage.c (build_gcov_exit_decl): Remove superfluous
627 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
629 * config/msp430/msp430.md (cbranch<mode>4): Use
630 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
631 dest operand of CMP instruction.
632 (cbranchpsi4_real): Likewise.
633 (cbranchqi4_real): Likewise.
634 (cbranchhi4_real): Likewise.
635 (cbranchpsi4_reversed): Likewise.
636 (cbranchqi4_reversed): Likewise.
637 (cbranchhi4_reversed): Likewise.
639 2019-12-05 Richard Biener <rguenther@suse.de>
641 PR tree-optimization/92803
642 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
643 invariant vector construction.
645 2019-12-05 Martin Liska <mliska@suse.cz>
647 PR gcov-profile/91971
648 * coverage.c (coverage_init): Mangle full path
649 only when -fprofile-dir is used.
651 2019-12-05 Jakub Jelinek <jakub@redhat.com>
654 * config/i386/i386.md (movstrict<mode>): Move test for
655 TARGET_PARTIAL_REG_STALL and not optimizing for size from
656 expander's condition to the body - FAIL; in that case.
658 2019-12-03 Martin Sebor <msebor@redhat.com>
661 * builtins.c (gimple_call_alloc_size): New function.
662 (compute_objsize): Add argument. Call gimple_call_alloc_size.
663 Handle variable offsets and indices.
664 * builtins.h (gimple_call_alloc_size): Declare.
665 (compute_objsize): Add argument.
666 * gimple-ssa-warn-restrict.c: Remove assertions.
667 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
669 2019-12-04 Julian Brown <julian@codesourcery.com>
671 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
673 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
676 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
678 (altivec_overloaded_builtins): Move to rs6000-call.c.
679 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
681 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
682 (altivec_overloaded_builtins): Moved from rs6000-c.c.
683 (rs6000_common_init_builtins): Do no define builtins that overload
684 builtins that have been disabled.
686 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
688 * config/arm/arm.c (arm_option_override_internal):
689 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
691 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
693 * config/aarch64/aarch64.c
694 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
695 (thunderx_tunings): Likewise.
696 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
697 (thunderx2t99_tunings): Likewise.
698 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
699 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
701 2019-12-04 Richard Biener <rguenther@suse.de>
703 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
704 empty CTOR and memset partial-def registering. Take advantage
705 of fancy offset analysis in memset handling.
707 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
709 * fold-const.c (native_encode_vector_part): Handle
710 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
711 (native_decode_vector_tree): Delete, moving the bulk of the code to...
712 (native_interpret_vector_part): ...this new function. Use a pointer
713 and length instead of a vec<> and start index.
714 (native_interpret_vector): Use native_interpret_vector_part.
715 (fold_view_convert_vector_encoding): Likewise.
717 2019-12-04 Richard Biener <rguenther@suse.de>
719 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
720 non-constant defs in the most trivial way.
721 (vn_reference_lookup_3): Also push down SSA partial defs.
723 2019-12-04 Martin Liska <mliska@suse.cz>
725 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
726 Initialize count of newly created BB.
728 2019-12-04 Jakub Jelinek <jakub@redhat.com>
730 PR tree-optimization/92734
731 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
732 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
734 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
737 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
738 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
740 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
742 * ipa-fnsummary.c: Include tree-into-ssa.h.
743 (compute_fn_summary): Call update_ssa.
745 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
747 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
748 is set only for symbol in comdat group.
749 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
751 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
753 * cgraph.c: Include tree-into-ssa.h
754 (cgraph_node::get_body): Call update_ssa.
755 * cgraphunit.c (cgraph_node::expand): Likewise.
756 * lto-streamer-in.c (input_function): Do not call update_ssa.
758 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
760 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
761 an array element size if array_element_size is already an invariant.
762 Similarly don't gimplify and install a field offset if
763 component_ref_field_offset is already an invariant.
765 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
767 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
768 with POLY_INT_CST size is made to a fixed-size object, force the
769 object to live in memory.
771 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
773 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
776 2019-12-03 Richard Biener <rguenther@suse.de>
778 PR tree-optimization/92758
779 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
780 operation on uniform vectors.
782 2019-12-03 Richard Biener <rguenther@suse.de>
784 PR tree-optimization/92645
785 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
786 from or to a properly aligned register variable.
788 2019-12-03 Matthias Klose <doko@ubuntu.com>
790 * Makefile.in (SOURCES): Add doc/lto-dump.1.
791 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
792 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
794 2019-12-03 Richard Biener <rguenther@suse.de>
796 PR tree-optimization/92751
797 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
798 when a clobber ends up in the partial-def vector.
799 (vn_reference_lookup_3): Let clobbers be handled by the
800 assignment from CTOR handling.
802 2019-12-03 Jakub Jelinek <jakub@redhat.com>
804 PR tree-optimization/92734
805 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
806 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
809 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
810 Jakub Jelinek <jakub@redhat.com>
813 * config/i386/i386.md (peephole2 for *swap<mode>): Use
814 general_reg_operand predicates instead of register_operand.
816 2019-12-03 Richard Biener <rguenther@suse.de>
818 PR tree-optimization/92645
819 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
820 a full def of a vector via a BIT_INSERT_EXPR.
822 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
824 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
826 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
829 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
832 * fold-const.c (fold_convertible_p): Check vector types more
835 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
837 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
838 (aarch64_expand_mov_immediate): Use it when attempting to measure
839 the length of an SVE vector.
840 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
843 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
845 * config/aarch64/aarch64-sve-builtins.h
846 (gimple_folder::force_vector): Declare.
847 * config/aarch64/aarch64-sve-builtins.cc
848 (gimple_folder::force_vector): New function.
849 * config/aarch64/aarch64-sve-builtins-base.cc
850 (svcmp_impl::fold): Likewise.
851 (svdup_impl::fold): Handle svdup_z too.
853 2019-12-02 Martin Liska <mliska@suse.cz>
855 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
857 (debug_tree_odr_name): New.
858 * ipa-utils.h (get_odr_name_for_type): New.
860 2019-12-02 Richard Biener <rguenther@suse.de>
862 PR tree-optimization/92742
863 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
864 touch the def-type but verify it is consistent with the
867 2019-12-02 Jakub Jelinek <jakub@redhat.com>
869 PR tree-optimization/92712
870 * match.pd ((A * B) +- A -> (B +- 1) * A,
871 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
872 even when we don't know anything about range of A, but do know
873 something about range of B and the simplification won't introduce
876 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
879 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
880 (ipa-cp-min-recursive-probability): Likewise.
881 * params.opt (ipa-cp-max-recursive-depth): New.
882 (ipa-cp-min-recursive-probability): Likewise.
883 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
885 (self_recursively_generated_p): New function.
886 (get_val_across_arith_op): Likewise.
887 (propagate_vals_across_arith_jfunc): Add constant propagation for
888 self-recursive function.
889 (incorporate_penalties): Do not penalize pure self-recursive function.
890 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
891 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
892 (get_info_about_necessary_edges): Relax hotness check for edge to
893 self-recursive function.
894 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
896 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
900 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
901 objects of flexible types to be small if they have internal linkage
902 or are declared extern.
903 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
904 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
905 instead of the size of the object initializer.
906 * tree.c (flexible_array_type_p): Move from C front end, and
907 generalize to handle fields in non-C structures.
908 * tree.h (flexible_array_type_p): Declare.
910 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
912 * profile-count.h (profile_count::operator<): Use IPA value for
914 (profile_count::operator>): Likewise.
915 (profile_count::operator<=): Likewise.
916 (profile_count::operator>=): Likewise.
917 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
919 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
921 * ipa-inline.c (compute_max_insns): Return int64_t.
922 (inline_small_functions): Simplify.
924 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
926 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
929 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
931 * cgraph.h (symtab_node): Add symver flag.
932 * cgraphunit.c (process_symver_attribute): New.
933 (process_common_attributes): Use process_symver_attribute.
934 * lto-cgraph.c (lto_output_node): Stream symver.
935 (lto_output_varpool_node): Stream symver.
936 (input_overwrite_node): Stream symver.
937 (input_varpool_node): Stream symver.
938 * output.h (do_assemble_symver): Decalre.
939 * symtab.c (symtab_node::dump_base): Dump symver.
940 (symtab_node::verify_base): Verify symver.
941 (symtab_node::resolve_alias): Handle symver.
942 * varasm.c (do_assemble_symver): New function.
943 * varpool.c (varpool_node::assemble_aliases): Use it.
944 * doc/extend.texi: (symver attribute): Document.
945 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
947 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
949 * target.h (type_context_kind): New enum.
950 (verify_type_context): Declare.
951 * target.def (verify_type_context): New target hook.
952 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
953 * doc/tm.texi: Regenerate.
954 * tree.c (verify_type_context): New function.
955 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
957 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
959 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
960 (TARGET_VERIFY_TYPE_CONTEXT): Define.
962 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
964 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
965 * cgraph.h (cgraph_node): Add unit_id and
966 merged_extern_inline.
967 (symbol_table): Add max_unit.
968 (symbol_table::symbol_table): Initialize it.
969 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
970 merged_comdat, merged_extern_inline.
971 (cgraph_node::create_clone): Likewise.
972 (cgraph_node::create_version_clone): Likewise.
973 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
975 * ipa-fnsummary.h (cross_module_call_p): New inline function.
976 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
977 * ipa-inline.c (inline_small_functions): Likewise.
978 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
979 copy merged_comdat and merged_extern_inline.
980 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
981 merged_extern_inline and unit_id.
982 (input_overwrite_node): Stream in these.
983 (input_cgraph_1): Set unit_base.
984 * lto-streamer.h (lto_file_decl_data): Add unit_base.
985 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
987 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
989 * gcc.c (process_command): Only warn about an ineffective `-x'
990 option if any input files have actually been supplied.
992 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
994 * doc/install.texi (Options specification): Remove the list of
995 target library subdirectories supporting
996 `--enable-version-specific-runtime-libs'. Document defaults for
999 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1001 PR rtl-optimization/92283
1002 * lra.c (lra): Update reg notes after inheritance sub-pass and
1003 before constraint sub-pass.
1005 2019-11-29 Richard Biener <rguenther@suse.de>
1007 PR tree-optimization/91003
1008 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1009 operand number, avoid handling the non-condition operands of
1010 COND_EXPRs as comparisons.
1011 (vect_get_constant_vectors): Pass down the operand number.
1012 (vect_get_slp_defs): Likewise.
1014 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1016 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1017 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1018 VEC_COND_EXPR can trap.
1020 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1022 PR tree-optimization/92677
1023 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1024 to zero when dissolving a group of strided accesses.
1026 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1028 PR tree-optimization/92596
1029 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1031 (vectorizable_operation): Likewise, instead of relying on
1032 vect_get_mask_type_for_stmt to do this.
1033 (vect_get_vector_types_for_stmt): Always return a vector type
1034 immediately, rather than deferring the choice for boolean results.
1035 Use a vector mask type instead of a normal vector if
1036 vect_use_mask_type_p.
1037 (vect_get_mask_type_for_stmt): Delete.
1038 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1039 mask_producers argument and special boolean_type_node handling.
1040 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1041 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1042 (vect_determine_vectorization_factor): Update call accordingly.
1043 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1044 boolean_type_node handling.
1045 (vect_slp_analyze_node_operations_1): Likewise.
1047 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1049 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1050 (vect_use_mask_type_p): New function.
1051 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1052 mask precision to the pattern statement.
1053 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1054 and use it to initialize the new stmt's mask precision.
1055 (search_type_for_mask_1): Delete.
1056 (search_type_for_mask): Replace with...
1057 (integer_type_for_mask): ...this new function. Use the information
1058 cached in the stmt_vec_info.
1059 (vect_recog_bool_pattern): Update accordingly.
1060 (build_mask_conversion): Pass the scalar type associated with the
1061 mask type to append_pattern_def_seq.
1062 (vect_recog_mask_conversion_pattern): Likewise. Call
1063 integer_type_for_mask instead of search_type_for_mask.
1064 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1065 of search_type_for_mask.
1066 (possible_vector_mask_operation_p): New function.
1067 (vect_determine_mask_precision): Likewise.
1068 (vect_determine_stmt_precisions): Call it.
1070 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1072 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1073 the slp_tree parameter with a group size parameter.
1074 (vect_get_mask_type_for_stmt): Likewise.
1075 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1076 (vect_get_mask_type_for_stmt): Likewise.
1077 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1080 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1082 * tree-vect-stmts.c (vectorizable_operation): Punt early
1083 on codes that are handled elsewhere.
1085 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1087 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1088 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1089 operand to a boolean comparison is a natural vector mask,
1090 handle both operands like normal integers instead.
1092 2019-11-29 Richard Biener <rguenther@suse.de>
1094 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1095 out early for too large objects.
1097 2019-11-29 Martin Jambor <mjambor@suse.cz>
1100 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1101 the summary only if the summary exists.
1102 (find_more_scalar_values_for_callers_subset): Check node_dead in
1103 the summary only if the summary exists.
1104 (ipcp_store_bits_results): Ignore nodes without lattices.
1105 (ipcp_store_vr_results): Likewise.
1106 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1107 header files required by them.
1108 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1110 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1112 PR tree-optimization/92710
1113 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1114 vector mask arguments.
1116 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1118 * profile-count.c (profile_count::to_cgraph_frequency,
1119 profile_count::to_sreal_scale): Check for compaibility of counts.
1120 * profile-count.h (compatible_p): Make public; add checking for
1121 global0 versus global types.
1122 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1124 2019-11-29 Richard Biener <rguenther@suse.de>
1126 PR tree-optimization/92715
1127 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1128 out for uniform vectors and source vectors with less elements
1129 than the destination.
1131 2019-11-29 Martin Liska <mliska@suse.cz>
1134 * ipa-devirt.c (types_same_for_odr): Check for existence
1135 of TYPE_NAMEs first.
1137 2019-11-29 Richard Biener <rguenther@suse.de>
1139 PR tree-optimization/92704
1140 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1141 in loops performing only loads.
1143 2019-11-29 Julian Brown <julian@codesourcery.com>
1145 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1146 BT_DFLOAT128_PTR) Remove.
1147 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1148 TI_DFLOAT128_PTR_TYPE): Remove.
1149 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1150 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1151 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1152 dfloat128_ptr_type_node): Remove macros.
1154 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1156 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1158 (*movdi_internal64): Ditto.
1160 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1163 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1164 indexed_or_indirect_operand to be memory_operand.
1165 (bswap<mode>2_store for HSI): Ditto.
1166 (bswapdi2_load): Ditto.
1167 (bswapdi2_store): Ditto.
1169 2019-11-28 Martin Liska <mliska@suse.cz>
1172 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1173 headers for translation.
1175 2019-11-28 Martin Liska <mliska@suse.cz>
1178 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1181 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1183 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1186 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1188 * profile-count.c (profile_count::combine_with_ipa_count): Return
1189 uninitialized count if called on ininitialized count.
1191 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1193 * ipa-inline-transform.c (inline_transform): Scale profile before
1196 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1198 * profile-count.h (profile_count::max): Work on profiles of different
1200 (profile_count::apply_scale): Be sure that ret is not local or global0
1201 type if num is global.
1203 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1205 * profile-count.h (profile_count::max): Work on profiles of different
1207 (profile_count::apply_scale): Be sure that ret is not local or global0
1208 type if num is global.
1210 2019-11-28 Martin Jambor <mjambor@suse.cz>
1213 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1215 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1216 Removed trailig whitespace.
1218 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1220 * profile-count.h (profile_count::combine_with_ipa_count_within):
1222 * profile-count.c (profile_count::combine_with_ipa_count_within):
1224 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1227 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1229 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1230 of counters are done same way.
1232 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1234 * ipa-cp.c (update_profiling_info): Fix scaling.
1236 2019-11-28 Richard Biener <rguenther@suse.de>
1238 PR tree-optimization/92645
1239 * tree-inline.c (remap_gimple_stmt): When the return value
1240 is not wanted, elide GIMPLE_RETURN.
1242 2019-11-28 Richard Biener <rguenther@suse.de>
1244 PR tree-optimization/92645
1245 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1246 conversions inside a mode class. Remove restriction on
1247 preserving the element size.
1248 (simplify_vector_constructor): Deal with the above and for
1249 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1250 and VEC_PACK_TRUNC_EXPR.
1252 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1254 Must use push insn to pass varargs arguments of DFmode because
1255 otherwise the middle-end generates wrong code.
1258 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1260 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1262 PR tree-optimization/92691
1263 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1264 in function comment.
1265 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1266 calls, return !handle_printf_call rather than always returning true.
1267 (check_and_optimize_stmt): Describe return value meaning in function
1268 comment. Formatting fix.
1270 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1272 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1273 combination of globa0 and global counters..
1275 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1278 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1279 by VECTOR_UNIT_NONE_P instead.
1281 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1283 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1284 Refine VF to VF_AVX512VL.
1286 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1288 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1289 (movdi_internal64): Reformat.
1291 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1294 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1295 builtin if we don't have an actual type.
1296 (builtin_function_type): If the builtin function uses a DFP type
1297 and decimal float has been disabled, then return NULL_TREE.
1299 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1301 PR rtl-optimization/92510
1302 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1303 of comparison into a comparison with different mode if both imode and
1304 omode are scalar integral modes.
1306 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1308 PR rtl-optimization/90007
1309 * recog.c (constrain_operands): Permit hard registers too for
1310 memory when LRA is used.
1312 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1314 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1315 between Coldfire and regular m68k.
1316 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1318 2019-11-27 Richard Biener <rguenther@suse.de>
1320 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1321 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1322 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1323 * optabs-tree.c (supportable_convert_operation): Do not call
1324 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1325 * optabs-tree.h (supportable_convert_operation): Adjust.
1326 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1327 * doc/tm.texi: Regenerate.
1328 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1329 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1330 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1331 unused decl parameter and adjust.
1332 (vect_create_vectorized_promotion_stmts): Likewise.
1333 (vectorizable_conversion): Adjust.
1335 2019-11-27 Richard Biener <rguenther@suse.de>
1337 PR tree-optimization/92690
1338 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1339 converting elements not originally converted.
1341 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1344 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1345 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1346 mpfr_rnd_t instead of mp_rnd_t.
1347 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1348 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1349 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1350 Use mpfr_exp_t instead of mp_exp_t.
1351 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1352 MPFR_RNDx instead of GMP_RNDx.
1353 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1354 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1355 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1356 of mp_rnd_t and remove MPFR_RNDx poisoning.
1357 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1359 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1361 PR tree-optimization/91790
1362 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1363 DR for vect_setup_realignment when first_stmt_info is different
1364 from first_stmt_info_for_drptr.
1366 2019-11-27 Richard Biener <rguenther@suse.de>
1368 PR tree-optimization/92645
1369 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1370 CTORs with just a subset of the original vectors.
1372 2019-11-27 Richard Biener <rguenther@suse.de>
1375 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1376 edges and instead record blocks in bitmap.
1377 (gimple_expand_calls_inline): Adjust.
1378 (fold_marked_statements): Delay EH cleanup until all folding is
1380 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1383 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1385 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1387 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1390 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1393 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1395 2019-11-26 Martin Sebor <msebor@redhat.com>
1397 PR tree-optimization/92683
1398 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1399 inadvertently removed in a previous change. Rename local variable
1402 2019-11-26 Richard Biener <rguenther@suse.de>
1405 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1408 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1410 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1412 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1414 PR tree-optimization/92644
1415 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1416 next to INTEGER_CST checks.
1418 2019-11-26 Richard Biener <rguenther@suse.de>
1420 PR tree-optimization/92645
1421 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1422 do not build the operation from scalars if the operand is.
1424 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1426 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1427 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1430 2019-11-25 Martin Liska <mliska@suse.cz>
1432 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1433 up used dump message.
1435 2019-11-25 Martin Liska <mliska@suse.cz>
1438 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1439 too strict checking assert.
1441 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1444 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1445 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1446 error_mark_node if corresponding global tree node is NULL.
1447 * tree.c (build_common_tree_nodes): Do not initialize
1448 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1449 decimal floating-point not supported.
1451 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1453 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1456 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1458 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1459 Replace code for non-CONST_INT constants with gcc_unreachable.
1460 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1462 (CMPMODE): New mode_iterator.
1463 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1465 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1467 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1469 (bit test insns patterns): Use nonimmediate_operand, not
1470 register_operand, for source operands that allow memory in
1472 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1473 Use register_operand, not nonimmediate_operand, for the
1475 (DBCC): New mode_iterator.
1476 (dbcc peepholes): Use it to reduce duplication.
1477 (trap): Use const_true_rtx, not const1_rtx.
1478 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1479 from m68k_subword_comparison_operand and changed to handle
1483 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1485 (m68k_init_cc): New declaration.
1486 (m68k_output_compare_di, m68k_output_compare_si)
1487 (m68k_output_compare_hi, m68k_output_compare_qi)
1488 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1489 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1490 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1491 m68k_output_branch_float, m68k_output_branch_float_rev):
1493 (valid_dbcc_comparison_p_2, flags_in_68881)
1494 (output_btst): Remove declaration.
1495 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1496 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1497 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1498 (flags_compare_op0, flags_compare_op1, flags_operand1,
1499 flags_operand2, flags_valid): New static variables.
1500 (m68k_find_flags_value, m68k_init_cc): New functions.
1501 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1502 remember_compare_flags): New static functions.
1503 (output_dbcc_and_branch): New argument CODE. Use it, and add
1504 PLUS and MINUS to the possible codes. All callers changed.
1505 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1506 and INSN arguments, add CODE arg. Return the comparison code
1507 to use. All callers changed. Use CODE instead of
1508 next_insn_tests_no_inequality, and replace cc_status management
1509 with changing the return code.
1510 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1511 RTX_COMPARE or RTX_COMM_COMPARE.
1512 (output_move_simode, output_move_qimode): Call
1513 handle_flags_for_move.
1514 (notice_update_cc): Delete function.
1515 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1516 m68k_output_compare_hi, m68k_output_compare_qi,
1517 m68k_output_compare_fp, m68k_output_branch_integer,
1518 m68k_output_branch_integer_rev, m68k_output_scc,
1519 m68k_output_branch_float, m68k_output_branch_float_rev,
1520 m68k_output_scc_float): New functions.
1521 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1522 once at the start, and set flags_valid and flags_operand1 if the
1524 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1525 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1527 (CC_STATUS_INIT): Define.
1528 * config/m68k/m68k.md (flags_valid): New define_attr.
1529 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1530 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1531 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1532 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1533 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1534 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1535 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1536 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1537 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1538 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1539 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1540 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1541 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1542 ctrapqi4, conditional_trap): Delete patterns.
1543 (cbranchdi4_insn): New pattern.
1544 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1545 test high part only. When testing EQ or NE, generate beq0_di
1546 and bne0_di patterns directly.
1547 (cstoredi4): When testing LT or GE, test high part only.
1548 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1550 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1551 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1552 cmp2_cf_predicate): New define_mode_attrs.
1553 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1554 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1555 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1557 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1558 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1559 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1561 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1562 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1564 (BTST): New define_mode_iterator.
1565 (btst_predicate, btst_constraint, btst_range): New
1567 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1569 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1570 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1571 patterns): Set attr "flags_valid".
1572 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1573 management. Set attr "flags_valid".
1574 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1575 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1576 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1577 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1578 manual CC_STATUS management.
1579 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1580 unnamed strict_lowpart subhi and subqi patterns): Set attr
1582 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1583 Remove code to operate on address regs and assert the case
1585 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1586 manual CC_STATUS_INIT.
1587 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1588 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1589 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1590 one_cmplqi2, unnamed strict_lowpart patterns
1591 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1592 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1593 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1594 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1596 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1597 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1598 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1599 unnamed strict_low_part patterns for HI and
1600 QI versions): Set attr "flags_valid".
1601 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1602 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1603 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1604 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1605 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1606 (various unnamed peepholes): Adjust compare/branch sequences
1607 for new cbranch patterns.
1608 (dbcc peepholes): Likewise, and output the comparison here
1610 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1611 (fp_src_operand): Allow constant zero.
1612 (address_reg_operand): New predicate.
1614 * rtl.h (inequality_comparisons_p): Remove declaration.
1615 * recog.h (next_insn_tests_no_inequality): Likewise.
1616 * rtlanal.c (inequality_comparisons_p): Delete function.
1617 * recog.c (next_insn_tests_no_inequality): Likewise.
1619 2019-11-25 Richard Biener <rguenther@suse.de>
1621 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1622 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1623 properly re-building the visited hash-map for each lane.
1625 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1627 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1628 gcn_md_reorg): Remove unused variables.
1629 (gcn_emutls_var_init): Add missing (but unreachable) return
1631 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1632 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1633 an uninitialized variable.
1635 2019-11-25 Martin Jambor <mjambor@suse.cz>
1638 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1639 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1640 (cgraph_materialize_clone): Move removel from clone tree to the
1641 the new method and use it instead.
1642 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1643 bodies of clones, also remove it from the clone tree.
1645 2019-11-25 Martin Jambor <mjambor@suse.cz>
1648 * ipa-sra.c (process_isra_node_results): Put the new node to the
1649 same comdat group as the original node.
1651 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1653 Build double32 / long-double32 multilibs if needed.
1657 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1658 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1659 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1660 tm_defines and pass to genmultilib.awk.
1661 * config/avr/genmultilib.awk: Use these variables to add double32
1662 and / or long-double32 multilib(s) as needed.
1663 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1665 2019-11-25 Richard Biener <rguenther@suse.de>
1667 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1668 loop body, defaulted to NULL.
1669 (single_likely_exit): Add exit vector argument
1670 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1671 (number_of_iterations_exit): Likewise.
1672 (number_of_iterations_exit_assumptions): Likewise.
1673 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1675 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1676 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1677 Compute exit vector around call to single_likely_exit.
1678 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1679 loop body to loop_only_exit_p.
1680 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1682 (number_of_iterations_exit_assumptions): Get loop body from caller
1684 (number_of_iterations_exit): Pass through new loop body arg.
1685 (infer_loop_bounds_from_undefined): Get loop body from caller.
1686 (estimate_numbers_of_iterations): Compute loop body once.
1688 2019-11-25 Richard Biener <rguenther@suse.de>
1690 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1691 auto_bb_flag instead of an sbitmap for visited handling.
1693 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1695 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1697 (vector_fp_comparison_complex): Likewise.
1698 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1700 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1702 (vector_lt<mode> for VEC_F): Refactor with
1703 vector_fp_comparison_simple.
1704 (vector_le<mode> for VEC_F): Likewise.
1705 (vector_unge<mode> for VEC_F): Likewise.
1706 (vector_unle<mode> for VEC_F): Likewise.
1707 (vector_ne<mode> for VEC_F): Likewise.
1708 (vector_ungt<mode> for VEC_F): Likewise.
1709 (vector_unlt<mode> for VEC_F): Likewise.
1710 (vector_ltgt<mode> for VEC_F): Refactor with
1711 vector_fp_comparison_complex.
1712 (vector_ordered<mode> for VEC_F): Likewise.
1713 (vector_uneq<mode> for VEC_F): Likewise.
1714 (vector_unordered<mode> for VEC_F): Likewise.
1716 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1718 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1719 COMPARE, representing an overflow detection.
1721 * combine.c (combine_instructions): Record costs for jumps.
1723 * combine.c (can_combine_p): Allow autoinc in jumps.
1725 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1727 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1728 * doc/invoke.texi (max-inline-insns-single-O2,
1729 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1730 early-inlining-insns-O2): Remove documentation.
1731 * ipa-fnsummary.c (analyze_function_body,
1732 compute_fn_summary): Use opt_for_fn when accessing parameters.
1733 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1734 inline_insns_auto, can_inline_edge_by_limits_p,
1735 want_early_inline_function_p, big_speedup_p,
1736 want_inline_small_function_p, want_inline_self_recursive_call_p,
1737 recursive_inlining, compute_max_insns, inline_small_functions):
1739 * opts.c (default_options): Add -O3 defaults for
1740 OPT__param_early_inlining_insns_,
1741 OPT__param_inline_heuristics_hint_percent_,
1742 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1743 * params.opt (-param=early-inlining-insns-O2=,
1744 -param=inline-heuristics-hint-percent-O2=,
1745 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1746 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1747 -param=inline-min-speedup=, -param=inline-unit-growth=,
1748 -param=large-function-growth=, -param=large-stack-frame=,
1749 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1750 -param=max-inline-insns-recursive=,
1751 -param=max-inline-insns-recursive-auto=,
1752 -param=max-inline-insns-single=,
1753 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1754 -param=max-inline-recursive-depth=,
1755 -param=max-inline-recursive-depth-auto=,
1756 -param=min-inline-recursive-probability=,
1757 -param=partial-inlining-entry-probability=,
1758 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1759 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1762 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1764 * ipa-fnsummary.c: Fix comment typos.
1765 * ipa-ref.h: Likewise.
1766 * ipa-predicate.h: Likewise.
1767 * ipa-split.c: Likewise.
1768 * ipa-inline-analysis.c: Likewise.
1769 * ipa-predicate.c: Likewise.
1770 * ipa-devirt.c: Likewise.
1771 * ipa-icf.h: Likewise.
1772 * profile-count.c: Likewise.
1773 * ipa-icf.c: Likewise.
1774 (sem_function::equals_wpa): Fix typos in dump messages.
1775 * ipa-icf-gimple.h: Fix comment typos.
1776 * ipa-inline-transform.c: Likewise.
1777 * ipa-polymorphic-call.c: Likewise.
1778 * ipa-fnsummary.h: Likewise.
1779 * ipa-inline.c: Likewise.
1780 (dump_inline_stats): Fix typo in debug dump message.
1781 * profile-count.h: Fix comment typos.
1784 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1785 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1786 register_operand, force x into register before storing it into dest.
1790 * doc/extend.texi (attribute access): Fix a typo.
1792 PR rtl-optimization/92610
1793 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1794 cse_cfg_altered is set, even when tem is 0.
1795 (rest_of_handle_cse_after_global_opts): Likewise.
1797 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1800 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1801 tree_hash): Move to ...
1802 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1803 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1805 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1807 PR tree-optimization/92618
1808 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1809 containing the auto_vec and a tree.
1810 (undistribute_bitref_for_vector): Handle the case when element type
1811 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1814 2019-11-22 Martin Sebor <msebor@redhat.com>
1817 * attribs.h (struct attr_access): New.
1818 * attribs.c (decl_attributes): Add an informational note.
1819 * builtins.c (check_access): Make extern. Consistently set no-warning
1820 after issuing a warning. Handle calls through function pointers. Set
1822 * builtins.h (check_access): Declare.
1823 * calls.c (rdwr_access_hash): New type.
1825 (init_attr_rdwr_indices): New function.
1826 (maybe_warn_rdwr_sizes): Same.
1827 (initialize_argument_information): Call init_attr_rdwr_indices.
1828 Call maybe_warn_rdwr_sizes.
1829 (get_size_range): Avoid null argument.
1830 * doc/extend.texi (attribute access): Document new attribute.
1832 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1834 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1835 (ACC_LDS_SIZE): Define.
1836 (OTHER_LDS_SIZE): Define.
1837 (LDS_SIZE): Redefine using above.
1838 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1840 2019-11-22 Martin Sebor <msebor@redhat.com>
1843 * builtins.c (check_nul_terminated_array): New function.
1844 (fold_builtin_0): Remove declaration.
1845 (fold_builtin_1): Same.
1846 (fold_builtin_2): Same.
1847 (fold_builtin_3): Same.
1848 (fold_builtin_strpbrk): Add argument.
1849 (fold_builtin_strspn): Same.
1850 (fold_builtin_strcspn): Same.
1851 (expand_builtin_strcat): Call it. Remove unused argument.
1852 (expand_builtin_stpncpy): Same.
1853 (expand_builtin_strncat): Same.
1854 (expand_builtin_strncpy): Same. Adjust indentation.
1855 (expand_builtin_strcmp): Same.
1856 (expand_builtin_strncmp): Same.
1857 (expand_builtin_fork_or_exec): Same.
1858 (expand_builtin): Handle more built-ins.
1859 (fold_builtin_2): Add argument.
1860 (fold_builtin_n): Make static. Add argument.
1861 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1862 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1863 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1864 (fold_call_stmt): Pass new argument to fold_builtin_n.
1865 * builtins.h: Correct a comment.
1866 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1867 check_nul_terminated_array.
1868 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1869 check_nul_terminated_array.
1870 (handle_builtin_strchr): Same.
1871 (handle_builtin_string_cmp): Same.
1873 2019-11-22 Martin Sebor <msebor@redhat.com>
1875 PR tree-optimization/92501
1876 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1877 handle unterminated arrays. Rename local variables for clarity.
1879 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1881 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1882 granulated_sgprs according to architecture.
1884 2019-11-22 Jan Hubicka <jh@suse.cz>
1886 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1887 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1888 (memory_block_pool::reduce_free_list): ... this one.
1889 (memory_block_pool::trim): New static function.
1890 * memory-block.h (memory_block_pool::freelist_size): New constant
1891 (memory_block_pool::clear_free_list): Rename to ...
1892 (memory_block_pool::reduce_free_list): ... this one.
1893 (memory_block_pool::trim): Declare.
1895 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1897 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1899 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1901 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1903 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1905 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1906 (bic_cmp0_noout): New pattern.
1907 (bic_cmp0): Likewise.
1908 (neg_scc_insn): Remove pattern.
1909 (not_scc_insn): Likewise.
1911 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1913 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1915 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1917 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1918 pedwarn instead of warning_at for fallthrough not preceding a case
1921 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1923 PR tree-optimization/92608
1924 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1927 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1929 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1931 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1932 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1933 special for FP comparisons that need a cror instruction eventually.
1934 (rs6000_emit_fp_cror): New function.
1935 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1936 instruction, for normal FP modes, with HONOR_NANS.
1937 (rs6000_emit_cbranch): Reformat.
1938 * config/rs6000/rs6000.md (fp_rev): New iterator.
1939 (fp_two): New iterator.
1940 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1941 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1942 *cbranch_2insn: New define_insn_and_split.
1944 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1946 PR tree-optimization/92526
1947 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1948 versioning for alignment if the accesses do not have a consistent
1949 mask, rather than asserting that the masks are consistent.
1951 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1953 PR tree-optimization/92595
1954 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1956 (vectorizable_store, vectorizable_load): Likewise.
1958 2019-11-21 Jan Hubicka <jh@suse.cz>
1960 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1961 (resolve_noninline_speculation, inline_small_functions): Avoid
1964 2019-11-21 Richard Biener <rguenther@suse.de>
1966 * lra.c (lra_insn_recog_data_pool): New.
1967 (free_insn_recog_data): Adjust.
1968 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1969 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1971 2019-11-21 Richard Biener <rguenther@suse.de>
1973 PR tree-optimization/92596
1974 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1976 2019-11-21 Jan Hubicka <jh@suse.cz>
1978 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1979 ready for some vectors to not be allocated.
1980 (evaluate_properties_for_edge): Document better; make
1981 known_vals and known_aggs caller allocated; avoid determining
1982 values of parameters which are not used.
1983 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1985 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1986 (do_estimate_edge_size): Likewise.
1987 (do_estimate_edge_hints): Likewise.
1988 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1989 values are not known.
1990 (ipa_release_agg_values): Add option to not release vector itself.
1991 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1993 2019-11-21 Richard Biener <rguenther@suse.de>
1995 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1996 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1997 (loop_iterator::loop_iterator): Adjust.
1998 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1999 (compute_dominance_frontiers): ... this. Hoist invariant
2000 get_immediate_dominator call.
2001 (compute_idf): Use a work-set instead of a work-list for more
2002 optimal iteration order and duplicate avoidance.
2003 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2004 the vector all the time, instead pre-allocate the vector only
2006 (delete_update_ssa): Simplify.
2007 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2009 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2011 PR tree-optimization/91355
2012 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2013 for early_bb scaled count with best_bb count comparison.
2015 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2017 * ipa-inline.c (edge_badness): Likewise.
2018 * lto-streamer.h (class lto_location_cache): Likewise.
2019 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2020 gratutious -> gratuitous.
2022 2019-11-21 Richard Biener <rguenther@suse.de>
2025 2019-09-17 Richard Biener <rguenther@suse.de>
2027 PR tree-optimization/91790
2028 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2029 use the correct DR for setting up realignment.
2031 2019-11-21 Richard Biener <rguenther@suse.de>
2033 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2034 (equiv_class_obstack): New.
2035 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2036 (perform_var_substitution): Initialize equiv_class_obstack.
2037 (free_var_substitution_info): Free equiv_class_obstack.
2039 2019-11-20 Jan Hubicka <jh@suse.cz>
2041 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2042 edge growth when callee function is very large.
2043 * ipa-inline.h (estimate_min_edge_growth): New.
2045 2019-11-20 Jan Hubicka <jh@suse.cz>
2047 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2048 negative time in calls summary; correct roundoff errors
2049 leading to negative times.
2050 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2052 (ipa_update_overall_fn_summary): Add RESET parameter.
2053 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2054 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2056 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2058 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2059 def types for two-operation SLP.
2061 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2064 * doc/sourcebuild.texi (vect_char_add): Document.
2066 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2068 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2069 * function.c (record_final_call): Record even calls that might
2070 have been in the cgraph.
2071 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2074 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2076 * configure.ac: Use https for gcc.gnu.org
2077 * configure: Regenerated.
2078 * doc/install.texi: Use https for gcc.gnu.org.
2079 * doc/sourcebuild.texi: Likewise.
2081 2019-11-20 Julian Brown <julian@codesourcery.com>
2083 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2085 2019-11-20 Jan Hubicka <jh@suse.cz>
2087 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2088 parameter and update call_size_time_table.
2089 (ipa_fn_summary::max_size_time_table_size): New constant.
2090 (estimate_calls_size_and_time_1): Break out from ...
2091 (estimate_calls_size_and_time): ... here; implement summary production.
2092 (summarize_calls_size_and_time): New function.
2093 (ipa_call_context::estimate_size_and_time): Bypass
2094 estimate_calls_size_and_time for leaf functions.
2095 (ipa_update_overall_fn_summary): Likewise.
2096 * ipa-fnsummary.h (call_size_time_table): New.
2097 (ipa_fn_summary::account_size_time): Update prototype.
2099 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2101 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2103 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2106 * common.opt (fcommon): Change init to 1.
2107 * doc/invoke.texi (-fcommon): Update documentation.
2109 2019-11-20 Jan Hubicka <jh@suse.cz>
2111 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2114 2019-11-20 Jan Hubicka <jh@suse.cz>
2116 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2117 Add allocator parameter.
2118 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2119 (fibonacci_heap<K,V>::m_allocator): New.
2120 (fibonacci_heap<K,V>::m_own_allocator): New.
2121 (fibonacci_heap<K,V>::insert): Use allocator.
2122 (fibonacci_heap<K,V>::extract_min): Likewise.
2123 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2125 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2127 * fibonacci_heap.c: Include alloc-pool
2128 (test_empty_heap): Initialize allocator.
2129 (test_union): Likewise.
2130 * bb-reorder.c: Include alloc-pool.h.
2131 * tracer.c: Inlclude alloc-pool.h.
2133 2019-11-20 Jan Hubicka <jh@suse.cz>
2135 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2136 Preallocate for 32 entries.
2137 (DFS::worklist): Likewise.
2138 (DFS::DFS): Do not initialize sccstack and worklist.
2139 (DFS::~DFS): Do not release sccstack.
2141 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2144 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2145 Handle UNORDERED if !HONOR_NANS.
2147 2019-11-20 Jan Hubicka <jh@suse.cz>
2149 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2150 (edge_badness): ... here.
2151 (inline_small_functions): Use monotonicity of badness calculation
2152 to avoid redundant updates.
2154 2019-11-20 Richard Biener <rguenther@suse.de>
2156 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2157 constructors we are actually analyzing.
2158 (vect_slp_check_for_constructors): Do not vectorize uniform
2159 constuctors, do not dump here.
2161 2019-11-20 Richard Biener <rguenther@suse.de>
2163 PR tree-optimization/92537
2164 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2165 vectorization validity check...
2166 (vect_slp_analyze_operations): ... here.
2168 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2170 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2171 (make_pass_arc_predicate_delay_insns): Likewise.
2172 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2173 method, remove clone.
2174 (class pass_arc_predicate_delay_insns): Likewise.
2175 (arc_init): Remove registering of ARC specific passes.
2176 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2177 * config/arc/arc-passes.def: New file.
2179 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2182 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2183 and has a mode that doesn't have corresponding integral type.
2186 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2187 clear opts->x_ix86_isa_flags{,2} here...
2188 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2189 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2192 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2194 (insert_clobbers_for_var): Fix a typo in function comment.
2196 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2197 Jakub Jelinek <jakub@redhat.com>
2200 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2201 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2204 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2206 Make 0-series device specs work with older versions of avr-gcc.
2209 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2210 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2211 <*link_pm_base_address>: Don't write spec.
2212 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2214 2019-11-20 Richard Biener <rguenther@suse.de>
2217 * builtins.c (compute_objsize): Deal with VLAs.
2219 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2221 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2223 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2225 (power9_sched_reorder2): Call new function.
2226 (rs6000_sched_reorder2): Likewise.
2228 2019-11-18 Jan Hubicka <jh@suse.cz>
2230 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2231 (estimate_calls_size_and_time): Update.
2233 2019-11-18 Jan Hubicka <jh@suse.cz>
2235 * ipa-inline.c (inlining_speedup): New function.
2236 (edge_badness): Use it.
2238 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2239 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2241 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2242 Mark as not having "likely" version.
2243 * config/mips/mips.md (insn_count): The simd_div instruction with
2244 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2245 (can_delay): Exclude simd_branch.
2246 (defile_delay *): Add simd_branch instructions.
2247 They have one regular delay slot.
2249 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2252 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2254 * cse.c (cse_insn): Delete no-op register moves too.
2255 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2256 Take a second comparison to control the value for NE.
2257 (mask_to_comparison): Handle unsigned comparisons.
2258 (simplify_logical_relational_operation): Likewise. Update call
2259 to comparison_to_mask. Handle AND if !HONOR_NANs.
2260 (simplify_binary_operation_1): Call the above for AND too.
2262 2019-11-19 Martin Liska <mliska@suse.cz>
2264 * toplev.c (general_init): Move the call...
2265 (toplev::main): ... here as we need init_options_struct
2268 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2271 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2274 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2276 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2277 (armv7-a): Likewise.
2278 (armv7ve): Likewise.
2280 2019-11-19 Richard Biener <rguenther@suse.de>
2282 PR tree-optimization/92581
2283 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2284 condition reduction chains gather all conditions involved
2285 for computing the index reduction vector.
2287 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2289 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2290 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2291 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2292 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2293 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2294 (aarch64_init_memtag_builtins): New.
2295 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2296 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2297 (aarch64_expand_builtin_memtag): New.
2298 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2299 (AARCH64_BUILTIN_SUBCODE): New macro.
2300 (aarch64_resolve_overloaded_memtag): New.
2301 (aarch64_resolve_overloaded_builtin_general): New. Call
2302 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2303 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2304 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2305 (aarch64_resolve_overloaded_builtin): Call
2306 aarch64_resolve_overloaded_builtin_general.
2307 * config/aarch64/aarch64-protos.h
2308 (aarch64_resolve_overloaded_builtin_general): New declaration.
2309 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2310 (TARGET_MEMTAG): Likewise.
2311 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2312 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2313 (irg, gmi, subp, addg, ldg, stg): New instructions.
2314 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2315 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2316 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2317 (__arm_mte_get_tag): Likewise.
2318 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2319 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2320 * config/arm/types.md (memtag): New.
2321 * doc/invoke.texi (-memtag): Update description.
2323 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2325 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2326 to define __GCC_ASM_FLAG_OUTPUTS__.
2327 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2328 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2329 depending on TARGET_THUMB1.
2330 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2332 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2335 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2338 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2339 operand is negative and one non-negative, compare the non-negative
2340 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2341 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2342 and s2 == 0, unless one of them is known to be negative. Remove
2343 tem2 variable, use tem where tem2 has been used before.
2345 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2347 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2349 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2351 PR tree-optimization/92557
2352 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2353 vmode rather than asserting it always is.
2355 2019-11-19 Richard Biener <rguenther@suse.de>
2357 PR tree-optimization/92554
2358 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2359 for the actual condition stmt and deal with sign-changes.
2361 2019-11-19 Richard Biener <rguenther@suse.de>
2363 PR tree-optimization/92555
2364 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2367 2019-11-19 Martin Liska <mliska@suse.cz>
2370 * config/riscv/riscv.c (riscv_address_insns): Initialize
2371 addr in order to remove boostrap -Wmaybe-uninitialized
2374 2019-11-18 Martin Sebor <msebor@redhat.com>
2376 PR tree-optimization/92493
2377 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2380 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2382 * cfgloop.c (get_loop_body_in_custom_order): New.
2383 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2384 * tree-loop-distribution.c (class loop_distribution): New.
2385 (bb_top_order_cmp): Remove.
2386 (bb_top_order_cmp_r): New.
2387 (create_rdg_vertices): Move into class loop_distribution.
2388 (stmts_from_loop): Same as above.
2389 (update_for_merge): Same as above.
2390 (partition_merge_into): Same as above.
2391 (get_data_dependence): Same as above.
2392 (data_dep_in_cycle_p): Same as above.
2393 (update_type_for_merge): Same as above.
2394 (build_rdg_partition_for-vertex): Same as above.
2395 (classify_builtin_ldst): Same as above.
2396 (classify_partition): Same as above.
2397 (share_memory_accesses): Same as above.
2398 (rdg_build_partitions): Same as above.
2399 (pg_add_dependence_edges): Same as above.
2400 (build_partition_graph): Same as above.
2401 (merge_dep_scc_partitions): Same as above.
2402 (break_alias_scc_partitions): Same as above.
2403 (finalize_partitions): Same as above.
2404 (distribute_loop): Same as above.
2405 (bb_top_order_init): New method
2406 (bb_top_order_destroy): New method.
2407 (get_bb_top_order_index_size): New method.
2408 (get_bb_top_order_index_index): New method.
2409 (get_bb_top_order_index_index): New method.
2410 (loop_distribution::execute): New method.
2411 (pass_loop_distribution::execute): Instantiate loop_distribution.
2413 2019-11-18 Jan Hubicka <jh@suse.cz>
2416 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2418 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2420 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2422 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2423 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2424 * doc/md.texi: Document them.
2425 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2427 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2428 * internal-fn.c (check_ptrs_direct): New macro.
2429 (expand_check_ptrs_optab_fn): Likewise.
2430 (direct_check_ptrs_optab_supported_p): Likewise.
2431 (internal_check_ptrs_fn_supported_p): New fuction.
2432 * tree-data-ref.c: Include internal-fn.h.
2433 (create_ifn_alias_checks): New function.
2434 (create_intersect_range_checks): Use it.
2435 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2436 (optab, cmp_op): Handle it.
2437 (raw_war, unspec): New int attributes.
2438 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2440 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2442 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2444 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2447 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2449 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2452 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2454 * cse.c (cse_insn): Delete no-op register moves too.
2455 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2456 Take a second comparison to control the value for NE.
2457 (mask_to_comparison): Handle unsigned comparisons.
2458 (simplify_logical_relational_operation): Likewise. Update call
2459 to comparison_to_mask. Handle AND if !HONOR_NANs.
2460 (simplify_binary_operation_1): Call the above for AND too.
2462 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2464 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2465 splitting the main code out into...
2466 (native_encode_vector_part): ...this new function.
2467 (native_decode_vector_tree): New function.
2468 (fold_view_convert_vector_encoding): Likewise.
2469 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2472 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2474 * tree-data-ref.c (create_intersect_range_checks_index): If the
2475 alias pair describes simple WAW and WAR dependencies, just check
2476 whether the first B access overlaps later A accesses.
2477 (create_waw_or_war_checks): New function that performs the same
2478 optimization on addresses.
2479 (create_intersect_range_checks): Call it.
2481 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2483 * lra-constraints.c (valid_address_p): Take the operand and a
2484 constraint as argument. If the operand is a MEM and the constraint
2485 is a memory constraint, check whether the eliminated form of the
2486 MEM already satisfies the constraint.
2487 (process_address_1): Update calls accordingly.
2489 2019-11-18 Tom Tromey <tromey@adacore.com>
2491 * doc/tm.texi: Rebuild.
2492 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2493 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2495 2019-11-18 Richard Biener <rguenther@suse.de>
2497 PR tree-optimization/92516
2498 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2499 argument, hoist bst_map creation/destruction to ...
2500 (vect_analyze_slp): ... here, forming a true graph with
2501 SLP instances being the entries.
2502 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2503 (vect_detect_hybrid_slp): Use one visited set for all
2505 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2506 to hash-sets of slp_tree.
2507 (vect_slp_analyze_operations): Likewise.
2508 (vect_bb_slp_scalar_cost): Remove wrapper.
2509 (vect_bb_vectorization_profitable_p): Use one visited set for
2511 (vect_schedule_slp_instance): Elide bst_map use.
2512 (vect_schedule_slp): Likewise.
2514 2019-11-18 Richard Biener <rguenther@suse.de>
2516 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2517 was vectorized with just external refs fail.
2519 2019-11-18 Martin Liska <mliska@suse.cz>
2522 * ipa-icf.c (sem_function::init): Unset m_checker
2523 at the end of the function.
2525 2019-11-18 Richard Biener <rguenther@suse.de>
2527 PR tree-optimization/92558
2528 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2529 reducting the width of a reduction vector def update new_phis.
2531 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2533 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2534 and s390*-*-linux-musl* targets.
2535 * configure: Regenerate.
2537 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2539 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2540 (MUSL_DYNAMIC_LINKER64): Define.
2542 2019-11-18 Martin Liska <mliska@suse.cz>
2544 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2545 message for an unknown counter.
2546 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2547 (dbg_cnt_process_opt): Remove unreachable code.
2549 2019-11-18 Martin Liska <mliska@suse.cz>
2552 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2553 Compare LHS types of NOP_EXPR.
2555 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2557 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2558 "initial_pass_name" argument -- by running "*clean_state" pass.
2559 Also free the "initial_pass_name" when done.
2561 2019-11-18 Richard Biener <rguenther@suse.de>
2563 PR rtl-optimization/92462
2564 * alias.c (find_base_term): Restrict the look through ANDs.
2565 (find_base_value): Likewise.
2567 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2569 Add support for AVR devices from the 0-series.
2572 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2573 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2574 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2575 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2576 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2577 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2578 for spec definitions.
2579 * doc/avr-mmcu.texi: Regenerate.
2581 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2584 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2585 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2586 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2587 (ix86_reassociation_width): Ditto.
2588 * config/i386/i386-options.c (ix86_option_override_internal):
2589 Replace TARGET_AVX128_OPTIAML with
2590 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2591 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2592 (TARGET_AVX128_OPTIMAL): Deleted.
2593 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2596 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2598 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2599 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2601 (cceq_rev_compare): Rename to...
2602 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2604 (define_split for <bd>tf_<mode>): Add SImode first argument to
2605 gen_cceq_ior_compare.
2607 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2609 * common/config/powerpcspe: Delete.
2611 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2613 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2614 output in UNSPEC_WRFFR.
2616 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2618 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2619 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2621 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2623 * tree-data-ref.c (create_intersect_range_checks_index)
2624 (create_intersect_range_checks): Print dump messages.
2626 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2628 * tree-data-ref.c (dump_alias_pair): New function.
2629 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2631 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2633 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2634 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2635 merging data references with different steps.
2636 (create_intersect_range_checks_index): Take a
2637 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2638 Bail out if DR_ALIAS_MIXED_STEPS is set.
2639 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2640 instead of two dr_with_seg_lens. Update call to
2641 create_intersect_range_checks_index.
2642 (create_runtime_alias_checks): Update call accordingly.
2644 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2646 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2647 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2648 (dr_with_seg_len_pair_t::sequencing): New enum.
2649 (dr_with_seg_len_pair_t::flags): New member variable.
2650 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2651 parameter and initialize the flags member variable.
2652 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2654 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2655 Ensure the two data references in an alias pair are in statement
2656 order, if there is a defined order.
2657 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2658 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2659 swapped the references in a dr_with_seg_len_pair_t. OR together
2660 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2661 try to restore the original dr_with_seg_len order, updating the
2662 flags if that fails.
2664 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2666 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2667 swapping the dr_as based on init values until we've decided
2668 whether to merge them.
2670 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2672 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2673 two accesses in each dr_with_seg_len_pair_t before trying to
2674 combine separate dr_with_seg_len_pair_ts.
2675 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2677 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2679 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2681 * config/aarch64/aarch64-sve.md
2682 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2683 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2684 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2685 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2686 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2687 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2688 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2690 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2691 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2692 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2693 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2695 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2697 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2698 (SVE_4HSI): New mode iterators.
2699 (ANY_EXTEND2): New code iterator.
2700 * config/aarch64/aarch64-sve.md
2701 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2703 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2704 ...this, handling extension to partial modes as well as full modes.
2705 Describe the extension as a predicated rather than unpredicated
2707 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2708 Likewise extend to...
2709 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2710 ...this, making the same adjustments.
2711 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2712 Likewise extend to...
2713 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2714 ...this, making the same adjustments.
2715 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2716 Likewise extend to...
2717 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2718 ...this, making the same adjustments.
2719 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2721 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2722 extension predicate.
2723 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2724 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2725 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2726 Describe the extension as a predicated rather than unpredicated
2728 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2729 Likewise. Canonicalize to a constant extension predicate.
2730 * config/aarch64/aarch64-sve-builtins-base.cc
2731 (svld1_gather_extend_impl::expand): Add an extra predicate for
2733 (svldff1_gather_extend_impl::expand): Likewise.
2735 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2737 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2739 * config/aarch64/aarch64-sve.md
2740 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2741 (gather_load<SVE_24:mode><v_int_container>): ...this.
2742 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2743 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2744 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2745 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2746 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2748 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2749 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2750 Allow the nominal extension predicate to be different from the
2752 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2753 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2755 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2757 * config/aarch64/aarch64-sve.md
2758 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2759 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2761 (aarch64_sve_adjust_stmt_cost): Call it.
2763 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2765 * config/aarch64/aarch64-sve.md
2766 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2767 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2768 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2770 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2771 ...this new pattern, handling extension to partial modes as well
2772 as full modes. Describe the extension as a predicated rather than
2773 unpredicated extension.
2774 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2775 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2776 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2778 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2779 ...this new pattern, handling extension to partial modes as well
2780 as full modes. Describe the extension as a predicated rather than
2781 unpredicated extension.
2782 * config/aarch64/aarch64-sve-builtins.cc
2783 (function_expander::use_contiguous_load_insn): Add an extra
2784 predicate for extending loads.
2785 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2786 (aarch64_sve_adjust_stmt_cost): Likewise.
2787 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2788 the cost of SVE vector stmts.
2790 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2792 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2793 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2794 * config/aarch64/aarch64-sve.md
2795 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2796 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2797 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2798 comment. Avoid new narrower_mask ambiguity.
2799 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2800 (*cond_uxt<mode>_2): Update comment.
2801 (*cond_uxt<mode>_any): Likewise.
2803 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2805 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2807 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2809 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2810 new vector float modes.
2811 (aarch64_sve_container_bits): New function.
2812 (aarch64_sve_pred_mode): Likewise.
2813 (aarch64_get_mask_mode): Use it.
2814 (aarch64_sve_element_int_mode): Handle structure modes and partial
2816 (aarch64_sve_container_int_mode): New function.
2817 (aarch64_vectorize_related_mode): Return SVE modes when given
2818 SVE modes. Handle partial modes, taking the preferred number
2819 of units from the size of the given mode.
2820 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2822 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2823 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2824 (aarch64_split_sve_subreg_move): Use the mode form of
2825 aarch64_sve_pred_mode.
2826 (aarch64_secondary_reload): Handle partial modes in the same way
2827 as full big-endian vectors.
2828 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2829 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2830 merging with the Advanced SIMD modes. If two modes have the
2831 same size, try the Advanced SIMD mode first.
2832 (aarch64_simd_valid_immediate): Use the container rather than
2833 the element mode for INDEX constants.
2834 (aarch64_simd_vector_alignment): Make the alignment of partial
2835 SVE vector modes the same as their minimum size.
2836 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2837 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2838 (mov<SVE_ALL:mode>): ...this.
2839 (movmisalign<SVE_FULL:mode>): Extend to...
2840 (movmisalign<SVE_ALL:mode>): ...this.
2841 (*aarch64_sve_mov<mode>_le): Rename to...
2842 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2843 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2844 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2845 partial modes regardless of endianness.
2846 (aarch64_sve_reload_be): Rename to...
2847 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2848 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2849 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2850 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2851 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2852 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2853 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2854 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2855 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2856 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2857 (maskload<SVE_FULL:mode><vpred>): Extend to...
2858 (maskload<SVE_ALL:mode><vpred>): ...this.
2859 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2860 (maskstore<SVE_ALL:mode><vpred>): ...this.
2861 (vec_duplicate<SVE_FULL:mode>): Extend to...
2862 (vec_duplicate<SVE_ALL:mode>): ...this.
2863 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2864 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2865 (sve_ld1r<SVE_FULL:mode>): Extend to...
2866 (sve_ld1r<SVE_ALL:mode>): ...this.
2867 (vec_series<SVE_FULL_I:mode>): Extend to...
2868 (vec_series<SVE_I:mode>): ...this.
2869 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2870 (*vec_series<SVE_I:mode>_plus): ...this.
2871 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2872 new VPRED ambiguity.
2873 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2874 (add<SVE_FULL_I:mode>3): Extend to...
2875 (add<SVE_I:mode>3): ...this.
2876 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2877 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2878 (VPRED, vpred): Likewise.
2879 (Vctype): New iterator.
2880 (vw): Remove SVE modes.
2882 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2884 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2885 (SVE_PARTIAL_I): ...this.
2886 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2888 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2890 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2891 (SVE_FULL): ...this.
2892 (SVE_I): Rename to...
2893 (SVE_FULL_I): ...this.
2894 (SVE_F): Rename to...
2895 (SVE_FULL_F): ...this.
2896 (SVE_BHSI): Rename to...
2897 (SVE_FULL_BHSI): ...this.
2898 (SVE_HSD): Rename to...
2899 (SVE_FULL_HSD): ...this.
2900 (SVE_HSDI): Rename to...
2901 (SVE_FULL_HSDI): ...this.
2902 (SVE_HSF): Rename to...
2903 (SVE_FULL_HSF): ...this.
2904 (SVE_SD): Rename to...
2905 (SVE_FULL_SD): ...this.
2906 (SVE_SDI): Rename to...
2907 (SVE_FULL_SDI): ...this.
2908 (SVE_SDF): Rename to...
2909 (SVE_FULL_SDF): ...this.
2910 (SVE_S): Rename to...
2911 (SVE_FULL_S): ...this.
2912 (SVE_D): Rename to...
2913 (SVE_FULL_D): ...this.
2914 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2915 * config/aarch64/aarch64-sve2.md: Likewise.
2917 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2919 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2921 * doc/invoke.texi: Document it.
2922 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2923 By default, return VECT_COMPARE_COSTS for SVE.
2925 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2927 * target.h (VECT_COMPARE_COSTS): New constant.
2928 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2929 * doc/tm.texi: Regenerate.
2930 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2931 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2932 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2934 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2935 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2936 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2937 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2938 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2939 (_loop_vec_info::vec_inside_cost): New member variables.
2940 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2941 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2942 (vect_analyze_loop): When autovectorize_vector_modes returns
2943 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2944 vector mode and picking the one with the lowest cost.
2945 (vect_estimate_min_profitable_iters): Record the computed costs
2946 in the loop_vec_info.
2948 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2950 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2951 element type rather than an element mode.
2952 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2953 Use get_vectype_for_scalar_type to query the natural types
2954 for a given element type rather than basing everything on
2955 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2956 query to MAX_FIXED_MODE_SIZE.
2957 (duplicate_and_interleave): Update call accordingly.
2958 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2960 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2962 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2963 optional maximum nunits.
2964 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2966 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2967 (vect_get_mask_type_for_stmt): Likewise.
2968 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2969 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2970 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2971 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2972 to get an assumed vector type for data references.
2973 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2974 (vect_update_all_shared_vectypes): Likewise.
2975 (vect_build_slp_tree_1): Pass the group size to
2976 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2977 for BB vectorization.
2978 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2979 before building the vectof from scalars.
2980 (vect_analyze_slp_instance): Pass the group size to
2981 get_vectype_for_scalar_type.
2982 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2983 types for BB vectorization here; just handle the case in which
2984 we deferred the choice for booleans.
2985 (vect_get_constant_vectors): Pass the slp_tree to
2986 get_vectype_for_scalar_type.
2987 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2988 (vectorizable_call): Likewise.
2989 (vectorizable_simd_clone_call): Likewise.
2990 (vectorizable_conversion): Likewise.
2991 (vectorizable_shift): Likewise.
2992 (vectorizable_operation): Likewise.
2993 (vectorizable_comparison): Likewise.
2994 (vect_is_simple_cond): Take the slp_tree as argument and
2995 pass it to get_vectype_for_scalar_type.
2996 (vectorizable_condition): Update call accordingly.
2997 (get_vectype_for_scalar_type): Take a group_size argument.
2998 For BB vectorization, limit the the vector to that number
2999 of elements. Also define an overload that takes an slp_tree.
3000 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3001 pass it to get_vectype_for_scalar_type.
3002 (vect_get_vector_types_for_stmt): Add a group_size argument
3003 and pass it to get_vectype_for_scalar_type. Don't use the
3004 cached vector type for BB vectorization if a group size is given.
3005 Handle data references in that case.
3006 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3007 pass it to get_mask_type_for_scalar_type.
3009 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3011 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3013 (estimate_edge_time): Use it.
3014 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3015 ret_nonspec_time parameter.
3017 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3019 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3021 2019-11-15 Nick Clifton <nickc@redhat.com>
3022 Szabolcs Nagy <szabolcs.nagy@arm.com>
3025 * config/microblaze/microblaze.c (print_operand): Print value as long.
3027 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3029 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3032 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3034 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3035 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3037 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3039 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3040 (gcn_conditional_register_usage): Use constants in place of hard-coded
3042 (gcn_hsa_declare_function_name): Set lower bound for number of
3043 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3044 MAX_NORMAL_VGPR_COUNT.
3046 2019-11-15 Martin Jambor <mjambor@suse.cz>
3048 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3051 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3053 * config/gcn/gcn.c (default_requested_args): New.
3054 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3055 set with default_requested_args.
3056 (gcn_conditional_register_usage): Limit register usage of non-kernel
3057 functions. Reassign fixed registers if a non-standard set of args is
3059 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3061 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3064 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3065 aggregate jump function when inlined-to caller has no edge summary.
3067 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3069 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3071 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3073 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3075 (print_operand_address): Use v1 for zero vector offset.
3077 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3079 PR tree-optimization/92515
3080 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3081 types when converting a vector/scalar shift into a vector/vector one,
3082 using tree_nop_conversion_p instead of useless_type_conversion_p.
3083 Move the conversion code to the transform block.
3085 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3087 * read-rtl-function.c
3088 (function_reader::add_fixup_source_location): Take additional
3089 parameter of a column.
3090 (function_reader::maybe_read_location): Optionally parse column
3091 information and pass to add_fixup_source_location.
3093 2019-11-15 Richard Biener <rguenther@suse.de>
3095 PR tree-optimization/92512
3096 * tree-vect-loop.c (check_reduction_path): Fix operand index
3097 computability check. Add check for second use in COND_EXPRs.
3099 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3102 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3103 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3105 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3107 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3108 register class for VCC_LO and VCC_HI.
3109 (gcn_spill_class): Use SGPR_REGS to spill registers in
3110 VCC_CONDITIONAL_REG.
3112 2019-11-15 Richard Biener <rguenther@suse.de>
3114 PR tree-optimization/92324
3115 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3116 singedness of SLP reduction epilouge operations. Also reduce
3117 the vector width for SLP reductions before doing elementwise
3118 operations if possible.
3120 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3122 * passes.c (skip_pass): Set epilogue_completed if skipping the
3123 pro_and_epilogue pass.
3125 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3127 * passes.c (should_skip_pass_p): Always run "dfinish".
3129 2019-11-15 Richard Biener <rguenther@suse.de>
3131 * ipa-inline.c (inline_small_functions): Move assignment
3132 to next before call destroying edge.
3134 2019-11-15 Richard Biener <rguenther@suse.de>
3136 PR tree-optimization/92039
3137 PR tree-optimization/91975
3138 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3139 previous change, treat invariants consistently as non-constant.
3140 (tree_estimate_loop_size): Ternary ops with just the first op
3141 constant are not optimized away.
3143 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3145 * gimplify.c (gimplify_call_expr): Don't call
3146 omp_resolve_declare_variant after gimplification.
3147 * omp-general.c (omp_context_selector_matches): For isa that might
3148 match in some other function, defer if in declare simd function.
3149 (omp_context_compute_score): Don't look for " score" in construct
3150 trait set. Set *score to -1 if it can't ever match.
3151 (omp_resolve_declare_variant): If any variants need to be deferred,
3152 don't punt immediately, but compute scores of all variants and if
3153 ther eis a score winner that doesn't need to be deferred, return that.
3155 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3157 * ipa-comdats.c: Fix comments typo.
3158 * ipa-profile.c: Fix comments typo.
3159 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3160 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3161 (gimple_gen_ic_func_profiler): Likewise.
3162 (pass_ipa_tree_profile::gate): Fix comments typo.
3164 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3166 * ipa-inline.c (inline_small_functions): Update iterator of next.
3168 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3170 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3171 register is suitable for the mode.
3173 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3175 * range-op.h (range_operator::fold_range): Return a bool.
3176 * range-op.cc (range_operator::wi_fold): Assert supported type.
3177 (range_operator::fold_range): Assert supported type and return true.
3178 (operator_equal::fold_range): Return true.
3179 (operator_not_equal::fold_range): Same.
3180 (operator_lt::fold_range): Same.
3181 (operator_le::fold_range): Same.
3182 (operator_gt::fold_range): Same.
3183 (operator_ge::fold_range): Same.
3184 (operator_plus::op1_range): Adjust call to fold_range.
3185 (operator_plus::op2_range): Same.
3186 (operator_minus::op1_range): Same.
3187 (operator_minus::op2_range): Same.
3188 (operator_exact_divide::op1_range): Same.
3189 (operator_lshift::fold_range): Return true and adjust fold_range call.
3190 (operator_rshift::fold_range): Same.
3191 (operator_cast::fold_range): Return true.
3192 (operator_logical_and::fold_range): Same.
3193 (operator_logical_or::fold_range): Same.
3194 (operator_logical_not::fold_range): Same.
3195 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3196 (operator_bitwise_not::op1_range): Same.
3197 (operator_cst::fold_range): Return true.
3198 (operator_identity::fold_range): Return true.
3199 (operator_negate::fold_range): Return true and adjust fold_range call.
3200 (operator_addr_expr::fold_range): Return true.
3201 (operator_addr_expr::op1_range): Adjust call to fold_range.
3203 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3204 (range_fold_unary_symbolics_p): Same.
3206 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3208 PR tree-optimization/92506
3209 * range-op.cc (range_operator::fold_range): Start with range undefined.
3210 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3211 overflow is varying.
3213 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3215 * range-op.cc (*operator*::*range): Remove calls to
3216 range_intersect, range_invert, and range_union in favor of calling
3217 the in-place API methods.
3218 (range_tests): Same.
3219 * range.cc (range_intersect): Remove.
3220 (range_union): Remove.
3221 (range_invert): Remove.
3222 * range.h (range_intersect): Remove.
3223 (range_union): Remove.
3224 (range_intersect): Remove.
3226 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3228 PR rtl-optimization/92430
3229 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3230 (pass_jump_after_combine::execute): Perform jump threading
3233 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3234 Doug Rupp <rupp@adacore.com>
3235 Olivier Hainque <hainque@adacore.com>
3237 * config.gcc: Collapse the arm-vxworks entries into
3238 a single arm-wrs-vxworks7* one, bpabi based. Update
3239 the default cpu from arm8 to armv7-a
3240 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3241 we always use ARM_UNWIND_INFO.
3242 (DWARF2_UNWIND_INFO): Remove redefinition.
3243 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3244 (VXWORKS_PERSONALITY): Define, to "llvm".
3245 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3247 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3249 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3250 _VX_CPU instead of CPU and handle arm_arch8.
3252 2019-11-14 Doug Rupp <rupp@adacore.com>
3253 Olivier Hainque <hainque@adacore.com>
3254 Jerome Lambourg <lambourg@adacore.com>
3256 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3257 * config/aarch64/aarch64-vxworks.h: New file.
3258 * config/aarch64/t-aarch64-vxworks: New file.
3260 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3261 Olivier Hainque <hainque@adacore.com>
3263 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3264 definition, pointless with a VxWorks specific version
3266 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3267 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3268 New local macros, controlling the addition of vxworks specific
3269 crtstuff objects depending on the EH mechanism and kind of
3270 module being linked.
3271 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3273 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3274 Jerome Lambourg <lambourg@adacore.com>
3275 Olivier Hainque <hainque@adacore.com>
3277 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3278 common macro definitions, conveying VXWORKS7 or 64bit general
3279 variations. Add a block to set gcc_cv_initfini_array
3280 unconditionally to "yes" for VxWorks7.
3281 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3282 by default. Update some comments.
3283 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3284 default, to be added the end of VXWORKS_LIBS_RTP.
3285 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3286 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3288 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3289 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3290 to account for the now available TLS abilities.
3291 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3292 (VXWORKS_HAVE_TLS): Likewise.
3294 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3296 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3297 (vect_slp_convert_to_external): Likewise.
3298 (vect_slp_analyze_node_operations): If analysis fails, try building
3299 the node from scalars instead.
3301 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3303 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3304 between vector types.
3305 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3306 non-widening and non-narrowing path to handle standard
3307 conversion codes, if the target supports them.
3308 * expr.c (convert_move): Try using the extend and truncate optabs
3310 * optabs-tree.c (supportable_convert_operation): Likewise.
3311 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3312 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3313 (trunc<mode><Vnarrowq>2): New patterns.
3315 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3317 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3318 require vectype and nunits_vectype to have the same size;
3319 instead assert that nunits_vectype has at least as many
3320 elements as vectype. Don't compute a separate nunits_vectype
3321 if the scalar type is obviously the same as vectype's.
3322 Tweak dump messages.
3324 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3326 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3328 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3329 (TARGET_VECTORIZE_RELATED_MODE): Define.
3331 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3333 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3334 (vec_info::used_vector_mode): New member variable.
3335 (vect_chooses_same_modes_p): Declare.
3336 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3337 chosen vector mode in vec_info::used_vector_mode.
3338 (vect_chooses_same_modes_p): New function.
3339 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3340 the same vector statements multiple times.
3341 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3343 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3345 * machmode.h (opt_machine_mode::operator==): New function.
3346 (opt_machine_mode::operator!=): Likewise.
3347 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3348 (get_related_vectype_for_scalar_type): Delete.
3349 (get_vectype_for_scalar_type_and_size): Declare.
3350 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3351 whether analysis passed or failed, and with what vector modes.
3352 Use related_vector_mode to check whether trying a particular
3353 vector mode would be redundant with the autodetected mode,
3354 and print a dump message if we decide to skip it.
3355 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3356 (vect_create_epilog_for_reduction): Use
3357 get_related_vectype_for_scalar_type instead of
3358 get_vectype_for_scalar_type_and_size.
3359 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3361 (get_related_vectype_for_scalar_type): ...this new function.
3362 Take a starting/"prevailing" vector mode rather than a vector size.
3363 Take an optional nunits argument, with the same meaning as for
3364 related_vector_mode. Use related_vector_mode when not
3365 auto-detecting a mode, falling back to mode_for_vector if no
3367 (get_vectype_for_scalar_type): Update accordingly.
3368 (get_same_sized_vectype): Likewise.
3369 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3371 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3373 * tree-vect-stmts.c (vectorizable_call): Require the types
3374 to have the same size.
3376 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3378 * tree-vect-stmts.c (vectorizable_call): If an operand is
3379 constant or external, use get_vectype_for_scalar_type
3380 rather than get_same_sized_vectype to get its vector type.
3381 (vectorizable_conversion, vectorizable_shift): Likewise.
3382 (vectorizable_operation): Likewise.
3384 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3386 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3387 (vec_info::vector_mode): ...this new field.
3388 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3389 (vect_analyze_loop, vect_transform_loop): Likewise.
3390 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3391 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3392 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3393 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3394 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3396 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3398 * target.h (vector_sizes, auto_vector_sizes): Delete.
3399 (vector_modes, auto_vector_modes): New typedefs.
3400 * target.def (autovectorize_vector_sizes): Replace with...
3401 (autovectorize_vector_modes): ...this new hook.
3402 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3404 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3405 * doc/tm.texi: Regenerate.
3406 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3407 (default_autovectorize_vector_modes): New function.
3408 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3409 (default_autovectorize_vector_modes): New function.
3410 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3411 of autovectorize_vector_sizes. Use the number of units in the mode
3412 to calculate the maximum VF.
3413 * omp-low.c (omp_clause_aligned_alignment): Use
3414 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3415 Use a loop based on related_mode to iterate through all supported
3416 vector modes for a given scalar mode.
3417 * optabs-query.c (can_vec_mask_load_store_p): Use
3418 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3419 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3420 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3421 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3423 (aarch64_autovectorize_vector_modes): ...this new function.
3424 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3425 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3426 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3427 (arc_autovectorize_vector_modes): ...this new function.
3428 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3429 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3430 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3431 (arm_autovectorize_vector_modes): ...this new function.
3432 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3433 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3434 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3435 (ix86_autovectorize_vector_modes): ...this new function.
3436 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3437 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3438 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3439 (mips_autovectorize_vector_modes): ...this new function.
3440 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3441 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3443 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3445 * tree-vect-stmts.c (vectorizable_shift): Check the number
3446 of vector elements as well as the type mode when deciding
3447 whether an op1_vectype is compatible. Reuse the result of
3448 this check when generating vector statements.
3450 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3452 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3453 targetm.vectorize.preferred_simd_mode returns an integer mode,
3454 use mode_for_vector to decide what the vector type's mode
3455 should actually be. Use build_vector_type_for_mode instead
3456 of build_vector_type.
3458 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3460 * target.def (get_mask_mode): Take a vector mode itself as argument,
3461 instead of properties about the vector mode.
3462 * doc/tm.texi: Regenerate.
3463 * targhooks.h (default_get_mask_mode): Update to reflect new
3464 get_mode_mask interface.
3465 * targhooks.c (default_get_mask_mode): Likewise. Use
3466 related_int_vector_mode.
3467 * optabs-query.c (can_vec_mask_load_store_p): Update call
3469 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3470 first that the original mode really is a vector.
3471 * tree.c (build_truth_vector_type_for): Likewise.
3472 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3473 get_mode_mask interface.
3474 (aarch64_expand_sve_vcond): Update call accordingly.
3475 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3476 get_mode_mask interface.
3477 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3479 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3481 * tree.h (build_truth_vector_type): Delete.
3482 (build_same_sized_truth_vector_type): Likewise.
3483 * tree.c (build_truth_vector_type): Rename to...
3484 (build_truth_vector_type_for): ...this. Make static and take
3485 a vector type as argument.
3486 (truth_type_for): Update accordingly.
3487 (build_same_sized_truth_vector_type): Delete.
3488 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3489 instead of build_same_sized_truth_vector_type.
3490 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3491 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3492 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3493 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3494 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3495 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3496 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3497 (vectorizable_store, vectorizable_condition): Likewise.
3498 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3499 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3500 build_truth_vector_type.
3501 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3502 Use truth_type_for instead of build_same_sized_truth_vector_type.
3503 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3505 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3507 * tree.h (build_truth_vector_type_for_mode): Declare.
3508 * tree.c (build_truth_vector_type_for_mode): New function,
3510 (build_truth_vector_type): ...here.
3511 (build_opaque_vector_type): Fix head comment.
3512 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3514 (vect_halve_mask_nunits): Replace vec_info parameter with the
3515 mode of the new vector.
3516 (vect_double_mask_nunits): Likewise.
3517 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3518 (vect_double_mask_nunits): Likewise.
3519 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3520 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3521 to vect_halve_mask_nunits, getting the required mode from the unpack
3523 (vect_set_loop_condition_masked): Update call accordingly.
3524 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3525 parameter and update call to vect_double_mask_nunits.
3526 (vectorizable_conversion): Update call accordingly.
3527 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3528 (vectorizable_call): Update call accordingly.
3529 (supportable_widening_operation): Update call to
3530 vect_halve_mask_nunits.
3531 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3532 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3534 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3536 * machmode.h (mode_for_int_vector): Delete.
3537 (related_int_vector_mode): Declare.
3538 * stor-layout.c (mode_for_int_vector): Delete.
3539 (related_int_vector_mode): New function.
3540 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3541 instead of mode_for_int_vector.
3542 (expand_vec_perm_const): Likewise.
3543 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3544 (aarch64_evpc_sve_tbl): Likewise.
3545 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3546 (s390_expand_vcond): Likewise.
3548 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3550 * target.def (related_mode): New hook.
3551 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3552 * doc/tm.texi: Regenerate.
3553 * targhooks.h (default_vectorize_related_mode): Declare.
3554 * targhooks.c (default_vectorize_related_mode): New function.
3555 * machmode.h (related_vector_mode): Declare.
3556 * stor-layout.c (related_vector_mode): New function.
3557 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3558 * optabs-query.c (qimode_for_vec_perm): Likewise.
3559 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3560 (vectorizable_store, vectorizable_load): Likewise
3562 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3564 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3565 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3566 * config/arm/arm-c.c (arm_cpu_builtins): Define
3567 __GCC_ASM_FLAG_OUTPUTS__.
3568 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3569 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3570 Define __GCC_ASM_FLAG_OUTPUTS__.
3571 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3572 * doc/extend.texi (FlagOutputOperands): Add documentation
3573 for ARM and AArch64.
3575 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3576 * config/arm/predicates.md (nz_comparison_operator): Rename
3577 from noov_comparison_operator.
3578 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3579 (arm_gen_dicompare_reg): Likewise.
3580 (maybe_get_arm_condition_code): Likewise.
3581 (thumb1_final_prescan_insn): Likewise.
3582 (arm_emit_coreregs_64bit_shift): Likewise.
3583 * config/arm/arm.md (addsi3_compare0): Likewise.
3584 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3585 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3586 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3587 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3588 (*mulsi3addsi_compare0_scratch): Likewise.
3589 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3590 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3591 (*zeroextractsi_compare0_scratch): Likewise.
3592 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3593 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3594 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3595 (andsi_not_shiftsi_si_scc): Likewise.
3596 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3597 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3598 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3599 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3600 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3601 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3602 (return_addr_mask, *check_arch2): Likewise.
3603 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3604 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3605 (compare_scc splitters): Likewise.
3606 (movcond_addsi): Likewise.
3607 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3608 (*thumb2_addsi3_compare0_scratch): Likewise.
3609 (*thumb2_mulsi_short_compare0): Likewise.
3610 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3611 (compare peephole2s): Likewise.
3612 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3613 nz_comparison_operator names.
3614 (cbranchsi4_insn): Likewise.
3616 * config/arm/constraints.md (c): Use cc_register predicate.
3618 * config/aarch64/constraints.md (c): New constraint.
3620 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3622 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3623 ipa_merge_fn_summary_after_inlining): Micro optimize.
3625 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3627 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3629 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3631 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3632 (ipa_value_range_from_jfunc): New function.
3633 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3634 known_value_ranges parameter; use it to evalulate conditions.
3635 (evaluate_properties_for_edge): Compute known value ranges.
3636 (ipa_fn_summary_t::duplicate): Update use of
3637 evaluate_conditions_for_known_args.
3638 (estimate_ipcp_clone_size_and_time): Likewise.
3639 (ipa_merge_fn_summary_after_inlining): Likewise.
3640 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3642 2019-11-14 Martin Liska <mliska@suse.cz>
3644 * ipa-inline.c (want_inline_small_function_p): Use
3645 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3646 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3648 2019-11-14 Martin Liska <mliska@suse.cz>
3650 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3651 of a callee to get value of the param.
3652 * ipa-inline.c (inline_insns_auto): Use proper
3654 * opts.c (maybe_default_option): Do not overwrite param
3655 value if optimization level does not match. Note that
3656 params usually have default value set via Init() keyword.
3657 * params.opt: Remove -param=max-inline-insns-auto-O2.
3658 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3659 * doc/invoke.texi: Remove documentation of
3660 max-inline-insns-auto-O2.
3662 2019-11-14 Martin Liska <mliska@suse.cz>
3664 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3665 Do not initialize m_other_count.
3666 (switch_conversion::collect): Do not count m_default_count and
3667 m_other_count as we use frequencies for edges.
3668 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3670 2019-11-14 Martin Liska <mliska@suse.cz>
3673 * doc/invoke.texi: Document -fallocation-dce.
3675 2019-11-14 Martin Liska <mliska@suse.cz>
3678 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3679 PTA_ICELAKE_CLIENT which is later interited by
3680 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3682 2019-11-14 Martin Liska <mliska@suse.cz>
3684 * ipa-icf.c (sem_item_optimizer::execute): Save
3686 (sem_item_optimizer::parse_nonsingleton_classes):
3687 Return number of loaded symbols.
3688 (sem_item_optimizer::merge_classes): Print
3689 statistics about totally needed symbols.
3690 * ipa-icf.h (parse_nonsingleton_classes): Change return
3692 (merge_classes): Add one argument.
3694 2019-11-14 Martin Liska <mliska@suse.cz>
3696 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3697 func_checker::hash_operand by handling of FIELD_DECLs.
3699 2019-11-14 Martin Liska <mliska@suse.cz>
3701 * ipa-icf-gimple.h (func_checker::func_checker): Add
3702 default constructor.
3703 * ipa-icf.c (sem_function::init): Make operand_equal_p
3704 and hash_operand public.
3705 (sem_item::add_expr): Remove.
3706 (sem_item::add_type): Remove.
3707 (sem_function::hash_stmt): Use m_checker for hashing
3708 of GIMPLE statements.
3709 (sem_function::parse): Init with checker.
3710 (sem_variable::parse): Pass NULL as checker.
3711 (sem_item_optimizer::parse_funcs_and_vars):
3712 Pass checker to ::parse function.
3713 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3714 (sem_variable::parse): New function.
3715 (sem_variable::get_hash): Only return computed hash value.
3716 (sem_variable::init): Initialize hash of a variable.
3717 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3718 to couple of functions as a new argument.
3720 2019-11-14 Martin Liska <mliska@suse.cz>
3722 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3724 (func_checker::compare_gimple_assign): Likewise.
3726 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3728 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3729 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3730 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3732 * omp-general.c (omp_context_name_list_prop): New function.
3733 (omp_context_selector_matches): Use it. Return 0 if it returns
3735 (omp_context_selector_props_compare): Allow equivalency of an
3736 identifier and a string literal containing no embedded zeros.
3738 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3740 * range-op.cc (RANGE3): Remove.
3741 (range_tests): Remove all selftest that check for multi-ranges.
3742 Put tests in namespace selftest.
3743 * selftest.h: Move range_tests into namespace selftest.
3744 * value-range.h (class value_range): Unfriend range_tests.
3746 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3748 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3749 normalize_symbolics and normalize_addresses working in place.
3750 (range_fold_unary_symbolics_p): Same.
3751 (range_fold_unary_symbolics_p): Same.
3752 * value-range.cc (num_pairs): Same.
3753 (lower_bound): Same.
3754 (upper_bound): Same.
3756 (normalize_addresses): Same.
3757 (normalize_symbolics): Same.
3758 * value-range.h (normalize_symbolics): Same.
3759 (normalize_addresses): Same.
3761 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3764 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3765 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3766 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3767 (ipa_agg_jump_function): Remove member function equal_to.
3768 (ipa_agg_jump_function_p): Remove typedef.
3769 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3770 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3771 information for aggregate jump function.
3772 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3773 record last definition statement.
3774 (load_from_unmodified_param_or_agg): New function.
3775 (ipa_known_agg_contents_list): Add new field type and value, remove
3777 (build_agg_jump_func_from_list): Rename parameter const_count to
3778 value_count, build aggregate jump function from ipa_load_agg_data.
3779 (analyze_agg_content_value): New function.
3780 (extract_mem_content): Analyze memory store assignment to prepare
3781 information for aggregate jump function generation.
3782 (determine_known_aggregate_parts): Add new parameter fbi, remove
3783 parameter aa_walk_budeget_p.
3784 (update_jump_functions_after_inlining): Update aggregate jump function.
3785 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3786 (try_make_edge_direct_simple_call): Add new parameter new_root.
3787 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3789 (update_indirect_edges_after_inlining): Pass new argument to
3790 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3791 (ipa_write_jump_function): Write aggregate jump function to file.
3792 (ipa_read_jump_function): Read aggregate jump function from file.
3793 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3794 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3795 (ipa_agg_value_from_node): Likewise.
3796 (ipa_agg_value_set_from_jfunc): Likewise.
3797 (propagate_vals_across_arith_jfunc): Likewise.
3798 (propagate_aggregate_lattice): Likewise.
3799 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3800 (propagate_vals_across_pass_through): Call
3801 propagate_vals_across_arith_jfunc.
3802 (get_clone_agg_value): Move forward.
3803 (propagate_aggs_across_jump_function): Handle value propagation for
3804 aggregate jump function.
3805 (agg_jmp_p_vec_for_t_vec): Remove.
3806 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3807 with vec<ipa_agg_value>.
3808 (copy_plats_to_inter, intersect_with_plats): Likewise.
3809 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3810 (intersect_aggregate_with_edge): Likewise.
3811 (find_aggregate_values_for_callers_subset): Likewise.
3812 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3813 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3814 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3815 (gather_context_independent_values): Likewise.
3816 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3817 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3818 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3819 (evaluate_properties_for_edge): Likewise.
3820 (estimate_edge_devirt_benefit): Likewise.
3821 (estimate_edge_size_and_time): Likewise.
3822 (estimate_calls_size_and_time): Likewise.
3823 (ipa_call_context::ipa_call_context): Likewise.
3824 (estimate_ipcp_clone_size_and_time): Likewise.
3825 * ipa-fnsummary.h (ipa_call_context): Replace
3826 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3827 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3828 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3829 (do_estimate_edge_size): Likewise.
3830 (do_estimate_edge_hints): Likewise.
3832 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3834 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3837 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3839 * ipa-profile.c (check_argument_count): Check properly that e_info
3840 is non-NULL; do not check descriptors.
3842 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3844 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3845 check for ipa profiles.
3847 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3850 * ipa-prop.c (update_indirect_edges_after_inlining):
3851 Mark parameter as used.
3852 * ipa-inline.c (recursive_inlining): Reset node cache
3854 (inline_small_functions): Remove checking ifdef.
3855 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3858 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3861 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3863 (ipa_profile): Fix reversed test.
3865 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3867 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3868 (propagate_constants_topo): Fix typo.
3870 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3872 * Makefile.in (OBJS): Add value-range.o.
3873 (GTFILES): Add value-range.h.
3874 * gengtype.c (open_base_files): Add value-range.h to list of
3876 * tree-vrp.c: Move the following value_range related functions:
3877 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3878 constant_p, set_undefined, set_varying, may_contain_p,
3879 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3880 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3881 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3882 value_inside_range, ranges_from_anti_range, union_ranges,
3883 intersect_ranges, intersect_helper, union_helper, union_,
3884 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3885 upper_bound, contains_p, invert, intersect...
3886 * value-range.cc: ...to here.
3887 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3888 associated inline methods from here...
3889 * value-range.h: ...to here.
3891 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3893 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3894 instead of asserting its value.
3896 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3898 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3899 constructors and set methods so value_range_kind is the last
3900 argument and defaults to VR_RANGE.
3901 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3902 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3903 * ipa-prop.c (ipa_get_value_range): Same.
3904 (ipa_compute_jump_functions_for_edge): Same.
3905 * range-op.cc (value_range_from_overflowed_bounds): Same.
3906 (operator_cast::op1_range): Same.
3907 (range_tests): Same.
3908 * range.cc (range_nonzero): Same.
3909 * tree-ssanames.c (get_range_info): Same.
3910 * tree-vrp.c (value_range_equiv::set): Same.
3911 (value_range::value_range): Same.
3912 (value_range_equiv::value_range_equiv): Same.
3913 (value_range_equiv::update): Same.
3914 (value_range_equiv::deep_copy): Same.
3915 (value_range_equiv::move): Same.
3916 (value_range_equiv::set_undefined): Same.
3917 (value_range::set): Same.
3918 (value_range::set_nonzero): Same.
3919 (ranges_from_anti_range): Same.
3920 (extract_range_from_plus_minus_expr): Same.
3921 (value_range::intersect_helper): Same.
3922 (value_range_equiv::intersect): Same.
3923 (value_range::union_helper): Same.
3924 (value_range_equiv::union_): Same.
3925 (value_range::normalize_symbolics): Same.
3926 (value_range::invert): Same.
3927 (determine_value_range_1): Same.
3928 * tree-vrp.h (class value_range): Same.
3929 (class value_range_equiv): Same.
3930 * vr-values.c (set_value_range_to_nonnegative): Same.
3931 (set_value_range_to_truthvalue): Same.
3932 (vr_values::update_value_range): Same.
3933 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3934 (vr_values::extract_range_from_binary_expr): Same.
3935 (vr_values::extract_range_from_comparison): Same.
3936 (vr_values::extract_range_basic): Same.
3937 (vr_values::adjust_range_with_scev): Same.
3938 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3939 (vr_values::extract_range_from_phi_node): Same.
3941 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3943 * tree-dump.c (dequeue_and_dump): Print first tree operand
3944 for VIEW_CONVERT_EXPR.
3946 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3948 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3949 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3950 * real.c (get_max_float): Add norm_max argument.
3951 * real.h (get_max_float): Update prototype.
3952 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3955 2019-11-13 Martin Liska <mliska@suse.cz>
3957 * dbgcnt.c (test_sorted_dbg_counters): New.
3958 (dbgcnt_c_tests): Likewise.
3959 * selftest-run-tests.c (selftest::run_tests): Likewise.
3960 * selftest.h (dbgcnt_c_tests): Likewise.
3962 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3963 Martin Jambor <mjambor@suse.cz>
3966 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3967 (identify_dead_nodes): Likewise.
3969 2019-11-13 Martin Liska <mliska@suse.cz>
3971 * ipa-icf.c (sem_function::equals_private): Do not overuse
3972 push/pop_cfun functions.
3974 2019-11-13 Martin Liska <mliska@suse.cz>
3976 * common.opt: Document change of -fdbg-cnt option.
3977 * dbgcnt.c (DEBUG_COUNTER): Remove.
3978 (dbg_cnt_is_enabled): Remove.
3979 (dbg_cnt): Work with new intervals.
3980 (dbg_cnt_set_limit_by_index): Set to new
3982 (dbg_cnt_set_limit_by_name): Likewise.
3983 (dbg_cnt_process_single_pair): Process new format.
3984 (dbg_cnt_process_opt): Likewise.
3985 (dbg_cnt_list_all_counters): Likewise.
3986 * doc/invoke.texi: Document change of -fdbg-cnt option.
3989 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3991 * ipa-inline.c (ipa_inline): Check that function is defined before
3994 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3995 Julian Brown <julian@codesourcery.com>
3997 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3998 flag_worker_partitioning is not set.
3999 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4000 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4002 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4004 * config/gcn/gcn-run.c (heap_region): New global variable.
4005 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4006 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4007 (get_kernarg_region): Move contents to ....
4008 (get_memory_region): .... here.
4009 (get_heap_region): New function.
4010 (init_device): Initialize the heap_region.
4011 (device_malloc): Add region parameter.
4012 (struct kernargs): Move heap ....
4013 (heap): ... to global scope.
4014 (main): Allocate heap separate to kernargs.
4016 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4018 * ipa-prop.c (ipa_print_node_jump_functions,
4019 ipa_print_node_params): Print info about missing summaries.
4021 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4023 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4024 the cost of generating loop masks.
4026 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4028 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4030 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4031 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4032 (vect_transform_loop): Likewise.
4033 (vect_analyze_loop_costing): Don't take the cost of versioning
4034 into account for the static profitability threshold if it turns
4035 out that no versioning is needed.
4037 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4039 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4040 and target_option_default_node to get -fprofile-generate ctors working
4043 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4045 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4046 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4047 (vectorizable_assignment): Don't add a cost for nop conversions.
4048 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4050 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4052 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4054 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4055 number of ncopies as an additional argument.
4056 (vectorizable_conversion): Update call accordingly. Use "modifier"
4057 to check whether a conversion is between vectors with the same
4060 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4062 * config/aarch64/aarch64-sve-builtins-functions.h
4063 (unary_count::expand): Use aarch64_sve_int_mode instead of
4064 mode_for_int_vector.
4066 2019-11-13 Martin Liska <mliska@suse.cz>
4068 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4070 2019-11-13 Martin Liska <mliska@suse.cz>
4072 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4073 Remove call to finalize_options_struct.
4075 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4078 * config/avr/t-avr (avr-mcus): Do not depend on
4079 $(srcdir)/config/avr/t-multilib.
4081 2019-11-13 Richard Biener <rguenther@suse.de>
4083 PR tree-optimization/92473
4084 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4085 direct optab reduction in the correct type.
4087 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4089 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4090 hexadecimal literal.
4092 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4094 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4095 UNORDERED if !HONOR_NANS (DFmode).
4096 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4097 if !HONOR_NANS (<MODE>mode).
4099 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4101 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4102 (ipcp_verify_propagated_values): Likewise.
4103 (propagate_constants_across_call): Likewise.
4104 (propagate_constants_topo): Likewise.
4105 (ipcp_propagate_stage): Likewise.
4107 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4110 * ipa-profile.c (check_argument_count): Break out from ...;
4111 watch for missing summaries.
4112 (ipa_profile): Here.
4114 2019-11-12 Martin Sebor <msebor@redhat.com>
4116 PR tree-optimization/92412
4117 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4120 2019-11-12 Martin Sebor <msebor@redhat.com>
4123 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4124 (directive::argno): New member.
4125 (format_result::aliases, format_result::alias_count): New data members.
4126 (format_result::append_alias): New member function.
4127 (fmtresult::dst_offset): New data member.
4128 (pass_sprintf_length::call_info::dst_origin): New data member.
4129 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4130 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4131 (get_origin_and_offset): Same.
4132 (format_string): Call it.
4133 (format_directive): Call append_alias and set directive argument
4135 (maybe_warn_overlap): New function.
4136 (pass_sprintf_length::compute_format_length): Call it.
4137 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4138 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4140 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4142 PR rtl-optimization/92430
4143 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4144 dominance info at the beginning.
4146 2019-11-12 Richard Biener <rguenther@suse.de>
4148 PR tree-optimization/92460
4149 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4150 expression before gimplifying.
4152 2019-11-12 Richard Biener <rguenther@suse.de>
4154 PR tree-optimization/92461
4155 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4156 stmt after propagation.
4158 2019-11-12 Martin Liska <mliska@suse.cz>
4160 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4161 Use SET_OPTION_IF_UNSET.
4162 (ix86_option_override_internal): Likewise.
4163 * opts.c (default_options_optimization): Likewise.
4164 (finish_options): Likewise.
4165 (enable_fdo_optimizations): Likewise.
4166 (common_handle_option): Likewise.
4168 2019-11-12 Martin Liska <mliska@suse.cz>
4170 * common/common-target.def: Remove option_validate_param and
4171 option_default_params.
4172 * common/common-targhooks.c (default_option_validate_param):
4174 * common/common-targhooks.h (default_option_validate_param):
4176 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4177 Remove usage of this.
4178 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4179 (aarch64_option_validate_param): Likewise.
4180 (aarch64_option_default_params): Likewise
4181 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4182 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4183 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4184 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4185 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4186 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4187 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4188 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4189 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4190 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4191 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4193 * doc/tm.texi: Remove option_default_params and option_validate_param.
4194 * doc/tm.texi.in: Likewise.
4196 2019-11-12 Martin Liska <mliska@suse.cz>
4198 * common/common-target.def:
4199 Do not mention set_default_param_value
4200 and set_param_value.
4201 * doc/tm.texi: Likewise.
4203 2019-11-12 Martin Liska <mliska@suse.cz>
4205 * common.opt: Remove param_values.
4206 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4207 Remove finalize_options_struct.
4208 * gcc.c (driver::decode_argv): Do not call global_init_params
4210 (driver::finalize): Do not call params_c_finalize
4211 and finalize_options_struct.
4212 * opt-suggestions.c (option_proposer::get_completions): Remove
4213 special casing of params.
4214 (option_proposer::find_param_completions): Remove.
4215 (test_completion_partial_match): Update expected output.
4216 * opt-suggestions.h: Remove find_param_completions.
4217 * opts-common.c (add_misspelling_candidates): Add
4218 --param with a space.
4219 * opts.c (handle_param): Remove.
4220 (init_options_struct):. Remove init_options_struct and
4222 (finalize_options_struct): Remove.
4223 (common_handle_option): Use SET_OPTION_IF_UNSET.
4224 * opts.h (finalize_options_struct): Remove.
4225 * toplev.c (general_init): Do not call global_init_params.
4226 (toplev::finalize): Do not call params_c_finalize and
4227 finalize_options_struct.
4229 2019-11-12 Martin Liska <mliska@suse.cz>
4231 * Makefile.in: Remove PARAMS_H and params.list
4233 * params-enum.h: Remove.
4234 * params-list.h: Remove.
4235 * params-options.h: Remove.
4237 * params.def: Remove.
4239 * asan.c: Do not include params.h.
4240 * auto-profile.c: Likewise.
4241 * bb-reorder.c: Likewise.
4242 * builtins.c: Likewise.
4243 * cfgcleanup.c: Likewise.
4244 * cfgexpand.c: Likewise.
4245 * cfgloopanal.c: Likewise.
4246 * cgraph.c: Likewise.
4247 * combine.c: Likewise.
4248 * common/config/aarch64/aarch64-common.c: Likewise.
4249 * common/config/gcn/gcn-common.c: Likewise.
4250 * common/config/ia64/ia64-common.c: Likewise.
4251 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4252 * common/config/rs6000/rs6000-common.c: Likewise.
4253 * common/config/sh/sh-common.c: Likewise.
4254 * config/aarch64/aarch64.c: Likewise.
4255 * config/alpha/alpha.c: Likewise.
4256 * config/arm/arm.c: Likewise.
4257 * config/avr/avr.c: Likewise.
4258 * config/csky/csky.c: Likewise.
4259 * config/i386/i386-builtins.c: Likewise.
4260 * config/i386/i386-expand.c: Likewise.
4261 * config/i386/i386-features.c: Likewise.
4262 * config/i386/i386-options.c: Likewise.
4263 * config/i386/i386.c: Likewise.
4264 * config/ia64/ia64.c: Likewise.
4265 * config/rs6000/rs6000-logue.c: Likewise.
4266 * config/rs6000/rs6000.c: Likewise.
4267 * config/s390/s390.c: Likewise.
4268 * config/sparc/sparc.c: Likewise.
4269 * config/visium/visium.c: Likewise.
4270 * coverage.c: Likewise.
4271 * cprop.c: Likewise.
4273 * cselib.c: Likewise.
4275 * emit-rtl.c: Likewise.
4276 * explow.c: Likewise.
4277 * final.c: Likewise.
4278 * fold-const.c: Likewise.
4281 * ggc-common.c: Likewise.
4282 * ggc-page.c: Likewise.
4283 * gimple-loop-interchange.cc: Likewise.
4284 * gimple-loop-jam.c: Likewise.
4285 * gimple-loop-versioning.cc: Likewise.
4286 * gimple-ssa-split-paths.c: Likewise.
4287 * gimple-ssa-sprintf.c: Likewise.
4288 * gimple-ssa-store-merging.c: Likewise.
4289 * gimple-ssa-strength-reduction.c: Likewise.
4290 * gimple-ssa-warn-alloca.c: Likewise.
4291 * gimple-ssa-warn-restrict.c: Likewise.
4292 * graphite-isl-ast-to-gimple.c: Likewise.
4293 * graphite-optimize-isl.c: Likewise.
4294 * graphite-scop-detection.c: Likewise.
4295 * graphite-sese-to-poly.c: Likewise.
4296 * graphite.c: Likewise.
4297 * haifa-sched.c: Likewise.
4298 * hsa-gen.c: Likewise.
4299 * ifcvt.c: Likewise.
4300 * ipa-cp.c: Likewise.
4301 * ipa-fnsummary.c: Likewise.
4302 * ipa-inline-analysis.c: Likewise.
4303 * ipa-inline.c: Likewise.
4304 * ipa-polymorphic-call.c: Likewise.
4305 * ipa-profile.c: Likewise.
4306 * ipa-prop.c: Likewise.
4307 * ipa-split.c: Likewise.
4308 * ipa-sra.c: Likewise.
4309 * ira-build.c: Likewise.
4310 * ira-conflicts.c: Likewise.
4311 * loop-doloop.c: Likewise.
4312 * loop-invariant.c: Likewise.
4313 * loop-unroll.c: Likewise.
4314 * lra-assigns.c: Likewise.
4315 * lra-constraints.c: Likewise.
4316 * modulo-sched.c: Likewise.
4317 * opt-suggestions.c: Likewise.
4319 * postreload-gcse.c: Likewise.
4320 * predict.c: Likewise.
4321 * reload.c: Likewise.
4322 * reorg.c: Likewise.
4323 * resource.c: Likewise.
4324 * sanopt.c: Likewise.
4325 * sched-deps.c: Likewise.
4326 * sched-ebb.c: Likewise.
4327 * sched-rgn.c: Likewise.
4328 * sel-sched-ir.c: Likewise.
4329 * sel-sched.c: Likewise.
4330 * shrink-wrap.c: Likewise.
4332 * targhooks.c: Likewise.
4333 * toplev.c: Likewise.
4334 * tracer.c: Likewise.
4335 * trans-mem.c: Likewise.
4336 * tree-chrec.c: Likewise.
4337 * tree-data-ref.c: Likewise.
4338 * tree-if-conv.c: Likewise.
4339 * tree-inline.c: Likewise.
4340 * tree-loop-distribution.c: Likewise.
4341 * tree-parloops.c: Likewise.
4342 * tree-predcom.c: Likewise.
4343 * tree-profile.c: Likewise.
4344 * tree-scalar-evolution.c: Likewise.
4345 * tree-sra.c: Likewise.
4346 * tree-ssa-ccp.c: Likewise.
4347 * tree-ssa-dom.c: Likewise.
4348 * tree-ssa-dse.c: Likewise.
4349 * tree-ssa-ifcombine.c: Likewise.
4350 * tree-ssa-loop-ch.c: Likewise.
4351 * tree-ssa-loop-im.c: Likewise.
4352 * tree-ssa-loop-ivcanon.c: Likewise.
4353 * tree-ssa-loop-ivopts.c: Likewise.
4354 * tree-ssa-loop-manip.c: Likewise.
4355 * tree-ssa-loop-niter.c: Likewise.
4356 * tree-ssa-loop-prefetch.c: Likewise.
4357 * tree-ssa-loop-unswitch.c: Likewise.
4358 * tree-ssa-math-opts.c: Likewise.
4359 * tree-ssa-phiopt.c: Likewise.
4360 * tree-ssa-pre.c: Likewise.
4361 * tree-ssa-reassoc.c: Likewise.
4362 * tree-ssa-sccvn.c: Likewise.
4363 * tree-ssa-scopedtables.c: Likewise.
4364 * tree-ssa-sink.c: Likewise.
4365 * tree-ssa-strlen.c: Likewise.
4366 * tree-ssa-structalias.c: Likewise.
4367 * tree-ssa-tail-merge.c: Likewise.
4368 * tree-ssa-threadbackward.c: Likewise.
4369 * tree-ssa-threadedge.c: Likewise.
4370 * tree-ssa-uninit.c: Likewise.
4371 * tree-switch-conversion.c: Likewise.
4372 * tree-vect-data-refs.c: Likewise.
4373 * tree-vect-loop.c: Likewise.
4374 * tree-vect-slp.c: Likewise.
4375 * tree-vrp.c: Likewise.
4377 * value-prof.c: Likewise.
4378 * var-tracking.c: Likewise.
4380 2019-11-12 Martin Liska <mliska@suse.cz>
4382 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4383 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4385 (asan_sanitize_allocas_p): Likewise.
4386 (asan_emit_stack_protection): Likewise.
4387 (asan_protect_global): Likewise.
4388 (instrument_derefs): Likewise.
4389 (instrument_builtin_call): Likewise.
4390 (asan_expand_mark_ifn): Likewise.
4391 * auto-profile.c (auto_profile): Likewise.
4392 * bb-reorder.c (copy_bb_p): Likewise.
4393 (duplicate_computed_gotos): Likewise.
4394 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4395 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4396 (try_crossjump_bb): Likewise.
4397 * cfgexpand.c (defer_stack_allocation): Likewise.
4398 (stack_protect_classify_type): Likewise.
4399 (pass_expand::execute): Likewise.
4400 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4401 (estimate_reg_pressure_cost): Likewise.
4402 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4403 * combine.c (combine_instructions): Likewise.
4404 (record_value_for_reg): Likewise.
4405 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4406 (aarch64_option_default_params): Likewise.
4407 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4408 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4409 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4410 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4411 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4412 (aarch64_allocate_and_probe_stack_space): Likewise.
4413 (aarch64_expand_epilogue): Likewise.
4414 (aarch64_override_options_internal): Likewise.
4415 * config/alpha/alpha.c (alpha_option_override): Likewise.
4416 * config/arm/arm.c (arm_option_override): Likewise.
4417 (arm_valid_target_attribute_p): Likewise.
4418 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4419 * config/i386/i386.c (get_probe_interval): Likewise.
4420 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4421 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4422 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4423 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4424 (get_stack_clash_protection_guard_size): Likewise.
4425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4426 * config/s390/s390.c (allocate_stack_space): Likewise.
4427 (s390_emit_prologue): Likewise.
4428 (s390_option_override_internal): Likewise.
4429 * config/sparc/sparc.c (sparc_option_override): Likewise.
4430 * config/visium/visium.c (visium_option_override): Likewise.
4431 * coverage.c (get_coverage_counts): Likewise.
4432 (coverage_compute_profile_id): Likewise.
4433 (coverage_begin_function): Likewise.
4434 (coverage_end_function): Likewise.
4435 * cse.c (cse_find_path): Likewise.
4436 (cse_extended_basic_block): Likewise.
4437 (cse_main): Likewise.
4438 * cselib.c (cselib_invalidate_mem): Likewise.
4439 * dse.c (dse_step1): Likewise.
4440 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4441 (get_max_insn_count): Likewise.
4442 (make_debug_insn_raw): Likewise.
4443 (init_emit): Likewise.
4444 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4445 * final.c (compute_alignments): Likewise.
4446 * fold-const.c (fold_range_test): Likewise.
4447 (fold_truth_andor): Likewise.
4448 (tree_single_nonnegative_warnv_p): Likewise.
4449 (integer_valued_real_single_p): Likewise.
4450 * gcse.c (want_to_gcse_p): Likewise.
4451 (prune_insertions_deletions): Likewise.
4452 (hoist_code): Likewise.
4453 (gcse_or_cprop_is_too_expensive): Likewise.
4454 * ggc-common.c: Likewise.
4455 * ggc-page.c (ggc_collect): Likewise.
4456 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4457 (MAX_DATAREFS): Likewise.
4458 (OUTER_STRIDE_RATIO): Likewise.
4459 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4460 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4461 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4462 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4463 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4464 (imm_store_chain_info::output_merged_store): Likewise.
4465 (pass_store_merging::process_store): Likewise.
4466 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4467 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4468 (scop_to_isl_ast): Likewise.
4469 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4470 (optimize_isl): Likewise.
4471 * graphite-scop-detection.c (build_scops): Likewise.
4472 * haifa-sched.c (set_modulo_params): Likewise.
4473 (rank_for_schedule): Likewise.
4474 (model_add_to_worklist): Likewise.
4475 (model_promote_insn): Likewise.
4476 (model_choose_insn): Likewise.
4477 (queue_to_ready): Likewise.
4478 (autopref_multipass_dfa_lookahead_guard): Likewise.
4479 (schedule_block): Likewise.
4480 (sched_init): Likewise.
4481 * hsa-gen.c (init_prologue): Likewise.
4482 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4483 (cond_move_process_if_block): Likewise.
4484 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4485 (merge_agg_lats_step): Likewise.
4486 (devirtualization_time_bonus): Likewise.
4487 (hint_time_bonus): Likewise.
4488 (incorporate_penalties): Likewise.
4489 (good_cloning_opportunity_p): Likewise.
4490 (ipcp_propagate_stage): Likewise.
4491 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4492 (set_switch_stmt_execution_predicate): Likewise.
4493 (analyze_function_body): Likewise.
4494 (compute_fn_summary): Likewise.
4495 * ipa-inline-analysis.c (estimate_growth): Likewise.
4496 * ipa-inline.c (caller_growth_limits): Likewise.
4497 (inline_insns_single): Likewise.
4498 (inline_insns_auto): Likewise.
4499 (can_inline_edge_by_limits_p): Likewise.
4500 (want_early_inline_function_p): Likewise.
4501 (big_speedup_p): Likewise.
4502 (want_inline_small_function_p): Likewise.
4503 (want_inline_self_recursive_call_p): Likewise.
4504 (edge_badness): Likewise.
4505 (recursive_inlining): Likewise.
4506 (compute_max_insns): Likewise.
4507 (early_inliner): Likewise.
4508 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4509 * ipa-profile.c (ipa_profile): Likewise.
4510 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4511 (ipa_analyze_node): Likewise.
4512 (ipcp_transform_function): Likewise.
4513 * ipa-split.c (consider_split): Likewise.
4514 * ipa-sra.c (allocate_access): Likewise.
4515 (process_scan_results): Likewise.
4516 (ipa_sra_summarize_function): Likewise.
4517 (pull_accesses_from_callee): Likewise.
4518 * ira-build.c (loop_compare_func): Likewise.
4519 (mark_loops_for_removal): Likewise.
4520 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4521 * loop-doloop.c (doloop_optimize): Likewise.
4522 * loop-invariant.c (gain_for_invariant): Likewise.
4523 (move_loop_invariants): Likewise.
4524 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4525 (decide_unroll_runtime_iterations): Likewise.
4526 (decide_unroll_stupid): Likewise.
4527 (expand_var_during_unrolling): Likewise.
4528 * lra-assigns.c (spill_for): Likewise.
4529 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4530 * modulo-sched.c (sms_schedule): Likewise.
4531 (DFA_HISTORY): Likewise.
4532 * opts.c (default_options_optimization): Likewise.
4533 (finish_options): Likewise.
4534 (common_handle_option): Likewise.
4535 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4537 * predict.c (get_hot_bb_threshold): Likewise.
4538 (maybe_hot_count_p): Likewise.
4539 (probably_never_executed): Likewise.
4540 (predictable_edge_p): Likewise.
4541 (predict_loops): Likewise.
4542 (expr_expected_value_1): Likewise.
4543 (tree_predict_by_opcode): Likewise.
4544 (handle_missing_profiles): Likewise.
4545 * reload.c (find_equiv_reg): Likewise.
4546 * reorg.c (redundant_insn): Likewise.
4547 * resource.c (mark_target_live_regs): Likewise.
4548 (incr_ticks_for_insn): Likewise.
4549 * sanopt.c (pass_sanopt::execute): Likewise.
4550 * sched-deps.c (sched_analyze_1): Likewise.
4551 (sched_analyze_2): Likewise.
4552 (sched_analyze_insn): Likewise.
4553 (deps_analyze_insn): Likewise.
4554 * sched-ebb.c (schedule_ebbs): Likewise.
4555 * sched-rgn.c (find_single_block_region): Likewise.
4556 (too_large): Likewise.
4557 (haifa_find_rgns): Likewise.
4558 (extend_rgns): Likewise.
4559 (new_ready): Likewise.
4560 (schedule_region): Likewise.
4561 (sched_rgn_init): Likewise.
4562 * sel-sched-ir.c (make_region_from_loop): Likewise.
4563 * sel-sched-ir.h (MAX_WS): Likewise.
4564 * sel-sched.c (process_pipelined_exprs): Likewise.
4565 (sel_setup_region_sched_flags): Likewise.
4566 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4567 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4568 * toplev.c (print_version): Likewise.
4569 (process_options): Likewise.
4570 * tracer.c (tail_duplicate): Likewise.
4571 * trans-mem.c (tm_log_add): Likewise.
4572 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4573 * tree-data-ref.c (split_constant_offset): Likewise.
4574 (compute_all_dependences): Likewise.
4575 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4576 * tree-inline.c (remap_gimple_stmt): Likewise.
4577 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4578 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4579 (create_parallel_loop): Likewise.
4580 * tree-predcom.c (determine_unroll_factor): Likewise.
4581 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4582 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4583 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4584 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4585 (dse_optimize_redundant_stores): Likewise.
4586 (dse_classify_store): Likewise.
4587 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4588 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4589 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4590 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4591 (try_peel_loop): Likewise.
4592 (tree_unroll_loops_completely): Likewise.
4593 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4594 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4595 (MAX_CONSIDERED_GROUPS): Likewise.
4596 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4597 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4598 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4599 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4600 (L1_CACHE_SIZE_BYTES): Likewise.
4601 (L2_CACHE_SIZE_BYTES): Likewise.
4602 (should_issue_prefetch_p): Likewise.
4603 (schedule_prefetches): Likewise.
4604 (determine_unroll_factor): Likewise.
4605 (volume_of_references): Likewise.
4606 (add_subscript_strides): Likewise.
4607 (self_reuse_distance): Likewise.
4608 (mem_ref_count_reasonable_p): Likewise.
4609 (insn_to_prefetch_ratio_too_small_p): Likewise.
4610 (loop_prefetch_arrays): Likewise.
4611 (tree_ssa_prefetch_arrays): Likewise.
4612 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4613 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4614 (convert_mult_to_fma): Likewise.
4615 (math_opts_dom_walker::after_dom_children): Likewise.
4616 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4617 (hoist_adjacent_loads): Likewise.
4618 (gate_hoist_loads): Likewise.
4619 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4620 (compute_partial_antic_aux): Likewise.
4621 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4622 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4623 (vn_reference_lookup): Likewise.
4624 (do_rpo_vn): Likewise.
4625 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4626 * tree-ssa-sink.c (select_best_block): Likewise.
4627 * tree-ssa-strlen.c (new_stridx): Likewise.
4628 (new_addr_stridx): Likewise.
4629 (get_range_strlen_dynamic): Likewise.
4630 (class ssa_name_limit_t): Likewise.
4631 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4632 (create_variable_info_for_1): Likewise.
4633 (init_alias_vars): Likewise.
4634 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4635 (tail_merge_optimize): Likewise.
4636 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4637 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4638 (thread_jumps::find_jump_threads_backwards): Likewise.
4639 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4640 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4641 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4642 (jump_table_cluster::can_be_handled): Likewise.
4643 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4644 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4645 (param_switch_conversion_branch_ratio): Likewise.
4646 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4647 (vect_enhance_data_refs_alignment): Likewise.
4648 (vect_prune_runtime_alias_test_list): Likewise.
4649 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4650 (vect_get_datarefs_in_loop): Likewise.
4651 (vect_analyze_loop): Likewise.
4652 * tree-vect-slp.c (vect_slp_bb): Likewise.
4653 * tree-vectorizer.h: Likewise.
4654 * tree-vrp.c (find_switch_asserts): Likewise.
4655 (vrp_prop::check_mem_ref): Likewise.
4656 * tree.c (wide_int_to_tree_1): Likewise.
4657 (cache_integer_cst): Likewise.
4658 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4659 (reverse_op): Likewise.
4660 (vt_find_locations): Likewise.
4662 2019-11-12 Martin Liska <mliska@suse.cz>
4664 * Makefile.in: Include params.opt.
4665 * flag-types.h (enum parloops_schedule_type): Add
4666 parloops_schedule_type used in params.opt.
4667 * params.opt: New file.
4669 2019-11-12 Martin Liska <mliska@suse.cz>
4671 * common.opt: Remove --param and --param= options.
4672 * opt-functions.awk: Mark CL_PARAMS for options
4673 that have Param keyword.
4674 * opts-common.c (decode_cmdline_options_to_array):
4675 Replace --param key=value with --param=key=value.
4676 * opts.c (print_filtered_help): Remove special
4678 (print_specific_help): Update title for params.
4679 (common_handle_option): Do not handle OPT__param.
4680 opts.h (SET_OPTION_IF_UNSET): New macro.
4681 * doc/options.texi: Document Param keyword.
4683 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4684 Frederik Harwath <frederik@codesourcery.com>
4685 Thomas Schwinge <thomas@codesourcery.com>
4687 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4688 enumeration constant.
4689 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4690 (is_gimple_omp_offloaded): Likewise.
4691 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4692 constant. Adjust the value of ORT_NONE accordingly.
4693 (is_gimple_stmt): Handle OACC_SERIAL.
4694 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4695 (gomp_needs_data_present): Likewise.
4696 (gimplify_adjust_omp_clauses): Likewise.
4697 (gimplify_omp_workshare): Handle OACC_SERIAL.
4698 (gimplify_expr): Likewise.
4699 * omp-expand.c (expand_omp_target):
4700 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4701 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4702 * omp-low.c (is_oacc_parallel): Rename function to...
4703 (is_oacc_parallel_or_serial): ... this.
4704 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4705 (scan_sharing_clauses): Adjust accordingly.
4706 (scan_omp_for): Likewise.
4707 (lower_oacc_head_mark): Likewise.
4708 (convert_from_firstprivate_int): Likewise.
4709 (lower_omp_target): Likewise.
4710 (check_omp_nesting_restrictions): Handle
4711 GF_OMP_TARGET_KIND_OACC_SERIAL.
4712 (lower_oacc_reductions): Likewise.
4713 (lower_omp_target): Likewise.
4714 * tree.def (OACC_SERIAL): New tree code.
4715 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4717 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4719 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4722 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4723 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4725 PR tree-optimization/92452
4726 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4727 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4730 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4732 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4735 2019-11-12 Alan Modra <amodra@gmail.com>
4737 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4738 element of unspec vec.
4739 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4741 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4742 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4743 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4744 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4746 2019-11-12 Alan Modra <amodra@gmail.com>
4748 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4749 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4750 (IS_NOMARK_TLSGETADDR): Likewise.
4751 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4752 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4753 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4754 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4755 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4756 (rs6000_indirect_call_template_1): Likewise.
4757 (rs6000_pltseq_template): Likewise.
4758 (rs6000_opt_vars): Remove "tls-markers" entry.
4759 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4761 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4762 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4763 (pltseq_plt_pcrel<mode>): Likewise.
4764 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4765 (call_value_local64): Likewise.
4766 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4767 output and length attribute sub-expression.
4768 (call_value_nonlocal_sysv<mode>),
4769 (call_value_nonlocal_sysv_secure<mode>),
4770 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4771 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4772 (call_value_indirect_pcrel<mode>): Likewise.
4773 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4774 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4775 * configure: Regenerate.
4776 * config.in: Regenerate.
4778 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4780 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4781 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4782 address being a prefixed load/store.
4783 (stack_protect_testdi): Deal with either address being a prefixed
4786 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4789 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4790 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4793 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4795 PR tree-optimization/92420
4796 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4798 (get_group_load_store_type): Use it for reversed SLP accesses.
4800 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4802 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4804 (ipcp_transformation_t::duplicate): Break out from ...
4805 (ipa_node_params_t::duplicate): ... here; add copying of agg
4807 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4808 (ipcp_transformation_t): Add duplicate.
4810 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4813 * doc/install.texi: Document that the minimum MPFR version is
4816 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4818 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4819 use new register constraint letters.
4821 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4823 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4824 as well, if interesting recover the symbol and re-legitimize the
4827 2019-11-11 Martin Liska <mliska@suse.cz>
4829 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4832 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4834 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4835 account when checking if there are enough iterations to vectorize
4838 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4839 Kwok Cheung Yeung <kcy@codesourcery.com>
4841 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4842 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4843 (LANG_HOOKS_DECLS): Rename also here.
4844 * langhooks.h (lang_hooks_for_decls): Rename
4845 omp_is_optional_argument to omp_check_optional_argument; take
4846 additional bool argument.
4847 * omp-general.h (omp_check_optional_argument): Likewise.
4848 * omp-general.h (omp_check_optional_argument): Likewise.
4849 * omp-low.c (lower_omp_target): Update calls; handle absent
4850 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4852 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4855 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4856 -fPIC and -shared the last to create offload image.
4858 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4860 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4863 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4864 (config.status): Use/depend on it.
4865 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4866 * configure: Regenerate.
4868 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4870 PR tree-optimization/88760
4871 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4872 * common/config/rs6000/rs6000-common.c
4873 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4874 Turn on -funroll-loops and -munroll-only-small-loops.
4875 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4876 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4877 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4878 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4879 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4880 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4882 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4884 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4885 Make scalar_load, vector_load, unaligned_load and
4886 vector_gather_load cost more to conform hardware latency and
4889 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4891 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4892 (MACHO_SYMBOL_LINKER_VIS_P): New.
4894 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4896 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4897 registers in eliminable_regset.
4899 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4901 * ipa-inline.c (compute_uninlined_call_time,
4902 compute_inlined_call_time): Take edge frequency as
4903 parameter rather than computing it by itself.
4904 (big_speedup_p, edge_badness): Manually CSE sreal
4905 frequency calculations.
4907 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4909 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4910 case where profiles are same.
4912 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4914 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4916 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4918 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4919 args summaries of inlined edge unless it holds info about
4920 described reference.
4922 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4924 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4925 (*movcc_internal1): Rename to...
4926 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4928 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4930 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4931 (cgraph_node::create_virtual_clone): Copy it.
4932 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4934 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4935 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4937 (propagate_constants_across_call): If callee is not analyzed, give up.
4938 (propagate_constants_topo): Lower to bottom latties of all callees of
4939 functions with ipa-cp disabled.
4940 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4941 (cgraph_edge_brings_value_p): Check for availability first.
4942 (create_specialized_node): Set ipcp_clone.
4943 (ipcp_store_bits_results): Check that info is present.
4944 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4946 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4947 conservative when callee summary is missing.
4948 (remap_edge_summaries): Lookup call summary only when needed.
4949 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4950 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4952 (ipa_analyze_node): Use get_create.
4953 (propagate_controlled_uses): Do not propagate when function is not
4955 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4956 (ipa_read_node_info): Use get_create.
4957 * ipa-prop.h (IPA_NODE_REF): Use get.
4958 (IPA_NODE_REF_GET_CREATE): New.
4960 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4962 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4965 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4967 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4968 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4969 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4970 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4972 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4974 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4975 capping the growth cumulated.
4976 (offline_size): Break out from ...
4977 (estimate_growth): ... here.
4978 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4980 (growth_likely_positive): Turn to ...
4981 (growth_positive_p): Re-implement.
4982 * ipa-inline.h (growth_likely_positive): Remove.
4983 (growth_positive_p): Declare.
4984 * ipa-inline.c (want_inline_small_function_p): Use
4986 (want_inline_function_to_all_callers_p): Likewise.
4988 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4990 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4991 calculation of min_size.
4992 (ipa_update_overall_fn_summary): Likewise.
4994 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4996 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4997 estimate_edge_devirt_benefit when not computing hints;
4998 do not compute time when not asked for.
4999 (estimate_calls_size_and_time): Pass NULL hints and time when
5000 these are not computed; do not evaluate hint predicates when these are
5002 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5005 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5007 PR tree-optimization/92401
5008 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5009 if res_op->code is an expression with code length 1.
5010 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5011 if res_op->code is an expression with code length 2.
5012 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5013 if res_op->code is an expression with code length 3.
5015 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5017 * config/darwin.c (machopic_mcount_stub_name): Validate the
5018 symbol stub name when it is created.
5019 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5022 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5024 * symtab.c: Fix comment typos.
5025 * cgraphunit.c: Likewise.
5026 * cgraph.h: Likewise.
5027 * cgraphclones.c: Likewise.
5028 * cgraph.c: Likewise.
5029 * varpool.c: Likewise.
5030 * tree-ssa-strlen.c: Likewise.
5031 * ipa-sra.c: Likewise.
5032 (scan_expr_access, check_all_callers_for_issues): Fix typo
5035 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5037 * config/darwin-protos.h: Add include quard.
5039 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5041 * range-op.h (range_operator::fold_range): Return result in a
5042 reference parameter instead of by value.
5043 (range_operator::wi_fold): Same.
5044 * range-op.cc (range_operator::wi_fold): Return result in a reference
5045 parameter instead of by value.
5046 (range_operator::fold_range): Same.
5047 (value_range_from_overflowed_bounds): Same.
5048 (value_range_with_overflow): Same
5049 (create_possibly_reversed_range): Same.
5050 (operator_equal::fold_range): Same.
5051 (operator_not_equal::fold_range): Same.
5052 (operator_lt::fold_range): Same.
5053 (operator_le::fold_range): Same.
5054 (operator_gt::fold_range): Same.
5055 (operator_ge::fold_range): Same.
5056 (operator_plus::wi_fold): Same.
5057 (operator_plus::op1_range): Change call to fold_range.
5058 (operator_plus::op2_range): Change call to fold_range.
5059 (operator_minus::wi_fold): Return result via reference parameter.
5060 (operator_minus::op1_range): Change call to fold_range.
5061 (operator_minus::op2_range): Change call to fold_range.
5062 (operator_min::wi_fold): Return result via reference parameter.
5063 (operator_max::wi_fold): Same.
5064 (cross_product_operator::wi_cross_product): Same.
5065 (operator_mult::wi_fold): Same.
5066 (operator_div::wi_fold): Same.
5067 (operator_div op_floor_div): Fix whitespace.
5068 (operator_exact_divide::op1_range): Change call to fold_range.
5069 (operator_lshift::fold_range): Return result via reference parameter.
5070 (operator_lshift::wi_fold): Same.
5071 (operator_rshift::fold_range): Same.
5072 (operator_rshift::wi_fold): Same.
5073 (operator_cast::fold_range): Same.
5074 (operator_cast::op1_range): Change calls to fold_range.
5075 (operator_logical_and::fold_range): Return result via reference.
5076 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5077 (operator_bitwise_and::wi_fold): Return result via reference.
5078 (operator_logical_or::fold_range): Same.
5079 (operator_bitwise_or::wi_fold): Same.
5080 (operator_bitwise_xor::wi_fold): Same.
5081 (operator_trunc_mod::wi_fold): Same.
5082 (operator_logical_not::fold_range): Same.
5083 (operator_bitwise_not::fold_range): Same.
5084 (operator_bitwise_not::op1_range): Change call to fold_range.
5085 (operator_cst::fold_range): Return result via reference.
5086 (operator_identity::fold_range): Same.
5087 (operator_abs::wi_fold): Same.
5088 (operator_absu::wi_fold): Same.
5089 (operator_negate::fold_range): Same.
5090 (operator_negate::op1_range): Change call to fold_range.
5091 (operator_addr_expr::fold_range): Return result via reference.
5092 (operator_addr_expr::op1_range): Change call to fold_range.
5093 (operator_pointer_plus::wi_fold): Return result via reference.
5094 (operator_pointer_min_max::wi_fold): Same.
5095 (operator_pointer_and::wi_fold): Same.
5096 (operator_pointer_or::wi_fold): Same.
5097 (range_op_handler): Change call to fold_range.
5099 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5101 (range_fold_unary_symbolics_p): Same.
5102 (range_fold_binary_expr): Same.
5103 (range_fold_unary_expr): Same.
5105 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5107 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5108 vector type as an argument rather than reading it from the
5110 (vect_create_epilog_for_reduction): Update accordingly.
5111 (vectorizable_reduction): Likewise.
5112 (vect_transform_cycle_phi): Likewise.
5114 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5116 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5117 the comparison codes that make sense for the mode used, and only the
5118 codes that can be done with a single branch instruction.
5120 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5122 PR tree-optimization/92351
5123 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5124 peeling the main loop for alignment, make sure to set the misalignment
5125 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5127 2019-11-08 Richard Biener <rguenther@suse.de>
5129 * dbgcnt.def (ivopts_loop): Add.
5130 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5131 ivopts_loop before optimizing a loop.
5133 2019-11-08 Richard Biener <rguenther@suse.de>
5136 * tree-inline.c (declare_return_variable): Properly handle
5137 type mismatches for the return slot.
5139 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5142 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5143 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5145 (got_helper_needed): New static variable.
5146 (output_load_pcrel_sym): New function.
5147 (get_pc_thunk_name): Remove after inlining...
5148 (load_got_register): ...here. Rework the initialization of the GOT
5149 register and of the GOT helper.
5150 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5151 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5152 helper must be emitted. Use output_asm_insn instead of fprintf.
5153 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5154 if optimization is enabled.
5155 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5156 by calling output_load_pcrel_sym.
5158 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5160 * tree-sra.c (create_access): Delay disqualifying the base
5161 for poly_int values until we know we have a base.
5163 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5165 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5166 for loops with SIMDUID set. Enable epilogue vectorization for loops
5167 with SIMDLEN set after finding a main loop with a VF that matches it.
5169 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5172 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5173 value only, return non-NULL if there is a single non-clobber
5174 constituent store even if there are constituent clobbers and return
5175 one of clobber constituent stores if all constituent stores are
5177 (split_group): Handle clobbers.
5178 (imm_store_chain_info::output_merged_store): When computing
5179 bzero_first, look after all clobbers at the start. Don't count
5180 clobber stmts in orig_num_stmts, except if the first orig store is
5181 a clobber covering the whole area and split_stores cover the whole
5182 area, consider equal number of stmts ok. Punt if split_stores
5183 contains only ->orig stores and their number plus number of original
5184 clobbers is equal to original number of stmts. For ->orig, look past
5185 clobbers in the constituent stores.
5186 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5188 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5190 (store_valid_for_store_merging_p): Allow clobber stmts.
5191 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5194 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5195 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5197 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5198 force creation of a unique data.stack_parm slot.
5200 2019-11-08 Richard Biener <rguenther@suse.de>
5202 * genmatch.c (expr::gen_transform): Use the resimplify
5203 member function instead of hard-coding the gimple_resimplifyN variant.
5204 (dt_simplify::gen_1): Likewise.
5206 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5208 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5211 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5213 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5214 instead of INTEGER_CST.
5216 2019-11-08 Richard Biener <rguenther@suse.de>
5218 PR tree-optimization/92324
5219 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5220 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5221 sign-conversions as necessary.
5222 (vectorizable_reduction): Reject conversions in the chain
5223 that are not sign-conversions, base analysis on a non-converting
5224 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5225 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5227 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5228 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5230 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5233 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5234 Fix a missing '-' when displaying these options in the
5237 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5239 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5241 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5243 * config/aarch64/aarch64-builtins.c
5244 (aarch64_builtin_vectorized_function): Remove bswap handling.
5246 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5248 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5249 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5250 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5251 Treat the vector types as indivisible.
5253 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5255 * optabs.def (gather_load_optab, mask_gather_load_optab)
5256 (scatter_store_optab, mask_scatter_store_optab): Turn into
5257 conversion optabs, with the offset mode given explicitly.
5258 * doc/md.texi: Update accordingly.
5259 * config/aarch64/aarch64-sve-builtins-base.cc
5260 (svld1_gather_impl::expand): Likewise.
5261 (svst1_scatter_impl::expand): Likewise.
5262 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5263 (expand_scatter_store_optab_fn): Likewise.
5264 (direct_gather_load_optab_supported_p): Likewise.
5265 (direct_scatter_store_optab_supported_p): Likewise.
5266 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5268 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5269 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5270 argument with the offset vector type. Require the two vector
5271 types to have the same number of elements but allow their element
5272 sizes to be different. Treat the optabs as conversion optabs.
5273 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5274 prototype accordingly.
5275 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5276 (supports_vec_convert_optab_p): ...this new function.
5277 (supports_vec_gather_load_p): Update accordingly.
5278 (supports_vec_scatter_store_p): Likewise.
5279 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5280 Replace the offset sign and bits parameters with a scalar type tree.
5281 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5282 Pass back the offset vector type instead of the scalar element type.
5283 Allow the offset to be wider than the memory elements. Search for
5284 an offset type that the target supports, stopping once we've
5285 reached the maximum of the element size and pointer size.
5286 Update call to internal_gather_scatter_fn_supported_p.
5287 (vect_check_gather_scatter): Update calls accordingly.
5288 When testing a new scale before knowing the final offset type,
5289 check whether the scale is supported for any signed or unsigned
5290 offset type. Check whether the target supports the source and
5291 target types of a conversion before deciding whether to look
5292 through the conversion. Record the chosen offset_vectype.
5293 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5294 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5295 directly from the gs_info's offset_vectype instead. Pass a zero
5296 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5297 * tree-vect-stmts.c (check_load_store_masking): Update call to
5298 internal_gather_scatter_fn_supported_p, passing the offset vector
5299 type recorded in the gs_info.
5300 (vect_truncate_gather_scatter_offset): Update call to
5301 vect_check_gather_scatter, leaving it to search for a valid
5303 (vect_use_strided_gather_scatters_p): Convert the offset to the
5304 element type of the gs_info's offset_vectype.
5305 (vect_get_gather_scatter_ops): Get the offset vector type directly
5307 (vect_get_strided_load_store_ops): Likewise.
5308 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5309 and IFN_MASK_GATHER_LOAD.
5310 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5311 (gather_load<mode><v_int_equiv>): ...this.
5312 (mask_gather_load<mode>): Rename to...
5313 (mask_gather_load<mode><v_int_equiv>): ...this.
5314 (scatter_store<mode>): Rename to...
5315 (scatter_store<mode><v_int_equiv>): ...this.
5316 (mask_scatter_store<mode>): Rename to...
5317 (mask_scatter_store<mode><v_int_equiv>): ...this.
5319 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5322 * config/rs6000/predicates.md
5323 (signed_or_equality_comparison_operator): New predicate.
5324 (unsigned_or_equality_comparison_operator): Likewise.
5325 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5326 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5327 * config/rs6000/vector.md
5328 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5329 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5330 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5331 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5332 vector modes and same-size integer vector modes.
5333 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5334 (vector_lt<mode> for VEC_F): New expand.
5335 (vector_le<mode> for VEC_F): Likewise.
5336 (vector_ne<mode> for VEC_F): Likewise.
5337 (vector_unge<mode> for VEC_F): Likewise.
5338 (vector_ungt<mode> for VEC_F): Likewise.
5339 (vector_unle<mode> for VEC_F): Likewise.
5340 (vector_unlt<mode> for VEC_F): Likewise.
5341 (vector_uneq<mode>): Expose name.
5342 (vector_ltgt<mode>): Likewise.
5343 (vector_unordered<mode>): Likewise.
5344 (vector_ordered<mode>): Likewise.
5346 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5349 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5350 Enhance ix86_expand_vector_init_concat.
5352 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5354 * doc/invoke.texi (-Wold-style-definition): Document () not being
5355 considered an old-style definition for C2x.
5357 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5359 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5361 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5362 insn patterns using ldcw instruction.
5363 (memory_barrier): Remove insn pattern using sync instruction.
5364 * config/pa/pa.opt (coherent-ldcw): New option.
5365 (ordered): New option.
5367 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5369 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5372 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5374 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5375 typo - mistmatch -> mismatch.
5376 * ipa-profile.c (ipa_profile): Likewise.
5377 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5378 - mistmatch -> mismatch.
5380 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5382 * simplify-rtx.c (comparison_to_mask): New function.
5383 (mask_to_comparison): New function.
5384 (simplify_logical_relational_operation): New function.
5385 (simplify_binary_operation_1): Call
5386 simplify_logical_relational_operation.
5388 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5391 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5392 modes for integer constants.
5394 2019-11-07 Jan Hubicka <jh@suse.cz>
5397 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5400 2019-11-07 Jan Hubicka <jh@suse.cz>
5402 * optc-save-gen.awk: Generate cl_target_option_free
5403 and cl_optimization_option_free.
5404 * opth-en.awk: Declare cl_target_option_free
5405 and cl_optimization_option_free.
5406 * tree.c (free_node): Use it.
5408 2019-11-06 Jan Hubicka <jh@suse.cz>
5410 * lto-streamer-in.c: Include alloc-pool.h.
5411 (freeing_string_slot_hasher): Remove.
5412 (string_slot_allocator): New object allocator.
5413 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5414 (file_name_obstack): New obstack.
5415 (canon_file_name): Allocate in obstack and allocator.
5416 (lto_reader_init): Initialize obstack and allocator.
5417 (lto_free_file_name_hash): New function.
5418 * lto-streamer.h (lto_free_file_name_hash): New.
5420 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5422 PR tree-optimization/89134
5423 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5424 * params.def: Add min-loop-cond-split-prob.
5425 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5426 outside checks on loop into the function.
5427 (split_info): New class.
5428 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5429 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5430 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5431 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5432 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5433 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5434 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5435 (split_loop_on_cond): Likewise.
5436 (tree_ssa_split_loops): Add loop split on conditional statement.
5438 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5440 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5443 2019-11-07 Richard Biener <rguenther@suse.de>
5445 PR tree-optimization/92405
5446 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5447 restrict lane-reducing ops to single stmt chains.
5449 2019-11-07 Martin Jambor <mjambor@suse.cz>
5452 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5453 * cgraph.h (gimple_check_call_matching_types): Remove
5454 * cgraph.c (gimple_check_call_args): Likewise.
5455 (gimple_check_call_matching_types): Likewise.
5456 (symbol_table::create_edge): Do not call
5457 gimple_check_call_matching_types.
5458 (cgraph_edge::make_direct): Likewise.
5459 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5460 * value-prof.h (check_ic_target): Remove.
5461 * value-prof.c (check_ic_target): Remove.
5462 (gimple_ic_transform): Do nat call check_ic_target.
5463 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5464 (afdo_indirect_call): Likewise.
5465 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5466 gimple_check_call_matching_types.
5467 * ipa-inline.c (early_inliner): Likewise.
5469 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5471 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5472 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5473 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5474 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5475 * config/arm/iterators.md (USSAT16): New int_iterator.
5476 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5478 * config/arm/predicates.md (ssat16_imm): New predicate.
5479 (usat16_imm): Likewise.
5480 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5482 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5484 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5486 (arm_<simd32_op>): New define_expands.
5487 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5488 __smuad, __smuadx): Define.
5489 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5490 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5491 (SIMD32_BINOP_Q): Likewise.
5492 (simd32_op): Handle the above.
5493 * config/arm/unspecs.md: Define unspecs for the above.
5495 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5497 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5498 * config/arm/arm.md (APSRGE_REGNUM): Define.
5499 (arm_<simd32_op>): New define_insn.
5500 (arm_sel): Likewise.
5501 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5502 (CALL_USED_REGISTERS): Likewise.
5503 (REG_ALLOC_ORDER): Likewise.
5504 (FIRST_PSEUDO_REGISTER): Update value.
5505 (ARM_GE_BITS_READ): Define.
5506 * config/arm/arm.c (arm_conditional_register_usage): Clear
5507 APSRGE_REGNUM from operand_reg_set.
5508 (arm_ge_bits_access): Define.
5509 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5511 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5512 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5513 FAIL if ARM_GE_BITS_READ.
5514 (*arm_add<mode>3): New define_insn.
5515 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5516 (*arm_sub<mode>3): New define_insn.
5517 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5518 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5520 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5521 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5522 (simd32_op): Handle the above.
5523 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5524 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5525 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5526 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5528 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5530 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5531 (arm_smlabb): New define_expand.
5532 (*maddhisi4tb): Rename to...
5533 (maddhisi4tb): ... This.
5534 (*maddhisi4tt): Rename to...
5535 (maddhisi4tt): ... This.
5536 (arm_smlatb_setq): New define_insn.
5537 (arm_smlatb): New define_expand.
5538 (arm_smlatt_setq): New define_insn.
5539 (arm_smlatt): New define_expand.
5540 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5541 (arm_<smlaw_op>): New define_expand.
5542 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5543 __smlawb, __smlawt): Define.
5544 * config/arm_acle_builtins.def: Define builtins for the above.
5545 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5546 (slaw_op): New int_attribute.
5547 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5549 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5551 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5552 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5553 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5554 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5555 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5556 (ss_op): New code_attr.
5558 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5560 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5561 * config/arm/arm.md (APSRQ_REGNUM): Define.
5562 (add_setq): New define_subst.
5563 (add_clobber_q_name): New define_subst_attr.
5564 (add_clobber_q_pred): Likewise.
5565 (maddhisi4): Change to define_expand. Split into mult and add if
5567 (arm_maddhisi4): New define_insn.
5568 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5569 (*maddhisi4tt): Likewise.
5570 (arm_ssat): New define_expand.
5571 (arm_usat): Likewise.
5572 (arm_get_apsr): New define_insn.
5573 (arm_set_apsr): Likewise.
5574 (arm_saturation_occurred): New define_expand.
5575 (arm_set_saturation): Likewise.
5576 (*satsi_<SAT:code>): Rename to...
5577 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5578 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5579 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5580 (CALL_USED_REGISTERS): Mark apsrq.
5581 (FIRST_PSEUDO_REGISTER): Update value.
5582 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5583 (machine_function): Add q_bit_access.
5584 (ARM_Q_BIT_READ): Define.
5585 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5586 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5588 (arm_q_bit_access): Define.
5589 * config/arm/arm-builtins.c: Include stringpool.h.
5590 (arm_sat_binop_imm_qualifiers,
5591 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5592 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5593 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5594 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5595 SET_SAT_QUALIFIERS): Likewise.
5596 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5597 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5598 Handle 0 argument expander.
5599 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5600 (arm_check_builtin_call): Define.
5601 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5602 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5603 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5604 (arm_q_bit_access): Likewise.
5605 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5606 __saturation_occurred, __set_saturation_occurred): Define.
5607 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5608 saturation_occurred, set_saturation_occurred.
5609 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5610 (UNSPEC_APSR_READ): Likewise.
5611 (VUNSPEC_APSR_WRITE): Likewise.
5612 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5613 (*arm_ssadd<mode>3): New define_insn.
5614 (sssub<mode>3): Convert to define_expand.
5615 (*arm_sssub<mode>3): New define_insn.
5616 (ssmulsa3): Convert to define_expand.
5617 (*arm_ssmulsa3): New define_insn.
5618 (usmulusa3): Convert to define_expand.
5619 (*arm_usmulusa3): New define_insn.
5620 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5621 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5622 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5624 2019-11-07 Martin Liska <mliska@suse.cz>
5627 * cgraph.c (delete_function_version): Clear global
5628 variable version_info_node if equal to deleted
5631 2019-11-07 Martin Liska <mliska@suse.cz>
5633 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5634 of CONSTRUCTOR_NO_CLEARING.
5635 (operand_compare::hash_operand): Likewise.
5637 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5639 Support 64-bit double and 64-bit long double configurations.
5642 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5643 --with-long-double=.
5644 * config/avr/t-multilib: Remove.
5645 * config/avr/t-avr: Output of genmultilib.awk is now fully
5646 dynamically generated and no more part of the repo.
5647 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5648 Pass them down to...
5649 * config/avr/genmultilib.awk: ...here and handle them.
5650 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5651 (-mlong-double=, avr_long_double). New option and var.
5652 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5653 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5654 Set default as requested by --with-double=
5655 (TARGET_HANDLE_OPTION): Define to this...
5656 (avr_handle_option): ...new hook worker.
5657 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5658 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5659 (avr_double_lib): New proto for spec function.
5660 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5661 (DRIVER_SELF_SPECS): Call %:double-lib.
5662 * config/avr/avr.c (avr_option_override): Assert
5663 sizeof(long double) >= sizeof(double) for the target.
5664 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5665 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5666 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5667 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5668 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5669 New built-in define depending on --with-double=, --with-long-double=.
5670 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5671 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5672 * doc/install.texi (Cross-Compiler-Specific Options)
5673 <--with-double=, --with-long-double=>: Doc.
5675 2019-11-07 Richard Biener <rguenther@suse.de>
5677 * dbgcnt.def (gimple_unroll): New.
5678 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5679 gimple_unroll debug counter before applying transform.
5680 (try_peel_loop): Likewise.
5682 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5684 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5685 frame pointer in multiple registers.
5686 (ira_setup_eliminable_regset): Setup eliminable_regset,
5687 ira_no_alloc_regs and regs_ever_live for frame pointer in
5690 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5692 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5695 2019-11-06 Jan Hubicka <jh@suse.cz>
5697 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5699 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5700 Do not silently ignore summary corruptions.
5702 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5704 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5705 the epilogue if there are peeled iterations for it to handle.
5707 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5709 * config/arc/arc.c (arc_split_ior): Add asserts.
5710 (arc_split_mov_const): Likewise.
5711 (arc_check_ior_const): Do not match known short immediate values.
5712 * config/arc/arc.md (movsi): Don't split predicated instructions
5715 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5717 * config/arc/arc.opt (mea): Update help string.
5718 * doc/invoke.texi(ARC): Update mea option info.
5720 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5722 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5723 (zero_extendqisi2_ac): Likewise.
5724 (zero_extendhisi2_i): Likewise.
5725 (extendqihi2_i): Likewise.
5726 (extendqisi2_ac): Likewise.
5727 (extendhisi2_i): Likewise.
5729 2019-11-06 Richard Biener <rguenther@suse.de>
5731 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5732 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5733 Simplify single_defuse_cycle condition.
5735 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5737 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5738 epilogue loop, make sure that the VF is small enough or that
5739 the epilogue loop can be fully-masked.
5741 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5743 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5744 loop when we've finished, rather than returning directly from
5745 the loop. Use a local variable to track whether we're still
5746 searching for the preferred simdlen. Make vect_epilogues
5747 record whether the next iteration should try to treat the
5748 loop as an epilogue.
5750 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5752 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5753 __arc_hard_float__, __ARC_HARD_FLOAT__,
5754 __arc_soft_float__, __ARC_SOFT_FLOAT__
5756 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5758 PR tree-optimization/92317
5759 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5760 update phi's with constant phi arguments.
5762 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5763 Alexandre Oliva <oliva@adacore.com>
5765 * common.opt (-fcallgraph-info[=]): New option.
5766 * doc/invoke.texi (Developer options): Document it.
5767 * opts.c (common_handle_option): Handle it.
5768 * builtins.c (expand_builtin_alloca): Record allocation if
5769 -fcallgraph-info=da.
5770 * calls.c (expand_call): If -fcallgraph-info, record the call.
5771 (emit_library_call_value_1): Likewise.
5772 * flag-types.h (enum callgraph_info_type): New type.
5773 * explow.c: Include stringpool.h.
5774 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5775 * function.c (allocate_stack_usage_info): New.
5776 (allocate_struct_function): Call it for -fcallgraph-info.
5777 (prepare_function_start): Call it otherwise.
5778 (record_final_call, record_dynamic_alloc): New.
5779 * function.h (struct callinfo_callee): New.
5780 (CALLEE_FROM_CGRAPH_P): New.
5781 (struct callinfo_dalloc): New.
5782 (struct stack_usage): Add callees and dallocs.
5783 (record_final_call, record_dynamic_alloc): Declare.
5784 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5785 object if -fcallgraph-info=da.
5786 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5787 * print-tree.h (print_decl_identifier): Declare.
5788 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5789 * print-tree.c: Include print-tree.h.
5790 (print_decl_identifier): New function.
5791 * toplev.c: Include print-tree.h.
5792 (callgraph_info_file): New global variable.
5793 (callgraph_info_external_printed): Likewise.
5794 (output_stack_usage): Rename to...
5795 (output_stack_usage_1): ... this. Make it static, add cf
5796 parameter. If -fcallgraph-info=su, print stack usage to cf.
5797 If -fstack-usage, use print_decl_identifier for
5799 (INDIRECT_CALL_NAME): New.
5800 (dump_final_node_vcg_start): New.
5801 (dump_final_callee_vcg, dump_final_node_vcg): New.
5802 (output_stack_usage): New.
5803 (lang_dependent_init): Open and start file if
5804 -fcallgraph-info. Allocated callgraph_info_external_printed.
5805 (finalize): If callgraph_info_file is not null, finish it,
5806 close it, and release callgraph_info_external_printed.
5808 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5809 Frederik Harwath <frederik@codesourcery.com>
5810 Thomas Schwinge <thomas@codesourcery.com>
5812 * omp-low.c (struct omp_context): New fields
5813 local_reduction_clauses, outer_reduction_clauses.
5814 (new_omp_context): Initialize these.
5815 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5816 (scan_omp_for): Check reduction clauses for incorrect nesting.
5818 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5821 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5822 operands with non-memory constraints.
5824 2019-11-05 Martin Sebor <msebor@redhat.com>
5826 PR tree-optimization/92373
5827 * tree.c (component_ref_size): Only consider initializers of objects
5828 of matching struct types.
5829 Return null for instances of interior zero-length arrays.
5831 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5833 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5835 2019-11-05 Jason Merrill <jason@redhat.com>
5837 PR tree-optimization/91825
5838 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5840 2019-11-05 Jim Wilson <jimw@sifive.com>
5843 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5844 optimize_insn_for_speed_p is true.
5846 2019-11-05 Martin Sebor <msebor@redhat.com>
5850 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5852 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5853 name and location for a temporary variable.
5855 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5857 * tree-vrp.c (value_range::value_range): Fix whitespace.
5858 (defined_ranges_p): Same.
5859 (range_fold_binary_symbolics_p): Same.
5860 (value_range::intersect_helper): Same.
5861 (value_range::union_helper): Same.
5862 * tree-vrp.h (range_fold_binary_expr): Same.
5864 2019-11-04 Martin Sebor <msebor@redhat.com>
5868 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5869 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5870 of message printed in a warning for empty arrays.
5871 (vrp_prop::check_mem_ref): Also handle function parameters and
5874 2019-11-05 Richard Biener <rguenther@suse.de>
5876 PR tree-optimization/92371
5877 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5878 on the original stmt of live stmts in the chain.
5879 (vectorizable_live_operation): Look at the original stmt when
5880 checking STMT_VINFO_REDUC_DEF.
5882 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5884 * gimple-fold.c, gimple-loop-versioning.cc,
5885 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5886 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5887 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5888 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5889 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5890 value_range_equiv, and value_range_base to value_range.
5892 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5894 * expr.c (build_personality_function): Fix generated type to
5895 match actual personality functions.
5897 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5899 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5900 enough bytes for the NULL character.
5902 2019-11-05 Richard Biener <rguenther@suse.de>
5904 PR tree-optimization/92280
5905 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5906 had a single use do not create a new CTOR.
5907 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5908 BIT_FIELD_REF of a CTOR via GENERIC.
5910 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5912 * config/s390/s390.c (s390_vector_alignment): Check if the value
5913 fits into uhwi before using it.
5915 2019-11-05 Martin Liska <mliska@suse.cz>
5917 * symbol-summary.h: Use ggc_delete.
5919 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5921 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5922 Change vec_perm field to 10.
5924 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5926 * doc/install.texi: Further fix syntax for html generation.
5928 2019-11-05 Martin Liska <mliska@suse.cz>
5930 * symbol-summary.h: Rename allocator to m_allocator and
5933 2019-11-05 Richard Biener <rguenther@suse.de>
5935 PR tree-optimization/92324
5936 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5937 all signed or unsigned operations.
5939 2019-11-05 Jan Hubicka <jh@suse.cz>
5941 * hsa-brig.c: Include alloc-pool.h
5942 * hsa-dump.c: Likewise.
5943 * hsa-gen.c: Likewise.
5944 * hse-regalloc.c: Likewise.
5945 * ipa-hsa.c: Likewise.
5946 * ipa-predicate.c: Likewise.
5947 * ipa-reference.c: Likewise.
5948 * ipa-sra.c: Likewise.
5949 * omp-expand.c: Likewise.
5950 * omp-general.c: Likewise.
5951 * omp-low.c: Likewise.
5952 * sumbol-summary.h (function_summary_base): Add allocator.
5953 (function_summary<T *>::function_summary): Update construction.
5954 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5955 (call_summary_base): Add allcator.
5956 (call_summary<T *>::call_summary): Update construction.
5957 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5959 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5961 PR tree-optimization/91945
5962 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5963 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5966 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5968 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5969 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5970 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5971 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5972 (vrp_set_zero_nonzero_bits): Move to...
5973 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5974 (vr_values::simplify_bit_ops_using_ranges): Rename
5975 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5977 2019-11-05 Martin Liska <mliska@suse.cz>
5980 * fold-const.c (operand_compare::hash_operand): Remove
5981 FIELD_DECL handling.
5983 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5985 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5986 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5989 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5991 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5992 properly handle symbolics.
5993 (range_compatible_p): Remove.
5995 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5997 * common.opt (-fabi-version): Document =14.
5998 * doc/invoke.texi (C++ Dialect Options): Likewise.
6000 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6002 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6004 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6006 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6007 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6008 gcn_omp_device_kind_arch_isa.
6009 * config/gcn/t-omp-device: New file.
6010 * configure.ac: Support gcn for omp_device_property.
6011 * configure: Regenerate.
6013 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6015 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6016 (vrp_val_max): Same.
6017 (vrp_val_is_min): Same.
6018 (vrp_val_is_max): Same.
6019 (value_range_base::nonzero_p): Remove last argument to
6021 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6022 (vrp_val_max): Same.
6023 (vrp_val_is_min): Same.
6024 (vrp_val_is_max): Same.
6025 (value_range_base::set_varying): Remove last argument to vrp_val*.
6026 (value_range_base::dump): Same.
6027 (value_range_base::set): Same.
6028 (value_range_base::normalize_symbolics): Same.
6029 (value_range_base::num_pairs): Same.
6030 (value_range_base::lower_bound): Same.
6031 (value_range_base::upper_bound): Same.
6032 (ranges_from_anti_range): Remove handle_pointers argument.
6033 (value_range_base::singleton_p): Remove last argument to
6034 ranges_from_anti_range.
6036 2019-11-04 Jan Hubicka <jh@suse.cz>
6038 * ipa-reference.c (init_function_info): Initialize
6039 info->global.statics_read.
6041 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6043 * tree-vrp.c (value_range_base::invert): Use constructors to build
6046 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6048 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6049 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6051 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6053 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6056 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6058 * tree-vrp.c (dump_assert_info): New.
6059 (dump_asserts_info): New.
6061 2019-11-04 Jan Hubicka <jh@suse.cz>
6063 * ipa-inline-transform.c: Include ipa-utils.h
6064 (inline_call): Set thunk_expansion flag.
6065 * ipa-utils.h (thunk_expansion): Declare.
6066 * ipa-devirt.c (thunk_expansion): New global var.
6067 (devirt_node_removal_hook): Do not invalidate cache while
6068 doing thunk expansion.
6070 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6072 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6074 2019-11-04 Martin Sebor <msebor@redhat.com>
6076 PR tree-optimization/92349
6077 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6078 memebers have constant sizes.
6080 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6082 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6084 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6085 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6088 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6090 * expr.c (store_constructor): Modify to handle single element vectors.
6091 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6093 (vect_slp_check_for_constructors): New function.
6094 (vect_slp_analyze_bb_1): Call new function to check for vector
6096 (vectorize_slp_instance_root_stmt): New function.
6097 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6099 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6101 2019-11-04 Richard Biener <rguenther@suse.de>
6103 PR tree-optimization/92345
6104 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6105 we produced a reduction chain.
6106 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6107 LOOP_VINFO_REDUCTIONS.
6109 2019-11-04 Jan Hubicka <jh@suse.cz>
6111 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6112 duplicate summaries.
6113 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6115 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6116 access call summaries.
6117 (dump_ipa_call_summary): Be ready for missing edge summaries.
6118 (analyze_function_body): Use get instead of get_create to access
6120 (estimate_calls_size_and_time): Do not access summaries of
6121 inlined edges; sanity check they are missing.
6122 (ipa_call_context::estimate_size_and_time): Use get instead
6123 of get_create to access node summary.
6124 (inline_update_callee_summaries): Do not update depth of
6126 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6128 (ipa_merge_fn_summary_after_inlining): Use get instead
6130 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6131 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6133 (initialize_growth_caches): Update.
6134 (do_estimate_edge_time): Remove redundant copy of context.
6135 (ipa_remove_from_growth_caches): New function.
6136 * ipa-inline.c (flatten_function): Update overall summary
6137 only when optimizing.
6138 (inline_to_all_callers): Update overall summary of function
6140 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6141 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6144 2019-11-04 Richard Biener <rguenther@suse.de>
6146 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6147 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6149 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6151 * ggc-common.c: Include system.h before malloc.h.
6153 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6155 * configure.ac: Pass --enable-obsolete=* and
6156 --enable-option-checking=* down to build configure, and fail
6157 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6158 * configure: Rebuild.
6159 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6160 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6162 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6164 * config.in: Regenerate.
6165 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6166 -mtiny-printf is used without GCC being configured with
6167 --enable-newlib-nano-formatted-io.
6168 * config/msp430/msp430.h (LINK_SPEC): Pass
6169 "--wrap puts --wrap printf" when -mtiny-printf is used.
6170 * config/msp430/msp430.opt: Document -mtiny-printf.
6171 * configure: Regenerate.
6172 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6173 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6174 --enable-newlib-nano-formatted-io is passed.
6175 * doc/invoke.texi: Document -mtiny-printf.
6177 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6179 * configure: Regenerate.
6181 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6183 * config/msp430/driver-msp430.c
6184 (msp430_get_linker_devices_include_path): New spec function.
6185 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6186 (extract_devices_dir_from_exec_prefix): New function.
6187 (extract_devices_dir_from_collect_gcc): New function.
6188 (msp430_check_env_var_for_devices): New function.
6189 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6190 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6191 devices.csv was not found using other methods.
6192 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6194 (msp430_dirname): Likewise.
6195 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6196 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6197 msp430_get_linker_devices_include_path.
6198 (TARGET_EXTRA_PRE_INCLUDES): Define.
6199 * doc/invoke.texi: Document new ways of searching for support files.
6201 2019-11-04 Richard Biener <rguenther@suse.de>
6203 PR tree-optimization/92301
6204 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6205 as required by epilogue generation
6207 2019-11-04 Martin Liska <mliska@suse.cz>
6210 * fold-const.c (operand_compare::hash_operand): Fix field
6211 hashing of CONSTRUCTOR.
6213 2019-11-04 Martin Liska <mliska@suse.cz>
6215 * ggc.h (ggc_delete): New function.
6216 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6217 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6218 (ipa_free_all_node_params): Likewise.
6219 * ipa-sra.c (ipa_sra_analysis): Likewise.
6221 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6223 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6224 set_switch_stmt_execution_predicate, compute_bb_predicates,
6225 will_be_nonconstant_expr_predicate,
6226 phi_result_unknown_predicate,
6227 analyze_function_body): Pass arround params summary.
6228 (ipa_call_context::duplicate_from): New comment;
6229 only duplicate useful values.
6230 (ipa_call_context::equal_to): Only compare useful values.
6231 (remap_edge_summaries): Pass params_summary.
6232 (remap_hint_predicate): Likewise.
6233 (ipa_merge_fn_summary_after_inlining): Likewise.
6234 (inline_read_section): Initialize params summary used flags.
6235 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6236 around param_summary.
6237 (add_condition): Initialized used params summary flags.
6238 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6239 (inline_param_summary::useless_p): New predicate.
6240 (remap_after_inlining, add_condition): Update prototype
6241 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6243 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6245 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6246 (ipa_analyze_virtual_call_uses): Likewise.
6247 (update_indirect_edges_after_inlining): Update param summaries.
6248 (ipa_print_node_params): Print used flags.
6249 (ipa_read_indirect_edge_info): Update param summareis.
6250 * ipa-prop.h (ipa_param_descriptor): Add
6251 used_by_ipa_predicates, used_by_indirect_call
6252 and used_by_polymorphic_call.
6253 (ipa_set_param_used_by_ipa_predicates,
6254 ipa_set_param_used_by_indirect_call,
6255 ipa_set_param_used_by_polymorphic_call,
6256 ipa_is_param_used_by_ipa_predicates,
6257 ipa_is_param_used_by_indirect_call,
6258 ipa_is_param_used_by_polymorphic_call): New inline functions.
6260 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6262 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6264 (ipa_call_context::release): Add ALL parameter.
6265 (ipa_call_context::equal_to): New member function.
6266 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6267 duplicate_form, release, equal_to and exists_p member functoins.
6268 * ipa-inline-analysis.c (node_context_cache_entry): New
6270 (node_context_summary): Likewise.
6271 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6272 node_context_clear): New static vars.
6273 (initialize_growth_caches): New function.
6274 (free_growth_caches): Also delete node_context_cache; output stats.
6275 (do_estimate_edge_time): Cache contexts.
6276 (reset_node_cache): New function.
6277 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6278 (inline_small_functions): Initialize growth caches.
6279 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6281 * ipa-predicate.h (inline_param_summary::equal_to): New.
6282 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6283 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6284 (ipa_agg_jump_function): Implement equal_to member function.
6286 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6288 * ipa-fnsummary.c (inline_read_section): Set vector size
6291 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6293 * ipa-fnsummary.c (ipa_call_context): New constructor.
6294 (estimate_node_size_and_time): Turn to ...
6295 (ipa_call_context::estimate_size_and_time): ... this one.
6296 (ipa_call_context::release): New.
6297 * ipa-fnsummary.h (ipa_call_context): New class.
6298 (estimate_node_size_and_time): Remove.
6299 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6300 do_estimate_edge_hints): Update.
6302 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6304 * config.in: Regenerate.
6305 * configure: Regenerate.
6306 * configure.ac: Check for mallinfo.
6307 * ggc-common.c: Include malloc.h if available;
6309 (report_heap_memory_use): New functoin.
6310 * ggc-page.c (ggc_grow): Do not print "start".
6311 * ggc.h (report_heap_memory_use): Declare.
6312 * pases.c (execute_one_pass): Report memory after IPA passes.
6313 (ipa_read_summaries_1): Likewise.
6314 (ipa_read_optimization_summaries_1): Likewise.
6316 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6318 * gimplify.h (omp_construct_selector_matches): Change return
6319 type to int, add a new SCORES argument.
6320 * gimplify.c (omp_construct_selector_matches): Likewise. If
6321 SCORES is non-NULL, compute scores of each construct.
6322 * omp-general.h (omp_get_context_selector): Declare.
6323 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6324 Adjust omp_construct_selector_matches callers.
6325 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6326 (omp_context_compute_score): New function.
6327 (omp_resolve_declare_variant): Compute scores and decide based on
6331 * configure.ac: Don't look for omp-device-properties files from
6332 installed offloading compilers. Instead add tmake_file snippets
6333 for configured offloading targets and use files they generate.
6334 * Makefile.in (install): Don't depend on
6335 install-omp-device-properties.
6336 (install-omp-device-properties): Remove goal.
6337 * config/i386/t-omp-device: New file.
6338 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6339 * config/nvptx/t-omp-device: New file.
6340 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6341 * configure: Regenerated.
6343 * omp-general.h (omp_context_selector_set_compare): Declare.
6344 * omp-general.c (omp_construct_simd_compare,
6345 omp_context_selector_props_compare, omp_context_selector_set_compare,
6346 omp_context_selector_compare): New functions.
6347 (omp_resolve_declare_variant): Prune variants that are strict subset
6350 2019-11-01 Martin Sebor <msebor@redhat.com>
6356 * doc/invoke.texi (-Wzero-length-bounds): Document.
6357 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6358 instead of a hand-rolled loop to avoid PR 92323.
6359 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6361 (vrp_prop::check_mem_ref): Handle declared struct objects.
6362 * tree.c (last_field): New function.
6363 (array_at_struct_end_p): Handle MEM_REF.
6364 (get_initializer_for): New helper.
6365 (component_ref_size): Add argument. Rename locals. Call
6366 get_initializer_for instead of fold_ctor_reference. Correct handling
6367 of flexible array members.
6368 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6370 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6372 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6373 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6374 UNSPEC_VSX_CVSPUXDS): Remove.
6375 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6376 (vsx_xvcvspdp_be): ... this. New. And...
6377 (vsx_xvcvspdp_le): ... this. New.
6378 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6379 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6380 (vsx_xvcv<su>xwdp_le): ... this. New.
6381 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6382 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6383 (vsx_xvcvsp<su>xds_le): ... this. New.
6385 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6387 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6388 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6389 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6390 UNSPEC_VSX_XVCVSPSXWS): Remove.
6391 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6392 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6394 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6396 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6397 (UNSPEC_VSX_XVCDPSP): Remove.
6398 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6399 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6401 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6403 * hooks.c (hook_tree_tree_bool_null): New.
6404 * hooks.h (hook_tree_tree_bool_null): Declare.
6405 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6406 (LANG_HOOKS_DECLS): Add it.
6407 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6408 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6409 (lower_omp_target): Handle Fortran array with descriptor in
6410 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6412 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6414 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6415 Assert that the type we store in abi_vector_types is its own
6417 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6419 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6421 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6422 from a CONST_INT address when TARGET_THUMB2.
6424 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6426 * config/arm/arm.md (add_not_cin): New insn.
6427 (add_not_shift_cin): Likewise.
6429 2019-10-31 Martin Liska <mliska@suse.cz>
6431 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6432 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6433 and compare_memory_operand.
6435 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6437 * configure.ac: Compute and substitute omp_device_properties and
6438 omp_device_property_deps.
6439 * Makefile.in (generated_files): Add omp-device-properties.h.
6440 (omp-general.o): Depend on omp-device-properties.h.
6441 (omp_device_properties): New make variable.
6442 (omp-device-properties.h, s-omp-device-properties-h,
6443 install-omp-device-properties): New goals.
6444 (install): Depend on install-omp-device-properties for accelerators.
6445 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6446 * target.h (enum omp_device_kind_arch_isa): New enum.
6447 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6449 * omp-general.c: Include omp-device-properties.h.
6450 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6451 colon instead of comma.
6452 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6454 (omp_context_selector_matches): Implement device set arch/isa
6455 selectors, improve device set kind selector handling.
6456 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6457 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6458 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6459 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6460 ix86_omp_device_kind_arch_isa.
6461 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6462 definition from ix86_target_string to file scope.
6463 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6465 (ix86_omp_device_kind_arch_isa): New function.
6466 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6467 isa_opts definitions to file scope.
6468 * config/i386/t-intelmic (omp-device-properties): New goal.
6469 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6470 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6471 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6472 nvptx_omp_device_kind_arch_isa.
6473 * configure: Regenerate.
6474 * doc/tm.texi: Regenerate.
6477 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6478 DECL_BUILT_IN in comment. Remove redundant ()s around return
6480 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6481 before calling fndecl_built_in_p.
6482 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6483 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6484 fndecl_built_in_p on it.
6486 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6488 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6490 2019-10-31 Martin Liska <mliska@suse.cz>
6492 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6493 of cgraph_local_info and use local_info_node instead.
6494 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6495 (bfin_function_ok_for_sibcall): Likewise.
6496 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6497 (must_reload_pic_reg_p): Likewise.
6499 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6502 * tree.h (type_initializer_zero_p): Remove.
6503 * tree.c (type_initializer_zero_p): Remove.
6505 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6507 * doc/invoke.texi (-Wshadow, -Wshadow=global
6508 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6510 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6512 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6513 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6514 and 'target exit data'.
6516 2019-10-30 Martin Jambor <mjambor@suse.cz>
6519 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6520 availability comparison.
6522 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6524 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6525 calls to __mspabi_mpy* functions.
6526 * config/msp430/msp430.md (mulhisi3): New define_expand.
6527 (umulhisi3): New define_expand.
6528 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6529 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6531 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6533 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6534 (msp430_check_plus_not_high_mem): New.
6535 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6536 might be in low memory.
6537 Indicate that a 16-bit absolute address is in lower memory.
6539 2019-10-30 Martin Jambor <mjambor@suse.cz>
6541 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6542 ultimate_alias_target.
6544 2019-10-30 Richard Biener <rguenther@suse.de>
6546 PR tree-optimization/92275
6547 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6548 Copy all loop-closed PHIs.
6550 2019-10-30 Martin Liska <mliska@suse.cz>
6552 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6553 const_tree as function argument.
6554 (func_checker::compare_decl): Likewise.
6555 (func_checker::operand_equal_p): Likewise.
6556 (func_checker::compare_variable_decl): Likewise.
6557 (func_checker::parse_labels): Likewise.
6558 * ipa-icf-gimple.h: Likewise.
6560 2019-10-30 Martin Liska <mliska@suse.cz>
6562 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6563 Do not compare alias sets. It's handled by operand_equal_p.
6565 2019-10-30 Martin Liska <mliska@suse.cz>
6567 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6568 initialize m_compare_polymorphic.
6569 (func_checker::compare_decl): Do not compare polymorphic types.
6570 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6571 * ipa-icf.c (sem_function::equals_private): Do not call
6572 compare_polymorphic_p.
6574 2019-10-30 Martin Liska <mliska@suse.cz>
6576 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6578 (func_checker::compare_memory_operand): Remove.
6579 (func_checker::compare_cst_or_decl): Remove.
6580 (func_checker::operand_equal_valueize): Do not handle
6582 (func_checker::compare_gimple_call): Call compare_operand.
6583 (func_checker::compare_gimple_assign): Likewise.
6584 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6585 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6586 * ipa-icf.h (icf_handled_component_p): Remove.
6588 2019-10-30 Martin Liska <mliska@suse.cz>
6590 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6591 (func_checker::compare_cst_or_decl): Remove handling
6593 (func_checker::compare_operand): Transform to ...
6594 (func_checker::operand_equal_p): ... this.
6595 * ipa-icf-gimple.h (class func_checker): Add
6596 operand_equal_p and hash_operand.
6597 * ipa-icf.c (sem_function::equals_private): Fix
6598 pushing and popping of cfun.
6600 2019-10-30 Martin Liska <mliska@suse.cz>
6602 * fold-const.c (operand_equal_p): Move to ...
6603 (operand_compare::operand_equal_p): ... here.
6604 (operand_compare::verify_hash_value): New.
6605 (add_expr): Move to ...
6606 (operand_compare::hash_operand): ... here.
6607 * fold-const.h (operand_equal_p): Move to the class.
6608 (class operand_compare): New.
6609 * tree.c (add_expr): Remove.
6611 2019-10-30 Martin Liska <mliska@suse.cz>
6613 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6614 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6616 2019-10-30 Martin Liska <mliska@suse.cz>
6620 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6621 from a first_clone in order to get proper LTO section
6623 (cgraph_node::get_untransformed_body):
6624 Use lto_get_section_data where symtab_node::order
6626 * cgraphclones.c (cgraph_node::find_replacement):
6627 Update also symbol order.
6628 * ipa-fnsummary.c (ipa_fn_summary_read):
6629 Use new function lto_get_summary_section_data.
6630 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6631 * ipa-icf.c (sem_item_optimizer::read_summary):
6633 * ipa-prop.c (ipa_prop_read_jump_functions):
6635 (ipcp_read_transformation_summaries): Likewise.
6636 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6637 * lto-cgraph.c (input_node): Add also order_base.
6638 (input_varpool_node): Likewise.
6639 (input_cgraph_1): Assign the order_base.
6640 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6641 * lto-opts.c (lto_write_options): Pass new argument.
6642 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6643 (lto_get_summary_section_data): New.
6644 (lto_get_raw_section_data): Add order argument.
6645 (lto_create_simple_input_block): Likewise.
6646 * lto-section-out.c (lto_destroy_simple_output_block):
6648 * lto-streamer-in.c (lto_input_toplevel_asms):
6649 Use lto_get_summary_section_data.
6650 (lto_input_mode_table): Likewise.
6651 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6652 (lto_output_toplevel_asms): Pass new argument.
6653 (copy_function_or_variable): Likewise.
6654 (produce_lto_section):Likewise.
6655 (produce_symtab): Likewise.
6656 (lto_write_mode_table): Likewise.
6657 (produce_asm_for_decls): Likewise.
6658 * lto-streamer.c (lto_get_section_name): Concat symbol name
6660 * lto-streamer.h (lto_get_section_data): Add order argument.
6661 (lto_get_summary_section_data): New.
6662 (lto_get_raw_section_data): Add order argument.
6663 (lto_get_section_name): Likewise.
6664 * varpool.c (varpool_node::get_constructor): Pass order argument.
6666 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6668 PR tree-optimization/92262
6669 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6670 ubase or cbase here.
6671 (remove_unused_ivs): Unshare comp before using it.
6673 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6675 * ipa-prop.c (update_jump_functions_after_inlining):
6676 Watch for missing summaries.
6678 2019-10-30 Richard Biener <rguenther@suse.de>
6680 PR tree-optimization/65930
6681 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6682 chains also allow a leading and trailing conversion.
6683 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6684 intermediate reduction chains.
6685 (vect_analyze_slp_instance): Likewise. Build a SLP
6686 node for a trailing conversion manually.
6688 2019-10-30 Martin Liska <mliska@suse.cz>
6690 * cgraph.c (cgraph_node::local_info): Transform to ...
6691 (cgraph_node::local_info_node): ... this.
6692 (cgraph_node::dump): Remove cgraph_local_info and
6693 put its fields directly into cgraph_node.
6694 (cgraph_node::get_availability): Likewise.
6695 (cgraph_node::make_local): Likewise.
6696 (cgraph_node::verify_node): Likewise.
6697 * cgraph.h (struct GTY): Likewise.
6698 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6699 (duplicate_thunk_for_node): Likewise.
6700 (cgraph_node::create_clone): Likewise.
6701 (cgraph_node::create_virtual_clone): Likewise.
6702 (cgraph_node::create_version_clone): Likewise.
6703 * cgraphunit.c (cgraph_node::reset): Likewise.
6704 (cgraph_node::finalize_function): Likewise.
6705 (cgraph_node::add_new_function): Likewise.
6706 (analyze_functions): Likewise.
6707 * combine.c (setup_incoming_promotions): Likewise.
6708 * config/i386/i386.c (ix86_function_regparm): Likewise.
6709 (ix86_function_sseregparm): Likewise.
6710 (init_cumulative_args): Likewise.
6711 * ipa-cp.c (determine_versionability): Likewise.
6712 (count_callers): Likewise.
6713 (set_single_call_flag): Likewise.
6714 (initialize_node_lattices): Likewise.
6715 (estimate_local_effects): Likewise.
6716 (create_specialized_node): Likewise.
6717 (identify_dead_nodes): Likewise.
6718 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6719 (ipa_fn_summary_generate): Likewise.
6720 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6721 (process_hsa_functions): Likewise.
6722 * ipa-icf.c (set_local): Likewise.
6723 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6724 * ipa-inline.c (speculation_useful_p): Likewise.
6725 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6726 (ipa_profile): Likewise.
6727 * ipa-split.c (split_function): Likewise.
6728 (execute_split_functions): Likewise.
6729 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6730 (ipa_sra_ipa_function_checks): Likewise.
6731 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6732 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6733 * lto-cgraph.c (lto_output_node): Likewise.
6734 (input_overwrite_node): Likewise.
6735 * multiple_target.c (expand_target_clones): Likewise.
6736 * omp-simd-clone.c (simd_clone_create): Likewise.
6737 * trans-mem.c (expand_call_tm): Likewise.
6738 (ipa_tm_mayenterirr_function): Likewise.
6739 (ipa_tm_diagnose_tm_safe): Likewise.
6740 (ipa_tm_diagnose_transaction): Likewise.
6741 (ipa_tm_create_version): Likewise.
6742 (ipa_tm_transform_calls_redirect): Likewise.
6743 (ipa_tm_execute): Likewise.
6744 * tree-inline.c (expand_call_inline): Likewise.
6746 2019-10-29 Martin Liska <mliska@suse.cz>
6748 * symbol-summary.h (function_summary): Pass memory location
6749 to underlaying hash_map (or vec).
6750 (V>::fast_function_summary): Likewise.
6752 2019-10-29 Martin Liska <mliska@suse.cz>
6754 * ggc.h (ggc_alloc_no_dtor): New function.
6755 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6756 destructor and ggc_free.
6757 (ipa_free_size_summary): Call delete instead
6759 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6760 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6761 (ipa_free_all_edge_args): Call destructor and ggc_free.
6762 (ipa_free_all_node_params): Likewise.
6763 (ipcp_free_transformation_sum): Likewise.
6764 * ipa-prop.h (ipa_check_create_node_params):
6765 Call new ggc_alloc_no_dtor.
6766 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6767 (ipa_sra_analysis): Call destructor and ggc_free.
6768 Replace release with delete operator.
6769 * symbol-summary.h (release): Remove ..
6770 (V>::~fast_function_summary): and move logic here.
6771 Likewise for other classes.
6773 2019-10-29 Richard Biener <rguenther@suse.de>
6775 PR tree-optimization/92260
6776 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6779 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6781 PR tree-optimization/88915
6782 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6783 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6784 and make the valueize function pointer also take a void pointer.
6785 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6786 around vn_valueize, to call it without a context.
6787 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6788 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6789 (~_loop_vec_info): Release epilogue_vinfos.
6790 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6791 number of iterations of epilogue.
6792 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6793 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6794 versioning threshold needed for main loop.
6795 (vect_analyze_loop): Likewise.
6796 (find_in_mapping): New helper function.
6797 (update_epilogue_loop_vinfo): New function.
6798 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6799 on main loop and call update_epilogue_loop_vinfo to update it.
6800 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6801 stmts on loop preheader edge.
6802 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6803 we decided to vectorize epilogues. Update epilogues NITERS and
6804 construct ADVANCE to update epilogues data references where needed.
6805 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6806 (vect_do_peeling, vect_update_inits_of_drs,
6807 determine_peel_for_niter, vect_analyze_loop): Add or update
6809 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6810 created loop_vec_info's for epilogues when available. Otherwise analyse
6811 epilogue separately.
6813 2019-10-29 Richard Biener <rguenther@suse.de>
6815 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6818 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6820 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6821 index for the COND_EXPR from stmt_info rather than reduc_info.
6823 2019-10-29 Richard Biener <rguenther@suse.de>
6825 PR tree-optimization/65930
6826 * tree-vect-loop.c (check_reduction_path): Relax single-use
6827 check allowing out-of-loop uses.
6828 (vect_is_simple_reduction): SLP reduction chains cannot have
6829 intermediate stmts used outside of the loop.
6830 (vect_create_epilog_for_reduction): The adjustment might need
6832 (vectorizable_reduction): Annotate live stmts of the reduction
6833 chain with STMT_VINFO_REDUC_DEF.
6834 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6836 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6838 * calls.c (pass_by_reference): Leave the target to decide whether
6839 POLY_INT_CST-sized arguments should be passed by value or reference,
6840 rather than forcing them to be passed by reference.
6841 (must_pass_in_stack_var_size): Likewise.
6842 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6843 V31_REGNUM to P15_REGNUM.
6844 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6845 Take an extra "silent_p" parameter, defaulting to false.
6846 (aarch64_sve::svbool_type_p): Declare.
6847 (aarch64_sve::nvectors_if_data_type): Likewise.
6848 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6849 (aarch64_frame::reg_offset): Turn into poly_int64s.
6850 (aarch64_frame::save_regs_size): Likewise.
6851 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6852 (aarch64_frame::sve_callee_adjust): Likewise.
6853 (aarch64_frame::spare_reg_reg): Likewise.
6854 (ARM_PCS_SVE): New arm_pcs value.
6855 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6856 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6857 (CUMULATIVE_ARGS::silent_p): Likewise.
6858 (BITS_PER_SVE_PRED): New macro.
6859 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6860 function. Reject aarch64_vector_pcs attributes on SVE functions.
6861 (aarch64_attribute_table): Use the above handler.
6862 (aarch64_sve_abi): New function.
6863 (aarch64_sve_argument_p): Likewise.
6864 (aarch64_returns_value_in_sve_regs_p): Likewise.
6865 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6866 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6867 descriptor for them.
6868 (aarch64_simd_decl_p): Delete.
6869 (aarch64_emit_cfi_for_reg_p): New function.
6870 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6871 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6872 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6873 as partly clobbered for the SVE PCS.
6874 (aarch64_function_ok_for_sibcall): Check whether the two functions
6875 use the same ABI, rather than checking specifically for whether
6876 they're aarch64_vector_pcs functions.
6877 (aarch64_pass_by_reference): Raise an error for attempts to pass
6878 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6879 if there are not enough free registers left, or if the argument is
6881 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6882 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6884 (aarch64_layout_arg): Take a function_arg_info rather than
6885 individual properties. Handle SVE predicates, vectors and tuples.
6886 Raise an error if they are passed to unprototyped functions.
6887 (aarch64_function_arg): If the silent_p flag is set, suppress the
6888 usual error about using float registers without TARGET_FLOAT.
6889 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6890 it in the cumulative_args structure. Initialize aapcs_nprn and
6891 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6892 error about using float registers without TARGET_FLOAT.
6893 If the silent_p flag is not set, also raise an error about
6894 using SVE functions when SVE is disabled.
6895 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6896 and call it for SVE functions too. Update aapcs_nprn similarly
6897 to the other register counts.
6898 (aarch64_layout_frame): If a big-endian function needs to save
6899 and restore Z8-Z15, search for a spare predicate that it can use.
6900 Store SVE predicates at the bottom of the register save area,
6901 followed by SVE vectors, then followed by the normal slots.
6902 Keep pointing the hard frame pointer at the base of the normal slots,
6903 above the SVE vectors. Update the various frame creation and
6904 tear-down strategies for the new layout, initializing the new
6905 sve_callee_adjust field. Add an additional layout for frames
6906 whose saved registers are all SVE registers.
6907 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6908 (aarch64_return_address_signing_enabled): Likewise.
6909 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6910 aarch64_reg_save_mode.
6911 (aarch64_adjust_sve_callee_save_base): New function.
6912 (aarch64_add_cfa_expression): Move earlier in file. Take the
6913 saved register as an rtx rather than a register number and use
6914 its mode for the MEM slot.
6915 (aarch64_save_callee_saves): Remove the mode argument and instead
6916 use aarch64_reg_save_mode to get the mode of each save slot.
6917 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6918 offsets. Allow GP offsets to be saved at a VL-based offset from
6919 the stack, handling this case using the frame pointer if available
6920 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6921 big-endian SVE functions; use normal moves for other SVE saves.
6922 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6923 returns true. Add explicit CFA notes when not storing via the
6924 stack pointer. Do not try to pair SVE saves.
6925 (aarch64_restore_callee_saves): Cope with poly_int64 register
6926 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6927 use normal moves for other SVE restores. Only add CFA restore notes
6928 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6930 (aarch64_get_separate_components): Always keep the first SVE save
6931 in the prologue if we need to use it as a stack probe. Don't allow
6932 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6933 Likewise the spare predicate register that they need. Update the
6934 offset calculation to account for the SVE save area. Use the
6935 appropriate range check for SVE LDR and STR instructions.
6936 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6937 (aarch64_process_components): Likewise. Update the offset
6938 calculation to account for the SVE save area. Only mark the
6939 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6940 Do not try to pair SVE saves.
6941 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6942 reg_offsets. When handling the final allocation, expect the
6943 first SVE register save to be part of the initial allocation
6944 and for it to act as a probe at SP. Account for the SVE callee
6945 save area in the dump information.
6946 (aarch64_expand_prologue): Update the frame diagram. Fold the
6947 SVE callee allocation into the initial allocation if stack clash
6948 protection is enabled. Use new variables to track the offset
6949 of the frame chain (and hard frame pointer) from the current
6950 stack pointer, and likewise the offset of the bottom of the
6951 register save area. Update calls to aarch64_save_callee_saves
6952 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6953 saving the FP&SIMD registers. Save the predicate registers.
6954 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6955 into account when setting the stack pointer from the frame pointer,
6956 and when deciding whether we can inherit the initial adjustment
6957 amount from the prologue. Restore the predicate registers after
6958 the vector registers, then apply sve_callee_adjust, then restore
6959 the general registers.
6960 (aarch64_secondary_reload): Don't use secondary SVE reloads
6962 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6963 (aarch64_short_vector_p): Return false for SVE types.
6964 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6965 at the start of the function. Return false for SVE types.
6966 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6968 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6969 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6970 to big-endian targets for bytewise moves.
6971 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6973 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6974 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6975 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6977 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6978 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6979 aarch64-sve-builtins-base.o to extra_objs. Add
6980 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6981 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6982 (aarch64-sve-builtins-shapes.o): Likewise.
6983 (aarch64-sve-builtins-base.o): New rules.
6984 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6985 (aarch64_resolve_overloaded_builtin): Likewise.
6986 (aarch64_check_builtin_call): Likewise.
6987 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6988 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6990 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6991 (aarch64_svprfop): New enum.
6992 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6993 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6994 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6995 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6996 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6997 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6998 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6999 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7000 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7001 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7002 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7003 (aarch64_sve::mangle_builtin_type): Likewise.
7004 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7005 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7006 (aarch64_sve::expand_builtin): Likewise.
7007 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7008 (aarch64_sve_int_mode): Likewise.
7009 (aarch64_ptrue_all_mode): New function.
7010 (aarch64_convert_sve_data_to_pred): Make public.
7011 (svprfop_token): New function.
7012 (aarch64_output_sve_prefetch): Likewise.
7013 (aarch64_fold_sve_cnt_pat): Likewise.
7014 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7015 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7016 instead of gen_while_ult.
7017 (aarch64_replace_reg_mode): Make public.
7018 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7019 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7020 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7021 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7022 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7023 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7024 (aarch64_sve_ptrue_svpattern_p): Likewise.
7025 (aarch64_sve_pred_valid_immediate): Check
7026 aarch64_sve_ptrue_svpattern_p.
7027 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7028 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7030 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7031 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7032 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7033 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7034 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7035 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7037 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7038 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7039 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7040 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7041 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7042 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7043 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7044 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7045 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7046 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7047 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7048 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7049 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7050 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7051 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7052 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7053 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7054 (Vesize): Handle partial vector modes.
7055 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7057 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7059 (s, paired_extend, inc_dec): New code attributes.
7060 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7061 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7062 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7063 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7064 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7065 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7067 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7068 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7069 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7070 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7071 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7072 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7073 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7074 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7075 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7076 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7077 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7078 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7079 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7080 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7081 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7082 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7084 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7085 (binqops_op, binqops_op_rev, last_op): New int attributes.
7086 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7087 (fn, ab): New int attributes.
7088 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7089 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7090 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7091 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7093 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7094 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7095 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7096 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7097 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7099 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7100 (brk_reg_con, brk_reg_opno): New int attributes.
7101 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7102 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7103 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7105 (max_elem_bits): New int attribute.
7106 (min_elem_bits): Handle UNSPEC_RBIT.
7107 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7108 TRUNCATE as well as SUBREG.
7109 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7110 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7111 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7112 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7113 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7114 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7115 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7116 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7117 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7118 (aarch64_gather_scale_operand_h): New predicates.
7119 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7120 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7121 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7122 (*aarch64_sve_reinterpret<mode>): Allow any source register
7123 instead of requiring an exact match.
7124 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7125 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7126 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7127 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7128 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7129 (aarch64_update_ffrt): New patterns.
7130 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7131 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7132 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7133 (@aarch64_ld<fn>f1<mode>): New patterns.
7134 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7135 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7136 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7137 (@aarch64_ldnt1<mode>): New patterns.
7138 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7139 the scalar part of the address.
7140 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7141 scalar part of the addresse and add an alternative for handling
7143 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7144 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7145 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7146 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7147 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7148 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7149 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7150 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7151 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7152 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7153 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7154 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7155 (@aarch64_sve_prefetch<mode>): New patterns.
7156 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7157 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7158 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7159 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7160 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7161 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7162 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7163 (@aarch64_stnt1<mode>): New patterns.
7164 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7165 the scalar part of the address.
7166 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7167 the scalar part of the addresse and add an alternative for handling
7169 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7170 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7171 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7172 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7173 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7174 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7176 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7177 (extract_last_<mode>): Generalize to...
7178 (@extract_<LAST:last_op>_<mode>): ...this.
7179 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7180 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7181 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7182 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7183 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7184 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7185 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7186 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7187 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7188 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7189 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7190 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7191 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7192 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7193 (*aarch64_adr_uxtw_unspec): Likewise.
7194 (*aarch64_adr_uxtw): Rename to...
7195 (*aarch64_adr_uxtw_and): ...this.
7196 (@aarch64_adr<mode>_shift): New expander.
7197 (*aarch64_adr_shift_sxtw): New pattern.
7198 (aarch64_<su>abd<mode>_3): Rename to...
7199 (@aarch64_pred_<su>abd<mode>): ...this.
7200 (<su>abd<mode>_3): Update accordingly.
7201 (@aarch64_cond_<su>abd<mode>): New expander.
7202 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7203 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7204 (*<su>mul<mode>3_highpart): Rename to...
7205 (@aarch64_pred_<optab><mode>): ...this.
7206 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7207 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7208 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7209 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7210 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7211 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7212 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7213 (*v<ASHIFT:optab><mode>3): Rename to...
7214 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7215 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7216 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7217 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7218 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7219 (@cond_asrd<mode>): New expander.
7220 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7221 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7222 (*sdiv_pow2<mode>3): Delete.
7223 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7224 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7225 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7226 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7227 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7228 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7229 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7230 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7231 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7232 (*add<SVE_F:mode>3): Rename to...
7233 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7235 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7236 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7237 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7238 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7239 (*sub<SVE_F:mode>3): Rename to...
7240 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7242 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7243 (*fabd<SVE_F:mode>3): Rename to...
7244 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7245 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7246 (*mul<SVE_F:mode>3): Rename to...
7247 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7249 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7250 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7252 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7253 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7254 (*<nlogical><PRED_ALL:mode>3): Rename to...
7255 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7256 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7257 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7258 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7259 (aarch64_pred_<logical_nn><mode>_z): ...this.
7260 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7261 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7262 (*fma<SVE_I:mode>4): Rename to...
7263 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7264 (*fnma<SVE_I:mode>4): Rename to...
7265 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7266 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7267 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7268 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7269 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7270 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7271 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7272 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7273 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7274 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7275 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7276 (@aarch64_sve_tmad<mode>): Likewise.
7277 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7278 (*aarch64_sel_dup<mode>): Rename to...
7279 (@aarch64_sel_dup<mode>): ...this.
7280 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7281 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7282 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7283 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7284 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7285 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7286 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7287 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7288 (*fcm<cmp_op><mode>): Rename to...
7289 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7290 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7291 (*fcmuo<mode>): Rename to...
7292 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7293 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7294 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7295 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7296 (fold_extract_last_<mode>): Generalize to...
7297 (@fold_extract_<last_op>_<mode>): ...this.
7298 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7299 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7300 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7301 DImode result explicit.
7302 (reduc_plus_scal_<mode>): Update accordingly.
7303 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7304 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7305 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7306 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7307 (*aarch64_sve_tbl<mode>): Rename to...
7308 (@aarch64_sve_tbl<mode>): ...this.
7309 (@aarch64_sve_compact<mode>): New pattern.
7310 (*aarch64_sve_dup_lane<mode>): Rename to...
7311 (@aarch64_sve_dup_lane<mode>): ...this.
7312 (@aarch64_sve_dupq_lane<mode>): New pattern.
7313 (@aarch64_sve_splice<mode>): Likewise.
7314 (aarch64_sve_<perm_insn><mode>): Rename to...
7315 (@aarch64_sve_<perm_insn><mode>): ...this.
7316 (*aarch64_sve_ext<mode>): Rename to...
7317 (@aarch64_sve_ext<mode>): ...this.
7318 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7319 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7321 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7322 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7324 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7326 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7327 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7328 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7329 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7331 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7332 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7334 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7335 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7336 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7338 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7339 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7340 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7341 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7342 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7344 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7345 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7346 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7347 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7348 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7349 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7350 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7351 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7352 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7353 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7354 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7355 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7356 (aarch64_sve_cnt_pat): Likewise.
7357 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7358 (*aarch64_sve_incsi_pat): Likewise.
7359 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7360 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7361 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7362 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7363 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7364 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7365 (*aarch64_sve_decsi_pat): Likewise.
7366 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7367 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7368 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7369 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7370 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7371 (@aarch64_pred_cntp<mode>): Likewise.
7372 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7374 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7375 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7376 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7378 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7380 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7381 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7382 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7383 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7384 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7385 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7386 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7388 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7389 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7390 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7392 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7394 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7396 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7397 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7399 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7400 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7402 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7403 * config/aarch64/arm_sve.h: New file.
7404 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7405 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7406 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7407 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7408 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7409 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7410 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7411 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7412 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7414 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7416 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7418 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7421 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7423 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7424 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7426 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7427 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7428 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7429 (aarch64_hard_regno_nregs): Handle the new register classes.
7430 (aarch64_hard_regno_mode_ok): Likewise.
7431 (aarch64_regno_regclass): Likewise.
7432 (aarch64_class_max_nregs): Likewise.
7433 (aarch64_register_move_cost): Likewise.
7434 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7435 as general register_operands.
7437 2019-10-29 Martin Liska <mliska@suse.cz>
7439 * ggc-common.c: One can't subtract unsigned types
7440 in compare function.
7442 2019-10-29 Martin Liska <mliska@suse.cz>
7444 * cgraphunit.c (symbol_table::compile): Pass
7445 title as dump_memory_report argument.
7446 * toplev.c (dump_memory_report): New argument.
7447 (finalize): Pass new argument.
7448 * toplev.h (dump_memory_report): Add argument.
7450 2019-10-29 Martin Liska <mliska@suse.cz>
7452 * ggc-common.c: Move Leak to the first column.
7454 2019-10-29 Martin Liska <mliska@suse.cz>
7456 * cgraphunit.c (symbol_table::compile): Remove argument
7457 for dump_memory_report.
7458 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7459 (compare_final): Remove in order to make report
7461 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7462 * mem-stats.h (mem_alloc_description::get_list):
7464 (mem_alloc_description::dump): Likewise here.
7465 * toplev.c (dump_memory_report): Remove final
7467 (finalize): Likewise.
7468 * toplev.h (dump_memory_report): Remove argument.
7470 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7472 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7473 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7474 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7475 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7478 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7480 * coretypes.h (string_int_pair): New typedef.
7481 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7482 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7483 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7485 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7487 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7488 (simulate_builtin_function_decl): Declare.
7489 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7490 (LANG_HOOKS_INITIALIZER): Include it.
7491 * langhooks.c (add_builtin_function_common): Rename to...
7492 (build_builtin_function): ...this. Add a location parameter and use
7493 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7495 (add_builtin_function): Update accordingly, passing the returned
7496 decl to the lang hook.
7497 (add_builtin_function_ext_scope): Likewise
7498 (simulate_builtin_function_decl): New function.
7500 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7502 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7503 example, use actual names of supported offload targets.
7506 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7508 2019-10-28 Martin Sebor <msebor@redhat.com>
7510 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7511 (handle_store): Pass argument to get_addr_stridx.
7513 2019-10-28 Martin Sebor <msebor@redhat.com>
7515 PR tree-optimization/92226
7516 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7517 the offset is in the open range outlined by SI's length.
7519 2019-10-28 Martin Sebor <msebor@redhat.com>
7522 * doc/cpp.texi (__has_builtin): Document.
7523 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7525 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7528 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7529 doubleword and low doubleword result of multiplication on
7532 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7533 pure qualifier to the built-in.
7534 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7536 (struct mips_builtin_description): Add is_pure flag.
7537 (mips_init_builtins): Mark built-in as pure if the flag in the
7538 corresponding mips_builtin_description struct is set.
7540 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7541 alternative which covers the floating-point input value. Also
7542 forbid the split of insert.d pattern for floating-point values.
7544 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7546 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7547 * config/riscv/riscv-sr.c: New file.
7548 * config/riscv/riscv.c (riscv_reorg): New function.
7549 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7550 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7551 (riscv_remove_unneeded_save_restore_calls): Declare.
7552 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7554 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7556 PR tree-optimization/92163
7557 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7558 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7559 before calling bitmap_set_bit.
7560 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7561 delete_dead_or_redundant_assignment.
7562 (dse_dom_walker::dse_optimize_stmt): Likewise.
7563 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7565 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7568 * tree-vect-stmts.c (vectorizable_condition): Support
7569 EXTRACT_LAST_REDUCTION with fully-masked loops.
7571 2019-10-28 Richard Biener <rguenther@suse.de>
7573 PR tree-optimization/92252
7574 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7575 STMT_VINFO_REDUC_IDX when swapping operands.
7577 2019-10-28 Richard Biener <rguenther@suse.de>
7579 PR tree-optimization/92241
7580 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7581 we failed to update the reduction index do not use the pattern
7582 stmts for the reduction chain.
7583 (vectorizable_reduction): When the reduction chain is corrupt,
7585 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7586 fail to update the reduction chain.
7588 2019-10-28 Richard Biener <rguenther@suse.de>
7590 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7591 STMT_VINFO_REDUC_IDX from the actual stmt.
7592 (vect_transform_reduction): Likewise.
7593 (vectorizable_reduction): Compute the reduction chain length,
7594 do not recompute the reduction operand index. Remove no longer
7595 necessary restriction for condition reduction chains.
7597 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7600 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7601 condition for V2DImode.
7603 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7605 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7606 Remove %k operand modifier.
7607 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7609 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7611 PR rtl-optimization/92007
7612 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7613 call it after reload if hot/cold partitioning has been done.
7614 (class pass_postreload_jump): Rename to
7615 pass_jump_after_combine.
7616 (make_pass_postreload_jump): Rename to
7617 make_pass_jump_after_combine.
7618 * passes.def(pass_postreload_jump): Move before reload, rename
7619 to pass_jump_after_combine.
7620 * tree-pass.h (make_pass_postreload_jump): Rename to
7621 make_pass_jump_after_combine.
7623 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7626 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7627 for missing EDGE_REF
7628 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7630 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7632 PR tree-optimization/88760
7633 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7634 Enable -funroll-loops for -O2 and above.
7635 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7636 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7637 do not turn on web and rngreg implicitly, if the unroller is not
7640 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7642 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7645 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7647 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7648 * cgraph.h (cgraph_node::rtl_info): Likewise.
7650 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7652 * ipa-cp.c (propagate_constants_across_call): If args are not available
7653 just drop everything to varying.
7654 (find_aggregate_values_for_callers_subset): Watch for missing
7656 (find_more_scalar_values_for_callers_subs): Likewise.
7657 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7658 update_jump_functions_after_inlining, propagate_controlled_uses):
7659 Watch for missing summaries.
7660 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7662 (ipa_write_node_info): Watch for missing summaries.
7663 (ipa_read_edge_info): Create new ref.
7664 (ipa_edge_args_sum_t): Add remove.
7665 (IPA_EDGE_REF_GET_CREATE): New macro.
7666 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7668 (remap_edge_change_prob): Likewise.
7670 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7672 * ipa-inline-transform.c (inline_call): update function summaries
7673 after expanidng thunk.
7675 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7677 * ipa-icf.c (sem_function::merge): Update function summaries.
7678 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7680 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7682 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7683 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7684 operand already has scalar mode.
7685 (iptr): Remove SF/DF.
7687 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7690 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7691 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7694 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7696 * config/i386/sse.md
7697 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7698 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7699 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7700 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7701 <sse>_vmmaskcmp<mode>3):
7702 Change predicates from vector_operand to nonimmediate_operand,
7703 constraints xBm to xm, since scalar operations don't need
7704 memory address alignment.
7705 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7706 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7707 round_saeonly_nimm_predicate with
7708 round_saeonly_nimm_scalar_predicate.
7709 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7710 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7711 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7712 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7713 avx512f_vmfmadd_<mode>_mask3<round_name>,
7714 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7715 *avx512f_vmfmsub_<mode>_mask<round_name>,
7716 avx512f_vmfmsub_<mode>_mask3<round_name>,
7717 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7718 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7719 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7720 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7721 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7722 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7723 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7724 cvtusi2<ssescalarmodesuffix>32<round_name>,
7725 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7726 round_nimm_predicate with round_nimm_scalr_predicate.
7727 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7728 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7729 avx512er_vmrcp28<mode><round_saeonly_name>,
7730 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7731 ): Replace round_saeonly_nimm_predicate with
7732 round_saeonly_nimm_scalar_predicate.
7733 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7734 vector_operand with nonimmediate_operand.
7735 * config/i386/subst.md (round_scalar_nimm_predicate,
7736 round_saeonly_scalar_nimm_predicate): Replace
7737 vector_operand with nonimmediate_operand.
7739 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7742 * config/i386/i386.md (*rcpsf2_sse): Add
7743 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7744 (*rsqrtsf2_sse): Ditto.
7745 (*sqrt<mode>2_sse): Ditto.
7746 (sse4_1_round<mode>2): separate constraint vm, add
7747 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7748 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7750 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7752 (*sse_vmrsqrtv4sf2): Ditto.
7753 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7754 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7755 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7756 <iptr> pointer size modifier since vround support memory operand.
7758 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7761 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7764 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7765 Tobias Burnus <tobias@codesourcery.com>
7767 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7768 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7771 2019-10-25 Richard Biener <rguenther@suse.de>
7773 PR tree-optimization/92222
7774 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7775 (_slp_oprnd_info::second_pattern): Likewise.
7776 (_slp_oprnd_info::any_pattern): New.
7777 (vect_create_oprnd_info): Adjust.
7778 (vect_get_and_check_slp_defs): Compute whether any stmt is
7780 (vect_build_slp_tree_2): Avoid building up a node from scalars
7781 if any of the operand defs, not just the first, is in a pattern.
7783 2019-10-25 Richard Biener <rguenther@suse.de>
7785 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7786 swapping if we actually have to modify the IL on a shared stmt.
7787 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7788 because we no longer modify the IL.
7790 2019-10-25 Martin Liska <mliska@suse.cz>
7792 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7794 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7796 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7797 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7798 handled by vect_transform_reduction. Allow fully-masked loops
7799 to be used with reduction chains.
7800 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7801 operations in fully-masked loops.
7802 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7803 operations in fully-masked loops.
7805 2019-10-25 Richard Biener <rguenther@suse.de>
7807 * tree-vect-loop.c (vectorizable_reduction): Verify
7808 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7810 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7811 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7814 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7816 * gimplify.h (omp_construct_selector_matches): Declare.
7817 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7818 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7819 called function if needed for flag_openmp.
7820 (gimplify_scan_omp_clauses): Set ctx->code.
7821 (omp_construct_selector_matches): New function.
7822 * omp-general.h (omp_constructor_traits_to_codes,
7823 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7824 * omp-general.c (omp_constructor_traits_to_codes,
7825 omp_context_selector_matches, omp_resolve_declare_variant): New
7828 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7830 * config/rx/rx.c (rx_print_operand): Likewise.
7831 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7832 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7833 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7835 * genemit.c (emit_c_code): Likewise.
7836 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7838 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7840 * symbols-summary.h (fast_function_summary<T *, V>::release,
7841 fast_call_summary<T *, V>::release): Free m_vector.
7843 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7845 * cgraphunit.c (symbol_table::process_new_functions): Call
7846 ipa_free_size_summary.
7847 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7848 (devirtualization_time_bonus): Update.
7849 (ipcp_propagate_stage): Update.
7850 * ipa-fnsummary.c (ipa_size_summaries): New.
7851 (ipa_fn_summary_alloc): Alloc size summary.
7852 (dump_ipa_call_summary): Update.
7853 (ipa_dump_fn_summary): Update.
7854 (analyze_function_body): Update.
7855 (compute_fn_summary): Likewise.
7856 (ipa_get_stack_frame_offset): New function.
7857 (inline_update_callee_summaries): Do not update frame offsets.
7858 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7859 remove call and function summary.
7860 (ipa_update_overall_fn_summary): Update.
7861 (inline_read_section): Update.
7862 (ipa_fn_summary_write): Update.
7863 (ipa_free_fn_summary): Do not remove summaries.
7864 (ipa_free_size_summary): New.
7865 (release summary pass): Also run at WPA.
7866 * ipa-fnsummary.h (ipa_size_summary): Declare.
7867 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7868 estimated_self_stack_size.
7869 (ipa_size_summary_t): New type.
7870 (ipa_size_summaries): Declare.
7871 (ipa_free_size_summary): Declare.
7872 (ipa_get_stack_frame_offset): Declare.
7873 * ipa-icf.c (sem_function::merge): Update.
7874 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7875 (estimate_growth): Update.
7876 (growth_likely_positive): Update.
7877 (clone_inlined_nodes): Update.
7878 (inline_call): Update.
7879 * ipa-inline.c (caller_growth_limits): Update.
7880 (edge_badness): Update.
7881 (recursive_inlining): Update.
7882 (inline_small_functions): Update.
7883 (inline_to_all_callers_1): Update.
7884 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7886 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7888 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7889 (uavg<mode>3_ceil): ... This.
7890 (altivec_vavgs<VI_char>): Rename to...
7891 (avg<mode>3_ceil): ... This.
7892 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7893 VAVGUW, VAVGSW): Adjust.
7895 2019-10-24 Nathan Sidwell <nathan@acm.org>
7897 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7899 2019-10-24 Martin Liska <mliska@suse.cz>
7901 * symbol-summary.h (gt_pch_nx): Mark all functions
7902 with gcc_unreachable as we do not expect to be called.
7904 2019-10-24 Richard Biener <rguenther@suse.de>
7906 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7907 chains try harder with operand swapping and instead of
7908 putting a shifted chain into the reduction operands put
7909 a repetition of the final reduction op there as if we'd
7910 reassociate the expression.
7912 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7914 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7915 statics_not_read and statics_not_written to statics_read and
7916 statics_written respectively.
7917 (no_module_statics): New static var.
7918 (ipa_reference_get_not_read_global): Rename to ...
7919 (ipa_reference_get_read_global): ... this.
7920 (ipa_reference_get_not_written_global): Rename to ...
7921 (ipa_reference_get_written_global): ... this.
7922 (dump_static_vars_set_to_file): Dump no_module_statics.
7923 (copy_static_var_set): Add for propagation parameter.
7924 (ipa_init): Initialize no_module_statics.
7925 (ipa_ref_opt_summary_t::duplicate): Update.
7926 (ipa_ref_opt_summary_t::remove): Update.
7927 (propagate): Update.
7928 (write_node_summary_p): Look correctly for bitmap differences.
7929 (ipa_reference_write_optimization_summary): Update.
7930 (ipa_reference_read_optimization_summary): Update.
7932 (ipa_reference_get_not_read_global): Rename to ...
7933 (ipa_reference_get_read_global): ... this.
7934 (ipa_reference_get_not_written_global): Rename to ...
7935 (ipa_reference_get_written_global): ... this.
7936 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7937 (call_may_clobber_ref_p_1): Update.
7939 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7941 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7943 (msp430_hard_regno_nregs_with_padding): Remove.
7945 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7947 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7948 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7949 shift amount is between 1 and 4.
7950 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7953 2019-10-24 Richard Biener <rguenther@suse.de>
7955 PR tree-optimization/92205
7956 * tree-vect-loop.c (vectorizable_reduction): Restrict
7957 search for alternate vectype_in to lane-reducing patterns
7960 2019-10-24 Richard Biener <rguenther@suse.de>
7962 PR tree-optimization/92203
7963 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7964 Skip eliminating conversion stmts inserted by insertion.
7966 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7968 * config/s390/s390.c (s390_get_thread_pointer): Use
7969 gen_get_thread_pointer.
7970 (s390_expand_split_stack_prologue): Likewise.
7971 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7972 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7973 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7974 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7977 2019-10-24 Richard Biener <rguenther@suse.de>
7979 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7980 SLP discovery fails try to handle the reduction as part
7981 of SLP reduction discovery.
7983 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7985 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7987 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7988 attribute if it exists, rather than the insn size. If we use the
7989 insn size, adjust the size to remove the extra size that prefixed
7991 (rs6000_adjust_insn_length): New function.
7992 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7993 update the instruction sized if prefixed instructions are used.
7994 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7995 (non_prefixed_length attribute): Delete.
7996 (num_insns attribute): New insn attribute to return the number of
7998 (max_prefixed_insns attribute): New insn attribute to return the
7999 maximum number of prefixed instructions in an insn.
8000 (length attribute): Do not adjust for prefix instructions here,
8001 punt to ADJUST_INSN_LENGTH.
8002 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8003 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8004 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8005 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8006 max_prefixed_insns and num_insns.
8008 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8009 (movtd_64bit_nodm): Reformat.
8010 (mov<mode>_32bit): Reformat.
8011 (mov<mode>_softfloat): Reformat.
8012 (FMOVE128_GPR splitter): Reformat.
8013 (DIFD splitter): Reformat.
8014 (TI2 splitter): Reformat.
8015 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8016 bits of the offset for the memory address are non-zero, use PLWA
8017 if prefixed instructions are available.
8019 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8021 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8023 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8025 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8028 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8030 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8031 (cmp_symbol_files): New.
8032 (lto_output): Copy sections in file order.
8033 * lto-streamer.h (lto_file_decl_data): Add field order.
8035 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8037 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8038 * ipa-reference.c (reference_vars_map_t): new type.
8039 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8040 (ipa_reference_var_uid): Implement.
8041 (varpool_node_hooks): New static var.
8042 (varpool_removal_hook): New function.
8043 (is_improper): Do not check bitmap for id==-1
8044 (get_static_name): Update.
8045 (ipa_init): Initialize new datastructures.
8046 (analyze_function): Do not recompute ids.
8047 (propagate): Free reference_vars_to_consider.
8048 (stream_out_bitmap): Update.
8049 (ipa_reference_read_optimization_summary): Update.
8051 2019-10-23 qing zhao <qing.zhao@oracle.com>
8053 PR gcov-profile/91971
8054 * coverage.c (coverage_init): Mangle the full path of filename when
8055 filename is a absolute path.
8057 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8059 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8060 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8061 (msp430_has_hwmult): New.
8062 (msp430_output_labelref):
8063 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8064 * config/msp430/msp430.md (mulhisi3): Likewise.
8065 (umulhisi3): Likewise.
8066 (mulsidi3): Likewise.
8067 (umulsidi3): Likewise.
8069 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8072 * params.def (inline-heuristics-hint-percent): Set to 600.
8074 2019-10-23 Richard Biener <rguenther@suse.de>
8076 PR tree-optimization/65930
8077 * tree-vect-loop.c (check_reduction_path): Allow conversions
8078 that only change the sign.
8079 (vectorizable_reduction): Relax latch def stmts we handle further.
8081 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8084 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8085 (remove_unused_ivs): Use it instead of get_computation_at. When
8086 choosing best candidate, only consider candidates where
8087 get_debug_computation_at actually returns non-NULL.
8089 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8091 PR tree-optimization/92131
8092 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8093 range would be symbolic, drop to varying for any explicit overflow
8094 in the constant part or if neither range is a singleton.
8096 2019-10-23 Martin Liska <mliska@suse.cz>
8099 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8102 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8104 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8105 int_mode_for_mode rather than mode_for_int_vector for scalars.
8107 2019-10-23 Richard Biener <rguenther@suse.de>
8109 PR tree-optimization/92179
8110 * tree-vect-stmts.c (vectorizable_shift): For shift args
8111 that are all the same remove type restriction in the SLP case.
8112 Adjust SLP code to handle converting of the shift arg to
8113 only apply in case the modes are different.
8115 2019-10-23 Martin Liska <mliska@suse.cz>
8118 * ipa-inline.c (recursive_inlining): Do not print
8119 when curr->count is not initialized.
8121 2019-10-23 Richard Biener <rguenther@suse.de>
8123 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8124 op from scalars in case there's a constant operand in its
8127 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8129 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8130 against out of range max skip or log values.
8132 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8134 * cgraph.c (dump_graphviz): Change name to dump_name
8136 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8138 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8139 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8140 subtraction from a carry operation.
8142 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8144 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8146 2019-10-22 Richard Biener <rguenther@suse.de>
8148 PR tree-optimization/92173
8149 * tree-vect-loop.c (vectorizable_reduction): If
8150 vect_transform_reduction cannot handle code-generation try without
8151 the single-def-use-cycle optimization. Pass optab_vector to
8152 optab_for_tree_code to get vector shifts as that's what we'd
8155 2019-10-22 Michael Matz <matz@suse.de>
8158 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8159 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8160 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8162 2019-10-22 Richard Biener <rguenther@suse.de>
8164 PR tree-optimization/92173
8165 * tree-vect-loop.c (vectorizable_reduction): If
8166 vect_transform_reduction cannot handle code-generation try without
8167 the single-def-use-cycle optimization. Pass optab_vector to
8168 optab_for_tree_code to get vector shifts as that's what we'd
8171 2019-10-22 Martin Liska <mliska@suse.cz>
8173 * diagnostic-format-json.cc (json_from_expanded_location):
8174 Use json::integer_number.
8175 * gcov.c (output_intermediate_json_line): Use new
8176 json::integer_number.
8177 (output_json_intermediate_file): Likewise.
8178 * json.cc (number::print): Move to ...
8179 (float_number::print): ... this.
8180 (integer_number::print): New.
8181 (test_writing_numbers): Move to ...
8182 (test_writing_float_numbers): ... this.
8183 (test_writing_integer_numbers): New.
8184 (json_cc_tests): Register test_writing_integer_numbers.
8185 * json.h (class value): Add forward declaration
8186 for float_number and integer_number.
8187 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8188 (class number): Move to ...
8189 (class float_number): ... this.
8190 (class integer_number): New.
8191 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8192 Use json::integer_number.
8193 (optrecord_json_writer::location_to_json): Likewise.
8194 (optrecord_json_writer::profile_count_to_json): Likewise.
8195 (optrecord_json_writer::pass_to_json): Likewise.
8197 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8199 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8200 autodetected_vector_size rather than vector_size is zero.
8201 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8202 Set autodetected_vector_size immediately after calling
8203 vect_analyze_loop_2. Check for a fatal error before advancing
8206 2019-10-21 Jason Merrill <jason@redhat.com>
8208 * lock-and-run.sh: Check for process existence rather than timeout.
8210 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8212 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8213 widening multiplication.
8215 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8217 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8218 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8220 (subsi3_carryin_shift): Separate into register and constant controlled
8221 alternatives. Use shift_amount_operand for operand 4. Set shift
8222 attribute and simplify type attribute.
8223 (subsi3_carryin_shift_alt): Likewise.
8224 (rsbsi3_carryin_shift): Likewise.
8225 (rsbsi3_carryin_shift_alt): Likewise.
8226 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8227 and register controlled shifts into distinct alternatives.
8228 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8229 (andsi_not_shiftsi_si_scc): Likewise.
8230 (arm_cmpsi_negshiftsi_si): Likewise.
8231 (not_shiftsi): Remove redundant M constraint from alternative 1.
8232 (not_shiftsi_compare0): Likewise.
8233 (arm_cmpsi_insn): Remove redundant alternative 2.
8234 (cmpsi_shift_swp): Likewise.
8235 (sub_shiftsi): Likewise.
8236 (sub_shiftsi_compare0_scratch): Likewise.
8237 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8238 (thumb2_cmpsi_neg_shiftsi): Likewise.
8240 2019-10-21 Richard Biener <rguenther@suse.de>
8242 PR tree-optimization/92162
8243 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8244 STMT_VINFO_REDUC_IDX in reduc_info.
8245 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8247 2019-10-21 Richard Biener <rguenther@suse.de>
8249 * tree-vectorizer.h (_slp_tree::ops): New member.
8250 (SLP_TREE_SCALAR_OPS): New.
8251 (vect_get_slp_defs): Adjust prototype.
8252 * tree-vect-slp.c (vect_free_slp_tree): Release
8253 SLP_TREE_SCALAR_OPS.
8254 (vect_create_new_slp_node): Initialize it. New overload for
8255 initializing by an operands array.
8256 (_slp_oprnd_info::ops): New member.
8257 (vect_create_oprnd_info): Initialize it.
8258 (vect_free_oprnd_info): Release it.
8259 (vect_get_and_check_slp_defs): Populate the operands array.
8260 Do not swap operands in the IL when not necessary.
8261 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8262 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8263 swap operands in the operands array. Do not swap operands in
8265 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8266 (vect_gather_slp_loads): Fix.
8267 (vect_detect_hybrid_slp_stmts): Likewise.
8268 (vect_slp_analyze_node_operations_1): Search for a internal
8269 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8270 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8271 the def-type push/pop dance.
8272 (vect_get_constant_vectors): Compute number_of_vectors here.
8273 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8274 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8275 (vect_get_slp_defs): Simplify greatly.
8276 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8277 (vect_transform_reduction): Likewise.
8278 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8279 (vectorizable_call): Likewise.
8280 (vectorizable_operation): Likewise.
8281 (vectorizable_load): Likewise.
8282 (vectorizable_condition): Likewise.
8283 (vectorizable_comparison): Likewise.
8285 2019-10-21 Richard Biener <rguenther@suse.de>
8287 PR tree-optimization/92161
8288 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8291 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8293 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8294 (aarch64_rndr): New define_insn.
8295 (aarch64_rndrrs): Likewise.
8296 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8297 (TARGET_RNG): Likewise.
8298 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8300 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8301 Add fourth argument in prototype.
8302 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8303 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8304 (aarch64_init_rng_builtins): Define.
8305 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8306 (aarch64_expand_rng_builtin): Define.
8307 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8309 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8310 __ARM_FEATURE_RNG when TARGET_RNG.
8311 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8313 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8315 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8316 alignment is more restrictive.
8318 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8320 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8321 (vect_update_max_nunits): Update comment.
8322 (current_vector_size): Delete.
8323 * tree-vect-stmts.c (current_vector_size): Likewise.
8324 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8325 of current_vector_size.
8326 (get_mask_type_for_scalar_type): Likewise.
8327 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8328 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8329 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8330 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8331 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8332 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8334 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8336 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8337 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8338 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8341 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8343 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8344 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8345 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8347 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8349 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8351 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8353 (vect_set_loop_condition_masked): Update call accordingly.
8355 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8357 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8358 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8359 (simple_integer_narrowing): Update call accordingly.
8360 (vectorizable_conversion): Likewise.
8362 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8364 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8365 (vectorizable_call): Update call accordingly.
8367 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8369 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8370 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8371 (duplicate_and_interleave): Update call accordingly.
8372 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8374 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8376 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8377 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8378 (vect_get_constant_vectors): Update call accordingly.
8379 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8381 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8383 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8384 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8385 (vect_prologue_cost_for_slp_op): Update call accordingly.
8386 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8387 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8388 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8389 (get_mask_type_for_scalar_type): Likewise.
8390 (vect_get_vector_types_for_stmt): Likewise.
8391 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8392 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8393 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8394 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8395 (vect_split_statement, vect_convert_input): Likewise.
8396 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8397 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8398 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8399 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8400 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8401 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8402 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8403 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8404 (vect_recog_mask_conversion_pattern): Likewise.
8405 (vect_add_conversion_to_pattern): Likewise.
8406 (vect_recog_gather_scatter_pattern): Likewise.
8407 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8408 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8410 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8412 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8413 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8414 (vect_check_load_store_mask): Update call accordingly.
8415 (vect_get_mask_type_for_stmt): Likewise.
8416 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8417 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8418 (vect_convert_mask_for_vectype): Likewise.
8420 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8422 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8424 (vect_recog_dot_prod_pattern): Update call accordingly.
8425 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8426 (vect_recog_widen_sum_pattern): Likewise.
8428 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8430 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8431 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8432 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8435 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8437 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8438 get_vectype_for_scalar_type_and_size instead of
8439 get_vectype_for_scalar_type.
8441 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8443 * common.opt (-fcommon): Fix description.
8445 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8447 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8448 * config/i386/i386.c (ix86_pre_reload_split): New function.
8449 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8450 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8451 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8452 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8453 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8454 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8455 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8456 *<shift_insn><dwi>3_doubleword_mask,
8457 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8458 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8459 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8460 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8461 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8462 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8463 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8464 *avx2_<code>v8qiv8si2<mask_name>_2,
8465 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8466 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8467 *avx512f_<code>v8qiv8di2<mask_name>_2,
8468 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8469 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8470 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8471 sse4_2_pcmpistr): Likewise.
8473 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8475 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8476 now defaults to https.
8478 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8480 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8481 skip non-zero array accesses.
8483 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8485 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8486 and return a boolean success value. Move the allocation and
8487 initialization of the bb_vec_info to...
8488 (vect_slp_bb_region): ...here. Update call accordingly.
8489 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8490 than in vect_slp_analyze_bb_1.
8492 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8494 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8495 when processing the given datarefs for the first time and
8496 check_datarefs subsequently.
8497 (vect_slp_bb_region): New function, split out of...
8498 (vect_slp_bb): ...here. Don't recompute the region bounds and
8499 dataref sets when retrying with a different vector size.
8501 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8502 Uroš Bizjak <ubizjak@gmail.com>
8505 * config/i386/predicates.md (int_nonimmediate_operand): New special
8507 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8508 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8509 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8510 define_insn_and_split patterns.
8512 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8514 * config/rs6000/rs6000.md: Delete out--of-date comment about
8515 special-casing integer loads.
8517 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8519 * escaped_string.h (escaped_string): New header.
8520 * tree.c (escaped_string): Remove escaped_string class.
8522 2019-10-18 Martin Sebor <msebor@redhat.com>
8524 PR tree-optimization/92157
8525 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8526 compute_string_length to return a negative result.
8528 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8530 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8531 (negvsi3, negvdi3): Delete.
8532 (negdi2_compare): Delete.
8534 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8536 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8538 (subdi3_compare1): Delete pattern.
8539 (subvsi3_borrow): New insn pattern.
8540 (subvsi3_borrow_imm): Likewise.
8542 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8544 * config/arm/arm.md (subv<mode>4): Delete.
8545 (subvdi4): New expander pattern.
8546 (subvsi4): Likewise. Handle some immediate values.
8547 (subvsi3_intmin): New insn pattern.
8548 (subvsi3): Likewise.
8549 (subvsi3_imm1): Likewise.
8550 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8553 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8555 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8556 incoming operands. Early split the calculation into SImode
8558 (usubvsi3_borrow): New insn pattern.
8559 (usubvsi3_borrow_imm): Likewise.
8561 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8563 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8564 (usubvsi4): New pattern. Allow some immediate values for inputs.
8565 (usubvdi4): New pattern.
8567 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8569 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8570 or second operand of the PLUS inside a DImode equality test to be
8571 sign-extend when selecting CC_Vmode.
8572 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8574 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8576 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8577 (addsi3_cin_vout_0): Likewise.
8578 (adddi3_compareV): Delete.
8580 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8582 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8583 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8584 to transform this back into the summation version when that leads
8587 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8589 * config/arm/arm.md (addv<mode>4): Delete.
8590 (addvsi4): New pattern. Handle immediate values that the architecture
8592 (addvdi4): New pattern.
8593 (addsi3_compareV): Rename to ...
8594 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8595 and use COMPARE rather than NE.
8596 (addsi3_compareV_imm): New pattern.
8597 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8598 a signed-overflow check.
8600 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8602 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8603 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8605 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8606 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8608 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8610 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8611 (addsi3_cin_cout_imm_insn): Likewise.
8612 (adddi3_compareC): Delete insn.
8613 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8615 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8617 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8618 * (uaddv<mode>4): Delete expansion pattern.
8619 (uaddvsi4): New pattern.
8620 (uaddvdi4): Likewise.
8621 (addsi3_compareC): Delete pattern, change callers to use
8623 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8624 reduce the number of alternatives and re-work type attribute handling.
8625 (addsi3_compare_op2): Clean up constraints to reduce the number of
8626 alternatives and re-work type attribute handling.
8627 (compare_addsi2_op0): Likewise.
8628 (compare_addsi2_op1): Likewise.
8630 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8632 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8633 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8634 for DImode operands.
8635 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8636 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8638 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8639 (arm_cmpdi_unsigned): Delete.
8641 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8643 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8644 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8645 unchanged only if that will be cheaper.
8646 (arm_select_cc_mode): Recognize a swapped comparison that will
8647 be regenerated using RSBS or RSCS. Relax restriction on selecting
8649 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8651 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8653 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8655 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8656 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8658 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8660 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8661 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8663 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8664 of EQ, NE, LT, GE, LTU and GEU.
8665 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8666 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8667 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8668 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8669 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8671 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8673 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8675 (cstoredi4): Similarly, but for operand 3.
8676 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8677 canonicalization of unsigned compares with a constant on Arm.
8678 Prefer using const+1 and adjusting the comparison over swapping the
8679 operands whenever the original constant was not valid.
8680 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8682 (arm_validize_comparison): Do not force invalid DImode operands to
8685 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8687 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8688 return CC_Zmode if comparing against a constant where one word is
8690 (arm_gen_compare_reg): Split DImode handling to ...
8691 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8692 against simple constants.
8693 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8695 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8697 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8698 (rsbsi3_carryin_shift_alt): Likewise.
8700 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8702 * config/arm/arm.md (negscc_borrow): New pattern.
8703 (mov_negscc): Don't split if the insn would match negscc_borrow.
8704 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8705 (thumb2_mov_negscc_strict_it): Likewise.
8707 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8709 * config/arm/arm.c (arm_insn_cost): New function.
8710 (TARGET_INSN_COST): Override default definition.
8712 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8714 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8717 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8719 * config/arm/arm.c (strip_carry_operation): New function.
8720 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8723 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8725 * config/arm/predicates.md (arm_carry_operation): New special
8727 * config/arm/iterators.md (LTUGEU): Delete iterator.
8728 (cnb): Delete code attribute.
8729 (optab): Delete ltu and geu elements.
8730 * config/arm/arm.md (addsi3_carryin): Renamed from
8731 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8732 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8733 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8734 (addsi3_carryin_clobercc): Similarly.
8735 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8738 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8740 * config/arm/arm.md (arm_subdi3): Delete insn.
8741 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8743 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8745 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8746 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8747 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8749 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8750 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8752 (subdi3): Rewrite to early-expand the sub-operations.
8753 (rsb_im_compare): New pattern.
8755 (negdi2_insn): Delete.
8756 (arm_negsi2): Correct type attribute to alu_imm.
8757 (negsi2_0compare): New insn pattern.
8758 (negsi2_carryin): New insn pattern.
8760 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8762 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8765 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8767 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8768 to match canonical form.
8770 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8772 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8773 (extend<mode>di2): Likewise.
8775 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8777 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8778 * config/arm/arm.c (arm_decompose_di_binop): New function.
8779 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8780 If not generating Thumb-1 code, decompose the operation into 32-bit
8782 * add0si_carryin_<optab>: New pattern.
8784 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8786 * arm.md (adddi3): Only accept register operands.
8787 (arm_adddi3): Convert to simple insn with no split. Do not accept
8789 (adddi_sesidi_di): Delete patern.
8790 (adddi_zesidi_di): Likewise.
8791 (uaddv<mode>4): Use LTU as condition for branch.
8792 (adddi3_compareV): Convert to simple insn with no split.
8793 (addsi3_compareV_upper): Delete pattern.
8794 (adddi3_compareC): Convert to simple insn with no split. Correct
8795 flags setting expression.
8796 (addsi3_compareC_upper): Delete pattern.
8797 (addsi3_compareC): Correct flags setting expression.
8798 (subdi3_compare1): Convert to simple insn with no split.
8799 (subsi3_carryin_compare): Delete pattern.
8800 (arm_subdi3): Convert to simple insn with no split.
8801 (subdi_zesidi): Delete pattern.
8802 (subdi_di_sesidi): Delete pattern.
8803 (subdi_zesidi_di): Delete pattern.
8804 (subdi_sesidi_di): Delete pattern.
8805 (subdi_zesidi_zesidi): Delete pattern.
8806 (negvdi3): Use s_register_operand.
8807 (negdi2_compare): Convert to simple insn with no split.
8808 (negdi2_insn): Likewise.
8809 (negsi2_carryin_compare): Delete pattern.
8810 (negdi_zero_extendsidi): Delete pattern.
8811 (arm_cmpdi_insn): Convert to simple insn with no split.
8812 (negdi2): Don't call gen_negdi2_neon.
8813 * config/arm/neon.md (adddi3_neon): Delete pattern.
8814 (subdi3_neon): Delete pattern.
8815 (negdi2_neon): Delete pattern.
8816 (splits for negdi2_neon): Delete splits.
8818 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8821 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8824 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8826 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8827 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8828 new multilib variants and new mappings.
8830 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8833 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8835 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8836 Richard Sandiford <richard.sandiford@arm.com>
8839 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8840 and define hashmap traits for it.
8841 (loop_vec_info::scalar_cond_masked_set): New member.
8842 (vect_record_loop_mask): Adjust prototype.
8843 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8845 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8846 vect_record_loop_mask.
8847 (vectorizable_live_operation): Likewise.
8848 (vect_record_loop_mask): New param scalar_mask. Add entry
8849 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8850 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8851 Pass it as last arg to vect_record_loop_mask.
8852 (vectorizable_call): Pass scalar_mask as last arg to
8853 vect_record_loop_mask.
8854 (vectorizable_store): Likewise.
8855 (vectorizable_load): Likewise.
8856 (vectorizable_condition): Check if another part of vectorized code
8857 applies loop_mask to condition or to it's inverse, and if yes,
8858 apply loop_mask to result of vector comparison.
8860 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8862 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8864 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8866 PR tree-optimization/92056
8867 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8868 before calling compute_builtin_object_size.
8870 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8873 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8874 (movdi_low_st): Delete.
8875 * config/rs6000/rs6000.c
8876 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8877 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8878 * config/rs6000/rs6000.md (movsi_low): Delete.
8880 2019-10-17 Jason Merrill <jason@redhat.com>
8882 * gimplify.h (get_initialized_tmp_var): Add default argument to
8884 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8885 NULL post_p argument.
8886 * targhooks (std_gimplify_va_arg_expr): Likewise.
8888 2019-10-17 Richard Biener <rguenther@suse.de>
8890 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8891 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8892 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8893 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8894 * tree-vect-loop.c (vect_is_simple_reduction): Set
8895 STMT_VINFO_REDUC_CODE.
8896 (vectorizable_reduction): Remove dead and redundant code, use
8897 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8899 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8901 Fix breakage introduced by r276985.
8903 * config/avr/avr.c (avr_option_override): Remove set of
8904 PARAM_ALLOW_STORE_DATA_RACES.
8905 * common/config/avr/avr-common.c (avr_option_optimization_table)
8906 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8908 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8910 * config/i386/i386.h (processor_costs): Add clear_ratio.
8911 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8912 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8913 of 6 and move_ratio in all cost models.
8915 2019-10-17 Richard Biener <rguenther@suse.de>
8917 * tree-vect-loop.c (check_reduction_path): Compute reduction
8919 (vect_is_simple_reduction): Remove special-case of single-stmt
8920 reduction path detection.
8922 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8924 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8926 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8928 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8929 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8930 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8931 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8932 New combine patterns.
8933 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8935 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8937 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8939 * tree-vrp.c (value_range_base::dump): Display +INF for both
8940 pointers and integers when appropriate.
8942 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8944 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8945 when to use versioning threshold.
8947 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8949 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8950 outlined code from ...
8951 (vect_analyze_loop_2): ... here.
8953 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8955 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8956 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8957 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8959 2019-10-17 Richard Biener <rguenther@suse.de>
8961 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8962 (vect_is_simple_reduction): Move all validity checks ...
8963 (vectorizable_reduction): ... here. Compute whether we
8964 need a fold-left reduction here.
8965 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8966 both overloads, check needs_fold_left_reduction_p directly.
8967 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8969 2019-10-17 Richard Biener <rguenther@suse.de>
8971 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8972 TARGET_MEM_REF creation.
8974 2019-10-17 Richard Biener <rguenther@suse.de>
8976 PR tree-optimization/92129
8977 * tree-vect-loop.c (vectorizable_reduction): Also fail
8978 on GIMPLE_SINGLE_RHS.
8980 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8982 PR tree-optimization/92056
8983 * tree-object-size.c (cond_expr_object_size): Return early if then_
8984 processing resulted in unknown size.
8986 PR tree-optimization/92115
8987 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8988 temporary if it could trap.
8990 2019-10-17 Richard Biener <rguenther@suse.de>
8993 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8994 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8996 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8998 * tree-ssa-strlen.c (maybe_invalidate): Use
8999 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9001 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9002 Jim Wilson <jimw@sifive.com>
9004 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9005 regs to SIBCALL_REGS.
9006 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9007 passing regs to SIBCALL_REGS.
9009 2019-10-16 Martin Sebor <msebor@redhat.com>
9011 PR tree-optimization/83821
9012 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9013 the length of a string when available.
9014 (handle_builtin_memset) Add argument.
9015 (handle_store, strlen_check_and_optimize_call): Same.
9016 (check_and_optimize_stmt): Same. Pass it to callees.
9018 2019-10-16 Martin Sebor <msebor@redhat.com>
9020 PR tree-optimization/91996
9021 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9023 (compare_nonzero_chars): Add an overload.
9024 (count_nonzero_bytes): Add an argument. Call overload above.
9025 Handle non-constant lengths in some range.
9026 (handle_store): Add an argument.
9027 (check_and_optimize_stmt): Pass an argument to handle_store.
9029 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9031 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9033 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9035 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9036 operands which correspond to the same input-output register to
9037 have the same pseudo assigned to them.
9039 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9041 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9043 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9045 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9046 Apply reasonable limit to symbol offsets.
9048 2019-10-16 Richard Biener <rguenther@suse.de>
9050 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9051 (vect_is_simple_reduction): Delay checking to
9052 vectorizable_reduction and relax the checking.
9053 (vectorizable_reduction): Check we have a simple use. Check
9054 for bogus condition reductions.
9055 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9056 are looking at the last stmt in a pattern sequence when
9057 filling in backedge PHI values.
9059 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9060 Jiufu Guo <guojiufu@linux.ibm.com>
9063 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9064 the callee explicitly disables some isa_flags the caller is using.
9066 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9068 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9070 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9072 * genmodes.c (mode_data::order): New field.
9073 (blank_mode): Update accordingly.
9074 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9075 (make_vector_modes): Likewise.
9076 (VECTOR_MODES): Update use accordingly.
9077 (cmp_modes): Sort by the new order field ahead of sorting by size.
9078 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9079 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9080 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9081 (aarch64_classify_vector_mode): Handle the new partial modes.
9082 (aarch64_vl_bytes): New function.
9083 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9084 when counting the number of registers in an SVE mode.
9085 (aarch64_class_max_nregs): Likewise.
9086 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9088 (aarch64_classify_address): Treat partial vectors analogously
9090 (aarch64_print_address_internal): Consolidate the printing of
9091 MUL VL addresses, using aarch64_vl_bytes as the number of
9092 bytes represented by "VL".
9093 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9095 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9097 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9098 rather than known_lt when choosing frame layouts.
9100 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9102 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9103 that all the adjustments add up to the full frame size.
9104 Use crtl->outgoing_args_size directly as the final adjustment
9107 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9109 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9110 "frame" reference instead of always referring directly to
9111 "cfun->machine->frame".
9113 2019-10-16 Richard Biener <rguenther@suse.de>
9115 PR tree-optimization/92119
9116 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9117 against missing bswap lhs.
9119 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9122 * poly-int.h (constant_lower_bound_with_limit): New function.
9123 (constant_upper_bound_with_limit): Likewise.
9124 * doc/poly-int.texi: Document them.
9125 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9126 into the worst-case INTEGER_CST bounds.
9128 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9131 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9132 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9133 * ipa-predicat.h (struct expr_eval_op): New struct.
9134 (expr_eval_ops): New typedef.
9135 (struct condition): Add type and param_ops fields, remove size field.
9136 (add_condition): Replace size parameter with type parameter, add
9137 param_ops parameter.
9138 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9139 (predicate::add_clause): Add comparisons on type and param_ops.
9140 (dump_condition): Add debug dump for param_ops.
9141 (remap_after_inlining): Adjust call arguments to add_condition.
9142 (add_condition): Replace size parameter with type parameter, add
9143 param_ops parameter. Unshare constant value used in conditions.
9144 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9145 parameter expressions using param_ops.
9146 (decompose_param_expr): New function.
9147 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9148 to replace call to unmodified_parm_or_parm_agg_item.
9149 (set_switch_stmt_execution_predicate): Likewise.
9150 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9152 (inline_read_section): Read param_ops from summary stream.
9153 (ipa_fn_summary_write): Write param_ops to summary stream.
9155 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9157 PR rtl-optimization/92107
9158 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9161 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9163 * config/darwin.c: Update description of fix and continue.
9165 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9167 * config/darwin.c (darwin_binds_local_p): Update to call
9168 default_binds_local_p_3 () directly. amend comments.
9170 2019-10-15 Richard Biener <rguenther@suse.de>
9172 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9173 (tree_is_indexable): Use it.
9174 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9175 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9176 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9178 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9180 * config/msp430/msp430.md (zero_extendqipsi2): New.
9181 (zero_extendqisi2): Optimize case where src register and base dst
9182 register are the same.
9183 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9184 (zero_extendpsisi2): Optimize r->m case.
9185 Add unnamed insn patterns to catch insns combine searches for when
9186 optimizing pointer manipulation.
9188 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9190 * config/msp430/msp430.md: Group zero_extend* insns together.
9192 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9194 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9196 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9198 (msp430_subreg): Likewise.
9199 (msp430_split_addsi): Likewise.
9200 (msp430_print_operand_addr): Likewise.
9201 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9202 (USE_STORE_POST_INCREMENT): Define.
9203 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9204 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9205 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9206 (msp430_general_dst_operand): New.
9207 (msp430_general_dst_nonv_operand): New.
9208 (msp430_nonsubreg_operand): Remove.
9209 (msp430_nonsubreg_dst_operand): New.
9210 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9211 of defunct msp430_nonsubreg_operand.
9212 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9214 2019-10-15 Richard Biener <rguenther@suse.de>
9216 PR tree-optimization/91929
9217 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9218 (get_or_alloc_expr_for_name): Initialize it.
9219 (get_or_alloc_expr_for_constant): Likewise.
9220 (phi_translate_1): Copy it.
9221 (create_expression_by_pieces): Use the original location
9222 of the expression for the inserted stmt.
9223 (compute_avail): Record the location of the stmt for the
9224 expressions created.
9226 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9228 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9229 before using tree_to_uhwi.
9231 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9233 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9235 2019-10-15 Richard Biener <rguenther@suse.de>
9237 PR tree-optimization/92094
9238 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9239 do not adjust the reduction definition def type.
9240 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9241 defines the latch argument of the PHI.
9243 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9246 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9247 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9248 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9249 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9250 _mm_maskz_roundscale_round_sd): New intrinsics.
9251 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9252 __builtin_ia32_rndscales?_mask_round builtins instead of
9253 __builtin_ia32_rndscales?_round.
9254 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9255 __builtin_ia32_rndscalesd_round): Remove.
9256 (__builtin_ia32_rndscaless_mask_round,
9257 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9258 * config/i386/sse.md
9259 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9260 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9261 ... this, adjust and add subst atrributes to make it maskable.
9263 2019-10-15 Richard Biener <rguenther@suse.de>
9266 * common.opt (fallow-store-data-races): New.
9267 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9268 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9269 * doc/invoke.texi (fallow-store-data-races): Document.
9270 (--param allow-store-data-races): Remove docs.
9271 * opts.c (default_options_table): Enable -fallow-store-data-races
9273 (default_options_optimization): Do not enable --param
9274 allow-store-data-races at -Ofast.
9275 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9276 instead of PARAM_ALLOW_STORE_DATA_RACES.
9277 * tree-ssa-loop-im.c (execute_sm): Likewise.
9279 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9281 PR tree-optimization/92085
9282 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9283 instead of calling it unconditionally after
9284 delete_dead_or_redundant_assignment and fix indentation.
9286 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9288 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9290 (*fmsub<SDF:mode>4): Likewise.
9291 *fnmsub<SDF:mode>4): Likewise.
9292 (*fnmadd<SDF:mode>4): Likewise.
9294 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9296 * doc/tree-ssa.texi: Update renamed macro name.
9298 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9300 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9303 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9305 * config/darwin.c: Use unsigned ints for the picbase label
9306 counters, initialise the vars explicitly.
9307 (update_pic_label_number_if_needed): Move a variable declaration
9308 to where it's needed.
9309 (machopic_output_function_base_name): Use a more strict checking
9310 assert, and and unsigned int for the picbase label counter.
9311 (machopic_get_function_picbase): Likewise.
9313 2019-10-14 Richard Biener <rguenther@suse.de>
9316 * dse.c (scan_insn): Use param max_active_local_stores.
9317 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9318 based on optimization level.
9319 * loop-invariant.c (move_loop_invariants): Adjust
9320 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9321 * opts.c (default_options_optimization): Do not adjust
9322 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9323 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9325 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9327 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9329 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9331 * config/arm/arm.c (arm_option_override): Don't override sched
9334 2019-10-14 Richard Biener <rguenther@suse.de>
9336 PR tree-optimization/92069
9337 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9338 cycles do not set vect_nested_cycle on the latch definition.
9340 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9342 * function-abi.h (expr_callee_abi): Declare.
9343 * function-abi.cc (expr_callee_abi): New function.
9345 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9347 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9349 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9350 non-zero being represented as [1,MAX].
9352 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9354 * tree-sra.c (dump_access): Add missing braces.
9356 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9358 * config/darwin.c (machopic_indirection_name): Rework the
9359 function to emit linker-visible symbols only for indirections
9360 in the data section. Clean up the code and update comments.
9362 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9364 * config/darwin.c (machopic_indirect_data_reference): Remove
9367 2019-10-13 Nathan Sidwell <nathan@acm.org>
9369 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9371 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9373 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9376 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9378 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9379 so non-virutal are before virutals.
9380 (output_function): Avoid body modifications.
9382 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9384 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9385 %r22. Load function address before global pointer.
9386 (pa_attr_length_indirect_call): Adjust length of inline versions of
9388 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9389 before normal cases. Update inline $$dyncall sequences to preserve
9390 function descriptor address in register %r22.
9391 (TRAMPOLINE_CODE_SIZE): Adjust.
9392 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9393 register %r22 contains trampoline address.
9394 (pa_trampoline_init): Adjust offsets.
9395 (pa_trampoline_adjust_address): Likewise.
9396 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9398 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9401 * config/darwin.c (machopic_indirection): New field to flag
9402 non-lazy-symbol-pointers in the data section.
9403 (machopic_indirection_name): Compute if an indirection should
9404 appear in the data section.
9405 (machopic_output_data_section_indirection): New callback split
9406 from machopic_output_indirection.
9407 (machopic_output_stub_indirection): Likewise.
9408 (machopic_output_indirection): Retain the code for non-lazy
9409 symbol pointers in their regular section.
9410 (machopic_finish): Use the new callbacks to order the indirection
9413 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9415 * config/darwin-protos.h (machopic_finish): Delete.
9416 * config/darwin.c (machopic_finish): Make static.
9418 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9420 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9421 sections when building kernel extension code.
9423 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9425 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9428 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9430 * config/pa/pa.c (pa_option_override): Remove trailing comma
9433 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9436 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9437 <case VEC_COND_EXPR>: Return false with *handled = false.
9438 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9439 recursing on the first operand.
9440 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9441 instead of tree_could_trap_p.
9442 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9444 2019-10-11 Jim Wilson <jimw@sifive.com>
9446 PR rtl-optimization/91860
9447 * combine.c (subst): If new_rtx is a constant, also check for
9448 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9450 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9452 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9453 INTVAL when calling store_bit_field.
9455 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9457 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9460 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9462 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9463 vectorizable_live_operation.
9464 (vectorizable_live_operation): Adjust parameters.
9465 * tree-vect-stmts.c (vect_init_vector,
9466 vect_gen_widened_results_half): Fix typo in function comment.
9467 (can_vectorize_live_stmts): Adjust function comment.
9468 Adjust parameters. Adjust call to vectorizable_live_operation.
9469 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9470 (vect_transform_stmt): Adjust function comment. Adjust call to
9471 can_vectorize_live_stmts.
9472 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9474 2019-10-11 Richard Biener <rguenther@suse.de>
9476 PR tree-optimization/90883
9477 PR tree-optimization/91091
9478 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9479 alias-sets both for recording VN table entries and continuing
9480 walking after translating through copies. Handle same-sized
9481 reads from SSA names by returning the plain SSA name.
9482 (eliminate_dom_walker::eliminate_stmt): Properly handle
9483 non-size precision stores in redundant store elimination.
9485 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9487 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9488 (ggc_collect): Dump later to not interfere with release_page dump.
9489 (ggc_trim): New function.
9490 * ggc-none.c (ggc_trim): New.
9491 * ggc.h (ggc_trim): Declare.
9493 2019-10-11 Richard Biener <rguenther@suse.de>
9495 PR tree-optimization/92066
9496 PR tree-optimization/92046
9497 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9498 Fix bogus cost model check.
9500 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9502 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9503 (LANG_HOOKS_DECLS): Add it.
9504 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9505 update comment for omp_is_optional_argument.
9506 * omp-general.c (omp_is_allocatable_or_ptr): New.
9507 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9508 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9509 Fortran's optional arguments and allocatable/pointer scalars
9510 with use_device_addr.
9512 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9515 * config/s390/2827.md: Add new opcodes.
9516 * config/s390/2964.md: Likewise.
9517 * config/s390/3906.md: Likewise.
9518 * config/s390/8561.md: Likewise.
9519 * config/s390/s390-builtins.def (s390_vfchesb): Use
9520 the new vec_cmpgev4sf_quiet_nocc.
9521 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9522 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9523 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9524 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9525 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9526 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9527 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9528 * config/s390/s390-modes.def (CCSFPS): New mode.
9529 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9530 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9531 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9532 (s390_expand_vec_compare): Use non-signaling patterns where
9534 (s390_reverse_condition): Support CCSFPS.
9535 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9536 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9537 (asm_fcmp_op): Likewise.
9538 (*smaxv2df3_vx): Use pattern for quiet comparison.
9539 (*sminv2df3_vx): Likewise.
9540 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9541 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9542 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9543 (vec_cmplt<mode>_quiet_nocc): New expander.
9544 (vec_cmpge<mode>_quiet_nocc): New pattern.
9545 (vec_cmple<mode>_quiet_nocc): New expander.
9546 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9547 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9548 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9549 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9550 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9551 (vec_cmpungt<mode>): New expander.
9552 (vec_cmpunge<mode>): Likewise.
9553 (vec_cmpuneq<mode>): Use quiet patterns.
9554 (vec_cmpltgt<mode>): Allow only on z14+.
9555 (vec_cmpordered<mode>): Use quiet patterns.
9556 (vec_cmpunordered<mode>): Likewise.
9557 (VEC_CMP_EXPAND): Add ungt and unge.
9559 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9561 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9563 * lto-streamer-out.c: Include tree-dfa.h.
9564 (output_cfg): Do not use cfun.
9565 (lto_prepare_function_for_streaming): New.
9566 (output_function): Do not push cfun; do not initialize loop optimizer.
9567 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9568 * passes.c (ipa_write_summaries): Use it.
9569 (ipa_write_optimization_summaries): Do not modify bodies.
9570 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9571 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9572 * tree-ssa-dse.c (pass_dse::execute): Update use of
9573 renumber_gimple_stmt_uids.
9574 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9576 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9578 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9579 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9581 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9583 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9585 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9586 Also define DFP macros for these conditions.
9587 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9588 DEC128_SUBNORMAL_MIN): Do not define.
9589 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9590 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9592 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9593 Sandra Loosemore <sandra@codesourcery.com>
9596 * doc/lto.texi (IPA): Reference to the IPA passes.
9597 * doc/passes.texi (Pass manager): Add node IPA passes and
9598 description for each IPA pass.
9600 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9602 * ipa-reference.c: Do not include splay-tree.h
9603 (reference_vars_to_consider): Turn to hash map.
9604 (get_static_name, ipa_init, analyze_function, propagate,
9605 stream_out_bitmap, ipa_reference_write_optimization_summary,
9606 ipa_reference_write_optimization_summary): Update.
9608 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9610 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9612 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9614 * config/darwin.c: Lookup Objective C metadata and force indirection
9617 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9619 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9621 (mem_operand_gpr): Add check for prefixed addresses.
9622 (mem_operand_ds_form): Add check for prefixed addresses.
9623 (rs6000_legitimate_offset_address_p): If we support prefixed
9624 addresses, check for a 34-bit offset instead of 16-bit.
9625 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9626 Do not allow load/store with update if the address is prefixed.
9627 (rs6000_mode_dependent_address): If we support prefixed
9628 addresses, check for a 34-bit offset instead of 16-bit.
9630 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9633 * config/s390/vector.md (vcond_comparison_operator): New
9635 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9637 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9640 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9642 * configure.ac (--with-documentation-root-url): New option.
9643 * configure: Regenerate.
9644 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9645 option URL, add it as a new string field of the diagnostic option.
9646 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9647 (print_option_information): If get_option_url is non-NULL, call
9648 it, and if the result is non-NULL, potentially emit an escape
9649 sequence to markup the option text with the resulting URL.
9650 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9651 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9652 example of JSON output.
9653 * opts-diagnostic.h (get_option_url): New decl.
9654 * opts.c (get_option_url): New function.
9655 * toplev.c (general_init): Initialize the get_option_url callback.
9657 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9660 * common.opt (fdiagnostics-urls=): New option.
9661 (diagnostic-url.h): Add SourceInclude.
9662 (diagnostic_url_rule): New enum.
9663 * diagnostic-color.c: Include "diagnostic-url.h".
9664 (diagnostic_urls_enabled_p): New function.
9665 * diagnostic-url.h: New file.
9666 * diagnostic.c: Include "diagnostic-url.h".
9667 (diagnostic_urls_init): New function.
9668 * diagnostic.h (diagnostic_urls_init): New decl.
9669 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9670 -fdiagnostics-urls to the list.
9671 (-fdiagnostics-urls): New option.
9672 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9673 (driver::global_initializations): Call diagnostic_urls_init.
9674 * opts-global.c (init_options_once): Likewise.
9675 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9676 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9678 (pp_begin_url): New function.
9679 (pp_end_url): New function.
9680 (selftest::test_urls): New selftest.
9681 (selftest::pretty_print_c_tests): Call it.
9682 * pretty-print.h (pretty_printer::show_urls): New field.
9683 (pp_begin_url): New decl.
9684 (pp_end_url): New decl.
9686 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9689 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9691 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9694 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9695 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9696 also for TARGET_FPU_SH4_300.
9697 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9699 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9700 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9701 (*negsf2_i): Split into ...
9702 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9703 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9704 (**abssf2_i): Split into ...
9705 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9706 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9707 (*negdf2_i): Split into ...
9708 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9709 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9710 (**abssf2_i): Split into ...
9711 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9713 2019-10-10 Richard Biener <rguenther@suse.de>
9716 * opts.c (finish_options): Do not influence global --params
9717 from options that are adjustable per function.
9718 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9719 Apply --param adjustment based on active cost-model.
9720 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9721 further store-sinking when vectorization or if-conversion
9724 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9727 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9728 rather than ggc_alloc_cleared to alloc symbol table.
9729 * toplev.c (general_init): Likewise.
9730 * cgraph.h (symbol_table): Explicitly construct every field.
9732 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9734 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9736 * config.gcc: Add z15 as option for --with-arch and --with-tune
9738 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9739 error reporting for unsupported builtins.
9740 * config/s390/s390-opts.h (enum processor_type): Rename
9741 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9742 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9743 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9745 * config/s390/s390-builtins.def: Likewise.
9746 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9747 (s390_expand_builtin): Add missing check for unsupported builtins.
9748 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9749 (s390_rtx_costs): Likewise.
9750 (s390_get_sched_attrmask): Rename arch13 to z15.
9751 (s390_get_unit_mask): Likewise.
9752 (s390_is_fpd): Likewise.
9753 (s390_is_fxd): Likewise.
9754 * config/s390/s390.h (enum processor_flags): Likewise.
9755 * config/s390/s390.md: Likewise.
9756 * config/s390/vector.md: Likewise.
9757 * config/s390/vx-builtins.md: Likewise.
9758 * config/s390/s390.opt: Add z15 to processor_type value.
9760 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9763 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9765 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9766 ("split_stack_data", "split_stack_call")
9767 ("split_stack_call_<mode>", "split_stack_cond_call")
9768 ("split_stack_cond_call_<mode>"): Remove.
9769 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9771 * config/s390/s390.c (s390_output_split_stack_data): New function.
9772 (s390_expand_split_stack_prologue): Use the merged expander.
9774 2019-10-09 Martin Sebor <msebor@redhat.com>
9776 PR tree-optimization/90879
9777 * builtins.c (check_access): Avoid using maxbound when null.
9778 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9779 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9780 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9782 (get_range_strlen): Overwrite initial maxbound when non-null.
9783 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9785 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9786 (used_only_for_zero_equality): New function.
9787 (handle_builtin_memcmp): Call it.
9788 (determine_min_objsize): Return an integer instead of tree.
9789 (get_len_or_size, strxcmp_eqz_result): New functions.
9790 (maybe_warn_pointless_strcmp): New function.
9791 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9792 between a longer string and a smaller array.
9793 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9795 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9797 * config/darwin.c (darwin_override_options): Make the check for
9798 Objective-C ABI version more specific for 64bit code.
9800 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9802 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9803 indicate that the new symbol is an indirection.
9804 (machopic_indirect_call_target): Likewise.
9805 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9806 (MACHO_SYMBOL_INDIRECTION_P): New.
9807 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9809 2019-10-08 Jason Merrill <jason@redhat.com>
9811 * doc/invoke.texi: Document -fconcepts-ts.
9813 2019-10-09 Richard Biener <rguenther@suse.de>
9815 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9816 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9818 2019-10-08 Richard Biener <rguenther@suse.de>
9820 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9821 (_stmt_vec_info::force_single_cycle): Likewise.
9822 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9823 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9824 * tree-vect-loop.c (vectorizable_reduction): Set
9825 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9826 (vect_transform_reduction): Use them to remove redundant code.
9827 (vect_transform_cycle_phi): Likewise.
9829 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9831 PR tree-optimization/90836
9832 * match.pd (popcount): New pattern.
9834 2019-10-08 Martin Sebor <msebor@redhat.com>
9838 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9839 again once nbytes has been set. Set the access size when not yet set.
9841 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9843 * config/darwin.c (machopic_select_section): Remove dead code for
9844 old Objective-C section selection method, replace with unreachable.
9846 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9848 * config/darwin.c (machopic_indirect_data_reference): Check for
9849 required indirections before making direct access to defined
9851 (machopic_output_indirection): Place the indirected pointes for
9852 required indirections into the non-lazy symbol pointers section.
9853 (darwin_encode_section_info):
9854 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9855 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9857 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9860 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9861 instead of ALL_SSE_REG to check if function call preserves some
9862 256-bit SSE registers.
9864 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9866 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9867 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9868 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9870 2019-10-08 Richard Biener <rguenther@suse.de>
9872 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9873 (_stmt_vec_info::is_reduc_info): Add.
9874 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9875 (vectorizable_condition): Remove.
9876 (vectorizable_shift): Likewise.
9877 (vectorizable_reduction): Adjust.
9878 (info_for_reduction): New.
9879 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9880 (vect_analyze_scalar_cycles_1): ... here.
9881 (vect_analyze_loop_operations): Adjust.
9882 (needs_fold_left_reduction_p): Simplify for single caller.
9883 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9884 for nested cycles not part of double reductions.
9885 (vect_model_reduction_cost): Pass in the reduction type.
9886 (info_for_reduction): New function.
9887 (vect_create_epilog_for_reduction): Use it, access reduction
9888 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9889 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9890 (vectorize_fold_left_reduction): Remove pointless assert.
9891 (vectorizable_reduction): Analyze the full reduction when
9892 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9893 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9894 stmt code-generation to vectorizable_* in most cases. Verify
9895 code-generation only for cases handled by
9896 vect_transform_reductuon.
9897 (vect_transform_reduction): Use info_for_reduction to get at
9898 reduction meta. Simplify.
9899 (vect_transform_cycle_phi): Likewise.
9900 (vectorizable_live_operation): Likewise.
9901 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9902 at the PHI node for STMT_VINFO_REDUC_TYPE.
9903 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9904 longer necessary code.
9905 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9906 (vectorizable_condition): Likewise. Get at reduction related
9907 info via info_for_reduction.
9908 (vect_analyze_stmt): Adjust.
9909 (vect_transform_stmt): Likewise.
9910 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9911 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9913 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9915 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9916 -fno-fp-int-builtin-inexact default for C2X.
9918 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9919 Richard Biener <rguenther@suse.de>
9921 PR tree-optimization/91532
9922 * tree-if-conv.c: Include tree-ssa-dse.h.
9923 (ifcvt_local_dce): Change param from bb to loop,
9924 and call dse_classify_store.
9925 (tree_if_conversion): Pass loop instead of loop->header as arg
9927 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9928 (delete_dead_or_redundant_assignment): Remove static qualifier from
9929 declaration, and add prototype in tree-ssa-dse.h.
9930 (dse_store_status): Move to tree-ssa-dse.h.
9931 (dse_classify_store): Remove static qualifier and add new tree param
9932 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9933 * tree-ssa-dse.h: New header.
9935 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9937 * config/darwin.c (machopic_output_indirection): Don't put
9938 hidden symbol indirections into the .data section, use the
9939 non-lazy symbol pointers section as normal.
9940 (darwin_encode_section_info): Record if a symbol is hidden.
9941 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9942 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9944 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9946 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9947 predicates instead of accessing bits directly.
9948 (machopic_indirect_call_target): Likewise.
9949 (machopic_output_indirection): Likewise.
9950 (darwin_encode_section_info): Improve description. Use renamed
9951 symbol flags. Use predicate macros for variables and functions.
9953 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9954 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9955 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9956 (MACHO_SYMBOL_VARIABLE_P): New.
9957 (MACHO_SYMBOL_DEFINED_P):New.
9958 (MACHO_SYMBOL_STATIC_P): New.
9959 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9960 (SYMBOL_FLAG_SUBT_DEP): New.
9961 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9963 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9965 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9966 (msp430_expand_epilogue): Likewise.
9967 * config/msp430/predicates.md: Likewise.
9968 * config/msp430/msp430.md: Likewise.
9969 Replace blocks of 8 spaces with tabs.
9971 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9973 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9974 * config/msp430/msp430.c (msp430_split_addsi): New.
9975 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9976 a block of C code for splitting addsi.
9978 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9980 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9981 ix86_expand_rounddf_32): Reorder functions.
9982 * config/i386/i386-protos.h: Update.
9984 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9986 * config.in: Regenerate.
9987 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9988 Add new "Yx" constraint.
9989 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9991 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9993 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9994 code/data region to be selected in the small memory model.
9995 (msp430_section_attr): Don't warn if the "section" and "lower"
9996 attributes are used together.
9997 (msp430_handle_generic_attribute): Likewise.
9998 (msp430_var_in_low_mem): New function.
9999 (TARGET_ENCODE_SECTION_INFO): Define.
10000 (msp430_encode_section_info): New function.
10001 (gen_prefix): Return early in the small memory model.
10002 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10003 ".lower" prefix if -m{code,data}-region=lower have been passed.
10004 (msp430_output_aligned_decl_common): Emit common symbols when
10005 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10007 (TARGET_ASM_FILE_END): Define.
10008 (msp430_file_end): New function.
10009 (msp430_do_not_relax_short_jumps): Allow relaxation when
10010 function will be in the lower region.
10011 (msp430_op_not_in_high_mem): New function.
10012 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10013 the 'X' operand selector.
10014 Clarify comment for 'x' operand selector.
10015 * config/msp430/msp430.h (LINK_SPEC): Propagate
10016 -m{code,data}-region to the linker via spec function
10017 msp430_propagate_region_opt.
10018 (msp430_propagate_region_opt): New prototype.
10019 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10020 (SYMBOL_FLAG_LOW_MEM): Define.
10021 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10023 (zero_extendqihi2): Fix operand number used by "%X" selector.
10024 (zero_extendqisi2): Likewise.
10025 (zero_extendhisi2): Likewise.
10026 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10028 (addqi3): Likewise.
10029 (addhi3): Likewise.
10030 (addsi3): Likewise.
10031 (addhi3_cy): Likewise.
10032 (addchi4_cy): Likewise.
10033 (subqi3): Likewise.
10034 (subhi3): Likewise.
10035 (subsi3): Likewise.
10036 (bic<mode>3): Likewise.
10037 (and<mode>3): Likewise.
10038 (ior<mode>3): Likewise.
10039 (xor<mode>3): Likewise.
10040 (slli_1): Add missing "%X" operand selector.
10041 (slll_1): Likewise.
10042 (slll_2): Likewise.
10043 (srai_1): Likewise.
10044 (sral_1): Likewise.
10045 (sral_2): Likewise.
10046 (srli_1): Likewise.
10047 (srll_1): Likewise.
10048 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10050 (cbranchhi4_real): Likewise.
10051 (cbranchqi4_reversed): Likewise.
10052 (cbranchhi4_reversed): Likewise.
10053 (*bitbranch<mode>4): Likewise.
10054 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10055 * config/msp430/msp430.opt (mcode-region=): Set default to
10056 MSP430_REGION_LOWER. Improve docstring.
10057 (mdata-region=): Likewise.
10058 (muse-lower-region-prefix): New option.
10059 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10060 mdata-region=none multilib.
10061 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10062 mdata-region=none multilib.
10063 MULTILIB_EXCEPTIONS: Remove.
10064 MULTILIB_REQUIRED: Define.
10065 * configure: Regenerate.
10066 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10067 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10068 * doc/extend.texi: Clarify comment for {upper,lower,either}
10069 function attributes.
10070 Add separate description for "lower" variable attribute.
10072 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10075 * optabs-tree.c (vcond_icode_p): New function.
10076 (vcond_eq_icode_p): Likewise.
10077 (expand_vec_cond_expr_p): Use vcond_icode_p and
10079 * optabs.c (can_vcond_compare_p): New function.
10080 * optabs.h (can_vcond_compare_p): Likewise.
10082 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10085 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10086 caller passes a non-trapping condition.
10087 (is_gimple_condexpr): Allow trapping conditions.
10088 (is_gimple_condexpr_1): New helper function.
10089 (is_gimple_condexpr_for_cond): New function, acts like old
10090 is_gimple_condexpr.
10091 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10092 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10093 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10094 * gimplify.c (gimplify_cond_expr): Use
10095 is_gimple_condexpr_for_cond.
10096 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10097 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10099 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10100 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10101 is_gimple_condexpr_for_cond, remove pointless tmp check
10102 (forward_propagate_into_cond): Remove pointless tmp check.
10104 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10106 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10107 match that of other gsi_next_* functions. Adjust the comment.
10108 (gsi_start_nonvirtual_phis): New function.
10109 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10110 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10112 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10114 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10115 setjmp situation here. Fix a verb's ending: "the exact variables or
10116 elements for which there are warnings depends" -> "... depend".
10118 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10120 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10122 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10124 * ipa-prop.c (ipa_vr::nonzero_p): New.
10125 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10127 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10128 * tree-vrp.c (range_has_numeric_bounds_p): New.
10129 (range_int_cst_p): Use range_has_numeric_bounds_p.
10130 (get_range_op_handler): New.
10131 (supported_types_p): New.
10132 (defined_ranges_p): New.
10133 (drop_undefines_to_varying): New.
10134 (range_fold_binary_symbolics_p): New.
10135 (range_fold_unary_symbolics_p): New.
10136 (range_fold_unary_expr): Extract out into above functions.
10137 (range_fold_binary_expr): Same.
10138 (value_range_base::normalize_addresses): New.
10139 (value_range_base::normalize_symbolics): Normalize addresses.
10140 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10142 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10144 * tree-vrp.c (value_range_base::singleton_p): Use
10145 value_range_base::num_pairs instead of vrp_val_is* to check
10146 if a range has one sub-range.
10148 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10150 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10151 DEF is not a true earlyclobber but is tied to a specific input
10152 operand, and so is effectively earlyclobber wrt inputs that have
10154 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10156 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10158 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10159 (pod_mode): Mark operators likewise.
10160 (scalar_int_mode): Mark non-default constructors and
10161 operators with CONSTEXPR.
10162 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10163 (fixed_size_mode): Likewise.
10165 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10168 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10169 and wrap the unspec_volatile in a parallel.
10170 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10171 the unspec_volatile.
10172 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10173 unspec_volatile to be wrapped in a parallel.
10174 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10175 (ix86_add_reg_usage_to_vzerouppers): New functions.
10176 (rest_of_handle_insert_vzeroupper): Use them to add register
10177 usage information to the vzeroupper instructions.
10179 2019-10-07 Richard Biener <rguenther@suse.de>
10181 PR tree-optimization/91975
10182 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10185 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10187 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10188 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10190 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10192 * config/darwin.c (darwin_override_options): Adjust objective-c
10193 ABI version error messages to avoid punctuation and contracted
10196 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10198 * ipa-inline.c: Fix type; compute size rather than self_size
10199 for size of caller function.
10201 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10204 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10205 choose const_data section for constants with relocations.
10206 (machopic_select_section): Pass relocation flag to
10207 darwin_rodata_section ().
10209 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10211 PR tree-optimization/91734
10212 * generic-match-head.c: Include fold-const-call.h.
10213 * match.pd (sqrt(x) cmp c): Check the boundary value and
10214 in case inexact computation of c*c affects comparison of the boundary,
10215 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10216 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10217 for -frounding-math. For c2, try the next smaller or larger floating
10218 point constant depending on comparison code and if it has the same
10219 sqrt as c2, use it instead of c2.
10221 2019-10-04 Martin Sebor <msebor@redhat.com>
10223 PR middle-end/91977
10224 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10225 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10226 uninitialized objects.
10228 2019-10-04 Martin Sebor <msebor@redhat.com>
10230 * builtins.c (compute_objsize): Add an argument.
10231 * tree-object-size.c (addr_object_size): Same.
10232 (compute_builtin_object_size): Same.
10233 * tree-object-size.h (compute_builtin_object): Same.
10235 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10237 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10239 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10241 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10243 2019-10-04 Martin Jambor <mjambor@suse.cz>
10245 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10246 fntype when switching to calling memcpy instead of memset.
10248 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10250 * hash-table.h (hash_table::empty_slow): Don't assign
10251 size_t values to int variables.
10253 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10255 * expr.c (convert_mode_scalar): Remove shadowing local var.
10256 (emit_block_move): Rename local vars.
10257 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10258 (emit_push_insn): Rename local vars.
10259 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10260 shadowing local vars.
10261 (store_constructor): Remove shadowing local vars. Rename local var.
10262 (store_field, expand_cond_expr_using_cmove,
10263 expand_expr_real_2): Remove shadowing local vars.
10264 (expand_expr_real_1,
10265 do_store_flag): Remove shadowing local vars. Rename local vars.
10267 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10269 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10271 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10273 * genmatch.c (commutate): Rename local var.
10274 (lower_cond): Reuse local var.
10275 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10276 dt_operand::gen, dt_operand::gen_gimple_expr,
10277 dt_simplify::gen): Add a param. Rename generated vars.
10278 (decision_tree::insert_operand,
10279 (capture_info::walk_match, capture_info::walk_result,
10280 capture_info::walk_c_expr): Rename local vars.
10281 (expr::gen_transform): Rename generated vars.
10282 Use snprintf. Rename local vars.
10283 (capture::gen_transform, dt_operand::get_name,
10284 dt_operand::gen_opname): Rename generated vars.
10285 (write_predicate): Adjust call to gen_kids.
10286 (parser::get_internal_capture_id): Rename generated vars.
10287 (parser::parse_expr): Rename local vars.
10288 (parser::parse_if): Remove local var.
10289 (parser::parse_pattern, add_operator): Rename local vars.
10291 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10293 * builtins.def (DEF_C2X_BUILTIN): New macro.
10294 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10295 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10296 (strndup): Use DEF_C2X_BUILTIN.
10297 * coretypes.h (enum function_class): Add function_c2x_misc.
10299 2019-10-04 Maya Rashish <coypu@sdf.org>
10301 * ira-color.c (update_costs_from_allocno): Call
10302 ira_init_register_move_cost_if_necessary.
10304 2019-10-04 Jeff Law <law@redhat.com>
10306 * config/h8300/h8300.md (cpymemsi): Disable.
10307 (movmd, movmd_internal_<mode>, movstr, movsd):
10308 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10309 (movmd splitter, movsd splitter): Likewise.
10311 * range-op.cc (range_tests): Avoid two tests when ints and
10312 shorts are the same size.
10314 2019-10-04 Richard Biener <rguenther@suse.de>
10317 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10320 2019-10-04 Richard Biener <rguenther@suse.de>
10322 PR tree-optimization/91982
10323 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10324 against EXTRACT_LAST_REDUCTION.
10325 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10327 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10329 * range-op.o (value_range_from_overflowed_bounds): Rename from
10330 adjust_overflow_bound.
10331 (value_range_with_overflow): Rename from
10332 create_range_with_overflow.
10333 (create_possibly_reversed_range): Adjusted for above renames.
10334 (operator_*::wi_fold): Same.
10335 (cross_product_operator::wi_cross_productor): Same.
10337 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10339 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10340 -Wshadow=compatible-local): Fix description.
10341 Add an example where -Wshadow=compatible-local does not
10344 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10346 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10348 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10349 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10351 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10353 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10354 can_move_by_pieces issue.
10356 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10359 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10360 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10361 is available and the user has not set one on the command line.
10363 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10366 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10367 instead of REGNO equality check on addr.reg.
10369 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10371 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10372 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10373 * doc/invoke.texi (inline-heuristics-hint-percent,
10374 inline-heuristics-hint-percent-O2): Document.
10375 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10377 (can_inline_edge_by_limits_p): Use it.
10379 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10381 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10382 to print CONST_DOUBLEs.
10384 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10386 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10387 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10388 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10390 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10392 * Makefile.in (OBJS): Add range.o and range-op.o.
10393 Remove wide-int-range.o.
10394 * function-tests.c (test_ranges): New.
10395 (function_tests_c_tests): Call test_ranges.
10396 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10397 range_fold_unary_expr instead of extract_range_from_unary_expr.
10398 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10399 * range-op.cc: New file.
10400 * range-op.h: New file.
10401 * range.cc: New file.
10402 * range.h: New file.
10403 * selftest.h (range_tests): New prototype.
10404 * ssa.h: Include range.h.
10405 * tree-vrp.c (value_range_base::value_range_base): New
10407 (value_range_base::singleton_p): Do not call
10408 ranges_from_anti_range until sure we will need to.
10409 (value_range_base::type): Rename gcc_assert to
10410 gcc_checking_assert.
10411 (vrp_val_is_max): New argument.
10412 (vrp_val_is_min): Same.
10413 (wide_int_range_set_zero_nonzero_bits): Move from
10415 (extract_range_into_wide_ints): Remove.
10416 (extract_range_from_multiplicative_op): Remove.
10417 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10418 from extract_range_from_binary_expr.
10419 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10420 from extract_range_from_binary_expr.
10421 (extract_range_from_binary_expr): Remove.
10422 (normalize_for_range_ops): New.
10423 (range_fold_binary_expr): New.
10424 (range_fold_unary_expr): New.
10425 (value_range_base::num_pairs): New.
10426 (value_range_base::lower_bound): New.
10427 (value_range_base::upper_bound): New.
10428 (value_range_base::upper_bound): New.
10429 (value_range_base::contains_p): New.
10430 (value_range_base::invert): New.
10431 (value_range_base::union_): New.
10432 (value_range_base::intersect): New.
10433 (range_compatible_p): New.
10434 (value_range_base::operator==): New.
10435 (determine_value_range_1): Call range_fold_*expr instead of
10436 extract_range_from_*expr.
10437 * tree-vrp.h (class value_range_base): Add new constructors.
10438 Add methods for union_, intersect, operator==, contains_p,
10439 num_pairs, lower_bound, upper_bound, invert.
10440 (vrp_val_is_min): Add handle_pointers argument.
10441 (vrp_val_is_max): Same.
10442 (extract_range_from_unary_expr): Remove.
10443 (extract_range_from_binary_expr): Remove.
10444 (range_fold_unary_expr): New.
10445 (range_fold_binary_expr): New.
10446 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10447 range_fold_binary_expr instead of extract_range_from_binary_expr.
10448 (vr_values::extract_range_basic): Same.
10449 (vr_values::extract_range_from_unary_expr): Call
10450 range_fold_unary_expr instead of extract_range_from_unary_expr.
10451 * wide-int-range.cc: Remove.
10452 * wide-int-range.h: Remove.
10454 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10456 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10457 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10458 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10459 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10462 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10464 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10465 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10466 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10467 * glimits.h: Likewise.
10469 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10471 PR rtl-optimization/91976
10472 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10473 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10474 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10476 2019-10-02 Martin Sebor <msebor@redhat.com>
10478 PR tree-optimization/80936
10479 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10481 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10483 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10484 instead of reg_class_contents[ALL_REGS].
10486 2019-09-30 Jason Merrill <jason@redhat.com>
10488 Add some hash_map_safe_* functions like vec_safe_*.
10489 * hash-map.h (default_hash_map_size): New variable.
10490 (create_ggc): Use it as default argument.
10491 (hash_map_maybe_create, hash_map_safe_get)
10492 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10494 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10496 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10497 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10498 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10499 (can_inline_edge_by_limits_p): Use it.
10500 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10501 (want_inline_small_function_p): Use O2 bounds.
10502 (edge_badness): LIkewise.
10503 * opts.c (default_options): Add OPT_finline_functions.
10504 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10505 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10507 * doc/invoke.texi (-finline-functions): Update documentation.
10508 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10509 inline-min-speedup-O2): Document.
10510 (early-inlining-insns-O2): Simplify docs.
10512 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10514 PR rtl-optimization/87047
10515 * ifcvt.c (average_cost): New static function. Use it...
10516 (noce_process_if_block): ... here.
10518 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10520 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10521 * config/rs6000/rs6000-string.c (expand_block_move): Add
10522 might_overlap parm.
10523 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10524 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10526 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10528 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10529 (expand_builtin_memcpy): Use might_overlap parm.
10530 (expand_builtin_mempcpy_args): Use might_overlap parm.
10531 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10532 (expand_builtin_memory_copy_args): Add might_overlap parm.
10533 * expr.c (emit_block_move_via_cpymem): Rename to
10534 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10535 or movmem optab as appropriate.
10536 (emit_block_move_hints): Add might_overlap parm, do the right
10537 thing for might_overlap==true.
10538 * expr.h (emit_block_move_hints): Update prototype.
10540 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10542 * tree-eh.h (unsplit_eh_edges): Declare.
10543 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10544 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10545 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10546 (struct store_immediate_info): Add lp_nr field.
10547 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10548 initialize lp_nr with it.
10549 (struct merged_store_group): Add lp_nr and only_constants fields.
10550 (merged_store_group::merged_store_group): Initialize them.
10551 (merged_store_group::can_be_merged_into): Deal with them.
10552 (pass_store_merging): Rename terminate_and_release_chain into
10553 terminate_and_process_chain.
10554 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10555 renaming and remove useless assertions.
10556 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10557 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10558 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10559 instead of always recomputing it and compare lp_nr.
10560 (imm_store_chain_info::output_merged_store): If the group is in an
10561 active EH region, register new stores if they can throw. Moreover,
10562 if the insertion has created new basic blocks, adjust the PHI nodes
10563 of the post landing pad.
10564 (imm_store_chain_info::output_merged_stores): If the original stores
10565 are in an active EH region, deregister them.
10566 (lhs_valid_for_store_merging_p): Prettify.
10567 (adjust_bit_pos): New function extracted from...
10568 (mem_valid_for_store_merging): ...here. Use it for the base address
10569 and also for the offset if it is the addition of a constant.
10570 (lp_nr_for_store): New function.
10571 (pass_store_merging::process_store): Change return type to bool.
10572 Call lp_nr_for_store to initialize the store info. Propagate the
10573 return status of various called functions to the return value.
10574 (store_valid_for_store_merging_p): New predicate.
10575 (enum basic_block_status): New enumeration.
10576 (get_status_for_store_merging): New function.
10577 (pass_store_merging::execute): If the function can throw and catch
10578 non-call exceptions, unsplit the EH edges on entry and clean up the
10579 CFG on exit if something changed. Call get_status_for_store_merging
10580 for every basic block and keep the chains open across basic blocks
10581 when possible. Terminate and process open chains at the end, if any.
10583 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10585 * reginfo.c (globalize_reg): Fix shadowed variable in
10586 function_abis walk.
10588 2019-10-02 Martin Jambor <mjambor@suse.cz>
10590 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10591 do not compute some stuff when set.
10592 (cgraph_node::create_edge): Likewise.
10593 (cgraph_node::create_indirect_edge): Renamed last parameter to
10594 coning_p and flipped its meaning, don't even calculate
10595 inline_failed when set.
10596 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10597 (symbol_table::::create_edge): Likewise.
10598 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10600 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10601 call graph edge creating functions.
10603 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10606 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10609 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10611 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10613 2019-10-02 Richard Biener <rguenther@suse.de>
10615 * tree-vectorizer.h (vect_transform_reduction): Declare.
10616 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10617 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10618 stmt transform to ...
10619 (vect_transform_reduction): ... this.
10621 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10623 * omp-low.c (lower_omp_target): Dereference optional argument
10624 to work with the right pointer.
10626 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10628 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10630 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10631 * langhooks.h (omp_is_optional_argument): New hook.
10632 * omp-general.c (omp_is_optional_argument): New.
10633 * omp-general.h (omp_is_optional_argument): New declaration.
10634 * omp-low.c (lower_omp_target): Create temporary for received value
10635 and take the address for new_var if the original variable was a
10636 DECL_BY_REFERENCE. Use size of referenced object when a
10637 pass-by-reference optional argument used as argument to firstprivate.
10639 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10641 PR tree-optimization/91940
10642 * tree-vect-patterns.c: Include tree-vector-builder.h and
10643 vec-perm-indices.h.
10644 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10645 unpromoting the argument back to uint16_t, or by converting into a
10646 rotate, or into shifts plus ior.
10648 2019-10-02 Richard Biener <rguenther@suse.de>
10650 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10652 (vect_transform_cycle_phi): Declare.
10653 * tree-vect-stmts.c (vect_transform_stmt): Call
10654 vect_transform_cycle_phi.
10655 * tree-vect-loop.c (vectorizable_reduction): Split out
10656 PHI transformation stage to ...
10657 (vect_transform_cycle_phi): ... here.
10659 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10661 PR middle-end/91957
10662 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10663 eliminable registers.
10664 (make_hard_regno_live): Likewise, and don't make them live.
10666 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10668 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10669 Call pp_emit_prefix.
10670 (layout::print_source_line): Likewise.
10671 (layout::start_annotation_line): Likewise.
10672 (diagnostic_show_locus): Remove call to temporarily clear the
10674 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10675 interaction of pp_set_prefix with rulers and fix-it hints.
10676 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10677 prefix when calling diagnostic_show_locus, rather than destroying
10679 (print_parseable_fixits): Temporarily clear prefix.
10680 * pretty-print.c (pp_format): Save and restore line_length, rather
10681 than assuming it is zero.
10682 (pp_output_formatted_text): Remove assertion that line_length is
10685 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10687 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10689 (nonoverlapping_refs_since_match_p): ... this; handle also
10691 (alias_stats): Update stats.
10692 (dump_alias_stats): Likewise.
10693 (cheap_array_ref_low_bound): New function.
10694 (aliasing_matching_component_refs_p): Add partial_overlap
10696 pass it to nonoverlapping_refs_since_match_p.
10697 (aliasing_component_refs_walk): Update call of
10698 aliasing_matching_component_refs_p
10699 (nonoverlapping_array_refs_p): New function.
10700 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10701 indirect_refs_may_alias_p): Update calls of
10702 nonoverlapping_refs_since_match_p.
10704 2019-10-01 Maya Rashish <coypu@sdf.org>
10707 * ira-color.c (allocno_copy_cost_saving): Call
10708 ira_init_register_move_cost_if_necessary.
10710 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10712 * Makefile.in (gnat_install_lib): New variable.
10713 * configure.ac: Substitute it.
10714 * configure: Regenerate.
10716 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10719 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10720 is matched with non-C++ type
10722 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10724 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10727 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10729 * doc/invoke.texi (early-inlining-insns-O2): Document.
10730 (early-inlining-insns): Update.
10731 * params.def (early-inlining-insns-O2): New bound.
10732 (early-inlining-insns): Update docs.
10733 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10735 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10738 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10739 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10740 a memory access insn.
10742 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10744 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10747 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10750 * config/s390/s390.c (s390_expand_vec_compare): Use
10751 gen_vec_cmpordered and gen_vec_cmpunordered.
10752 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10753 vec_unordered): Delete.
10754 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10755 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10756 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10757 (vec_cmp<code>): Generic dispatcher.
10759 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10762 * config/s390/vector.md (V_HW): Add V1TI in order to make
10763 vcond$a$b generate vcondv1tiv1tf.
10765 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10767 PR rtl-optimization/91948
10768 * ira-build.c (ira_create_allocno): Initialize
10769 ALLOCNO_CROSSED_CALLS_ABIS.
10770 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10771 than regno to ira_need_caller_save_p.
10773 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10775 * config/i386/i386-options.c
10776 (ix86_recompute_optlev_based_flags): New, moved out of...
10777 (ix86_option_override_internal): ... this. Call it.
10778 (ix86_override_options_after_change): Call it here too.
10781 * dwarf2out.c (override_type_for_decl_p): New.
10782 (gen_variable_die): Use it.
10784 2019-10-01 Richard Biener <rguenther@suse.de>
10786 * tree-vect-loop.c (vectorizable_reduction): Move variables
10787 to where they are used.
10789 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10791 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10792 (build_def_use): Use PC instead of CC0 in a comment.
10794 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10796 * rtl.def (CLOBBER_HIGH): Delete.
10797 * doc/rtl.texi (clobber_high): Remove documentation.
10798 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10799 (reg_is_clobbered_by_clobber_high): Delete.
10800 (gen_hard_reg_clobber_high): Likewise.
10801 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10802 * cfgexpand.c (expand_gimple_stmt): Likewise.
10803 * combine-stack-adj.c (single_set_for_csa): Likewise.
10804 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10805 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10806 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10807 * cse.c (invalidate_reg): Remove clobber_high parameter.
10808 (invalidate): Update call accordingly.
10809 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10810 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10811 (count_reg_usage, insn_live_p): Likewise.
10812 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10813 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10814 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10815 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10816 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10817 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10818 (mark_nonreg_stores_2): Likewise.
10819 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10820 (df_get_call_refs): Likewise.
10821 * dwarf2out.c (mem_loc_descriptor): Likewise.
10822 * emit-rtl.c (verify_rtx_sharing): Likewise.
10823 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10824 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10825 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10826 * genemit.c (gen_exp, gen_insn): Likewise.
10827 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10828 * haifa-sched.c (haifa_classify_rtx): Likewise.
10829 * ira-build.c (create_insn_allocnos): Likewise.
10830 * ira-costs.c (scan_one_insn): Likewise.
10831 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10832 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10833 * jump.c (mark_jump_label_1): Likewise.
10834 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10835 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10837 (mark_not_eliminable): Likewise.
10838 * lra-lives.c (process_bb_lives): Likewise.
10839 * lra.c (new_insn_reg): Remove clobber_high parameter.
10840 (collect_non_operand_hard_regs): Likewise. Update call to new
10841 insn_reg. Remove CLOBBER_HIGH handling.
10842 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10843 to collect_non_operand_hard_regs.
10844 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10845 Update call to new_insn_reg.
10846 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10847 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10848 (move2add_note_store): Likewise.
10849 * print-rtl.c (print_pattern): Likewise.
10850 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10851 (if_test_bypass_p): Likewise.
10852 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10853 * reginfo.c (reg_scan_mark_refs): Likewise.
10854 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10855 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10856 (forget_old_reloads_1): Likewise.
10857 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10858 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10859 (dbr_schedule): Likewise.
10860 * resource.c (update_live_status, mark_referenced_resources)
10861 (mark_set_resources): Likewise.
10862 * rtl.c (copy_rtx): Likewise.
10863 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10864 (note_pattern_stores): Likewise.
10865 (reg_is_clobbered_by_clobber_high): Delete.
10866 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10867 CLOBBER_HIGH handling.
10869 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10872 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10873 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10874 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10875 Handle ARM_PCS_TLSDESC.
10876 (aarch64_tlsdesc_abi_id): New function.
10877 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10878 rtx instead of a list of clobbers and clobber_highs.
10879 (tlsdesc_small_<mode>): Update accordingly.
10881 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10883 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10884 extra callee_abi argument.
10885 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10886 Insert a CALLEE_ABI unspec into the call pattern as the second
10887 element in the PARALLEL.
10888 (aarch64_simd_call_p): Delete.
10889 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10890 the new CALLEE_ABI element of the PARALLEL.
10891 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10892 from the function type, if given.
10893 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10894 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10895 when passed the function_arg_info end marker.
10896 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10897 final argument of gen_sibcall.
10898 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10899 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10900 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10902 (call_value): Likewise operand 3.
10903 (sibcall): Likewise operand 2. Place the unspec before rather than
10905 (sibcall_value): Likewise operand 3.
10906 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10907 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10908 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10909 constraint strings.
10910 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10912 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10914 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10915 choose_hard_reg_mode.
10916 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10918 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10920 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10921 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10922 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10924 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10926 * diagnostic-show-locus.c (line_label::line_label): Initialize
10928 (line_label::comparator): Reverse the sort order by m_state_idx,
10929 so that when the list is walked backwards the labels appear in
10930 order of insertion into the rich_location.
10931 (line_label::m_has_vbar): New field.
10932 (layout::print_any_labels): When dealing with multiple labels at
10933 the same line and column, only print vertical bars for the one
10934 with the highest label_line.
10935 (selftest::test_one_liner_labels): Update test for multiple labels
10936 to expect the labels to be in the order of insertion into the
10937 rich_location. Add a test for many such labels, where the column
10938 numbers are out-of-order relative to the insertion order.
10940 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10942 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10943 (ix86_frame::expensive_count): Likewise.
10944 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10945 of use_fast_prologue_epilogue robust against incidental changes
10948 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10951 * config/s390/vector.md (vec_unordered<mode>): Call
10952 gen_vec_ordered<mode>.
10954 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10956 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10957 New pattern for ASRD.
10958 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10959 * internal-fn.def (IFN_DIV_POW2): New internal function.
10960 * optabs.def (sdiv_pow2_optab): New optab.
10961 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10962 Modify pattern to support new operation.
10963 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10964 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10965 Document new target selector.
10967 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10969 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10970 to test whether we're compiling a vector PCS function and to test
10971 whether the function needs to save a particular register.
10972 Remove the vector PCS handling of df_set_regs_ever_live.
10973 (aarch64_components_for_bb): Use crtl->abi to test whether
10974 the function needs to save a particular register.
10975 (aarch64_process_components): Use crtl->abi to test whether
10976 we're compiling a vector PCS function.
10977 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10978 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10980 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10982 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10984 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10985 whether the block calls a function that clobbers more registers
10986 than the current function is allowed to.
10987 (aarch64_use_simple_return_insn_p): Delete.
10988 * config/aarch64/aarch64.md (simple_return): Remove condition.
10990 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10992 * function-abi.h (function_abi_aggregator): New class.
10993 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10995 * ira.c (update_equiv_regs_prescan): New function. Call
10996 set_paradoxical_subreg here rather than...
10997 (update_equiv_regs): ...here.
10998 (ira): Call update_equiv_regs_prescan.
11000 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11002 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11004 (call_used_or_fixed_regs): Likewise.
11005 (call_used_or_fixed_reg_p): Likewise.
11006 * reginfo.c (regs_invalidated_by_call): New macro.
11008 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11010 * shrink-wrap.c: Include function-abi.h.
11011 (requires_stack_frame_p): Use crtl->abi to test whether the
11012 current function can use a register without saving it first.
11014 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11016 * sel-sched-ir.h (_def::crosses_call): Replace with...
11017 (_def::crossed_call_abis): ..this new field.
11018 (def_list_add): Take a mask of ABIs instead of a crosses_call
11020 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11021 of _def accordingly.
11022 * sel-sched.c: Include function-abi.h.
11023 (hard_regs_data::regs_for_call_clobbered): Delete.
11024 (reg_rename::crosses_call): Replace with...
11025 (reg_rename::crossed_call_abis): ...this new field.
11026 (fur_static_params::crosses_call): Replace with...
11027 (fur_static_params::crossed_call_abis): ...this new field.
11028 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11029 (init_hard_regs_data): Use crtl->abi to test which registers the
11030 current function would need to save before it uses them.
11031 (mark_unavailable_hard_regs): Update handling of call-clobbered
11032 registers, using call_clobbers_in_region to find out which registers
11033 might be call-clobbered (but without taking -fipa-ra into account
11034 for now). Remove separate handling of partially call-clobbered
11036 (verify_target_availability): Use crossed_call_abis instead of
11038 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11039 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11041 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11043 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11044 function to test whether a register is fully or partly clobbered.
11046 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11048 * rtlanal.c: Include function-abi.h.
11049 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11050 function and clobbers_reg_p to test whether the register
11052 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11053 to get the ABI of the called function and full_reg_clobbers to
11054 get the set of fully call-clobbered registers. Warn about the
11055 pitfalls of using this mode.
11057 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11059 * reload.c: Include function-abi.h.
11060 (find_equiv_reg): Use clobbers_reg_p to test whether either
11061 of the equivalent registers is clobbered by a call.
11062 * reload1.c: Include function-abi.h.
11063 (reg_reloaded_call_part_clobbered): Delete.
11064 (reload): Use crtl->abi to test which registers would need
11065 saving in the prologue before use.
11066 (find_reg): Likewise.
11067 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11068 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11069 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11071 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11073 * regrename.h (du_head::call_clobber_mask): New field.
11074 (du_head::need_caller_save_reg): Replace with...
11075 (du_head::call_abis): ...this new field.
11076 * regrename.c: Include function-abi.h.
11077 (call_clobbered_in_chain_p): New function.
11078 (check_new_reg_p): Use crtl->abi when deciding whether a register
11079 is free for use after RA. Use call_clobbered_in_chain_p to test
11080 whether a candidate register would be clobbered by a call.
11081 (find_rename_reg): Don't add call-clobber conflicts here.
11082 (rename_chains): Check call_abis instead of need_caller_save_reg.
11083 (merge_chains): Update for changes to du_head.
11084 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11085 target. Record the ABI identifier in call_abis and the set of
11086 fully or partially clobbered registers in call_clobber_mask.
11087 Add fully-clobbered registers to hard_conflicts here rather
11088 than in find_rename_reg.
11089 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11090 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11091 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11093 * config/c6x/c6x.c: Likewise.
11095 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11097 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11098 mode of the register when deciding whether it is no longer
11099 available after a call.
11101 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11103 * recog.c: Include function-abi.h.
11104 (peep2_find_free_register): Use crtl->abi when deciding whether
11105 a register is free for use after RA.
11107 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11109 * postreload-gcse.c: Include regs.h and function-abi.h.
11110 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11111 call insn target. Conservatively assume that partially-clobbered
11112 registers are altered.
11114 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11116 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11117 when deciding whether a register is free for use after RA.
11118 (reload_combine): Remove unnecessary use of fixed_reg_set.
11119 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11120 call insn target. Use reg_mode when testing whether a register
11121 is no longer available.
11123 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11125 * target.def (return_call_with_max_clobbers): Delete.
11126 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11127 * doc/tm.texi: Regenerate.
11128 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11129 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11130 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11131 (lra_reg::call_insn): Delete.
11132 * lra.c: Include function-abi.h.
11133 (initialize_lra_reg_info_element): Don't initialize the fields above.
11134 (lra): Use crtl->abi to test whether the current function needs to
11135 save a register in the prologue. Remove special pre-inheritance
11136 lra_create_live_ranges pass for flag_ipa_ra.
11137 * lra-assigns.c: Include function-abi.h
11138 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11139 function needs to save a register in the prologue.
11140 (lra_assign): Assert that registers aren't allocated to a
11141 conflicting register, rather than checking only for overlaps
11142 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11143 and for registers that are not live across a call.
11144 * lra-constraints.c (last_call_for_abi): New variable.
11145 (full_and_partial_call_clobbers): Likewise.
11146 (setup_next_usage_insn): Remove the register from
11147 full_and_partial_call_clobbers.
11148 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11149 whether the register needs a caller save.
11150 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11151 of call_used_or_fixed_regs.
11152 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11153 full_and_partial_call_clobbers.
11154 * lra-lives.c (check_pseudos_live_through_calls): Replace
11155 last_call_used_reg_set and call_insn arguments with an abi argument.
11156 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11157 as the set of conflicting registers.
11158 (calls_have_same_clobbers_p): Delete.
11159 (process_bb_lives): Track the ABI of the last call instead of an
11160 insn/HARD_REG_SET pair. Update calls to
11161 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11162 the set of registers that could be clobbered by an EH edge.
11163 Include partially-clobbered as well as fully-clobbered registers.
11164 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11165 * lra-remat.c: Include function-abi.h.
11166 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11167 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11168 registers and bitmap_view to combine them into dead_regs.
11169 (call_used_input_regno_present_p): Take a function_abi argument
11170 and use it to test whether a register is call-clobbered.
11171 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11172 call insn target. Update tje call to call_used_input_regno_present_p.
11173 (do_remat): Likewise.
11174 (lra_remat): Remove the initialization of call_used_regs_arr_len
11175 and call_used_regs_arr.
11177 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11179 * loop-iv.c: Include regs.h and function-abi.h.
11180 (simplify_using_initial_values): Use insn_callee_abi to get the
11181 ABI of the call insn target. Conservatively assume that
11182 partially-clobbered registers are altered.
11184 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11186 * function-abi.h (call_clobbers_in_region): Declare.
11187 (call_clobbered_in_region_p): New function.
11188 * function-abi.cc (call_clobbers_in_region): Likewise.
11189 * ira-int.h: Include function-abi.h.
11190 (ira_allocno::crossed_calls_abis): New field.
11191 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11192 (ira_need_caller_save_regs): New function.
11193 (ira_need_caller_save_p): Likewise.
11194 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11195 of call_used_or_fixed_regs.
11196 (do_reload): Use crtl->abi to test whether the current function
11197 needs to save a register in the prologue. Count registers that
11198 need to be saved rather than registers that don't.
11199 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11200 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11201 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11202 (propagate_some_info_from_allocno): Likewise.
11203 (copy_info_to_removed_store_destinations): Likewise.
11204 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11205 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11206 (ira_build): Use ira_need_caller_save_regs instead of
11207 call_used_or_fixed_regs.
11208 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11209 whether the current function would need to save a register
11211 (calculate_spill_cost): Likewise.
11212 (allocno_reload_assign): Use ira_need_caller_save_regs and
11213 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11214 * ira-conflicts.c (ira_build_conflicts): Use
11215 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11216 as the set of call-clobbered registers. Remove the
11217 call_used_or_fixed_regs mask from the calculation of
11218 temp_hard_reg_set and mask its use instead. Remove special
11219 handling of partially-clobbered registers.
11220 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11221 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11222 calculate the set of conflicting registers for calls that
11223 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11224 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11225 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11226 Use eh_edge_abi to calculate the set of registers that could
11227 be clobbered by an EH edge. Include partially-clobbered as
11228 well as fully-clobbered registers.
11230 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11232 * haifa-sched.c: Include function-abi.h.
11233 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11234 the function would need to save a register before using it.
11236 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11238 * gcse.c: Include function-abi.h.
11239 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11240 the call insn target. Invalidate partially call-clobbered
11241 registers as well as fully call-clobbered ones.
11243 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11245 * function.c (aggregate_value_p): Work out which ABI the
11246 function is using before testing which registers are at least
11247 partly preserved by a call.
11249 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11251 * early-remat.c: Include regs.h and function-abi.h.
11252 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11254 (early_remat::restrict_remat_for_unavail_regs): New function.
11255 (early_remat::restrict_remat_for_call): Likewise.
11256 (early_remat::process_block): Before calling emit_remat_insns
11257 for a previous call in the block, invalidate any candidates
11258 that would clobber call-preserved registers.
11259 (early_remat::emit_remat_insns_for_block): Likewise for the
11260 final call in a block. Do the same thing for live-in registers
11261 when calling emit_remat_insns at the head of a block.
11263 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11265 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11266 whether the current function needs to save at least part of a
11267 register before using it.
11268 (df_get_exit_block_use_set): Likewise for epilogue restores.
11270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11272 * df-problems.c: Include regs.h and function-abi.h.
11273 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11274 sparse_invalidated_by_eh and dense_invalidated_by_call to
11275 dense_invalidated_by_eh.
11276 (df_print_bb_index): Update accordingly.
11277 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11278 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11279 that are clobbered by an EH edge. Clobber partially-clobbered
11280 registers as well as fully-clobbered ones.
11281 (df_md_confluence_n): Likewise.
11282 (df_rd_local_compute): Likewise. Update for changes to
11283 df_rd_problem_data.
11284 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11285 of registers that are clobbered by an EH edge. Includde partially-
11286 clobbered registers as well as fully-clobbered ones.
11288 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11290 * cselib.c (cselib_process_insn): If we know what mode a
11291 register was set in, check whether it is clobbered in that
11292 mode by a call. Only fall back to reg_raw_mode if that fails.
11294 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11296 * cse.c: Include regs.h and function-abi.h.
11297 (invalidate_for_call): Take the call insn as an argument.
11298 Use insn_callee_abi to get the ABI of the call and invalidate
11299 partially clobbered registers as well as fully clobbered ones.
11300 (cse_insn): Update call accordingly.
11302 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11304 * combine.c: Include function-abi.h.
11305 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11306 of the target of call insns. Invalidate partially-clobbered
11307 registers as well as fully-clobbered ones.
11309 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11311 * cfgloopanal.c: Include regs.h and function-abi.h.
11312 (init_set_costs): Use default_function_abi to test whether
11313 a general register is call-clobbered.
11315 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11317 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11318 instead of the call-clobbered sets.
11320 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11322 * caller-save.c (setup_save_areas): Remove redundant |s of
11324 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11325 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11328 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11330 * rtl.h (predefined_function_abi): Declare.
11331 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11332 instead of a boolean call_save flag.
11333 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11335 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11336 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11337 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11338 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11339 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11340 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11341 * reginfo.c (init_reg_modes_target): Likewise.
11342 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11343 instead of a boolean call_save flag.
11344 * targhooks.c: Include function-abi.h.
11345 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11346 using eh_edge_abi to choose the mode.
11348 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11350 * target.def (hard_regno_call_part_clobbered): Take an ABI
11351 identifier instead of an rtx_insn.
11352 * doc/tm.texi: Regenerate.
11353 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11354 (hook_bool_uint_uint_mode_false): New function.
11355 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11356 (hook_bool_uint_uint_mode_false): New function.
11357 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11358 Take an ABI identifier instead of an rtx_insn.
11359 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11360 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11361 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11362 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11363 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11365 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11366 * cselib.c: Include function-abi.h.
11367 (cselib_process_insn): Update call to
11368 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11369 to get the appropriate ABI identifier.
11370 * function-abi.cc (predefined_function_abi::initialize): Update call
11371 to targetm.hard_regno_call_part_clobbered.
11372 * ira-conflicts.c (ira_build_conflicts): Likewise.
11373 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11374 * lra-constraints.c: Include function-abi.h.
11375 (need_for_call_save_p): Update call to
11376 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11377 to get the appropriate ABI identifier.
11378 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11379 * regcprop.c (copyprop_hardreg_forward_1): Update call
11380 to targetm.hard_regno_call_part_clobbered.
11381 * reginfo.c (choose_hard_reg_mode): Likewise.
11382 * regrename.c (check_new_reg_p): Likewise.
11383 * reload.c (find_equiv_reg): Likewise.
11384 * reload1.c (emit_reload_insns): Likewise.
11385 * sched-deps.c: Include function-abi.h.
11386 (deps_analyze_insn): Update call to
11387 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11388 to get the appropriate ABI identifier.
11389 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11390 call to targetm.hard_regno_call_part_clobbered.
11391 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11393 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11395 * config/i386/i386.c: Include function-abi.h.
11396 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11397 if they preserve some 256-bit or 512-bit SSE registers.
11399 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11401 * target.def (insn_callee_abi): New hook.
11402 (remove_extra_call_preserved_regs): Delete.
11403 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11404 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11405 * doc/tm.texi: Regenerate.
11406 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11407 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11408 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11410 (aarch64_remove_extra_call_preserved_regs): Delete.
11411 (aarch64_insn_callee_abi): New function.
11412 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11413 (TARGET_INSN_CALLEE_ABI): New macro.
11414 * rtl.h (get_call_fndecl): Declare.
11415 (cgraph_rtl_info): Fix formatting. Tweak comment for
11416 function_used_regs. Remove function_used_regs_valid.
11417 * rtlanal.c (get_call_fndecl): Moved from final.c
11418 * function-abi.h (insn_callee_abi): Declare.
11419 (target_function_abi_info): Mention insn_callee_abi.
11420 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11421 way to get_call_reg_set_usage did.
11422 (insn_callee_abi): New function.
11423 * regs.h (get_call_reg_set_usage): Delete.
11424 * final.c: Include function-abi.h.
11425 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11426 function_used_regs before the main loop rather than afterwards.
11427 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11428 if function_used_regs ends up not being useful.
11429 (get_call_fndecl): Move to rtlanal.c
11430 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11431 * caller-save.c: Include function-abi.h.
11432 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11433 instead of get_call_reg_set_usage.
11434 * cfgcleanup.c: Include function-abi.h.
11435 (old_insns_match_p): Use insn_callee_abi instead of
11436 get_call_reg_set_usage.
11437 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11439 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11440 function_used_regs.
11441 * df-scan.c: Include function-abi.h.
11442 (df_get_call_refs): Use insn_callee_abi instead of
11443 get_call_reg_set_usage.
11444 * ira-lives.c: Include function-abi.h.
11445 (process_bb_node_lives): Use insn_callee_abi instead of
11446 get_call_reg_set_usage.
11447 * lra-lives.c: Include function-abi.h.
11448 (process_bb_lives): Use insn_callee_abi instead of
11449 get_call_reg_set_usage.
11450 * postreload.c: Include function-abi.h.
11451 (reload_combine): Use insn_callee_abi instead of
11452 get_call_reg_set_usage.
11453 * regcprop.c: Include function-abi.h.
11454 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11455 get_call_reg_set_usage.
11456 * resource.c: Include function-abi.h.
11457 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11458 instead of get_call_reg_set_usage.
11459 * var-tracking.c: Include function-abi.h.
11460 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11461 get_call_reg_set_usage.
11463 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11465 * target.def (fntype_abi): New target hook.
11466 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11467 * doc/tm.texi: Regenerate.
11468 * target.h (predefined_function_abi): Declare.
11469 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11471 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11472 * config/aarch64/aarch64.c: Include function-abi.h.
11473 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11474 (TARGET_FNTYPE_ABI): Define.
11476 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11478 * Makefile.in (OBJS): Add function-abi.o.
11479 (GTFILES): Add function-abi.h.
11480 * function-abi.cc: New file.
11481 * function-abi.h: Likewise.
11482 * emit-rtl.h (rtl_data::abi): New field.
11483 * function.c: Include function-abi.h.
11484 (prepare_function_start): Initialize crtl->abi.
11485 * read-rtl-function.c: Include regs.h and function-abi.h.
11486 (read_rtl_function_body): Initialize crtl->abi.
11487 (read_rtl_function_body_from_file_range): Likewise.
11488 * reginfo.c: Include function-abi.h.
11489 (init_reg_sets_1): Initialize default_function_abi.
11490 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11491 when making a register global.
11492 * target-globals.h (this_target_function_abi_info): Declare.
11493 (target_globals::function_abi_info): New field.
11494 (restore_target_globals): Copy it.
11495 * target-globals.c: Include function-abi.h.
11496 (default_target_globals): Initialize the function_abi_info field.
11497 (target_globals): Allocate it.
11498 (save_target_globals): Free it.
11500 2019-09-30 Nick Clifton <nickc@redhat.com>
11503 * config/frv/frv.c (frv_register_move_cost): Add break statements
11504 to avoid falling through to the wrong cases. Tidy code.
11506 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11508 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11509 For multi-registers modes, test how big each register part is.
11511 2019-09-30 Nick Clifton <nickc@redhat.com>
11514 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11515 (TARGET_ASM_SELECT_SECTION): Remove definition.
11516 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11518 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11520 * emit-rtl.c (init_raw_REG): New function.
11521 (gen_raw_REG): Use init_raw_REG.
11522 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11524 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11525 * rtl.h (rtx_init): New function.
11526 (rtx_alloca): New function.
11527 (init_raw_REG): New function.
11528 (alloca_raw_REG): New macro.
11530 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11532 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11533 (pcrel_local_address): Replace pcrel_address predicate, use the
11534 new function address_to_insn_form.
11535 (pcrel_external_address): Replace with new implementation using
11536 address_to_insn_form..
11537 (prefixed_mem_operand): Delete predicate which is now unused.
11538 (pcrel_external_mem_operand): Delete predicate which is now
11540 * config/rs6000/rs6000-protos.h (enum insn_form): New
11542 (enum non_prefixed_form): New enumeration.
11543 (address_to_insn_form): New declaration.
11544 (prefixed_load_p): New declaration.
11545 (prefixed_store_p): New declaration.
11546 (prefixed_paddi_p): New declaration.
11547 (rs6000_asm_output_opcode): New declaration.
11548 (rs6000_final_prescan_insn): Move declaration and update calling
11550 (address_is_prefixed): New helper inline function.
11551 * config/rs6000/rs6000.c(print_operand_address): Check for either
11552 PC-relative local symbols or PC-relative external symbols.
11553 (rs6000_emit_move): Support loading PC-relative addresses.
11554 (mode_supports_prefixed_address_p): Delete, no longer used.
11555 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11556 (address_to_insn_form): New function to decode an address format.
11557 (reg_to_non_prefixed): New function to identify what the
11558 non-prefixed memory instruction format is for a register.
11559 (prefixed_load_p): New function to identify prefixed loads.
11560 (prefixed_store_p): New function to identify prefixed stores.
11561 (prefixed_paddi_p): New function to identify prefixed load
11563 (next_insn_prefixed_p): New static state variable.
11564 (rs6000_final_prescan_insn): New function to determine if an insn
11565 uses a prefixed instruction.
11566 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11567 prefixed instruction.
11568 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11569 (ASM_OUTPUT_OPCODE): New target hook.
11570 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11571 prefixed instructions.
11572 (prefixed_length): New insn attribute for the size of prefixed
11574 (non_prefixed_length): New insn attribute for the size of
11575 non-prefixed instructions.
11576 (pcrel_local_addr): New insn to load up a local PC-relative
11578 (pcrel_extern_addr): New insn to load up an external PC-relative
11580 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11581 GPR and loading a 128-bit floating point type to a GPR.
11583 2019-09-30 Richard Biener <rguenther@suse.de>
11585 * gimple.c (gimple_get_lhs): For PHIs return the result.
11586 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11587 SLP instance as argument.
11588 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11589 double-reduction PHIs with vectorizable_lc_phi.
11590 (vect_analyze_loop_operations): Adjust.
11591 (vect_create_epilog_for_reduction): Remove all code not dealing
11592 with reduction LC PHI or epilogue generation.
11593 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11594 for live stmts of reductions.
11595 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11596 do not handle defs that are not vect_internal_def.
11597 (can_vectorize_live_stmts): Adjust.
11598 (vect_analyze_stmt): When the vectorized stmt defined a value
11599 used on backedges adjust the backedge uses of vectorized PHIs.
11601 2019-09-30 Martin Jambor <mjambor@suse.cz>
11604 * tree-inline.c (force_value_to_type): New function.
11605 (setup_one_parameter): Use force_value_to_type to convert type.
11606 * tree-inline.c (force_value_to_type): Declare.
11607 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11608 with register type mismatches.
11610 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11612 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11614 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11615 * config/rs6000/t-freebsd64: Make use of the above define and build
11616 the 32-bit libraries with secure-plt.
11618 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11621 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11622 gen_int_mode instead of GEN_INT.
11624 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11626 * config/darwin.c (gen_macho_low): Amend to include the mode
11628 (machopic_indirect_data_reference): Amend gen_macho_low call
11629 to include mode argument
11630 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11631 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11632 the macho_high expander and two define_insn entries.
11634 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11637 * optc-save-gen.awk: Fix up printing string option differences.
11639 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11641 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11642 vec_perm cost to 1 for non-Power7 VSX architectures.
11644 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11646 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11647 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11648 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11650 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11652 * config/darwin.c (gen_macho_high): Amend to include the mode
11654 (machopic_indirect_data_reference): Amend gen_macho_high call
11655 to include mode argument.
11656 (machopic_legitimize_pic_address): Likewise.
11657 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11658 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11659 the macho_high expander and two define_insn entries.
11661 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11664 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11666 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11669 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11670 std::string::compare instead of std::string::find.
11672 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11674 * configure: Regenerate.
11676 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11678 PR middle-end/91920
11679 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11680 variables as shared.
11682 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11684 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11685 replaces the expander and two define_insn entries.
11686 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11688 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11690 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11692 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11693 (fibonacci_heap::nodes): Likewise.
11694 (fibonacci_heap::min_key): Likewise.
11695 (fibonacci_heap::min): Likewise.
11697 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11699 * cgraph.c (cgraph_node::get_fun): Make const.
11700 * cgraph.h (cgraph_node::get_fun): Likewise.
11702 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11705 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11708 2019-09-27 Richard Biener <rguenther@suse.de>
11710 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11711 (STMT_VINFO_REDUC_FN): Likewise.
11712 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11713 STMT_VINFO_REDUC_FN.
11714 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11715 for condition reductions.
11716 (vect_create_epilog_for_reduction): Compute all required state
11717 from the stmt to be vectorized.
11718 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11719 invocation and remove then dead code. For single def-use chains
11720 record only a single vector stmt.
11722 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11724 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11725 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11726 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11727 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11728 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11729 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11730 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11731 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11732 (aarch64_general_builtin_rsqrt): Declare.
11733 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11735 (aarch64_mangle_builtin_type): Rename to...
11736 (aarch64_general_mangle_builtin_type): ...this.
11737 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11738 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11739 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11740 aarch64_general_add_builtin instead of add_builtin_function.
11741 (aarch64_init_builtins): Rename to...
11742 (aarch64_general_init_builtins): ...this. Use
11743 aarch64_general_add_builtin instead of add_builtin_function.
11744 (aarch64_builtin_decl): Rename to...
11745 (aarch64_general_builtin_decl): ...this and remove the unused
11747 (aarch64_expand_builtin): Rename to...
11748 (aarch64_general_expand_builtin): ...this and remove the unused
11750 (aarch64_builtin_rsqrt): Rename to...
11751 (aarch64_general_builtin_rsqrt): ...this.
11752 (aarch64_fold_builtin): Rename to...
11753 (aarch64_general_fold_builtin): ...this. Take the function subcode
11754 and return type as arguments. Remove the "ignored" argument.
11755 (aarch64_gimple_fold_builtin): Rename to...
11756 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11757 subcode and gcall as arguments, and return the new function call.
11758 * config/aarch64/aarch64.c (aarch64_init_builtins)
11759 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11760 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11761 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11762 instead of aarch64_builtin_rsqrt.
11763 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11764 instead of aarch64_mangle_builtin_type.
11766 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11768 * target.def (check_builtin_call): New target hook.
11769 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11770 * doc/tm.texi: Regenerate.
11772 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11774 PR tree-optimization/91909
11775 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11776 reduc_index parameter. When handling COND_REDUCTION, make sure
11777 that the reduction phi operand is in the correct arm of the
11779 (vectorizable_reduction): Pass reduc_index to the above.
11781 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11783 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11784 New combine pattern.
11786 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11788 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11789 loop instruction into new basic block before the loop when basic
11790 block that precedes the loop is empty.
11792 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11794 * function.c (gimplify_parameters): Use build_clobber function.
11795 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11796 * tree-inline.c (expand_call_inline): Likewise.
11797 * tree-sra.c (clobber_subtree): Likewise.
11798 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11799 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11800 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11801 lower_omp_target): Likewise.
11802 * omp-expand.c (expand_omp_for_generic): Likewise.
11803 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11805 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11807 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11808 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11809 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11810 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11811 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11812 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11813 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11814 LD_ELEMREV_V16QI): Use the PURE attribute.
11816 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11818 * config/rs6000/darwin.md: Replace the expanders for
11819 load_macho_picbase and reload_macho_picbase with use of '@'
11820 and <mode> in their respective define_insns.
11821 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11822 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11823 Pmode to gen_load_macho_picbase.
11824 * config/rs6000/rs6000.md: Likewise.
11826 2019-09-25 Richard Biener <rguenther@suse.de>
11828 PR tree-optimization/91896
11829 * tree-vect-loop.c (vectorizable_reduction): The single
11830 def-use cycle optimization cannot apply when there's more
11831 than one pattern stmt involved.
11833 2019-09-26 Richard Biener <rguenther@suse.de>
11835 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11836 loop-closed PHIs that are vect_internal_def.
11837 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11839 (vectorizable_lc_phi): New.
11840 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11841 (vect_transform_stmt): Likewise.
11842 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11843 (vectorizable_lc_phi): Declare.
11845 2019-09-26 Richard Biener <rguenther@suse.de>
11847 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11848 vectorizable_reduction for vect_double_reduction_def.
11849 (vect_transform_loop): Likewise.
11850 (vect_create_epilog_for_reduction): Move double-reduction
11851 PHI creation and preheader argument setting of PHIs ...
11852 (vectorizable_reduction): ... here. Also process
11853 vect_double_reduction_def PHIs, creating the vectorized
11854 PHI nodes, remembering the scalar adjustment computed for
11855 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11856 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11857 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11858 Initialize STMT_VINFO_REDUC_CODE.
11859 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11860 (_stmt_vec_info::reduc_code): Likewise.
11861 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11862 (STMT_VINFO_REDUC_CODE): Likewise.
11864 2019-09-26 Matt Turner <mattst88@gmail.com>
11867 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11868 (mtune=): Add Negative(mtune=).
11869 (mcpu=): Add Negative(mcpu=).
11870 * config/arm/arm.opt: Likewise.
11872 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11874 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11875 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11877 * config/arm/arm_acle.h: Define builtins for the above.
11878 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11879 (simd32_op): Handle the above.
11880 * config/arm/unspecs.md: Define unspecs for the above.
11882 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11884 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11885 (arm_<sup>xtb16): Likewise.
11886 (arm_usada8): Likewise.
11887 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11888 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11889 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11890 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11891 __sxtb16, __uxtab16, __uxtb16): Define.
11892 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11893 * config/arm/unspecs.md: Define unspecs for the above.
11894 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11895 (USXTB16): Likewise.
11896 (simd32_op): New int_attribute.
11897 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11898 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11900 2019-09-26 Martin Jambor <mjambor@suse.cz>
11902 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11905 2019-09-26 Martin Jambor <mjambor@suse.cz>
11907 * ipa-sra.c (process_scan_results): Fix continue condition.
11909 2019-09-26 Martin Liska <mliska@suse.cz>
11911 PR tree-optimization/91885
11912 * tree-vectorizer.c (try_vectorize_loop_1): Add
11913 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11915 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11917 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11918 aarch64_plus_immediate rather than aarch64_uimm12_shift
11919 to test for valid PLUS immediates.
11921 2019-09-25 Martin Jambor <mjambor@suse.cz>
11923 * tree-sra.c (no_accesses_p): Remove.
11924 (no_accesses_representant): Likewise.
11926 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11928 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11930 (vaba_s16): Likewise.
11931 (vaba_s32): Likewise.
11932 (vaba_u8): Likewise.
11933 (vaba_u16): Likewise.
11934 (vaba_u32): Likewise.
11935 (vabal_high_s8): Likewise.
11936 (vabal_high_s16): Likewise.
11937 (vabal_high_s32): Likewise.
11938 (vabal_high_u8): Likewise.
11939 (vabal_high_u16): Likewise.
11940 (vabal_high_u32): Likewise.
11941 (vabal_s8): Likewise.
11942 (vabal_s16): Likewise.
11943 (vabal_s32): Likewise.
11944 (vabal_u8): Likewise.
11945 (vabal_u16): Likewise.
11946 (vabal_u32): Likewise.
11947 (vabaq_s8): Likewise.
11948 (vabaq_s16): Likewise.
11949 (vabaq_s32): Likewise.
11950 (vabaq_u8): Likewise.
11951 (vabaq_u16): Likewise.
11952 (vabaq_u32): Likewise.
11953 (vabd_s8): Likewise.
11954 (vabd_s16): Likewise.
11955 (vabd_s32): Likewise.
11956 (vabd_u8): Likewise.
11957 (vabd_u16): Likewise.
11958 (vabd_u32): Likewise.
11959 (vabdl_high_s8): Likewise.
11960 (vabdl_high_s16): Likewise.
11961 (vabdl_high_s32): Likewise.
11962 (vabdl_high_u8): Likewise.
11963 (vabdl_high_u16): Likewise.
11964 (vabdl_high_u32): Likewise.
11965 (vabdl_s8): Likewise.
11966 (vabdl_s16): Likewise.
11967 (vabdl_s32): Likewise.
11968 (vabdl_u8): Likewise.
11969 (vabdl_u16): Likewise.
11970 (vabdl_u32): Likewise.
11971 (vabdq_s8): Likewise.
11972 (vabdq_s16): Likewise.
11973 (vabdq_s32): Likewise.
11974 (vabdq_u8): Likewise.
11975 (vabdq_u16): Likewise.
11976 (vabdq_u32): Likewise.
11977 (vaddlv_s8): Likewise.
11978 (vaddlv_s16): Likewise.
11979 (vaddlv_u8): Likewise.
11980 (vaddlv_u16): Likewise.
11981 (vaddlvq_s8): Likewise.
11982 (vaddlvq_s16): Likewise.
11983 (vaddlvq_s32): Likewise.
11984 (vaddlvq_u8): Likewise.
11985 (vaddlvq_u16): Likewise.
11986 (vaddlvq_u32): Likewise.
11987 (vcvtx_f32_f64): Likewise.
11988 (vcvtx_high_f32_f64): Likewise.
11989 (vcvtxd_f32_f64): Likewise.
11990 (vmla_n_f32): Likewise.
11991 (vmla_n_s16): Likewise.
11992 (vmla_n_s32): Likewise.
11993 (vmla_n_u16): Likewise.
11994 (vmla_n_u32): Likewise.
11995 (vmla_s8): Likewise.
11996 (vmla_s16): Likewise.
11997 (vmla_s32): Likewise.
11998 (vmla_u8): Likewise.
11999 (vmla_u16): Likewise.
12000 (vmla_u32): Likewise.
12001 (vmlal_high_n_s16): Likewise.
12002 (vmlal_high_n_s32): Likewise.
12003 (vmlal_high_n_u16): Likewise.
12004 (vmlal_high_n_u32): Likewise.
12005 (vmlal_high_s8): Likewise.
12006 (vmlal_high_s16): Likewise.
12007 (vmlal_high_s32): Likewise.
12008 (vmlal_high_u8): Likewise.
12009 (vmlal_high_u16): Likewise.
12010 (vmlal_high_u32): Likewise.
12011 (vmlal_n_s16): Likewise.
12012 (vmlal_n_s32): Likewise.
12013 (vmlal_n_u16): Likewise.
12014 (vmlal_n_u32): Likewise.
12015 (vmlal_s8): Likewise.
12016 (vmlal_s16): Likewise.
12017 (vmlal_s32): Likewise.
12018 (vmlal_u8): Likewise.
12019 (vmlal_u16): Likewise.
12020 (vmlal_u32): Likewise.
12021 (vmlaq_n_f32): Likewise.
12022 (vmlaq_n_s16): Likewise.
12023 (vmlaq_n_s32): Likewise.
12024 (vmlaq_n_u16): Likewise.
12025 (vmlaq_n_u32): Likewise.
12026 (vmlaq_s8): Likewise.
12027 (vmlaq_s16): Likewise.
12028 (vmlaq_s32): Likewise.
12029 (vmlaq_u8): Likewise.
12030 (vmlaq_u16): Likewise.
12031 (vmlaq_u32): Likewise.
12032 (vmls_n_f32): Likewise.
12033 (vmls_n_s16): Likewise.
12034 (vmls_n_s32): Likewise.
12035 (vmls_n_u16): Likewise.
12036 (vmls_n_u32): Likewise.
12037 (vmls_s8): Likewise.
12038 (vmls_s16): Likewise.
12039 (vmls_s32): Likewise.
12040 (vmls_u8): Likewise.
12041 (vmls_u16): Likewise.
12042 (vmls_u32): Likewise.
12043 (vmlsl_high_n_s16): Likewise.
12044 (vmlsl_high_n_s32): Likewise.
12045 (vmlsl_high_n_u16): Likewise.
12046 (vmlsl_high_n_u32): Likewise.
12047 (vmlsl_high_s8): Likewise.
12048 (vmlsl_high_s16): Likewise.
12049 (vmlsl_high_s32): Likewise.
12050 (vmlsl_high_u8): Likewise.
12051 (vmlsl_high_u16): Likewise.
12052 (vmlsl_high_u32): Likewise.
12053 (vmlsl_n_s16): Likewise.
12054 (vmlsl_n_s32): Likewise.
12055 (vmlsl_n_u16): Likewise.
12056 (vmlsl_n_u32): Likewise.
12057 (vmlsl_s8): Likewise.
12058 (vmlsl_s16): Likewise.
12059 (vmlsl_s32): Likewise.
12060 (vmlsl_u8): Likewise.
12061 (vmlsl_u16): Likewise.
12062 (vmlsl_u32): Likewise.
12063 (vmlsq_n_f32): Likewise.
12064 (vmlsq_n_s16): Likewise.
12065 (vmlsq_n_s32): Likewise.
12066 (vmlsq_n_u16): Likewise.
12067 (vmlsq_n_u32): Likewise.
12068 (vmlsq_s8): Likewise.
12069 (vmlsq_s16): Likewise.
12070 (vmlsq_s32): Likewise.
12071 (vmlsq_u8): Likewise.
12072 (vmlsq_u16): Likewise.
12073 (vmlsq_u32): Likewise.
12074 (vmovl_high_s8): Likewise.
12075 (vmovl_high_s16): Likewise.
12076 (vmovl_high_s32): Likewise.
12077 (vmovl_high_u8): Likewise.
12078 (vmovl_high_u16): Likewise.
12079 (vmovl_high_u32): Likewise.
12080 (vmovl_s8): Likewise.
12081 (vmovl_s16): Likewise.
12082 (vmovl_s32): Likewise.
12083 (vmovl_u8): Likewise.
12084 (vmovl_u16): Likewise.
12085 (vmovl_u32): Likewise.
12086 (vmovn_high_s16): Likewise.
12087 (vmovn_high_s32): Likewise.
12088 (vmovn_high_s64): Likewise.
12089 (vmovn_high_u16): Likewise.
12090 (vmovn_high_u32): Likewise.
12091 (vmovn_high_u64): Likewise.
12092 (vmovn_s16): Likewise.
12093 (vmovn_s32): Likewise.
12094 (vmovn_s64): Likewise.
12095 (vmovn_u16): Likewise.
12096 (vmovn_u32): Likewise.
12097 (vmovn_u64): Likewise.
12098 (vmull_high_n_s16): Likewise.
12099 (vmull_high_n_s32): Likewise.
12100 (vmull_high_n_u16): Likewise.
12101 (vmull_high_n_u32): Likewise.
12102 (vmull_high_p8): Likewise.
12103 (vmull_high_s8): Likewise.
12104 (vmull_high_s16): Likewise.
12105 (vmull_high_s32): Likewise.
12106 (vmull_high_u8): Likewise.
12107 (vmull_high_u16): Likewise.
12108 (vmull_high_u32): Likewise.
12109 (vmull_n_s16): Likewise.
12110 (vmull_n_s32): Likewise.
12111 (vmull_n_u16): Likewise.
12112 (vmull_n_u32): Likewise.
12113 (vmull_p8): Likewise.
12114 (vmull_s8): Likewise.
12115 (vmull_s16): Likewise.
12116 (vmull_s32): Likewise.
12117 (vmull_u8): Likewise.
12118 (vmull_u16): Likewise.
12119 (vmull_u32): Likewise.
12120 (vpadal_s8): Likewise.
12121 (vpadal_s16): Likewise.
12122 (vpadal_s32): Likewise.
12123 (vpadal_u8): Likewise.
12124 (vpadal_u16): Likewise.
12125 (vpadal_u32): Likewise.
12126 (vpadalq_s8): Likewise.
12127 (vpadalq_s16): Likewise.
12128 (vpadalq_s32): Likewise.
12129 (vpadalq_u8): Likewise.
12130 (vpadalq_u16): Likewise.
12131 (vpadalq_u32): Likewise.
12132 (vpaddl_s8): Likewise.
12133 (vpaddl_s16): Likewise.
12134 (vpaddl_s32): Likewise.
12135 (vpaddl_u8): Likewise.
12136 (vpaddl_u16): Likewise.
12137 (vpaddl_u32): Likewise.
12138 (vpaddlq_s8): Likewise.
12139 (vpaddlq_s16): Likewise.
12140 (vpaddlq_s32): Likewise.
12141 (vpaddlq_u8): Likewise.
12142 (vpaddlq_u16): Likewise.
12143 (vpaddlq_u32): Likewise.
12144 (vpaddq_s8): Likewise.
12145 (vpaddq_s16): Likewise.
12146 (vpaddq_s32): Likewise.
12147 (vpaddq_s64): Likewise.
12148 (vpaddq_u8): Likewise.
12149 (vpaddq_u16): Likewise.
12150 (vpaddq_u32): Likewise.
12151 (vpaddq_u64): Likewise.
12152 (vqdmulh_n_s16): Likewise.
12153 (vqdmulh_n_s32): Likewise.
12154 (vqdmulhq_n_s16): Likewise.
12155 (vqdmulhq_n_s32): Likewise.
12156 (vqmovn_high_s16): Likewise.
12157 (vqmovn_high_s32): Likewise.
12158 (vqmovn_high_s64): Likewise.
12159 (vqmovn_high_u16): Likewise.
12160 (vqmovn_high_u32): Likewise.
12161 (vqmovn_high_u64): Likewise.
12162 (vqmovun_high_s16): Likewise.
12163 (vqmovun_high_s32): Likewise.
12164 (vqmovun_high_s64): Likewise.
12165 (vqrdmulh_n_s16): Likewise.
12166 (vqrdmulh_n_s32): Likewise.
12167 (vqrdmulhq_n_s16): Likewise.
12168 (vqrdmulhq_n_s32): Likewise.
12169 (vrsqrte_u32): Likewise.
12170 (vrsqrteq_u32): Likewise.
12171 (vtst_p8): Likewise.
12172 (vtst_p16): Likewise.
12173 (vtst_p64): Likewise.
12174 (vtstq_p8): Likewise.
12175 (vtstq_p16): Likewise.
12176 (vtstq_p64): Likewise.
12177 (vaddlv_s32): Likewise.
12178 (vaddlv_u32): Likewise.
12179 (vqtbl1_p8): Likewise.
12180 (vqtbl1_s8): Likewise.
12181 (vqtbl1_u8): Likewise.
12182 (vqtbl1q_p8): Likewise.
12183 (vqtbl1q_s8): Likewise.
12184 (vqtbl1q_u8): Likewise.
12185 (vqtbx1_s8): Likewise.
12186 (vqtbx1_u8): Likewise.
12187 (vqtbx1_p8): Likewise.
12188 (vqtbx1q_s8): Likewise.
12189 (vqtbx1q_u8): Likewise.
12190 (vqtbx1q_p8): Likewise.
12191 (vtbl1_s8): Likewise.
12192 (vtbl1_u8): Likewise.
12193 (vtbl1_p8): Likewise.
12194 (vtbl2_s8): Likewise.
12195 (vtbl2_u8): Likewise.
12196 (vtbl2_p8): Likewise.
12197 (vtbl3_s8): Likewise.
12198 (vtbl3_u8): Likewise.
12199 (vtbl3_p8): Likewise.
12200 (vtbl4_s8): Likewise.
12201 (vtbl4_u8): Likewise.
12202 (vtbl4_p8): Likewise.
12203 (vtbx2_s8): Likewise.
12204 (vtbx2_u8): Likewise.
12205 (vtbx2_p8): Likewise.
12206 (vld1_f32): Likewise.
12207 (vld1_f64): Likewise.
12208 (vld1_p8): Likewise.
12209 (vld1_p16): Likewise.
12210 (vld1_p64): Likewise.
12211 (vld1_s8): Likewise.
12212 (vld1_s16): Likewise.
12213 (vld1_s32): Likewise.
12214 (vld1_s64): Likewise.
12215 (vld1_u8): Likewise.
12216 (vld1_u16): Likewise.
12217 (vld1_u32): Likewise.
12218 (vld1_u64): Likewise.
12219 (vld1q_f32): Likewise.
12220 (vld1q_f64): Likewise.
12221 (vld1q_p8): Likewise.
12222 (vld1q_p16): Likewise.
12223 (vld1q_p64): Likewise.
12224 (vld1q_s8): Likewise.
12225 (vld1q_s16): Likewise.
12226 (vld1q_s32): Likewise.
12227 (vld1q_s64): Likewise.
12228 (vld1q_u8): Likewise.
12229 (vld1q_u16): Likewise.
12230 (vld1q_u32): Likewise.
12231 (vld1q_u64): Likewise.
12232 (vpmax_s8): Likewise.
12233 (vpmax_s16): Likewise.
12234 (vpmax_s32): Likewise.
12235 (vpmax_u8): Likewise.
12236 (vpmax_u16): Likewise.
12237 (vpmax_u32): Likewise.
12238 (vpmaxq_s8): Likewise.
12239 (vpmaxq_s16): Likewise.
12240 (vpmaxq_s32): Likewise.
12241 (vpmaxq_u8): Likewise.
12242 (vpmaxq_u16): Likewise.
12243 (vpmaxq_u32): Likewise.
12244 (vpmax_f32): Likewise.
12245 (vpmaxq_f32): Likewise.
12246 (vpmaxq_f64): Likewise.
12247 (vpmaxqd_f64): Likewise.
12248 (vpmaxs_f32): Likewise.
12249 (vpmaxnm_f32): Likewise.
12250 (vpmaxnmq_f32): Likewise.
12251 (vpmaxnmq_f64): Likewise.
12252 (vpmaxnmqd_f64): Likewise.
12253 (vpmaxnms_f32): Likewise.
12254 (vpmin_s8): Likewise.
12255 (vpmin_s16): Likewise.
12256 (vpmin_s32): Likewise.
12257 (vpmin_u8): Likewise.
12258 (vpmin_u16): Likewise.
12259 (vpmin_u32): Likewise.
12260 (vpminq_s8): Likewise.
12261 (vpminq_s16): Likewise.
12262 (vpminq_s32): Likewise.
12263 (vpminq_u8): Likewise.
12264 (vpminq_u16): Likewise.
12265 (vpminq_u32): Likewise.
12266 (vpmin_f32): Likewise.
12267 (vpminq_f32): Likewise.
12268 (vpminq_f64): Likewise.
12269 (vpminqd_f64): Likewise.
12270 (vpmins_f32): Likewise.
12271 (vpminnm_f32): Likewise.
12272 (vpminnmq_f32): Likewise.
12273 (vpminnmq_f64): Likewise.
12274 (vpminnmqd_f64): Likewise.
12275 (vpminnms_f32): Likewise.
12276 (vmla_f32): Likewise.
12277 (vmlaq_f32): Likewise.
12278 (vmlaq_f64): Likewise.
12279 (vmls_f32): Likewise.
12280 (vmlsq_f32): Likewise.
12281 (vmlsq_f64): Likewise.
12282 (vqtbl2_s8): Likewise.
12283 (vqtbl2_u8): Likewise.
12284 (vqtbl2_p8): Likewise.
12285 (vqtbl2q_s8): Likewise.
12286 (vqtbl2q_u8): Likewise.
12287 (vqtbl2q_p8): Likewise.
12288 (vqtbl3_s8): Likewise.
12289 (vqtbl3_u8): Likewise.
12290 (vqtbl3_p8): Likewise.
12291 (vqtbl3q_s8): Likewise.
12292 (vqtbl3q_u8): Likewise.
12293 (vqtbl3q_p8): Likewise.
12294 (vqtbl4_s8): Likewise.
12295 (vqtbl4_u8): Likewise.
12296 (vqtbl4_p8): Likewise.
12297 (vqtbl4q_s8): Likewise.
12298 (vqtbl4q_u8): Likewise.
12299 (vqtbl4q_p8): Likewise.
12300 (vqtbx2_s8): Likewise.
12301 (vqtbx2_u8): Likewise.
12302 (vqtbx2_p8): Likewise.
12303 (vqtbx2q_s8): Likewise.
12304 (vqtbx2q_u8): Likewise.
12305 (vqtbx2q_p8): Likewise.
12306 (vqtbx3_s8): Likewise.
12307 (vqtbx3_u8): Likewise.
12308 (vqtbx3_p8): Likewise.
12309 (vqtbx3q_s8): Likewise.
12310 (vqtbx3q_u8): Likewise.
12311 (vqtbx3q_p8): Likewise.
12312 (vqtbx4_s8): Likewise.
12313 (vqtbx4_u8): Likewise.
12314 (vqtbx4_p8): Likewise.
12315 (vqtbx4q_s8): Likewise.
12316 (vqtbx4q_u8): Likewise.
12317 (vqtbx4q_p8): Likewise.
12318 (vrev16_p8): Likewise.
12319 (vrev16_s8): Likewise.
12320 (vrev16_u8): Likewise.
12321 (vrev16q_p8): Likewise.
12322 (vrev16q_s8): Likewise.
12323 (vrev16q_u8): Likewise.
12324 (vrev32_p8): Likewise.
12325 (vrev32_p16): Likewise.
12326 (vrev32_s8): Likewise.
12327 (vrev32_s16): Likewise.
12328 (vrev32_u8): Likewise.
12329 (vrev32_u16): Likewise.
12330 (vrev32q_p8): Likewise.
12331 (vrev32q_p16): Likewise.
12332 (vrev32q_s8): Likewise.
12333 (vrev32q_s16): Likewise.
12334 (vrev32q_u8): Likewise.
12335 (vrev32q_u16): Likewise.
12336 (vrev64_f32): Likewise.
12337 (vrev64_p8): Likewise.
12338 (vrev64_p16): Likewise.
12339 (vrev64_s8): Likewise.
12340 (vrev64_s16): Likewise.
12341 (vrev64_s32): Likewise.
12342 (vrev64_u8): Likewise.
12343 (vrev64_u16): Likewise.
12344 (vrev64_u32): Likewise.
12345 (vrev64q_f32): Likewise.
12346 (vrev64q_p8): Likewise.
12347 (vrev64q_p16): Likewise.
12348 (vrev64q_s8): Likewise.
12349 (vrev64q_s16): Likewise.
12350 (vrev64q_s32): Likewise.
12351 (vrev64q_u8): Likewise.
12352 (vrev64q_u16): Likewise.
12353 (vrev64q_u32): Likewise.
12354 (vsha1cq_u32): Likewise.
12355 (vsha1mq_u32): Likewise.
12356 (vsha1pq_u32): Likewise.
12357 (vsha1h_u32): Likewise.
12358 (vsha1su0q_u32): Likewise.
12359 (vsha1su1q_u32): Likewise.
12360 (vsha256hq_u32): Likewise.
12361 (vsha256h2q_u32): Likewise.
12362 (vsha256su0q_u32): Likewise.
12363 (vsha256su1q_u32): Likewise.
12364 (vmull_p64): Likewise.
12365 (vmull_high_p64): Likewise.
12366 (vsqrt_f32): Likewise.
12367 (vsqrtq_f32): Likewise.
12368 (vsqrt_f64): Likewise.
12369 (vsqrtq_f64): Likewise.
12370 (vst1_f32): Likewise.
12371 (vst1_f64): Likewise.
12372 (vst1_p8): Likewise.
12373 (vst1_p16): Likewise.
12374 (vst1_p64): Likewise.
12375 (vst1_s8): Likewise.
12376 (vst1_s16): Likewise.
12377 (vst1_s32): Likewise.
12378 (vst1_s64): Likewise.
12379 (vst1_u8): Likewise.
12380 (vst1_u16): Likewise.
12381 (vst1_u32): Likewise.
12382 (vst1_u64): Likewise.
12383 (vst1q_f32): Likewise.
12384 (vst1q_f64): Likewise.
12385 (vst1q_p8): Likewise.
12386 (vst1q_p16): Likewise.
12387 (vst1q_p64): Likewise.
12388 (vst1q_s8): Likewise.
12389 (vst1q_s16): Likewise.
12390 (vst1q_s32): Likewise.
12391 (vst1q_s64): Likewise.
12392 (vst1q_u8): Likewise.
12393 (vst1q_u16): Likewise.
12394 (vst1q_u32): Likewise.
12395 (vst1q_u64): Likewise.
12396 (vst1_s64_x2): Likewise.
12397 (vst1_u64_x2): Likewise.
12398 (vst1_f64_x2): Likewise.
12399 (vst1_s8_x2): Likewise.
12400 (vst1_p8_x2): Likewise.
12401 (vst1_s16_x2): Likewise.
12402 (vst1_p16_x2): Likewise.
12403 (vst1_s32_x2): Likewise.
12404 (vst1_u8_x2): Likewise.
12405 (vst1_u16_x2): Likewise.
12406 (vst1_u32_x2): Likewise.
12407 (vst1_f16_x2): Likewise.
12408 (vst1_f32_x2): Likewise.
12409 (vst1_p64_x2): Likewise.
12410 (vst1q_s8_x2): Likewise.
12411 (vst1q_p8_x2): Likewise.
12412 (vst1q_s16_x2): Likewise.
12413 (vst1q_p16_x2): Likewise.
12414 (vst1q_s32_x2): Likewise.
12415 (vst1q_s64_x2): Likewise.
12416 (vst1q_u8_x2): Likewise.
12417 (vst1q_u16_x2): Likewise.
12418 (vst1q_u32_x2): Likewise.
12419 (vst1q_u64_x2): Likewise.
12420 (vst1q_f16_x2): Likewise.
12421 (vst1q_f32_x2): Likewise.
12422 (vst1q_f64_x2): Likewise.
12423 (vst1q_p64_x2): Likewise.
12424 (vst1_s64_x3): Likewise.
12425 (vst1_u64_x3): Likewise.
12426 (vst1_f64_x3): Likewise.
12427 (vst1_s8_x3): Likewise.
12428 (vst1_p8_x3): Likewise.
12429 (vst1_s16_x3): Likewise.
12430 (vst1_p16_x3): Likewise.
12431 (vst1_s32_x3): Likewise.
12432 (vst1_u8_x3): Likewise.
12433 (vst1_u16_x3): Likewise.
12434 (vst1_u32_x3): Likewise.
12435 (vst1_f16_x3): Likewise.
12436 (vst1_f32_x3): Likewise.
12437 (vst1_p64_x3): Likewise.
12438 (vst1q_s8_x3): Likewise.
12439 (vst1q_p8_x3): Likewise.
12440 (vst1q_s16_x3): Likewise.
12441 (vst1q_p16_x3): Likewise.
12442 (vst1q_s32_x3): Likewise.
12443 (vst1q_s64_x3): Likewise.
12444 (vst1q_u8_x3): Likewise.
12445 (vst1q_u16_x3): Likewise.
12446 (vst1q_u32_x3): Likewise.
12447 (vst1q_u64_x3): Likewise.
12448 (vst1q_f16_x3): Likewise.
12449 (vst1q_f32_x3): Likewise.
12450 (vst1q_f64_x3): Likewise.
12451 (vst1q_p64_x3): Likewise.
12452 (vst2_s64): Likewise.
12453 (vst2_u64): Likewise.
12454 (vst2_f64): Likewise.
12455 (vst2_s8): Likewise.
12456 (vst2_p8): Likewise.
12457 (vst2_s16): Likewise.
12458 (vst2_p16): Likewise.
12459 (vst2_s32): Likewise.
12460 (vst2_u8): Likewise.
12461 (vst2_u16): Likewise.
12462 (vst2_u32): Likewise.
12463 (vst2_f16): Likewise.
12464 (vst2_f32): Likewise.
12465 (vst2_p64): Likewise.
12466 (vst2q_s8): Likewise.
12467 (vst2q_p8): Likewise.
12468 (vst2q_s16): Likewise.
12469 (vst2q_p16): Likewise.
12470 (vst2q_s32): Likewise.
12471 (vst2q_s64): Likewise.
12472 (vst2q_u8): Likewise.
12473 (vst2q_u16): Likewise.
12474 (vst2q_u32): Likewise.
12475 (vst2q_u64): Likewise.
12476 (vst2q_f16): Likewise.
12477 (vst2q_f32): Likewise.
12478 (vst2q_f64): Likewise.
12479 (vst2q_p64): Likewise.
12480 (vst3_s64): Likewise.
12481 (vst3_u64): Likewise.
12482 (vst3_f64): Likewise.
12483 (vst3_s8): Likewise.
12484 (vst3_p8): Likewise.
12485 (vst3_s16): Likewise.
12486 (vst3_p16): Likewise.
12487 (vst3_s32): Likewise.
12488 (vst3_u8): Likewise.
12489 (vst3_u16): Likewise.
12490 (vst3_u32): Likewise.
12491 (vst3_f16): Likewise.
12492 (vst3_f32): Likewise.
12493 (vst3_p64): Likewise.
12494 (vst3q_s8): Likewise.
12495 (vst3q_p8): Likewise.
12496 (vst3q_s16): Likewise.
12497 (vst3q_p16): Likewise.
12498 (vst3q_s32): Likewise.
12499 (vst3q_s64): Likewise.
12500 (vst3q_u8): Likewise.
12501 (vst3q_u16): Likewise.
12502 (vst3q_u32): Likewise.
12503 (vst3q_u64): Likewise.
12504 (vst3q_f16): Likewise.
12505 (vst3q_f32): Likewise.
12506 (vst3q_f64): Likewise.
12507 (vst3q_p64): Likewise.
12508 (vst4_s64): Likewise.
12509 (vst4_u64): Likewise.
12510 (vst4_f64): Likewise.
12511 (vst4_s8): Likewise.
12512 (vst4_p8): Likewise.
12513 (vst4_s16): Likewise.
12514 (vst4_p16): Likewise.
12515 (vst4_s32): Likewise.
12516 (vst4_u8): Likewise.
12517 (vst4_u16): Likewise.
12518 (vst4_u32): Likewise.
12519 (vst4_f16): Likewise.
12520 (vst4_f32): Likewise.
12521 (vst4_p64): Likewise.
12522 (vst4q_s8): Likewise.
12523 (vst4q_p8): Likewise.
12524 (vst4q_s16): Likewise.
12525 (vst4q_p16): Likewise.
12526 (vst4q_s32): Likewise.
12527 (vst4q_s64): Likewise.
12528 (vst4q_u8): Likewise.
12529 (vst4q_u16): Likewise.
12530 (vst4q_u32): Likewise.
12531 (vst4q_u64): Likewise.
12532 (vst4q_f16): Likewise.
12533 (vst4q_f32): Likewise.
12534 (vst4q_f64): Likewise.
12535 (vst4q_p64): Likewise.
12536 (vtbx4_s8): Likewise.
12537 (vtbx4_u8): Likewise.
12538 (vtbx4_p8): Likewise.
12539 (vtrn_f32): Likewise.
12540 (vtrn_p8): Likewise.
12541 (vtrn_p16): Likewise.
12542 (vtrn_s8): Likewise.
12543 (vtrn_s16): Likewise.
12544 (vtrn_s32): Likewise.
12545 (vtrn_u8): Likewise.
12546 (vtrn_u16): Likewise.
12547 (vtrn_u32): Likewise.
12548 (vtrnq_f32): Likewise.
12549 (vtrnq_p8): Likewise.
12550 (vtrnq_p16): Likewise.
12551 (vtrnq_s8): Likewise.
12552 (vtrnq_s16): Likewise.
12553 (vtrnq_s32): Likewise.
12554 (vtrnq_u8): Likewise.
12555 (vtrnq_u16): Likewise.
12556 (vtrnq_u32): Likewise.
12557 (vrsqrte_f16): Likewise.
12558 (vrsqrteq_f16): Likewise.
12559 (vsqrt_f16): Likewise.
12560 (vsqrtq_f16): Likewise.
12561 (vabd_f16): Likewise.
12562 (vabdq_f16): Likewise.
12563 (vpadd_f16): Likewise.
12564 (vpaddq_f16): Likewise.
12565 (vpmax_f16): Likewise.
12566 (vpmaxq_f16): Likewise.
12567 (vpmaxnm_f16): Likewise.
12568 (vpmaxnmq_f16): Likewise.
12569 (vpmin_f16): Likewise.
12570 (vpminq_f16): Likewise.
12571 (vpminnm_f16): Likewise.
12572 (vpminnmq_f16): Likewise.
12573 (vrsqrts_f16): Likewise.
12574 (vrsqrtsq_f16): Likewise.
12576 2019-09-25 Richard Biener <rguenther@suse.de>
12578 PR tree-optimization/91896
12579 * tree-vect-loop.c (vectorizable_reduction): The single
12580 def-use cycle optimization cannot apply when there's more
12581 than one pattern stmt involved.
12583 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12585 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12586 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12587 (reload_macho_picbase_<mode>): Likewise.
12589 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12591 * config/rs6000/rs6000.md: Move darwin.md include until
12592 after the definition of the mode iterators.
12594 2019-09-23 Martin Sebor <msebor@redhat.com>
12596 PR tree-optimization/91570
12597 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12598 non-constant minlen, maxlen and maxbound.
12600 2019-09-24 Richard Biener <rguenther@suse.de>
12602 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12604 (_stmt_vec_info::cond_reduc_code): ... this.
12605 (_stmt_vec_info::induc_cond_initial_val): Add.
12606 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12607 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12608 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12609 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12610 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12611 the reduction code.
12612 (vect_create_epilog_for_reduction): Drop special
12613 induction condition reduction params, pass in reduction code
12615 (vectorizable_reduction): Perform condition reduction kind
12616 selection only at analysis time. Adjust passing on state.
12618 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12620 * config/aarch64/aarch64.md (mov<mode>): Don't call
12621 aarch64_split_dimode_const_store on volatile MEM.
12623 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12625 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12626 Update hwcap string for fp16fml.
12628 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12630 PR middle-end/91866
12631 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12632 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12634 2019-09-24 Martin Liska <mliska@suse.cz>
12636 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12637 instead of if-elseif-elseif-...
12638 * gimple-expr.c (extract_ops_from_tree): Likewise.
12639 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12640 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12642 2019-09-24 Martin Jambor <mjambor@suse.cz>
12645 * ipa-param-manipulation.c (carry_over_param): Make a method of
12646 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12647 in case of a context mismatch.
12648 (ipa_param_body_adjustments::common_initialization): Adjust call to
12650 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12651 private method carry_over_param.
12653 2019-09-24 Martin Jambor <mjambor@suse.cz>
12656 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12658 2019-09-24 Richard Biener <rguenther@suse.de>
12660 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12663 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12665 * config/arm/t-arm (arm-builtins.o): Add dependency on
12666 arm_acle_builtins.def.
12668 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12671 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12672 canonical CONST_INTs. Use gen_rtvec.
12674 2019-09-23 Richard Biener <rguenther@suse.de>
12676 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12677 avoid adjusting by + 0 or * 1.
12678 (vect_create_epilog_for_reduction): Get reduction code only
12679 when necessary. Deal with adjustment_def only when necessary.
12681 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12683 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12686 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12689 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12692 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12694 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12695 code. Merge code blocks with common conditionals. Use declared
12696 macro instead of a magic number for PIC level.
12698 2019-09-21 Martin Sebor <msebor@redhat.com>
12700 PR middle-end/91830
12701 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12702 Simplify computation of the offset of the referenced subobject.
12704 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12706 * config/darwin.c (machopic_legitimize_pic_address): Check
12707 for lra not reload.
12709 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12711 * ira-conflicts.c (can_use_same_reg_p): New function.
12712 (process_reg_shuffles): Take an insn parameter. Ignore cases
12713 in which input operand op_num could seemingly never be allocated
12714 to the same register as the destination.
12715 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12717 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12719 * simplify-rtx.c (neg_const_int): Replace with...
12720 (neg_poly_int_rtx): ...this new function.
12721 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12722 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12723 (simplify_plus_minus): Likewise for constant terms here.
12725 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12727 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12728 HOST_WIDE_PRINT_UNSIGNED.
12730 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12732 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12735 2019-09-20 Maya Rashish <coypu@sdf.org>
12738 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12739 Define to speculation_safe_value_not_needed.
12741 2019-09-20 Richard Biener <rguenther@suse.de>
12742 Uros Bizjak <ubizjak@gmail.com>
12745 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12747 (general_scalar_chain::convert_op): Force not suitable memory
12748 operands to a register.
12750 2019-09-20 Richard Biener <rguenther@suse.de>
12752 PR tree-optimization/91821
12753 * tree-vect-loop.c (check_reduction_path): Check we can compute
12755 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12756 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12757 operands in canonical order.
12758 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12759 STMT_VINFO_REDUC_IDX.
12760 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12761 (STMT_VINFO_REDUC_IDX): Likewise.
12763 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12766 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12768 2019-09-20 Richard Biener <rguenther@suse.de>
12770 PR tree-optimization/91822
12771 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12773 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12774 for reduc_index in nested cycles, adjust vectorizable_condition
12776 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12778 (vect_analyze_stmt): Adjust.
12779 (vect_transform_stmt): Likewise.
12781 2019-09-20 Richard Biener <rguenther@suse.de>
12784 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12785 Ensure there's a sequence point between allocating the new register
12786 and passing a reference to a reg via regno_reg_rtx.
12788 2019-09-20 Martin Jambor <mjambor@suse.cz>
12790 * coretypes.h (cgraph_edge): Declare.
12791 * ipa-param-manipulation.c: Rewrite.
12792 * ipa-param-manipulation.h: Likewise.
12793 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12794 (OBJS): Added ipa-sra.o.
12795 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12796 and ref_p, added fields param_adjustments and performed_splits.
12797 (struct cgraph_clone_info): Remove ags_to_skip and
12798 combined_args_to_skip, new field param_adjustments.
12799 (cgraph_node::create_clone): Changed parameters to use
12800 ipa_param_adjustments.
12801 (cgraph_node::create_virtual_clone): Likewise.
12802 (cgraph_node::create_virtual_clone_with_body): Likewise.
12803 (tree_function_versioning): Likewise.
12804 (cgraph_build_function_type_skip_args): Removed.
12805 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12806 using ipa_param_adjustments.
12807 (clone_of_p): Likewise.
12808 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12809 (build_function_decl_skip_args): Likewise.
12810 (duplicate_thunk_for_node): Adjust parameters using
12811 ipa_param_body_adjustments, copy param_adjustments instead of
12813 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12814 (cgraph_node::create_virtual_clone): Likewise.
12815 (cgraph_node::create_version_clone_with_body): Likewise.
12816 (cgraph_materialize_clone): Likewise.
12817 (symbol_table::materialize_all_clones): Likewise.
12818 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12819 ipa_replace_map check.
12820 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12821 (initialize_node_lattices): Make aware that some parameters might have
12822 already been removed.
12823 (want_remove_some_param_p): New function.
12824 (create_specialized_node): Convert to using ipa_param_adjustments and
12825 deal with possibly pre-existing adjustments.
12826 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12827 (output_node_opt_summary): Do not stream removed fields. Stream
12828 parameter adjustments instead of argumetns to skip.
12829 (input_node_opt_summary): Likewise.
12830 (input_node_opt_summary): Likewise.
12831 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12832 * lto-streamer.h (lto_section_type): Likewise.
12833 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12835 (copy_decl_to_var): Declare.
12836 * tree-inline.c (update_clone_info): Do not remap old_tree.
12837 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12838 statements, walk all extra generated statements and remap their
12840 (redirect_all_calls): Add killed SSA names to a hash set.
12841 (remap_ssa_name): Do not remap killed SSA names.
12842 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12843 half of functionality moved to ipa_param_body_adjustments.
12844 (copy_decl_to_var): Make exported.
12845 (copy_body): Destroy killed_new_ssa_names hash set.
12846 (expand_call_inline): Remap performed splits.
12847 (update_clone_info): Likewise.
12848 (tree_function_versioning): Simplify tree_map processing. Updated to
12849 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12850 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12851 for the new interface.
12852 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12853 (simd_clone_compute_base_data_type): Likewise.
12854 (simd_clone_init_simd_arrays): Adjust for the new interface.
12855 (simd_clone_adjust_argument_types): Likewise.
12856 (struct modify_stmt_info): Likewise.
12857 (ipa_simd_modify_stmt_ops): Likewise.
12858 (ipa_simd_modify_function_body): Likewise.
12859 (simd_clone_adjust): Likewise.
12860 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12861 (type_internals_preclude_sra_p): Make public.
12862 * tree-sra.h: New file.
12863 * ipa-inline-transform.c (save_inline_function_body): Update to
12864 refelct new tree_function_versioning signature.
12865 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12866 ipa_param_adjustments to get current parameter indices.
12867 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12868 (ipcp_update_bits): Likewise.
12869 (ipcp_update_vr): Likewise.
12870 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12871 * ipa-sra.c: New file.
12872 * multiple_target.c (create_target_clone): Update to reflet new type
12873 of create_version_clone_with_body.
12874 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12875 tree_function_versioning.
12876 (modify_function): Update to reflect new type of
12877 tree_function_versioning.
12878 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12879 * passes.def: Remove old IPA-SRA and add new one.
12880 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12881 (make_pass_ipa_sra): Declare.
12882 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12884 * doc/invoke.texi (ipa-sra-max-replacements): New.
12886 2019-09-19 Martin Sebor <msebor@redhat.com>
12888 PR middle-end/91631
12889 * builtins.c (component_size): Correct trailing array computation,
12890 rename to component_ref_size and move...
12891 (compute_objsize): Adjust.
12892 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12893 (builtin_access::strict): Do not consider memmove.
12894 (builtin_access::write_off): New function.
12895 (builtin_memref::builtin_memref): Initialize refsize.
12896 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12898 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12900 (builtin_access::builtin_access): Initialize dstoff to destination
12901 refeence offset here instead of in maybe_diag_overlap. Adjust
12902 referencess even to unrelated objects. Adjust sizrange of bounded
12903 string functions to reflect bound. For strcat, adjust destination
12904 sizrange by that of source.
12905 (builtin_access::strcat_overlap): Adjust offsets and sizes
12906 to reflect the increase in destination sizrange above.
12907 (builtin_access::overlap): Do not set dstoff here but instead
12908 in builtin_access::builtin_access.
12909 (check_bounds_or_overlap): Use builtin_access::write_off.
12910 (maybe_diag_access_bounds): Add argument. Add informational notes.
12911 (dump_builtin_memref, dump_builtin_access): New functions.
12912 * tree.c (component_ref_size): ...to here.
12913 * tree.h (component_ref_size): Declare.
12914 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12915 nul in the size of the source string.
12917 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12920 * doc/cpp.texi: Document support for extended characters in
12922 * doc/cppopts.texi: Likewise.
12924 2019-09-19 Richard Biener <rguenther@suse.de>
12926 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12927 (check_reduction_path): New overload having the path as result.
12928 (vect_is_simple_reduction): From the detected reduction
12929 path build a SLP reduction chain if possible.
12931 2019-09-19 Richard Biener <rguenther@suse.de>
12934 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12935 Force operand to a register if it isn't nonimmediate_operand.
12937 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12939 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12940 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12941 (logical_op): Remove code attribute.
12942 (logical_OP): Likewise.
12944 2019-09-19 Martin Liska <mliska@suse.cz>
12946 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12947 Use proper casting.
12949 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12951 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12954 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12955 for NE comparison of TImode values.
12956 (aarch64_emit_load_exclusive): Add support for TImode.
12957 (aarch64_emit_store_exclusive): Likewise.
12958 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12959 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12960 Change iterator from ALLI to ALLI_TI.
12961 (@atomic_compare_and_swap<JUST_TI>): New.
12962 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12963 (aarch64_load_exclusive_pair): New.
12964 (aarch64_store_exclusive_pair): New.
12965 * config/aarch64/iterators.md (JUST_TI): New.
12967 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12968 strong_zero_p for aarch64_track_speculation; unify some code paths;
12969 use aarch64_gen_compare_reg instead of open-coding.
12971 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12972 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12973 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12974 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12975 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12976 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12977 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12978 (atomic_<atomic_op><ALLI>): Likewise.
12979 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12980 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12981 * doc/invoke.texi: Document -moutline-atomics.
12983 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12985 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12986 trivial predicate for condition branch.
12987 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12989 (compute_bb_predicates): Update predicate based on post-dominating
12991 (analyze_function_body): Calculate post-dominating information.
12993 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12995 * tree-vectorizer.h (vectorizable_condition): Take an int
12996 reduction index instead of a boolean flag.
12997 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12998 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12999 reductions if the reduction accumulator is the "then" rather
13000 than the "else" value.
13001 (vect_analyze_stmt): Update call accordingly.
13002 (vect_transform_stmt): Likewise.
13003 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13004 asserting that the index is > 0.
13006 2019-09-19 Martin Liska <mliska@suse.cz>
13008 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13009 (sort_congruence_classes_by_decl_uid): Likewise.
13010 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13012 (sem_item_optimizer::merge_classes): Likewise.
13014 2019-09-19 Richard Biener <rguenther@suse.de>
13016 PR tree-optimization/91812
13017 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13020 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13022 * defaults.h (TARGET_UNIT): New macro.
13023 (target_unit): New type.
13024 * rtl.h (native_encode_rtx, native_decode_rtx)
13025 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13026 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13027 * rtlanal.c (subreg_lsb_1): Delete.
13028 (subreg_size_lsb): New function.
13029 * simplify-rtx.c: Include rtx-vector-builder.h
13030 (simplify_immed_subreg): Delete.
13031 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13032 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13034 (simplify_subreg): Use them.
13035 (test_vector_subregs_modes, test_vector_subregs_repeating)
13036 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13037 (test_vector_subregs): New functions.
13038 (test_vector_ops): Call test_vector_subregs for integer vector
13039 modes with at least 2 elements.
13041 2019-09-19 Richard Biener <rguenther@suse.de>
13043 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13044 LOOP_VINFO_OPERANDS_SWAPPED.
13045 (parloops_is_simple_reduction): Likewise.
13046 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13047 initialize operands_swapped.
13048 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13049 (vect_is_slp_reduction): Do not swap operands.
13050 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13051 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13053 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13056 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13057 Add avx_partial_xmm_update.
13059 2019-09-18 Jim Wilson <jimw@sifive.com>
13062 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13063 (riscv_move_integer): Likewise.
13064 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13065 riscv_move_integer arg.
13066 (riscv_legitimize_move): Likewise.
13067 (riscv_force_temporary): New parameter in_splitter. Don't call
13069 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13071 (riscv_add_offset): Likewise.
13072 (riscv_split_symbol): New parameter in_splitter. Pass to
13073 riscv_force_temporary.
13074 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13076 (riscv_move_integer): New parameter in_splitter. New local
13077 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13079 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13080 riscv_split_symbol, and riscv_force_temporary args.
13081 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13082 riscv_move_integer arg.
13083 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13085 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13088 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13089 hard register store cost to 6.
13091 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13094 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13095 pseudo register store cost from 3 to 6 to make it the same as
13098 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13101 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13102 (one_cmpldi2): Likewise.
13103 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13104 of the constant parts is simple.
13105 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13106 (logical_op): Add new code attribute.
13107 (logical_OP): Likewise.
13108 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13109 (arm_iordi_operand): Add predicate.
13110 (arm_xordi_operand): Add predicate.
13112 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13114 * config/arm/arm.md (maddsidi4): Remove expander.
13115 (mulsidi3adddi): Remove pattern.
13116 (mulsidi3adddi_v6): Likewise.
13117 (mulsidi3_nov6): Likewise.
13118 (mulsidi3_v6): Likewise.
13119 (umulsidi3): Remove expander.
13120 (umulsidi3_nov6): Remove pattern.
13121 (umulsidi3_v6): Likewise.
13122 (umulsidi3adddi): Likewise.
13123 (umulsidi3adddi_v6): Likewise.
13124 (<Us>mulsidi3): Add combined expander.
13125 (<Us>maddsidi4): Likewise.
13126 (<US>mull): Add combined umull and smull pattern.
13127 (<US>mlal): Likewise.
13128 * config/arm/iterators.md (Us): Add new iterator.
13130 2019-09-18 Richard Biener <rguenther@suse.de>
13132 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13134 (vectorize_fold_left_reduction): Remove assert.
13135 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13136 operand in position 2. Remove assert.
13138 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13140 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13141 (smulsi3_highpart_nov6): Remove pattern.
13142 (smulsi3_highpart_v6): Likewise.
13143 (umulsi3_highpart): Likewise.
13144 (umulsi3_highpart_nov6): Likewise.
13145 (umulsi3_highpart_v6): Likewise.
13146 (<US>mull_high): Add new combined multiply pattern.
13148 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13150 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13151 (arm_mulsi3_v6): Likewise.
13152 (mulsi3addsi_v6): Likewise.
13153 (mulsi3subsi): Likewise.
13154 (mul): Add new multiply pattern.
13158 2019-09-18 Richard Biener <rguenther@suse.de>
13160 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13161 (parloops_valid_reduction_input_p): Copy from
13162 valid_reduction_input_p.
13163 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13164 (parloops_needs_fold_left_reduction_p): Copy from
13165 needs_fold_left_reduction_p.
13166 (parloops_is_simple_reduction): Copy from
13167 vect_is_simple_reduction.
13168 (parloops_force_simple_reduction): Copy from
13169 vect_force_simple_reduction.
13170 (gather_scalar_reductions): Adjust.
13171 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13172 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13174 2019-09-18 Richard Biener <rguenther@suse.de>
13176 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13177 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13179 (vect_create_epilog_for_reduction): Remove dead code.
13181 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13183 * varasm.c (assemble_real): Generate canonical const_ints.
13185 2019-09-18 Richard Biener <rguenther@suse.de>
13188 * lto-streamer-in.c (input_eh_regions): Move EH init to
13189 lto_materialize_function.
13190 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13193 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13195 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13198 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13200 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13201 of checking specifically for INTEGER_CST.
13203 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13205 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13206 sizes instead of uhwi sizes.
13208 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13210 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13211 (add_const_value_attribute): Handle CONST_POLY_INT.
13213 2019-09-18 Martin Liska <mliska@suse.cz>
13215 * dbgcnt.def (store_merging): New counter.
13216 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13217 Use it in store merging.
13219 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13221 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13223 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13224 * config/arm/arm.c (arm_sched_variable_issue): New function.
13225 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13227 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13229 * config/arm/types.md (no_reservation): New reservation.
13230 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13232 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13233 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13234 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13235 * config/arm/arm1020e.md (1020alu_op): Likewise.
13236 * config/arm/arm1026ejs.md (alu_op): Likewise.
13237 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13238 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13239 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13240 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13241 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13242 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13243 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13244 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13245 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13246 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13247 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13248 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13249 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13250 * config/arm/fa526.md (526_alu_op): Likewise.
13251 * config/arm/fa606te.md (606te_alu_op): Likewise.
13252 * config/arm/fa626te.md (626te_alu_op): Likewise.
13253 * config/arm/fa726te.md (726te_alu_op): Likewise.
13254 * config/arm/xgene1.md (xgene1_nop): Likewise.
13256 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13258 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13259 "no_insn" to "branch".
13261 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13263 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13265 2019-09-17 Richard Biener <rguenther@suse.de>
13268 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13269 was missing generate locations only once.
13271 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13274 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13276 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13277 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13278 for switch default case using range analysis information.
13280 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13283 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13284 mode attributed is supported by FDPIC.
13286 2019-09-17 Richard Biener <rguenther@suse.de>
13288 PR tree-optimization/91790
13289 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13290 use the correct DR for setting up realignment.
13292 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13295 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13296 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13297 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13298 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13300 2019-09-16 Jason Merrill <jason@redhat.com>
13302 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13304 2019-09-16 Martin Liska <mliska@suse.cz>
13306 * gimple-fold.c (or_comparisons_1): Remove rules moved
13308 * match.pd: ... here.
13310 2019-09-16 Martin Liska <mliska@suse.cz>
13312 * gimple-fold.c (or_comparisons_1): Remove rules
13314 * match.pd: ... here.
13316 2019-09-16 Martin Liska <mliska@suse.cz>
13318 * genmatch.c (dt_node::append_simplify): Do not print
13319 warning when we have duplicate patterns belonging
13320 to a same simplify rule.
13321 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13322 (maybe_fold_comparisons_from_match_pd): Handle
13323 tcc_comparison as a results.
13324 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13326 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13327 Qi Feng <ffengqi@linux.ibm.com>
13329 PR middle-end/88784
13330 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13331 (x > y && x == XXX_MIN): Optimize into 'false'.
13332 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13333 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13334 (x < y && x == XXX_MAX): Optimize into 'false'.
13335 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13336 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13337 (x <= y || x != XXX_MIN): Optimize into 'true'.
13338 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13339 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13340 (x >= y || x != XXX_MAX): Optimize into 'true'.
13341 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13343 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13344 Martin Liska <mliska@suse.cz>
13346 * gimple-fold.c (and_comparisons_1): Add type as first
13348 (and_var_with_comparison): Likewise.
13349 (and_var_with_comparison_1): Likewise.
13350 (or_comparisons_1): Likewise.
13351 (or_var_with_comparison): Likewise.
13352 (or_var_with_comparison_1): Likewise.
13353 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13354 (maybe_fold_or_comparisons): Likewise.
13355 (maybe_fold_comparisons_from_match_pd): New.
13356 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13357 (maybe_fold_or_comparisons): Likewise.
13358 * gimple.c (gimple_size): Make it public and add num_ops argument.
13359 (gimple_init): New function.
13360 (gimple_alloc): Call gimple_init.
13361 * gimple.h (gimple_size): New.
13362 (gimple_init): Likewise.
13363 * tree-if-conv.c (fold_or_predicates): Pass type.
13364 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13365 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13366 (optimize_vec_cond_expr): Likewise.
13367 (ovce_extract_ops): Return type of conditional expression.
13368 * tree-ssanames.c (init_ssa_name_imm_use): New.
13369 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13370 * tree-ssanames.h (init_ssa_name_imm_use): New.
13372 2019-09-16 Richard Biener <rguenther@suse.de>
13374 PR tree-optimization/91756
13375 PR tree-optimization/87132
13376 * tree-ssa-alias.h (enum translate_flags): New.
13377 (get_continuation_for_phi): Use it instead of simple bool flag.
13378 (walk_non_aliased_vuses): Likewise.
13379 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13380 (get_continuation_for_phi): When looking across backedges only
13381 disallow valueization.
13382 (walk_non_aliased_vuses): Adjust.
13383 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13386 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13388 PR middle-end/80791
13389 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13390 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13391 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13392 * target.def (have_count_reg_decr_p): New hook.
13393 (doloop_cost_for_generic): Likewise.
13394 (doloop_cost_for_address): Likewise.
13395 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13396 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13397 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13398 * doc/tm.texi: Regenerate.
13399 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13401 (record_group): Init doloop_p.
13402 (add_candidate_1): Add optional argument doloop, change the handlings
13404 (add_candidate): Likewise.
13405 (generic_predict_doloop_p): Update attribute.
13406 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13407 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13408 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13410 (get_computation_cost): Update for doloop IV cand extra cost.
13411 (determine_group_iv_cost_cond): Update for doloop IV cand.
13412 (determine_iv_cost): Likewise.
13413 (ivopts_estimate_reg_pressure): Likewise.
13414 (may_eliminate_iv): Update handlings for doloop IV cand.
13415 (add_iv_candidate_for_doloop): New function.
13416 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13417 (iv_ca_set_no_cp): Update for doloop IV cand.
13418 (iv_ca_set_cp): Likewise.
13419 (iv_ca_dump): Dump register cost.
13420 (find_doloop_use): New function.
13421 (analyze_and_mark_doloop_use): Likewise.
13422 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13424 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13426 PR middle-end/91708
13427 * cse.c (cse_insn): Do not replace anything with a
13430 2019-09-13 Ian Lance Taylor <iant@golang.org>
13432 * doc/invoke.texi (Optimize Options): Fix typo.
13434 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13436 PR tree-optimization/89386
13437 * config/i386/sse.md (smulhrs<mode>3): New expander.
13438 (smulhrsv4hi3): Ditto.
13440 2019-09-12 Richard Biener <rguenther@suse.de>
13442 PR tree-optimization/91750
13443 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13444 in the type of the evolution.
13446 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13448 PR tree-optimization/89386
13449 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13450 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13451 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13452 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13453 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13454 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13455 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13456 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13457 (su, r): Handle the unspecs above.
13458 (bt): New int attribute.
13459 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13460 * internal-fn.c (first_commutative_argument): Commutativity info for
13462 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13463 (umulhrs_optab): New optabs.
13464 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13465 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13466 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13468 (vect_vect_recog_func_ptrs): Add it.
13470 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13472 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13475 2019-09-11 Nathan Sidwell <nathan@acm.org>
13477 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13478 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13480 2019-09-11 Richard Biener <rguenther@suse.de>
13482 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13483 * lto-wrapper.c (merge_and_complain): Pick up -g.
13484 (append_compiler_options): Likewise.
13485 (run_gcc): Re-instantiate handling -g0 at link-time.
13486 * doc/invoke.texi (flto): Document debug info generation.
13488 2019-09-11 Richard Biener <rguenther@suse.de>
13490 PR tree-optimization/90387
13491 * vr-values.c (vr_values::extract_range_basic): After inlining
13492 simplify non-constant __builtin_constant_p to false.
13494 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13496 PR rtl-optimization/89795
13497 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13498 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13500 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13502 PR tree-optimization/91723
13503 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13504 instead of pointer equality when checking if argument vectypes are
13507 PR middle-end/91725
13508 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13509 of get_nonzero_bits, only call it for integral types.
13511 2019-09-11 Richard Biener <rguenther@suse.de>
13514 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13516 * match.pd: Add flag_unsafe_math_optimizations check
13517 before deciding on the widest type in a binary math operation.
13519 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13521 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13522 and CALL_REALLY_USED_REGISTERS must be defined, and that
13523 CALL_REALLY_USED_REGISTERS is preferred.
13524 * doc/tm.texi: Regenerate.
13525 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13526 (call_really_used_regs): Likewise.
13527 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13528 CALL_REALLY_USED_REGISTERS are defined.
13529 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13530 initial value if defined.
13531 (initial_call_really_used_regs): Delete.
13532 (saved_call_really_used_regs): Likewise.
13533 (CALL_REALLY_USED_REGNO_P): Likewise.
13534 (init_reg_sets): Remove handling of call_really_used_regs.
13535 (save_register_info, restore_register_info, globalize_reg): Likewise.
13536 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13537 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13538 outside operand_reg_set.
13539 (fix_register): Don't change call_used_regs if
13540 CALL_REALLY_USED_REGISTERS is defined.
13541 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13542 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13543 instead of call_really_used_regs.
13544 (csky_conditional_register_usage): Remove the old handling of
13545 call_used_regs and change the handling of call_really_used_regs
13546 to use call_used_regs instead.
13547 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13548 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13549 making a register fixed.
13550 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13551 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13552 instead of call_really_used_regs.
13553 (m32r_conditional_register_usage): Don't set call_used_regs when
13554 making a register fixed.
13555 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13556 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13557 instead of call_really_used_regs.
13558 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13559 (mips_cfun_call_saved_reg_p): Likewise.
13560 (mips_swap_registers): Remove the old handling of call_used_regs
13561 and change the handling of call_really_used_regs to use call_used_regs
13563 (mips_conditional_register_usage): Likewise.
13564 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13565 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13566 instead of call_really_used_regs.
13567 (mn10300_get_live_callee_saved_regs): Likewise.
13568 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13569 (mn10300_conditional_register_usage): Don't set call_used_regs when
13570 making a register fixed.
13571 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13572 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13573 Remove the old handling of call_used_regs and change the handling
13574 of call_really_used_regs to use call_used_regs instead.
13575 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13576 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13577 instead of call_really_used_regs.
13578 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13579 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13580 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13581 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13582 (s390_conditional_register_usage): Remove the old handling of
13583 call_used_regs and change the handling of call_really_used_regs
13584 to use call_used_regs instead.
13585 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13586 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13587 (sh_fix_range, reg_unused_after): Likewise.
13588 (sh_conditional_register_usage): Remove the old handling of
13589 call_used_regs and change the handling of call_really_used_regs
13590 to use call_used_regs instead.
13591 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13592 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13593 call_used_regs when making a register fixed.
13594 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13595 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13596 call_used_regs when making a register fixed.
13597 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13598 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13599 set call_used_regs when making a register fixed.
13600 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13601 * config/visium/visium.c (visium_conditional_register_usage): Remove
13602 the old handling of call_used_regs and change the handling of
13603 call_really_used_regs to use call_used_regs instead.
13605 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13607 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13608 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13609 * reginfo.c (call_used_regs): New macro.
13611 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13613 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13615 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13616 (bpf_expand_epilogue): Likewise.
13617 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13618 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13619 (ft32_expand_epilogue): Likewise.
13620 * config/i386/i386.c (ix86_save_reg): Likewise.
13621 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13622 (moxie_expand_epilogue): Likewise.
13623 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13624 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13625 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13627 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13629 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13630 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13631 instead of testing call_used_regs directly.
13632 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13633 (aarch64_components_for_bb): Likewise.
13634 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13635 * config/arc/arc.c (arc_must_save_register): Likewise.
13636 (arc_epilogue_uses): Likewise.
13637 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13638 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13639 (arm_compute_save_reg0_reg12_mask): Likewise.
13640 (arm_compute_save_core_reg_mask): Likewise.
13641 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13642 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13643 (cmse_nonsecure_entry_clear_before_return): Likewise.
13644 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13645 (arm_expand_epilogue): Likewise.
13646 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13647 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13648 (_reg_unused_after): Likewise.
13649 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13650 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13651 (add_to_reg, hwloop_optimize): Likewise.
13652 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13653 (bpf_expand_epilogue): Likewise.
13654 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13655 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13656 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13657 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13658 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13659 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13660 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13661 * config/frv/frv.c (frv_stack_info): Likewise.
13662 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13663 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13664 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13665 (move_callee_saved_registers): Likewise.
13666 * config/h8300/h8300.c (byte_reg): Likewise.
13667 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13668 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13669 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13670 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13671 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13672 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13673 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13674 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13675 * config/m32c/m32c.c (need_to_save): Likewise.
13676 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13677 * config/mcore/mcore.c (calc_live_regs): Likewise.
13678 * config/microblaze/microblaze.c (microblaze_must_save_register):
13680 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13681 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13682 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13683 (mmix_expand_epilogue): Likewise.
13684 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13685 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13686 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13687 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13688 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13689 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13690 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13691 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13692 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13693 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13694 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13695 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13696 * config/rl78/rl78.c (need_to_save): Likewise.
13697 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13698 (rs6000_stack_info, generate_set_vrsave): Likewise.
13699 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13700 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13701 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13702 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13703 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13704 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13705 (save_local_or_in_reg_p): Likewise.
13706 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13707 (xstormy16_epilogue_uses): Likewise.
13708 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13709 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13710 * config/v850/v850.c (compute_register_save_size): Likewise.
13711 * config/vax/vax.c (vax_expand_prologue): Likewise.
13712 * config/visium/visium.c (visium_save_reg_p): Likewise.
13713 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13714 * cselib.c (cselib_process_insn): Likewise.
13715 * df-scan.c (df_get_entry_block_def_set): Likewise.
13716 * function.c (aggregate_value_p): Likewise.
13717 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13718 * ira-lives.c (process_bb_node_lives): Likewise.
13719 * ira.c (do_reload): Likewise.
13720 * lra-lives.c (process_bb_lives): Likewise.
13721 * lra-remat.c (lra_remat): Likewise.
13722 * lra.c (lra): Likewise.
13723 * postreload.c (reload_combine_recognize_pattern): Likewise.
13724 (reload_cse_move2add): Likewise.
13725 * recog.c (peep2_find_free_register): Likewise.
13726 * regrename.c (check_new_reg_p): Likewise.
13727 * reload.c (find_equiv_reg): Likewise.
13728 * reload1.c (reload, find_reg): Likewise.
13729 * sel-sched.c (init_hard_regs_data): Likewise.
13731 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13733 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13734 regs_invalidated_by_call & ~fixed_reg_set instead of
13735 call_used_or_fixed_regs & ~fixed_reg_set.
13736 * config/sh/sh.c (output_stack_adjust): Likewise.
13738 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13740 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13741 (call_used_reg_set): Delete.
13742 (call_used_or_fixed_regs): New macro.
13743 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13744 of call_used_reg_set.
13745 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13746 instead of call_used_regs.
13747 (save_call_clobbered_regs): Likewise.
13748 * cfgcleanup.c (old_insns_match_p): Likewise.
13749 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13750 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13752 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13753 * config/sh/sh.c (output_stack_adjust): Likewise.
13754 * final.c (collect_fn_hard_reg_usage): Likewise.
13755 * ira-build.c (ira_build): Likewise.
13756 * ira-color.c (calculate_saved_nregs): Likewise.
13757 (allocno_reload_assign, calculate_spill_cost): Likewise.
13758 * ira-conflicts.c (ira_build_conflicts): Likewise.
13759 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13760 * ira-lives.c (process_bb_node_lives): Likewise.
13761 * ira.c (setup_reg_renumber): Likewise.
13762 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13763 * lra-constraints.c (need_for_call_save_p): Likewise.
13764 (need_for_split_p, inherit_in_ebb): Likewise.
13765 * lra-lives.c (process_bb_lives): Likewise.
13766 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13767 * postreload.c (reload_combine): Likewise.
13768 * regrename.c (find_rename_reg): Likewise.
13769 * reload1.c (reload_as_needed): Likewise.
13770 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13771 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13772 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13774 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13776 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13777 (no_caller_save_reg_set): Delete.
13778 * caller-save.c (init_caller_save): Don't initialize it.
13779 * ira-conflicts.c (ira_build_conflicts): Calculate
13780 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13782 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13784 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13785 (target_hard_regs::x_savable_regs): New field.
13786 (call_fixed_reg_set): Delete.
13787 (savable_regs): New macro,
13788 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13789 (init_reg_sets_1): Likewise. Initialize savable_regs.
13790 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13791 for all registers. Set savable_regs instead of call_fixed_reg_set.
13792 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13793 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13794 * config/sh/sh.c (output_stack_adjust): Likewise.
13796 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13798 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13799 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13800 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13802 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13804 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13805 * rtlanal.c (get_call_rtx_from): Likewise.
13806 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13807 than the pattern to get_call_rtx_from.
13808 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13809 an rtx_insn * instead of an rtx.
13810 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13812 2019-09-10 Martin Liska <mliska@suse.cz>
13814 * common.opt: Use newly added WarnRemoved.
13815 * config/aarch64/aarch64.opt: Likewise.
13816 * config/arm/arm.opt: Likewise.
13817 * config/i386/i386.opt: Likewise.
13818 * config/ia64/ia64.opt: Likewise.
13819 * config/rs6000/rs6000.opt: Likewise.
13820 * doc/options.texi: Document WarnRemoved properly.
13821 * dwarf2out.c (gen_producer_string): Handle renamed
13822 OPT_SPECIAL_warn_removed.
13823 * lto-opts.c (lto_write_options): Likewise.
13824 * lto-wrapper.c (merge_and_complain): Likewise.
13825 * opts-common.c (decode_cmdline_option): Likewise.
13826 (prune_options): Likewise.
13827 (read_cmdline_option): Likewise.
13828 (control_warning_option): Likewise.
13829 * opts.c (print_filtered_help): Likewise.
13830 * optc-gen.awk: Parse for WarnRemoved and make usage
13831 of Deprecated an error.
13832 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13834 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13836 * doc/install.texi: Fix syntax for html generation.
13838 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13840 PR middle-end/91680
13841 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13842 the shift type to type.
13844 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13846 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13848 (stack_protect_combined_test_insn): Likewise.
13850 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13851 Mickaël Guêné <mickael.guene@st.com>
13853 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13854 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13855 (load_tp_soft_fdpic): New pattern.
13856 (load_tp_soft): Disable in FDPIC mode.
13858 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13859 Mickaël Guêné <mickael.guene@st.com>
13861 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13862 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13863 (arm_call_tls_get_addr): Add FDPIC support.
13864 (legitimize_tls_address): Likewise.
13865 (arm_emit_tls_decoration): Likewise.
13867 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13868 Mickaël Guêné <mickael.guene@st.com>
13870 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13872 (arm_trampoline_init): Likewise.
13873 (arm_trampoline_adjust_address): Likewise.
13874 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13876 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13877 Mickaël Guêné <mickael.guene@st.com>
13879 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13880 (legitimize_pic_address): Enforce binding rules on function
13881 pointers in FDPIC mode.
13882 (arm_assemble_integer): Likewise.
13884 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13885 Mickaël Guêné <mickael.guene@st.com>
13887 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13888 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13891 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13892 Mickaël Guêné <mickael.guene@st.com>
13894 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13897 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13898 Mickaël Guêné <mickael.guene@st.com>
13900 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13902 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13904 * config/arm/arm.c (arm_option_override): Define pic register to
13906 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13907 have no decl or go through PLT.
13908 (calculate_pic_address_constant): New function.
13909 (legitimize_pic_address): Call calculate_pic_address_constant.
13910 (arm_load_pic_register): Handle TARGET_FDPIC.
13911 (arm_is_segment_info_known): New function.
13912 (arm_pic_static_addr): Add support for FDPIC.
13913 (arm_load_function_descriptor): New function.
13914 (arm_emit_call_insn): Add support for FDPIC.
13915 (arm_assemble_integer): Add support for FDPIC.
13916 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13917 Define. (FDPIC_REGNUM): New define.
13918 * config/arm/arm.md (call): Add support for FDPIC.
13919 (call_value): Likewise.
13920 (restore_pic_register_after_call): New pattern.
13921 (untyped_call): Disable if FDPIC.
13922 (untyped_return): Likewise.
13923 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13925 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13926 Mickaël Guêné <mickael.guene@st.com>
13928 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13929 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13930 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13931 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13932 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13933 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13934 * config/arm/uclinuxfdpiceabi.h: New file.
13936 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13938 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13940 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13941 Mickaël Guêné <mickael.guene@st.com>
13943 * config/arm/arm.opt: Add -mfdpic option.
13944 * doc/invoke.texi: Add documentation for -mfdpic.
13946 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13948 * expmed.c (extract_bit_field): Update function comment
13950 * expr.c (expand_expr_real): Update function comment
13952 (expand_misaligned_mem_ref): New helper function.
13953 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13954 Remove duplicate assignment to "base" at case MEM_REF.
13955 Remove a shadowed variable "unsignedp" at case VCE.
13957 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13959 * regset.h (regs_invalidated_by_call_regset): Delete.
13960 (fixed_reg_set_regset): Likewise.
13961 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13962 (fixed_reg_set_regset, persistent_obstack): Likewise.
13963 (init_reg_sets_1, globalize_reg): Update accordingly.
13964 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13965 instead of a bitmap.
13966 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13967 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13968 instead of regs_invalidated_by_call_regset.
13969 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13970 * df-scan.c (df_scan_start_dump): Likewise.
13971 * dse.c (copy_fixed_regs): Likewise.
13972 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13974 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13976 * array-traits.h: New file.
13977 * coretypes.h (array_traits, bitmap_view): New types.
13978 * bitmap.h: Include "array-traits.h"
13979 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13980 (base_bitmap_view, bitmap_view): New classes.
13981 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13982 * hard-reg-set.h: Include array-traits.h.
13983 (array_traits<HARD_REG_SET>): New struct.
13984 * regset.h (IOR_REG_SET_HRS): New macro.
13985 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13986 rather than iterating over each hard register.
13987 * sched-deps.c (sched_analyze_insn): Likewise.
13988 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13990 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13992 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13993 instead of a HARD_REG_SET *.
13994 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13995 (ira_build): Update call accordingly.
13996 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13998 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14000 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14001 (HARD_REG_SET::operator!=): Likewise.
14002 (hard_reg_set_equal_p): Delete.
14003 * cfgcleanup.c (old_insns_match_p): Use == instead of
14004 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14005 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14006 (add_allocno_hard_regs_to_forest): Likewise.
14007 (setup_allocno_available_regs_num): Likewise.
14008 * ira.c (setup_pressure_classes): Likewise.
14009 (setup_allocno_and_important_classes): Likewise.
14010 (setup_reg_class_relations): Likewise.
14011 * lra-lives.c (process_bb_lives): Likewise.
14012 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14014 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14016 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14017 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14018 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14019 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14021 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14022 * ira.c (setup_reg_renumber): Likewise.
14023 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14024 * regrename.c (regrename_find_superclass): Likewise.
14025 * reload1.c (find_reg): Likewise.
14027 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14029 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14030 * caller-save.c (setup_save_areas): Use "&~" instead of
14031 AND_COMPL_HARD_REG_SET.
14032 (save_call_clobbered_regs): Likewise.
14033 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14035 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14036 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14037 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14038 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14039 (mips_conditional_register_usage): Likewise.
14040 * config/sh/sh.c (output_stack_adjust): Likewise.
14041 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14042 (setup_profitable_hard_regs): Likewise.
14043 (get_conflict_and_start_profitable_regs): Likewise.
14044 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14045 (ira_build_conflicts): Likewise.
14046 * ira-costs.c (restrict_cost_classes): Likewise.
14047 (setup_regno_cost_classes_by_aclass): Likewise.
14048 * ira-lives.c (process_bb_node_lives): Likewise.
14049 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14050 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14051 (setup_allocno_and_important_classes, setup_class_translate_array)
14052 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14054 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14055 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14056 (process_alt_operands, inherit_in_ebb): Likewise.
14057 * lra-eliminations.c (update_reg_eliminate): Likewise.
14058 * lra-lives.c (process_bb_lives): Likewise.
14059 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14060 * resource.c (find_dead_or_set_registers): Likewise.
14061 (mark_target_live_regs): Likewise.
14062 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14063 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14064 (implicit_clobber_conflict_p): Likewise.
14065 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14066 (try_shrink_wrapping): Likewise.
14068 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14070 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14071 (HARD_REG_SET::operator|=): Likewise.
14072 (IOR_HARD_REG_SET): Delete.
14073 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14075 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14076 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14077 * final.c (collect_fn_hard_reg_usage): Likewise.
14078 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14079 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14080 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14081 (propagate_some_info_from_allocno): Likewise.
14082 (copy_info_to_removed_store_destinations): Likewise.
14083 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14084 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14085 (fast_allocation): Likewise.
14086 * ira-conflicts.c (ira_build_conflicts): Likewise.
14087 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14088 (process_bb_node_lives): Likewise.
14089 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14090 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14091 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14092 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14093 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14094 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14095 (process_bb_lives): Likewise.
14096 * lra-spills.c (assign_spill_hard_regs): Likewise.
14097 * postreload.c (reload_combine): Likewise.
14098 * reginfo.c (init_reg_sets_1): Likewise.
14099 * regrename.c (merge_overlapping_regs, find_rename_reg)
14100 (merge_chains): Likewise.
14101 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14102 (find_reload_regs, finish_spills, choose_reload_regs_init)
14103 (emit_reload_insns): Likewise.
14104 * reorg.c (redundant_insn): Likewise.
14105 * resource.c (find_dead_or_set_registers, mark_set_resources)
14106 (mark_target_live_regs): Likewise.
14107 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14108 * sched-deps.c (sched_analyze_insn): Likewise.
14109 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14110 (find_best_reg_for_expr): Likewise.
14111 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14113 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14115 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14116 (HARD_REG_SET::operator&): Likewise.
14117 (AND_HARD_REG_SET): Delete.
14118 * caller-save.c (setup_save_areas): Use "&" instead of
14120 (save_call_clobbered_regs): Likewise.
14121 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14122 * config/m32c/m32c.c (reduce_class): Likewise.
14123 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14124 * final.c (get_call_reg_set_usage): Likewise.
14125 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14126 (setup_left_conflict_sizes_p): Likewise.
14127 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14128 (ira_build_conflicts): Likewise.
14129 * ira-costs.c (restrict_cost_classes): Likewise.
14130 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14131 (setup_reg_class_relations): Likewise.
14132 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14133 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14134 * resource.c (find_dead_or_set_registers): Likewise.
14135 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14137 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14139 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14140 (COMPL_HARD_REG_SET): Delete.
14141 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14142 of COMPL_HARD_REG_SET.
14143 (try_rename_operands): Likewise.
14144 * config/sh/sh.c (push_regs): Likewise.
14145 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14146 * lra-constraints.c (contains_reg_p): Likewise.
14147 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14149 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14151 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14152 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14153 of COPY_HARD_REG_SET.
14154 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14155 (epiphany_conditional_register_usage): Likewise.
14156 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14157 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14158 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14159 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14160 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14161 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14162 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14163 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14164 * config/sh/sh.c (output_stack_adjust): Likewise.
14165 * final.c (collect_fn_hard_reg_usage): Likewise.
14166 (get_call_reg_set_usage): Likewise.
14167 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14168 (ira_flattening): Likewise.
14169 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14170 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14171 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14172 (ira_reassign_pseudos): Likewise.
14173 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14174 (ira_build_conflicts): Likewise.
14175 * ira-costs.c (restrict_cost_classes): Likewise.
14176 (setup_regno_cost_classes_by_aclass): Likewise.
14177 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14178 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14179 (setup_stack_reg_pressure_class, setup_pressure_classes)
14180 (setup_allocno_and_important_classes, setup_class_translate_array)
14181 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14182 (ira_setup_eliminable_regset): Likewise.
14183 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14184 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14185 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14186 (process_alt_operands, inherit_in_ebb): Likewise.
14187 * lra-lives.c (process_bb_lives): Likewise.
14188 * lra-spills.c (assign_spill_hard_regs): Likewise.
14189 * lra.c (lra): Likewise.
14190 * mode-switching.c (new_seginfo): Likewise.
14191 * postreload.c (reload_combine): Likewise.
14192 * reg-stack.c (straighten_stack): Likewise.
14193 * reginfo.c (save_register_info, restore_register_info): Likewise.
14194 (init_reg_sets_1, record_subregs_of_mode): Likewise
14195 * regrename.c (create_new_chain, rename_chains): Likewise.
14196 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14197 (find_reload_regs): Likewise.
14198 * resource.c (find_dead_or_set_registers): Likewise.
14199 (mark_target_live_regs): Likewise.
14200 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14202 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14204 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14205 (note_pattern_stores): Declare.
14206 (note_stores): Take an rtx_insn *.
14207 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14208 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14209 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14210 (note_stores): Take an rtx_insn * as argument and process
14211 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14212 (note_pattern_stores): ...this.
14213 (find_first_parameter_load): Pass the insn rather than
14214 its pattern to note_stores.
14215 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14216 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14217 (insert_one_insn): Likewise.
14218 * combine.c (combine_instructions): Likewise.
14219 (likely_spilled_retval_p): Likewise.
14220 (try_combine): Use note_pattern_stores instead of note_stores.
14221 (record_dead_and_set_regs): Pass the insn rather than its pattern
14223 (reg_dead_at_p): Likewise.
14224 * config/bfin/bfin.c (workaround_speculation): Likewise.
14225 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14226 rather than an rtx.
14227 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14228 instead of note_stores.
14229 (frv_optimize_membar_local): Pass the insn rather than its pattern
14231 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14232 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14233 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14234 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14235 (mips_reorg_process_insns): Likewise.
14236 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14237 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14239 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14240 its pattern to note_stores.
14241 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14243 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14244 the insn to note_stores.
14245 (prescan_insns_for_dce): Update call accordingly.
14246 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14248 * df-problems.c (can_move_insns_across): Likewise.
14249 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14250 * function.c (assign_parm_setup_reg): Likewise.
14251 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14252 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14253 (single_set_gcse): Likewise.
14254 * ira.c (validate_equiv_mem): Likewise.
14255 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14257 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14258 pattern to note_stores.
14259 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14260 * loop-iv.c (simplify_using_initial_values): Likewise.
14261 * mode-switching.c (optimize_mode_switching): Likewise.
14262 * optabs.c (emit_libcall_block_1): Likewise.
14263 (expand_atomic_compare_and_swap): Likewise.
14264 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14265 (record_opr_changes): Likewise. Remove explicit handling of
14266 CALL_INSN_FUNCTION_USAGE.
14267 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14268 * regcprop.c (kill_clobbered_values): Likewise.
14269 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14271 * regrename.c (build_def_use): Likewise.
14272 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14273 for mark_not_eliminable.
14274 (reload_as_needed): Pass the insn rather than its pattern
14276 (emit_output_reload_insns): Likewise.
14277 * resource.c (mark_target_live_regs): Likewise.
14278 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14279 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14280 instead of note_stores.
14281 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14282 its pattern to note_stores.
14283 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14284 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14286 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14288 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14289 than a #define. Use a structure rather than an array as the
14290 fallback definition. Remove special cases for low array sizes.
14291 (const_hard_reg_set): New typedef.
14292 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14293 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14294 (hard_reg_set_empty_p): Likewise.
14295 (SET_HARD_REG_BIT): Use a function rather than a macro to
14296 handle the case in which HARD_REG_SET is a structure.
14297 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14298 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14299 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14300 (IOR_COMPL_HARD_REG_SET): Likewise.
14301 (hard_reg_set_iterator::pset): Constify the pointer target.
14302 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14303 of a "const HARD_REG_SET". Update the handling of non-integer
14305 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14306 * reload.h: Likewise.
14307 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14308 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14309 of a "const HARD_REG_SET".
14310 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14311 (range_in_hard_reg_set_p): Likewise.
14312 * ira-costs.c (restrict_cost_classes): Likewise.
14313 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14314 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14315 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14316 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14317 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14318 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14319 take an unsigned int and open-code the HARD_REG_SET operations.
14321 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14323 * Makefile.in (OBJS): Remove bt-load.o.
14324 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14325 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14326 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14327 document that the option no longer does anything.
14328 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14329 * target.def (branch_target_register_class): Delete.
14330 (branch_target_register_callee_saved): Likewise.
14331 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14332 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14333 * doc/tm.texi: Regenerate.
14334 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14335 (make_pass_branch_target_load_optimize2): Likewise.
14336 * passes.def (pass_branch_target_load_optimize1): Likewise.
14337 (pass_branch_target_load_optimize2): Likewise.
14338 * targhooks.h (default_branch_target_register_class): Likewise.
14339 * targhooks.c (default_branch_target_register_class): Likewise.
14340 * opt-suggestions.c (test_completion_valid_options): Remove
14341 -fbtr-bb-exclusive from the list of test options.
14342 * bt-load.c: Remove.
14344 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14346 * match.pd: Add flag_unsafe_math_optimizations check
14347 before deciding on the widest type in a binary math operation.
14349 2019-09-09 Martin Liska <mliska@suse.cz>
14351 * config/i386/i386.opt: Update comment of removed
14352 options that are preserved only for backward
14355 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14358 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14359 instead of __v16qs.
14362 * config/i386/avxintrin.h (__v32qs): New typedef.
14363 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14364 instead of __v32qi.
14366 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14368 * doc/invoke.texi (Option Summary): Cover eBPF.
14369 (eBPF Options): New section.
14370 * doc/extend.texi (BPF Built-in Functions): Likewise.
14371 (BPF Kernel Helpers): Likewise.
14373 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14375 * config.gcc: Support for bpf-*-* targets.
14376 * common/config/bpf/bpf-common.c: New file.
14377 * config/bpf/t-bpf: Likewise.
14378 * config/bpf/predicates.md: Likewise.
14379 * config/bpf/constraints.md: Likewise.
14380 * config/bpf/bpf.opt: Likewise.
14381 * config/bpf/bpf.md: Likewise.
14382 * config/bpf/bpf.h: Likewise.
14383 * config/bpf/bpf.c: Likewise.
14384 * config/bpf/bpf-protos.h: Likewise.
14385 * config/bpf/bpf-opts.h: Likewise.
14386 * config/bpf/bpf-helpers.h: Likewise.
14387 * config/bpf/bpf-helpers.def: Likewise.
14389 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14391 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14394 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14396 * opt-functions.awk (integer_range_info): Make sure values are in
14397 numeric context before operating with them.
14399 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14401 * genemit.c (gen_split): Print the filename and line number where the
14402 splitter (or peephole2) was defined, to the dump file.
14404 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14406 PR tree-optimization/91665
14407 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14408 incompatible with the type of PHI result.
14410 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14413 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14414 gen_unaligned_storedi for 4-byte aligned addresses.
14416 2019-09-06 Jim Wilson <jimw@sifive.com>
14418 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14421 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14423 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14425 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14427 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14428 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14430 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14433 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14434 cost of SSE->integer and integer->SSE moves from 2 to 6.
14435 (core_cost): Ditto.
14437 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14439 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14440 before testing TYPE_TRANSPARENT_AGGR.
14441 * calls.c (initialize_argument_information, load_register_parameters):
14444 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14446 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14448 (cmp_ior): Likewise.
14450 2019-09-06 Martin Liska <mliska@suse.cz>
14452 * doc/match-and-simplify.texi: Separate tuples with ;.
14454 2019-09-06 Martin Liska <mliska@suse.cz>
14457 * Makefile.in: Remove tlink.o.
14458 * collect2.c (do_link): New function isolated
14461 * collect2.h (do_tlink): Remove declaration of do_tlink.
14462 * doc/extend.texi: Remove documentation of -frepo.
14463 * doc/invoke.texi: Likewise.
14464 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14467 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14468 Jim Wilson <jimw@sifive.com>
14471 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14472 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14473 paradoxical_subreg_p (operands[0]).
14474 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14475 use as intermediate value.
14477 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14479 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14480 (sync_compare_and_swap<mode>_insn): Likewise.
14482 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14484 PR middle-end/91615
14485 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14486 without movmisalign optab.
14488 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14490 PR middle-end/91001
14491 PR middle-end/91105
14492 PR middle-end/91106
14493 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14494 types, use type of their first field instead of type of
14495 args[i].tree_value.
14497 2019-09-05 Richard Biener <rguenther@suse.de>
14499 PR rtl-optimization/91656
14500 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14503 2019-09-05 Richard Biener <rguenther@suse.de>
14505 PR middle-end/90501
14506 * tree-inline.c (declare_return_variable): Mark the return
14507 slot as addressable after building an address of it.
14509 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14511 * doc/install.texi: Update and clarify requirements to build GNAT.
14513 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14515 PR middle-end/91577
14516 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14517 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14518 call to be in memory.
14519 (pass_expand::execute): Call discover_nonconstant_array_refs before
14520 setting currently_expanding_to_rtl.
14522 2019-09-04 Caroline Tice <cmtice@google.com>
14524 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14525 specified together.
14527 2019-09-04 Marek Polacek <polacek@redhat.com>
14529 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14531 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14534 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14535 for QI and HImode moves between SSE and general registers.
14537 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14540 * doc/invoke.texi: Document -Wenum-conversion.
14542 2019-09-04 Richard Biener <rguenther@suse.de>
14544 PR rtl-optimization/36262
14545 * postreload-gcse.c: Include intl.h and gcse.h.
14546 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14547 to avoid linear list walk.
14548 (record_last_mem_set_info): Gate off if not computing transparentness.
14549 (get_bb_avail_insn): If transparentness isn't computed give up
14551 (gcse_after_reload_main): Skip compute_transp and extended PRE
14552 if gcse_or_cprop_is_too_expensive says so.
14554 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14556 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14558 (msp430_select_section): Handle decls with the "noinit" attribute with
14559 default_elf_select_section.
14560 Handle SECCAT_RODATA_MERGE_* section types with
14561 default_elf_select_section.
14562 Add comments about handling of unsupported section types.
14563 (msp430_section_type_flags): Remove handling of the noinit section.
14565 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14567 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14568 conflicting msp430-specific attributes.
14569 (msp430_section_attr): Likewise.
14570 Add warnings about conflicts with generic "noinit" and "section"
14572 Fix grammar in -mlarge error message.
14573 (msp430_data_attr): Rename to msp430_persist_attr.
14574 Add warnings about conflicts with generic "noinit" and "section"
14576 Add warning for when variable is not initialized.
14577 Chain conditionals which prevent the attribute being added.
14578 (ATTR_EXCL): New helper.
14579 (attr_reent_exclusions): New exclusion table.
14580 (attr_naked_exclusions): Likewise.
14581 (attr_crit_exclusions): Likewise.
14582 (attr_lower_exclusions): Likewise.
14583 (attr_upper_exclusions): Likewise.
14584 (attr_either_exclusions): Likewise.
14585 (attr_persist_exclusions): Likewise.
14586 (msp430_attribute_table): Update with exclusion rules.
14587 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14590 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14592 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14593 (msp430_handle_generic_attribute): New function.
14594 * doc/tm.texi: Regenerate.
14595 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14596 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14597 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14598 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14600 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14602 PR tree-optimization/91504
14603 * match.pd: Add ((~a & b) ^a) --> (a | b).
14605 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14608 * config/i386/i386-expand.c (split_double_mode): If there is more than
14609 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14610 already split matching MEM operand instead of calling adjust_address
14613 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14615 * config.gcc: Obsolete spu target. Remove references to spu.
14616 * configure.ac: Remove references to spu.
14617 * configure: Regenerate.
14618 * config/spu/: Remove directory.
14619 * common/config/spu/: Remove directory.
14621 * doc/extend.texi: Remove references to spu.
14622 * doc/invoke.texi: Likewise.
14623 * doc/md.texi: Likewise.
14624 * doc/sourcebuild.texi: Likewise.
14626 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14628 PR middle-end/91603
14629 PR middle-end/91612
14630 PR middle-end/91613
14631 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14632 and SSA_NAME referring to CONSTANT_P correctly.
14634 2019-09-03 Richard Biener <rguenther@suse.de>
14636 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14637 (vn_nary_op_insert): Likewise.
14638 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14639 (vn_nary_op_lookup): Likewise.
14640 (vn_nary_op_insert): Likewise.
14642 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14644 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14645 (*op0, 1) instead of XEXP (*op1, 0).
14647 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14649 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14650 (aarch64_fjcvtzs): New define_insn.
14651 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14652 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14654 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14655 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14656 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14657 __ARM_FEATURE_JCVT where appropriate.
14658 * config/aarch64/arm_acle.h (__jcvt): Define.
14660 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14662 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14663 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14664 (aarch64_<frintnzs_op><mode>): New define_insn.
14665 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14666 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14667 __ARM_FEATURE_FRINT when appropriate.
14668 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14669 frint32x, frint64z, frint64x.
14670 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14671 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14672 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14673 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14674 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14675 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14676 * config/aarch64/iterators.md (VSFDF): Define.
14677 (FRINTNZX): Likewise.
14678 (frintnzs_op): Likewise.
14680 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14682 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14683 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14685 * config/aarch64/aarch64-tune.md: Regenerated.
14686 * doc/invoke.texi: Document the new processors.
14688 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14690 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14694 (sve2-sm4): Likewise.
14695 (sveaes): Likewise.
14696 (svesha3): Likewise.
14697 (svebitperm): Likewise.
14699 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14700 Richard Biener <rguenther@suse.de>
14702 PR tree-optimization/91597
14703 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14704 BIT_AND_EXPR optimization for pointers, even if both operand
14705 ranges don't include NULL, the result can be NULL.
14707 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14709 PR middle-end/91605
14710 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14711 (non_mem_decl_p): ...this.
14712 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14713 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14714 unconditionally as before.
14716 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14719 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14720 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14721 * tree.def (LTGT_EXPR): Likewise.
14722 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14724 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14727 * fold-const.c (range_check_type): For enumeral and boolean
14728 type, pass 1 to type_for_size langhook instead of
14729 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14730 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14731 (build_range_check): Don't call unsigned_type_for for pointer types.
14732 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14733 range_check_type result.
14735 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14737 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14738 (replace_ref): Do not replace a chain of only two candidates which are
14739 valid memory references.
14741 2019-09-02 Martin Liska <mliska@suse.cz>
14743 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14744 Bail out when we'll end up with the same number of clusters as
14746 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14747 (jump_table_cluster::can_be_handled): Remove the guard
14748 as it's already handled in ::is_enabled. Allocate output
14749 after early bail out.
14751 2019-09-02 Martin Liska <mliska@suse.cz>
14753 PR gcov-profile/91601
14754 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14755 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14756 also negative edges.
14757 (circuit): Handle also negative edges as they can happen
14758 in some situations.
14760 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14763 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14764 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14765 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14767 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14769 PR middle-end/91623
14770 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14771 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14772 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14776 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14777 GIMPLE_ASM TREE_LIST operands.
14779 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14781 * doc/generic.texi (Unary and Binary Expressions): Mark up
14782 an instance of TYPE_MIN.
14784 2019-08-31 Stafford Horne <shorne@gmail.com>
14786 * config/or1k/constraints.md (t): New constraint.
14787 * config/or1k/or1k.h (GOT_REGS): New register class.
14788 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14790 2019-08-30 Jim Wilson <jimw@sifive.com>
14792 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14793 and -fpic and -mplt then disable -msave-restore and warn.
14795 2019-08-30 Martin Sebor <msebor@redhat.com>
14797 PR middle-end/91599
14798 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14799 the statement doesn't have one.
14800 * gimple-pretty-print.c (percent_G_format): Same.
14802 PR middle-end/91584
14803 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14804 before using them to validate MEM_REF offset.
14806 2019-08-30 Marek Polacek <polacek@redhat.com>
14808 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14810 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14812 * config/arm/arm.md (unaligned_loaddi,
14813 unaligned_storedi): New unspec insn patterns.
14814 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14815 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14816 and unaligned_storedi for 4-byte aligned memory.
14817 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14818 4-byte aligned memory.
14820 2019-08-30 Martin Jambor <mjambor@suse.cz>
14822 tree-optimization/91579
14823 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14824 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14826 (arg_needs_copy_p): Removed.
14827 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14829 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14831 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14833 * config/i386/i386-features.c
14834 (general_scalar_chain::compute_convert_gain):
14835 Correct cost for double-word shifts.
14836 (general_scalar_to_vector_candidate_p): Reject count operands
14837 greater or equal to mode bitsize.
14839 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14841 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14842 for moves between SSE and non-general registers and between
14843 mask and non-general registers.
14844 (ix86_register_move_cost): Remove stalled comment.
14846 2019-08-29 Richard Biener <rguenther@suse.de>
14848 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14849 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14851 2019-08-29 Richard Biener <rguenther@suse.de>
14854 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14855 Do not emit scalar copies for debug-insns, instead replace
14856 their uses with the reg copy used in the chain or reset them
14857 if there is a reaching definition outside of the chain as well.
14859 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14862 * config/i386/i386-expand.c (expand_vec_perm_movs,
14863 expand_vec_perm_blend, expand_vec_perm_vpermil,
14864 expand_vec_perm_pshufb, expand_vec_perm_1,
14865 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14866 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14867 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14868 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14869 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14870 comments - replace ix86_expand_vec_perm_builtin_1 with
14871 ix86_expand_vec_perm_const_1.
14872 (expand_vec_perm2_vperm2f128_vblend): New function.
14873 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14874 expand_vec_perm2_vperm2f128_vblend as last resort.
14875 (canonicalize_perm): Formatting fix.
14877 PR tree-optimization/91351
14878 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14880 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14881 range_check_type returns NULL.
14882 * tree-switch-conversion.c (switch_conversion::build_one_array):
14883 Use range_check_type instead of unsigned_type_for, don't perform
14884 linear opt if it returns NULL.
14885 (bit_test_cluster::find_bit_tests): Formatting fix.
14886 (bit_test_cluster::emit): Use range_check_type instead of
14888 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14891 2019-08-29 Richard Biener <rguenther@suse.de>
14893 PR tree-optimization/91568
14894 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14895 (vect_update_max_nunits): Add overload for poly_uint64.
14896 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14897 (vect_build_slp_tree): Record max_nunits into the subtree
14898 and merge it upwards.
14899 (vect_print_slp_tree): Print max_nunits.
14901 2019-08-28 Marek Polacek <polacek@redhat.com>
14903 Implement P1152R4: Deprecating some uses of volatile.
14905 * doc/invoke.texi: Document -Wvolatile.
14907 2019-08-28 Marek Polacek <polacek@redhat.com>
14909 PR c++/91360 - Implement C++20 P1143R2: constinit.
14910 * doc/invoke.texi: Document -Wc++20-compat.
14912 2019-08-28 Martin Sebor <msebor@redhat.com>
14914 PR tree-optimization/91457
14915 * builtins.c (component_size): New function.
14916 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14917 * builtins.h (compute_objsize): Add argument.
14918 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14919 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14920 (vrp_prop::check_mem_ref): Same.
14921 (vrp_prop::search_for_addr_array): Set no-warning bit.
14922 (check_array_bounds): Same.
14924 2019-08-28 Martin Sebor <msebor@redhat.com>
14927 * opts-common.c (option_enabled): Correct checking for language
14930 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14932 * config/i386/i386.c (ix86_register_move_cost): Do not
14933 limit the cost of moves to/from XMM register to minimum 8.
14935 2019-08-28 Martin Jambor <mjambor@suse.cz>
14938 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14939 checking assert a normal assert to test it really is redundant.
14940 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14942 (update_jump_functions_after_inlining): Removed combining unary
14943 arithmetic operations with an ancestor jump function.
14944 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14947 2019-08-28 Richard Biener <rguenther@suse.de>
14949 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14950 add the MD problem.
14952 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14953 Richard Biener <rguenther@suse.de>
14955 * expr.c (expand_assignment): Handle misaligned DECLs.
14956 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14957 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14959 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14960 * varasm.c (build_constant_desc): Align constants of misaligned types.
14961 * config/arm/predicates.md (aligned_operand): New predicate.
14962 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14963 aligned_operand to check restrictions on memory addresses.
14964 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14965 * config/arm/vec-common.md (mov<VALL>): Likewise.
14967 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14970 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14971 V_128 iterator instead of VI_128.
14973 2019-08-28 Martin Liska <mliska@suse.cz>
14975 PR tree-optimization/90970
14976 * builtins.c (check_access): Remove assignment to maxread
14977 as it hasn't been used since when it was introduced in r255755.
14979 2019-08-27 Martin Sebor <msebor@redhat.com>
14981 PR tree-optimization/91567
14982 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14983 of unknown strings.
14984 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14985 to PTRDIFF_MAX - 2.
14987 2019-08-27 Jeff Law <law@redhat.com>
14989 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14990 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14992 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14995 * config/i386/i386-features.c (convert_scalars_to_vector):
14996 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14997 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14998 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14999 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15001 2019-08-27 Richard Biener <rguenther@suse.de>
15003 * config/i386/i386-features.h
15004 (general_scalar_chain::~general_scalar_chain): Add.
15005 (general_scalar_chain::insns_conv): New bitmap.
15006 (general_scalar_chain::n_sse_to_integer): New.
15007 (general_scalar_chain::n_integer_to_sse): Likewise.
15008 (general_scalar_chain::make_vector_copies): Adjust signature.
15009 * config/i386/i386-features.c
15010 (general_scalar_chain::general_scalar_chain): Outline,
15011 initialize new members.
15012 (general_scalar_chain::~general_scalar_chain): New.
15013 (general_scalar_chain::mark_dual_mode_def): Record insns
15014 we need to insert conversions at and count them.
15015 (general_scalar_chain::compute_convert_gain): Account
15016 for conversion instructions at chain boundary.
15017 (general_scalar_chain::make_vector_copies): Generate a single
15018 copy for a def by a specific insn.
15019 (general_scalar_chain::convert_registers): First populate
15020 defs_map, then make copies at out-of chain insns.
15022 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15024 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15026 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15028 2019-08-27 Martin Liska <mliska@suse.cz>
15030 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15032 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15033 Enclose in anonymous namespace.
15034 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15035 hard_register initialization in braces.
15036 * tree-vrp.h (value_range_base::supports_type_p): Return false
15037 for function with boolean return type.
15039 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15041 * config/i386/i386.c (emit_i387_cw_initialization)
15042 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15044 2019-08-26 Martin Sebor <msebor@redhat.com>
15047 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15048 (sprintf_dom_walker): Remove class.
15049 (get_int_range): Make argument const.
15050 (directive::fmtfunc, directive::set_precision): Same.
15051 (format_none): Same.
15052 (build_intmax_type_nodes): Same.
15053 (adjust_range_for_overflow): Same.
15054 (format_floating): Same.
15055 (format_character): Same.
15056 (format_string): Same.
15057 (format_plain): Same.
15058 (get_int_range): Cast away constness.
15059 (format_integer): Same.
15060 (get_string_length): Call get_range_strlen_dynamic. Handle
15061 null lendata.maxbound.
15062 (should_warn_p): Adjust argument scope qualifier.
15063 (maybe_warn): Same.
15064 (format_directive): Same.
15065 (parse_directive): Same.
15066 (is_call_safe): Same.
15067 (try_substitute_return_value): Same.
15068 (sprintf_dom_walker::handle_printf_call): Rename...
15069 (handle_printf_call): ...to this. Initialize target to host charmap
15070 here instead of in pass_sprintf_length::execute.
15071 (struct call_info): Make global.
15072 (sprintf_dom_walker::compute_format_length): Make global.
15073 (sprintf_dom_walker::handle_gimple_call): Same.
15074 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15075 * print-rtl.c (print_pattern): Reduce the number of spaces to
15076 avoid -Wformat-truncation.
15077 * tree-pass.h (make_pass_warn_printf): New function.
15078 * tree-ssa-strlen.c (strlen_optimize): New variable.
15079 (get_string_length): Add comments.
15080 (get_range_strlen_dynamic): New function.
15081 (check_and_optimize_call): New function.
15082 (handle_integral_assign): New function.
15083 (strlen_check_and_optimize_stmt): Factor code out into
15084 strlen_check_and_optimize_call and handle_integral_assign.
15085 (strlen_dom_walker::evrp): New member.
15086 (strlen_dom_walker::before_dom_children): Use evrp member.
15087 (strlen_dom_walker::after_dom_children): Use evrp member.
15088 (printf_strlen_execute): New function.
15089 (pass_strlen::gate): Update to handle printf calls.
15090 (dump_strlen_info): New function.
15091 (pass_data_warn_printf): New variable.
15092 (pass_warn_printf): New class.
15093 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15094 (handle_printf_call): Same.
15095 * tree-vrp.c (value_range_base::type): Adjust assertion.
15096 * vr-values.c (vr_values::update_value_range): Use type of the first
15097 argument rather than the second.
15099 2019-08-26 Richard Biener <rguenther@suse.de>
15101 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15103 (convert_scalars_to_vector): Do not call it.
15105 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15106 Uros Bizjak <ubizjak@gmail.com>
15108 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15109 CASE_MATHFN_FLOATN for roundeven.
15110 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15112 (ix86_mode_needed): Likewise.
15113 (ix86_mode_after): Likewise.
15114 (ix86_mode_entry): Likewise.
15115 (ix86_mode_exit): Likewise.
15116 (ix86_emit_mode_set): Likewise.
15117 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15118 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15119 (ix86_entity): Add I387_ROUNDEVEN.
15120 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15121 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15122 (define_int_iterator): Likewise.
15123 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15124 (define_constant): Define ROUND_ROUNDEVEN mode.
15125 (define_attr): Add roundeven mode for i387_cw.
15126 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15127 * internal-fn.def (ROUNDEVEN): New builtin function.
15128 * optabs.def (roundeven_optab): New optab.
15130 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15132 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15134 * builtins.def: Added function definitions for roundeven function
15136 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15137 function call. Adjust condition for floor, ceil, trunc and round.
15138 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15139 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15140 (integer_valued_real_call_p): Added case for roundeven function.
15141 * real.c (is_even): New function. Returns true if real number is even,
15142 otherwise returns false.
15143 (is_halfway_below): New function. Returns true if real number is
15144 halfway between two integers, else return false.
15145 (real_roundeven): New function. Round real number to nearest integer,
15146 rounding halfway cases towards even.
15147 * real.h (real_value): Added descriptive comments. Added function
15148 declaration for roundeven function.
15149 * doc/extend.texi (Other Builtins): List roundeven variants among
15150 functions which can be handled as builtins.
15152 2019-08-26 Richard Biener <rguenther@suse.de>
15156 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15158 (general_scalar_chain::replace_with_subreg): Remove.
15159 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15160 (general_scalar_chain::convert_reg): Adjust signature.
15161 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15162 iterate over all defs of a reg.
15163 (general_scalar_chain::replace_with_subreg): Remove.
15164 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15165 (general_scalar_chain::make_vector_copies): Populate defs_map,
15166 place copy only after defs that are used as vectors in the chain.
15167 (general_scalar_chain::convert_reg): Emit a copy for a specific
15168 def in a specific instruction.
15169 (general_scalar_chain::convert_op): All reg uses are converted here.
15170 (general_scalar_chain::convert_insn): Emit copies for scalar
15171 uses of defs here. Replace uses with the copies we created.
15172 Replace and convert the def. Adjust REG_DEAD notes, remove
15173 REG_EQUIV/EQUAL notes.
15174 (general_scalar_chain::convert_registers): Only handle copies
15175 into the chain here.
15177 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15179 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15181 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15183 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15184 Add nop_convert case.
15185 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15186 Fold all statements if requested.
15187 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15188 Allow to fold all statements.
15189 * tree-vrp.c (class vrp_folder):
15190 Let substitute_and_fold_engine fold all statements.
15192 2019-08-26 Richard Biener <rguenther@suse.de>
15194 PR tree-optimization/91526
15195 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15196 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15197 TODO_update_address_taken.
15199 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15201 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15204 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15206 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15207 machine mode for unspec_volatile operand.
15209 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15211 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15212 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15213 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15214 (prefer_neon_for_64bits): Remove.
15215 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15216 (tune_params): Remove PREF_NEON_64_FALSE uses.
15217 (arm_option_override): Remove prefer_neon selection code.
15218 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15219 * config/arm/arm-protos.h (tune_params): Remove
15220 prefer_neon_for_64bits.
15221 (prefer_neon_for_64bits): Remove.
15223 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15226 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15227 and issue any diagnostics needed before collecting the pre-PCH
15230 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15232 PR middle-end/91283
15233 * common.opt (fexcess-precision=): Add Optimization flag. Use
15234 flag_excess_precision variable instead of
15235 flag_excess_precision_cmdline.
15236 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15238 (flag_excess_precision): Don't define.
15239 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15240 flag_excess_precision_cmdline. Remove comment.
15241 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15242 and x_flag_excess_precision instead of
15243 frontend_set_flag_excess_precision_cmdline and
15244 x_flag_excess_precision_cmdline.
15245 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15246 x_flag_excess_precision_cmdline.
15247 * toplev.c (init_excess_precision): Remove.
15248 (lang_dependent_init_target): Don't call it.
15250 2019-08-23 Martin Liska <mliska@suse.cz>
15252 * lto-wrapper.c (run_gcc): When setting jobserver
15253 set also parallel to 1. This was done so before r273908.
15255 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15257 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15258 (cortex-a76ae): Likewise.
15259 (cortex-a77): Likewise
15260 * config/arm/arm-tables.opt: Regenerate.
15261 * config/arm/arm-tune.md: Likewise.
15262 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15263 cortex-a77 CPU options.
15265 2019-08-23 Martin Liska <mliska@suse.cz>
15267 * profile.c (instrument_values): Do not set
15268 0 as last argument.
15269 * tree-profile.c (gimple_gen_interval_profiler): Remove
15271 (gimple_gen_pow2_profiler): Likewise.
15272 (gimple_gen_topn_values_profiler): Likewise.
15273 (gimple_gen_ic_profiler): Likewise.
15274 (gimple_gen_time_profiler): Likewise.
15275 (gimple_gen_average_profiler): Likewise.
15276 (gimple_gen_ior_profiler): Likewise.
15277 * value-prof.c (dump_histogram_value): Use default
15278 in switch statement instead of HIST_TYPE_MAX.
15279 (stream_in_histogram_value): Likewise.
15280 (gimple_duplicate_stmt_histograms): Do not
15281 use NULL for implicitly set arguments.
15282 (gimple_divmod_values_to_profile): Do not use
15283 reserve+quick_push.
15284 (gimple_indirect_call_to_profile): Likewise.
15285 (gimple_find_values_to_profile): Use implicit
15286 function call arguments.
15287 * value-prof.h (gimple_alloc_histogram_value):
15288 Set default values.
15289 (gimple_gen_interval_profiler): Remove last argument.
15290 (gimple_gen_pow2_profiler): Likewise.
15291 (gimple_gen_topn_values_profiler): Likewise.
15292 (gimple_gen_ic_profiler): Likewise.
15293 (gimple_gen_time_profiler): Likewise.
15294 (gimple_gen_average_profiler): Likewise.
15295 (gimple_gen_ior_profiler): Likewise.
15297 2019-08-22 Martin Sebor <msebor@redhat.com>
15299 PR middle-end/91490
15300 * builtins.c (c_strlen): Rename argument and introduce new local.
15301 Set no-warning bit on original argument.
15302 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15303 Fold empty and zero constructors into empty strings.
15304 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15305 for missing initializers.
15306 * tree.c (build_string_literal): Handle optional argument.
15307 * tree.h (build_string_literal): Add defaulted argument.
15308 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15309 no-warning bit on original expression.
15311 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15314 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15315 and UNSPEC_DARN_RAW.
15316 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15318 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15319 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15320 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15322 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15324 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15325 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15326 * config/rs6000/rs6000.md (unspec): ... here.
15327 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15328 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15329 cmpeqb, *cmpeqb_internal): Delete, move to...
15330 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15331 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15332 cmpeqb, *cmpeqb_internal): ... here.
15334 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15336 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15337 intrinsics if __ARM_FP.
15338 Use __ARM_FEATURE_CRC32 ifdef guard.
15340 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15342 * config/arm/arm.md (neon_for_64bits): Remove.
15343 (avoid_neon_for_64bits): Remove.
15344 (arm_adddi3): Always split early.
15345 (arm_subdi3): Always split early.
15346 (negdi2): Remove Neon expansion.
15347 (split zero_extend): Split before reload.
15348 (split sign_extend): Split before reload.
15350 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15352 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15353 (qhs_extenddi_cstr): Likewise.
15354 * config/arm/arm.md (ashldi3): Always expand early.
15355 (ashlsi3): Likewise.
15356 (ashrsi3): Likewise.
15357 (zero_extend<mode>di2): Remove Neon variants.
15358 (extend<mode>di2): Likewise.
15359 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15360 (signed_shift_di3_neon): Likewise.
15361 (unsigned_shift_di3_neon): Likewise.
15362 (ashrdi3_neon_imm_noclobber): Likewise.
15363 (lshrdi3_neon_imm_noclobber): Likewise.
15364 (<shift>di3_neon): Likewise.
15365 (split extend): Remove DI extend split patterns.
15367 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15369 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15370 (split not): Add DImode not splitter.
15371 (anddi3): Remove pattern.
15372 (anddi3_insn): Likewise.
15373 (anddi_zesidi_di): Likewise.
15374 (anddi_sesdi_di): Likewise.
15375 (anddi_notdi_di): Likewise.
15376 (anddi_notzesidi_di): Likewise.
15377 (anddi_notsesidi_di): Likewise.
15378 (iordi3): Likewise.
15379 (iordi3_insn): Likewise.
15380 (iordi_zesidi_di): Likewise.
15381 (iordi_sesidi_di): Likewise.
15382 (xordi3): Likewise.
15383 (xordi3_insn): Likewise.
15384 (xordi_sesidi_di): Likewise.
15385 (xordi_zesidi_di): Likewise.
15386 (one_cmpldi2): Likewise.
15387 (one_cmpldi2_insn): Likewise.
15388 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15389 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15391 (iwmmxt_xordi3): Likewise.
15392 (iwmmxt_anddi3): Likewise.
15393 * config/arm/neon.md (orndi3_neon): Remove pattern.
15394 (anddi_notdi_di): Likewise.
15395 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15396 (arm_iordi_operand_neon): Likewise.
15397 (arm_xordi_operand_neon): Likewise.
15398 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15399 (iordi_notzesidi_di): Likewise.
15400 (iordi_notdi_zesidi): Likewise.
15401 (iordi_notsesidi_di): Likewise.
15403 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15405 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15407 (iorsi3_compare0_scratch): Likewise.
15409 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15411 * config/aarch64/aarch64-simd-builtins.def:
15414 * config/aarch64/aarch64-simd.md:
15415 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15416 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15417 (aarch64_ld1_x4_<mode>): Likewise.
15418 (aarch64_st1_x4_<mode>): Likewise.
15419 * config/aarch64/arm_neon.h:
15420 (vld1_s8_x4): New function.
15421 (vld1q_s8_x4): Likewise.
15422 (vld1_s16_x4): Likewise.
15423 (vld1q_s16_x4): Likewise.
15424 (vld1_s32_x4): Likewise.
15425 (vld1q_s32_x4): Likewise.
15426 (vld1_u8_x4): Likewise.
15427 (vld1q_u8_x4): Likewise.
15428 (vld1_u16_x4): Likewise.
15429 (vld1q_u16_x4): Likewise.
15430 (vld1_u32_x4): Likewise.
15431 (vld1q_u32_x4): Likewise.
15432 (vld1_f16_x4): Likewise.
15433 (vld1q_f16_x4): Likewise.
15434 (vld1_f32_x4): Likewise.
15435 (vld1q_f32_x4): Likewise.
15436 (vld1_p8_x4): Likewise.
15437 (vld1q_p8_x4): Likewise.
15438 (vld1_p16_x4): Likewise.
15439 (vld1q_p16_x4): Likewise.
15440 (vld1_s64_x4): Likewise.
15441 (vld1_u64_x4): Likewise.
15442 (vld1_p64_x4): Likewise.
15443 (vld1q_s64_x4): Likewise.
15444 (vld1q_u64_x4): Likewise.
15445 (vld1q_p64_x4): Likewise.
15446 (vld1_f64_x4): Likewise.
15447 (vld1q_f64_x4): Likewise.
15448 (vst1_s8_x4): Likewise.
15449 (vst1q_s8_x4): Likewise.
15450 (vst1_s16_x4): Likewise.
15451 (vst1q_s16_x4): Likewise.
15452 (vst1_s32_x4): Likewise.
15453 (vst1q_s32_x4): Likewise.
15454 (vst1_u8_x4): Likewise.
15455 (vst1q_u8_x4): Likewise.
15456 (vst1_u16_x4): Likewise.
15457 (vst1q_u16_x4): Likewise.
15458 (vst1_u32_x4): Likewise.
15459 (vst1q_u32_x4): Likewise.
15460 (vst1_f16_x4): Likewise.
15461 (vst1q_f16_x4): Likewise.
15462 (vst1_f32_x4): Likewise.
15463 (vst1q_f32_x4): Likewise.
15464 (vst1_p8_x4): Likewise.
15465 (vst1q_p8_x4): Likewise.
15466 (vst1_p16_x4): Likewise.
15467 (vst1q_p16_x4): Likewise.
15468 (vst1_s64_x4): Likewise.
15469 (vst1_u64_x4): Likewise.
15470 (vst1_p64_x4): Likewise.
15471 (vst1q_s64_x4): Likewise.
15472 (vst1q_u64_x4): Likewise.
15473 (vst1q_p64_x4): Likewise.
15474 (vst1_f64_x4): Likewise.
15475 (vst1q_f64_x4): Likewise.
15477 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15479 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15481 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15482 Richard Sandiford <richard.sandiford@arm.com>
15485 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15486 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15488 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15491 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15492 in reg if it fails aarch64_plus_operand predicate.
15494 2019-08-21 Richard Biener <rguenther@suse.de>
15496 PR tree-optimization/91482
15497 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15498 BUILT_IN_ASSUME_ALIGNED calls.
15500 2019-08-21 Richard Biener <rguenther@suse.de>
15504 * config/i386/i386-features.c
15505 (general_scalar_chain::make_vector_copies): Copy stack temporary
15506 rtx when using it multiple times.
15507 (general_scalar_chain::convert_reg): Likewise.
15509 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15511 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15513 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15515 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15516 catch more redundant zero initialization cases.
15517 (dse_dom_walker::dse_optimize_stmt): Likewise.
15519 2019-08-20 Richard Biener <rguenther@suse.de>
15522 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15523 by collect2 when targetm.have_ctors_dtors which avoids dragging
15524 in temporary filenames from LTO input objects.
15526 2019-08-20 Richard Biener <rguenther@suse.de>
15528 PR tree-optimization/37242
15529 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15530 to (T)a + (T)b if we know that a + b does not overflow.
15532 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15534 PR rtl-optimization/91347
15535 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15536 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15538 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15540 * calls.h (function_arg_info): Add a pass_by_reference field,
15541 defaulting to false.
15542 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15543 when applying pass-by-reference semantics.
15544 (initialize_argument_information): Likewise.
15545 (emit_library_call_value_1): Likewise.
15546 * function.c (assign_parm_data_one): Remove passed_pointer field.
15547 (assign_parm_find_data_types): Don't set it.
15548 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15549 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15550 arg.pass_by_reference instead of passed_pointer.
15552 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15554 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15555 into a single function_arg_info, updating its fields when we
15556 apply pass-by-reference and promotion semantics. Use the
15557 function_arg_info to track the mode rather than keeping it in
15558 a separate local variable.
15559 (initialize_argument_information): Likewise. Base the final
15560 arg_to_skip on this new function_arg_info rather than creating
15561 a new one from scratch.
15563 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15565 * function.c (assign_parm_data_one): Replace passed_type,
15566 promoted_mode and named_arg with a function_arg_info field.
15567 (assign_parm_find_data_types): Remove local variables and
15568 assign directly to "data". Make data->passed_mode shadow
15569 data->arg.mode until promotion, then assign the promoted
15570 mode to data->arg.mode.
15571 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15572 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15573 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15574 (assign_parm_setup_block, assign_parm_setup_reg)
15575 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15576 arg.mode instead of promoted_mode, arg.type instead of passed_type
15577 and arg.named instead of named_arg. Use data->arg for
15578 function_arg_info structures that had the field values passed_type,
15579 promoted_mode and named_arg. Base other function_arg_infos on
15580 data->arg, changing the necessary properties.
15582 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15584 * calls.h (apply_pass_by_reference_rules): Declare.
15585 * calls.c (apply_pass_by_reference_rules): New function.
15586 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15587 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15588 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15589 * function.c (assign_parm_find_data_types): Likewise.
15590 * var-tracking.c (prepare_call_arguments): Likewise.
15592 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15594 * target.def (must_pass_in_stack): Take a function_arg_info instead
15595 of a mode and a type.
15596 * doc/tm.texi: Regenerate.
15597 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15598 instead of a mode and a type.
15599 (must_pass_in_stack_var_size_or_pad): Likewise.
15600 * calls.c (must_pass_in_stack_var_size): Likewise.
15601 (must_pass_in_stack_var_size_or_pad): Likewise.
15602 (initialize_argument_information): Update call to
15603 targetm.calls.must_pass_in_stack.
15604 (must_pass_va_arg_on_stack): Likewise.
15605 * function.c (assign_parm_find_entry_rtl): Likewise.
15606 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15607 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15608 (alpha_function_arg_advance): Likewise.
15609 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15610 (cr16_function_arg_advance): Likewise.
15611 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15612 (cris_arg_partial_bytes): Likewise.
15613 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15614 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15615 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15616 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15617 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15618 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15619 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15620 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15621 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15622 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15623 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15624 instead of a mode and a type.
15625 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15626 (fr30_num_arg_regs): Likewise.
15627 (fr30_setup_incoming_varargs): Update calls accordingly.
15628 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15629 (fr30_function_arg_advance): Likewise.
15630 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15631 instead of a mode and a type.
15632 * config/gcn/gcn.c (num_arg_regs): Likewise.
15633 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15634 num_arg_regs and targetm.calls.must_pass_in_stack.
15635 (gcn_arg_partial_bytes): Likewise.
15636 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15637 function_arg_info instead of a mode and a type.
15638 (classify_argument): Update call accordingly.
15639 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15640 function_arg_info instead of a mode and a type.
15641 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15643 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15644 (rs6000_parm_needs_stack): Update call accordingly.
15645 (setup_incoming_varargs): Likewise.
15647 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15649 * target.def (callee_copies): Take a function_arg_info instead
15650 of a mode, type and named flag.
15651 * doc/tm.texi: Regenerate.
15652 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15653 instead of a mode, type and named flag.
15654 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15655 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15656 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15657 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15658 instead of a mode, type and named flag.
15659 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15660 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15661 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15662 * calls.h (reference_callee_copied): Take a function_arg_info
15663 instead of a mode, type and named flag.
15664 * calls.c (reference_callee_copied): Likewise.
15665 (initialize_argument_information): Update call accordingly.
15666 (emit_library_call_value_1): Likewise.
15667 * function.c (gimplify_parameters): Likewise.
15668 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15669 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15670 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15671 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15672 (TARGET_CALLEE_COPIES): Define to
15673 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15674 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15675 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15676 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15677 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15678 instead of a mode, type and named flag.
15679 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15680 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15681 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15682 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15683 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15684 (TARGET_CALLEE_COPIES): Define to
15685 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15686 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15687 instead of a mode, type and named flag.
15688 * config/sh/sh.c (sh_callee_copies): Likewise.
15689 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15690 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15691 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15693 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15695 * target.def (function_arg_advance): Take a function_arg_info instead
15696 of a mode, type and named flag.
15697 * doc/tm.texi: Regenerate.
15698 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15699 instead of a mode, type and named flag.
15700 * targhooks.c (default_function_arg_advance): Likewise.
15701 * calls.c (initialize_argument_information): Update call to
15702 targetm.calls.function_arg_advance.
15703 (emit_library_call_value_1): Likewise.
15704 * dse.c (get_call_args): Likewise.
15705 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15706 * function.c (assign_parms, gimplify_parameters): Likewise.
15707 * var-tracking.c (prepare_call_arguments): Likewise.
15708 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15709 function_arg_info instead of a mode, type and named flag.
15710 (aarch64_setup_incoming_varargs): Update call accordingly.
15711 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15712 function_arg_info instead of a mode, type and named flag.
15713 (alpha_setup_incoming_varargs): Update call accordingly.
15714 * config/arc/arc.c (arc_function_arg_advance): Take a
15715 function_arg_info instead of a mode, type and named flag.
15716 (arc_setup_incoming_varargs): Update call accordingly.
15717 * config/arm/arm.c (arm_function_arg_advance): Take a
15718 function_arg_info instead of a mode, type and named flag.
15719 (cmse_func_args_or_return_in_stack): Update call accordingly.
15720 (arm_function_ok_for_sibcall): Likewise.
15721 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15722 * config/avr/avr.c (avr_function_arg_advance): Take a
15723 function_arg_info instead of a mode, type and named flag.
15724 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15725 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15726 (c6x_call_saved_register_used): Update call accordingly.
15727 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15728 function_arg_info instead of a mode, type and named flag.
15729 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15730 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15731 (csky_setup_incoming_varargs): Update call accordingly.
15732 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15733 function_arg_info instead of a mode, type and named flag.
15734 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15735 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15736 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15737 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15738 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15739 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15740 (ix86_setup_incoming_varargs): Update call accordingly.
15741 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15742 function_arg_info instead of a mode, type and named flag.
15743 (ia64_setup_incoming_varargs): Update call accordingly.
15744 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15745 function_arg_info instead of a mode, type and named flag.
15746 (iq2000_expand_prologue): Update call accordingly.
15747 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15748 function_arg_info instead of a mode, type and named flag.
15749 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15750 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15751 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15752 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15753 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15755 (microblaze_expand_prologue): Update call accordingly.
15756 * config/mips/mips.c (mips_function_arg_advance): Take a
15757 function_arg_info instead of a mode, type and named flag.
15758 (mips_setup_incoming_varargs): Update call accordingly.
15759 (mips_output_args_xfer): Likewise.
15760 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15761 function_arg_info instead of a mode, type and named flag.
15762 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15763 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15764 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15765 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15766 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15767 (nios2_setup_incoming_varargs): Update call accordingly.
15768 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15769 function_arg_info instead of a mode, type and named flag.
15770 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15771 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15772 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15773 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15774 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15775 (riscv_setup_incoming_varargs): Update call accordingly.
15776 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15777 function_arg_info instead of a mode, type and named flag.
15778 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15780 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15781 (rs6000_parm_needs_stack): Update call accordingly.
15782 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15783 instead of a mode, type and named flag.
15784 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15785 (s390_call_saved_register_used): Update call accordingly.
15786 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15787 instead of a mode, type and named flag.
15788 (sh_output_mi_thunk): Update call accordingly.
15789 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15790 function_arg_info instead of a mode, type and named flag.
15791 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15792 (spu_setup_incoming_varargs): Update call accordingly.
15793 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15794 function_arg_info instead of a mode, type and named flag.
15795 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15796 (tilegx_setup_incoming_varargs): Update call accordingly.
15797 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15798 function_arg_info instead of a mode, type and named flag.
15799 (tilegx_setup_incoming_varargs): Update call accordingly.
15800 * config/v850/v850.c (v850_function_arg_advance): Take a
15801 function_arg_info instead of a mode, type and named flag.
15802 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15803 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15804 (visium_setup_incoming_varargs): Update call accordingly.
15805 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15806 function_arg_info instead of a mode, type and named flag.
15808 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15810 * target.def (function_arg, function_incoming_arg): Take a
15811 function_arg_info instead of a mode, tree and named flag.
15812 * doc/tm.texi: Regenerate.
15813 * targhooks.h (default_function_arg): Take a function_arg_info
15814 instead of a mode, tree and named flag.
15815 (default_function_incoming_arg): Likewise.
15816 * targhooks.c (default_function_arg): Likewise.
15817 (default_function_incoming_arg): Likewise.
15818 * calls.h (function_arg_info::end_marker_p): New function.
15819 (function_arg_info::end_marker): Likewise.
15820 * calls.c (prepare_call_address, initialize_argument_information)
15821 (expand_call, emit_library_call_value_1): Update calls to
15822 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15823 * dse.c: Include calls.h.
15824 (get_call_args): Update call to targetm.calls.function_arg.
15825 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15826 * var-tracking.c (prepare_call_arguments): Likewise.
15827 * function.c (assign_parm_find_entry_rtl): Update call to
15828 targetm.calls.function_incoming_arg.
15829 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15830 function_arg_info instead of a mode, tree and named flag.
15831 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15832 * config/arc/arc.c (arc_function_arg): Likewise.
15833 * config/arm/arm.c (arm_function_arg): Likewise.
15834 (cmse_func_args_or_return_in_stack): Update call accordingly.
15835 (arm_function_ok_for_sibcall): Likewise.
15836 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15837 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15838 instead of a mode, tree and named flag.
15839 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15840 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15841 (c6x_call_saved_register_used): Update call accordingly.
15842 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15843 instead of a mode, tree and named flag.
15844 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15845 (cris_function_arg_1): Likewise.
15846 * config/csky/csky.c (csky_function_arg): Likewise.
15847 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15848 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15849 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15850 (frv_function_arg_1): Likewise.
15851 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15852 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15853 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15854 * config/i386/i386.c (ix86_function_arg): Likewise.
15855 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15856 (ia64_function_arg_1): Likewise.
15857 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15858 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15860 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15861 instead of a mode, tree and named flag.
15862 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15863 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15864 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15865 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15866 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15867 (microblaze_expand_prologue): Update call accordingly.
15868 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15869 instead of a mode, tree and named flag.
15870 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15871 (mmix_function_arg_1): Likewise.
15872 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15873 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15874 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15875 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15876 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15877 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15878 (nvptx_function_incoming_arg): Likewise.
15879 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15880 * config/pa/pa.c (pa_function_arg): Likewise.
15881 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15882 * config/pru/pru.c (pru_function_arg): Likewise.
15883 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15884 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15885 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15886 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15887 (rs6000_parm_needs_stack): Update call accordingly.
15888 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15889 instead of a mode, tree and named flag.
15890 * config/s390/s390.c (s390_function_arg): Likewise.
15891 (s390_call_saved_register_used): Update call accordingly.
15892 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15893 instead of a mode, tree and named flag.
15894 (sh_output_mi_thunk): Update call accordingly.
15895 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15896 (sparc_function_incoming_arg): Take a function_arg_info instead of
15897 a mode, tree and named flag.
15898 * config/spu/spu.c (spu_function_arg): Likewise.
15899 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15900 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15901 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15902 * config/v850/v850.c (v850_function_arg): Likewise.
15903 * config/vax/vax.c (vax_function_arg): Likewise.
15904 * config/visium/visium.c (visium_function_arg): Likewise.
15905 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15906 (xtensa_function_incoming_arg): Likewise.
15908 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15910 * target.def (setup_incoming_varargs): Take a function_arg_info
15911 instead of a mode and tree.
15912 * doc/tm.texi: Regenerate.
15913 * targhooks.h (default_setup_incoming_varargs): Take a
15914 function_arg_info instead of a mode and tree.
15915 * targhooks.c (default_setup_incoming_varargs): Likewise.
15916 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15917 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15918 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15919 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15920 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15921 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15922 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15923 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15925 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15926 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15927 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15928 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15929 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15930 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15931 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15932 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15933 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15934 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15935 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15936 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15937 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15938 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15939 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15940 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15941 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15942 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15943 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15944 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15945 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15946 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15947 * function.c (assign_parms_setup_varargs): Update call to
15948 targetm.calls.setup_incoming_varargs.
15950 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15952 * target.def (pass_by_reference): Take a function_arg_info instead
15953 of a mode, type and named flag.
15954 * doc/tm.texi: Regenerate.
15955 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15957 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15958 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15959 function_arg_info instead of a mode, type and named flag.
15960 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15961 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15962 mode, type and named flag.
15963 * calls.c (pass_by_reference): Likewise.
15964 (pass_va_arg_by_reference): Update call accordingly.
15965 (initialize_argument_information): Likewise.
15966 (emit_library_call_value_1): Likewise.
15967 * function.c (assign_parm_find_data_types): Likewise.
15968 * var-tracking.c (prepare_call_arguments): Likewise.
15969 * stor-layout.c: Include calls.h.
15970 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15971 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15972 function_arg_info instead of a mode, type and named flag.
15973 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15974 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15975 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15976 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15977 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15978 (c6x_call_saved_register_used): Update call to pass_by_reference.
15979 * config/cris/cris.c (cris_pass_by_reference): Take a
15980 function_arg_info instead of a mode, type and named flag.
15981 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15982 function_arg_info instead of a mode, type and named flag.
15983 (epiphany_arg_partial_bytes): Update call accordingly.
15984 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15985 function_arg_info instead of a mode, type and named flag.
15986 (ft32_arg_partial_bytes): Update call accordingly.
15987 * config/i386/i386.c (ix86_pass_by_reference): Take a
15988 function_arg_info instead of a mode, type and named flag.
15989 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15990 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15991 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15992 (m32r_return_in_memory): Update call accordingly.
15993 * config/mips/mips.c (mips_pass_by_reference): Take a
15994 function_arg_info instead of a mode, type and named flag.
15995 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15996 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15997 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15998 (moxie_arg_partial_bytes): Update call accordingly.
15999 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16000 function_arg_info instead of a mode, type and named flag.
16001 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16002 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16003 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16004 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16005 (riscv_return_in_memory): Update call accordingly.
16006 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16007 function_arg_info instead of a mode, type and named flag.
16008 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16009 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16010 * config/s390/s390.c (s390_pass_by_reference): Take a
16011 function_arg_info instead of a mode, type and named flag.
16012 (s390_call_saved_register_used): Update call accordingly.
16013 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16014 instead of a mode, type and named flag.
16015 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16016 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16017 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16018 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16019 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16020 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16022 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16024 * target.def (arg_partial_bytes): Take a function_arg_info instead
16025 of a mode, type and named flag.
16026 * doc/tm.texi: Regenerate.
16027 * target.h (function_arg_info): Declare.
16028 * calls.h (function_arg_info): New class.
16029 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16030 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16031 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16032 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16033 * calls.c (initialize_argument_information): Update call to
16034 targetm.calls.partial_bytes.
16035 (emit_library_call_value_1): Likewise.
16036 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16037 * function.c (assign_parm_find_entry_rtl): Likewise.
16038 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16039 function_arg_info instead of a mode, type and named flag.
16040 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16041 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16042 (cmse_func_args_or_return_in_stack): Update accordingly.
16043 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16044 function_arg_info instead of a mode, type and named flag.
16045 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16046 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16047 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16048 * config/fr30/fr30.c: Include calls.h.
16049 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16050 type and named flag.
16051 * config/frv/frv.c: Include calls.h.
16052 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16053 type and named flag.
16054 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16055 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16056 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16057 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16058 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16059 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16060 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16062 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16063 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16064 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16065 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16066 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16067 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16068 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16069 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16070 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16071 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16072 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16073 (rs6000_parm_needs_stack): Update call accordingly.
16074 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16075 function_arg_info instead of a mode, type and named flag.
16076 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16077 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16079 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16081 * calls.h (must_pass_va_arg_in_stack): Declare.
16082 * calls.c (must_pass_va_arg_in_stack): New function.
16083 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16084 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16085 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16087 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16089 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16091 * calls.h (pass_va_arg_by_reference): Declare.
16092 * calls.c (pass_va_arg_by_reference): New function.
16093 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16094 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16095 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16096 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16097 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16098 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16099 (mips_gimplify_va_arg_expr): Likewise.
16100 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16101 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16102 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16103 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16104 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16105 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16106 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16107 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16108 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16109 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16110 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16112 2019-08-20 Richard Biener <rguenther@suse.de>
16115 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16116 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16117 (convert_scalars_to_vector): Add timode_p parameter and use it
16118 to guard TImode-only operation.
16119 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16120 (pass_stv::execute): Pass down timode_p.
16122 2019-08-20 Lili Cui <lili.cui@intel.com>
16124 * common/config/i386/i386-common.c
16125 (processor_names): Add tigerlake and cooperlake.
16126 (processor_alias_table): Add tigerlake and cooperlake.
16127 * config.gcc: Add -march=tigerlake and cooperlake.
16128 * config/i386/driver-i386.c
16129 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16130 Add "has_avx" to classify processor.
16131 * config/i386/i386-builtins.c (processor_model) :
16132 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16133 (arch_names_table): Add tigerlake and cooperlake.
16134 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16135 and PROCESSOR_COOPERLAKE.
16136 * config/i386/i386-c.c
16137 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16138 * config/i386/i386-options.c
16139 (m_TIGERLAKE): Define.
16140 (m_COOPERLAKE): Ditto.
16141 (m_CORE_AVX512): Ditto.
16142 (processor_cost_table): Add cascadelake.
16143 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16144 * config/i386/i386.h
16145 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16146 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16147 (PTA_MOVDIRI): Ditto.
16148 (PTA_MOVDIR64B): Ditto.
16149 (PTA_COOPERLAKE): Ditto.
16150 (PTA_TIGERLAKE): Ditto.
16151 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16152 * doc/extend.texi: Add tigerlake and cooperlake.
16153 * doc/invoke.texi: Add tigerlake and cooperlake.
16155 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16157 * doc/install.texi (Specific, alpha): Remove note to use
16158 binutils 2.11.2 or later.
16160 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16162 PR middle-end/89544
16163 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16166 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16168 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16169 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16170 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16171 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16172 * config/aarch64/constraints.md (Dt): New constraint
16173 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16175 2019-08-19 Richard Biener <rguenther@suse.de>
16177 PR tree-optimization/91403
16178 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16179 cases we can handle with tail-recursion...
16180 (follow_ssa_edge_expr): ... here. Do so.
16182 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16185 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16186 implemented for -fsanitize=kernel-address, and merge check logic
16187 with -fsanitize=address.
16189 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16191 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16192 for cpu and machine. Factor 64/32b builtins.
16194 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16196 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16197 gone, point to sourceforge.net.
16199 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16201 * doc/ux.texi (User Experience Guidelines): Update reference.
16203 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16205 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16208 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16210 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16211 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16213 2019-08-16 Martin Sebor <msebor@redhat.com>
16215 * tree.def (TYPE_SIZE): Clarify.
16216 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16218 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16220 PR tree-optimization/91109
16221 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16222 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16223 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16225 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16227 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16228 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16229 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16230 (uavg<mode>3_ceil): New expander.
16231 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16232 mode iterator when creating CONST1_RTX.
16233 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16234 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16235 mode iterator for const1_operand predicate.
16237 2019-08-16 Richard Biener <rguenther@suse.de>
16239 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16240 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16242 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16243 (analyze_evolution_in_loop): Likewise.
16244 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16245 (follow_ssa_edge_expr): ... here. Refactor code.
16247 2019-08-16 Richard Biener <rguenther@suse.de>
16250 * config/i386/i386-features.c
16251 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16253 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16256 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16257 only if subst_name matches curr_attr string.
16259 2019-08-16 Richard Biener <rguenther@suse.de>
16261 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16262 stmt at gsi_p, instead replace it with a NOP removed later.
16263 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16264 that became dead because of that.
16266 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16268 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16269 for which we can't represent a range.
16270 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16272 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16273 Set VR_UNDEFINED if type is not supported.
16274 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16275 * tree-vrp.c (value_range_base::check): Assert that a varying has
16277 (value_range_base::equal_p): Early bail for undefines.
16278 (value_range_base::set_varying): Accept a type.
16279 (value_range::set_varying): Same.
16280 (value_range_base::type): VARYING can have a type, while UNDEFINE
16282 (value_range_base::dump): Print type for VARYING nodes.
16283 (value_range_base::set): Add type to VARYING.
16284 (extract_range_from_multiplicative_op): Pass type to set_varying.
16285 (extract_range_from_binary_expr): Same.
16286 (value_range_base::intersect_helper): Same.
16287 (value_range_base::union_helper): Same.
16288 (value_range_base::normalize_symbolics): Same.
16289 (determine_value_range_1): Same.
16290 * tree-vrp.h (class value_range_base): Add type to set_varying.
16291 Add prototype for dump(void).
16292 Add prototype for supports_type_p.
16293 (class value_range): Add type to set_varying.
16294 Add prototype for dump(void).
16295 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16297 (vr_values::get_lattice_entry): Set varying even if propagation
16299 Pass type to set_varying.
16300 (vr_values::get_value_range): Remove vr_const_varying.
16301 Reallocate the lattice if needed.
16302 (vr_values::update_value_range): Pass type to set_varying.
16303 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16304 (vr_values::extract_range_from_binary_expr): Same.
16305 (vr_values::extract_range_from_unary_expr): Same.
16306 (vr_values::extract_range_from_cond_expr): Same.
16307 (vr_values::check_for_binary_op_overflow): Same.
16308 (vr_values::extract_range_basic): Same.
16309 (vr_values::extract_range_from_assignment): Same.
16310 (vr_values::vr_values): Increase size of num_vr_values.
16311 (vr_values::extract_range_from_phi_node): Pass type to
16314 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16317 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16318 for costs of hard register moves.
16319 (ix86_register_move_cost): Likewise.
16320 * config/i386/i386.h (processor_costs): Move costs of hard
16321 register moves to hard_register. Add int_load, int_store,
16322 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16323 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16324 for costs of RTL expressions.
16325 * config/i386/x86-tune-costs.h: Move costs of hard register
16326 moves to hard_register. Duplicate int_load, int_store,
16327 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16328 sse_load, sse_store for costs of RTL expressions.
16330 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16332 * target.def (setup_incoming_vararg_bounds): Remove.
16333 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16334 * doc/tm.texi: Regenerate.
16335 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16336 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16337 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16338 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16340 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16342 MSP430: Fix lines over 80 characters long in
16343 config/msp430/*.{c,h} files
16345 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16346 specifier in string.
16347 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16348 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16349 redundant old comment.
16350 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16351 Split line more than 80 characters long.
16352 * config/msp430/msp430.c (msp430_option_override): Likewise.
16353 (msp430_return_in_memory): Likewise.
16354 (msp430_gimplify_va_arg_expr): Likewise.
16355 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16356 (msp430_legitimate_constant): Likewise.
16357 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16358 (msp430_attr): Likewise.
16359 (msp430_data_attr): Likewise.
16360 (msp430_start_function): Likewise.
16361 (gen_prefix): Likewise.
16362 (msp430_init_sections): Likewise.
16363 (msp430_select_section): Likewise.
16364 (msp430_function_section): Likewise.
16365 (msp430_unique_section): Likewise.
16366 (msp430_output_aligned_decl_common): Likewise.
16367 (msp430_do_not_relax_short_jumps): Likewise.
16368 (msp430_init_builtins): Likewise.
16369 (msp430_expand_delay_cycles): Likewise.
16370 (msp430_expand_prologue): Likewise.
16371 (msp430_expand_epilogue): Likewise.
16372 (msp430_expand_helper): Likewise.
16373 (msp430_split_movsi): Likewise.
16374 (msp430_print_operand): Likewise.
16375 (msp430_return_addr_rtx): Likewise.
16376 (msp430x_extendhisi): Likewise.
16377 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16378 (ASM_SPEC): Likewise.
16379 Remove very obvious comments.
16380 (LIB_SPEC): Split line more than 80 characters long.
16381 (EH_RETURN_HANDLER_RTX): Likewise.
16382 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16384 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16386 MSP430: Fix whitespace errors and incorrect indentation in
16387 config/msp430/*.{c,h} files
16389 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16390 (msp430_select_hwmult_lib): Likewise.
16391 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16392 (msp430_extract_mcu_data): Likewise.
16393 (struct t_msp430_mcu_data): Likewise.
16394 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16395 before left square bracket.
16396 (msp430_option_override): Fix indentation.
16397 (msp430_hard_regno_nregs_with_padding): Likewise.
16398 (msp430_initial_elimination_offset): Likewise.
16399 (msp430_special_register_convention_p): Remove whitespace before left
16400 square bracket and after exclamation mark.
16401 (msp430_evaluate_arg): Likewise.
16402 (msp430_callee_copies): Fix indentation.
16403 (msp430_gimplify_va_arg_expr): Likewise.
16404 (msp430_function_arg_advance): Remove whitespace before left square
16406 (reg_ok_for_addr): Likewise.
16407 (msp430_preserve_reg_p): Likewise.
16408 (msp430_compute_frame_info): Likewise.
16409 (msp430_asm_output_addr_const_extra): Add space between function name
16410 and open parenthesis.
16411 (has_section_name): Fix indentation.
16412 (msp430_attr): Remove trailing whitespace.
16413 (msp430_section_attr): Likewise.
16414 (msp430_data_attr): Likewise.
16415 (struct msp430_attribute_table): Fix comment and whitespace.
16416 (msp430_start_function): Remove whitespace before left square bracket.
16417 Add space between function name and open parenthesis.
16418 (msp430_select_section): Remove trailing whitespace.
16419 (msp430_section_type_flags): Remove trailing whitespace.
16420 (msp430_unique_section): Remove space before closing parenthesis.
16421 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16422 (msp430_builtins): Remove whitespace before left square bracket.
16423 (msp430_init_builtins): Fix indentation.
16424 (msp430_expand_prologue): Remove whitespace before left square bracket.
16425 Remove space before closing parenthesis.
16426 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16427 (msp430_split_movsi): Remove space before closing parenthesis.
16428 (helper_function_name_mappings): Fix indentation.
16429 (msp430_use_f5_series_hwmult): Fix whitespace.
16430 (use_32bit_hwmult): Likewise.
16431 (msp430_no_hwmult): Likewise.
16432 (msp430_output_labelref): Remove whitespace before left square bracket.
16433 (msp430_print_operand_raw): Likewise.
16434 (msp430_print_operand_addr): Likewise.
16435 (msp430_print_operand): Add two spaces after '.' in comment.
16436 Fix trailing whitespace.
16437 (msp430x_extendhisi): Fix indentation.
16438 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16440 (PC_REGNUM): Likewise.
16441 (STACK_POINTER_REGNUM): Likewise.
16442 (CC_REGNUM): Likewise.
16444 2019-08-15 Richard Biener <rguenther@suse.de>
16447 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16449 (general_scalar_chain::make_vector_copies): Use it.
16451 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16453 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16455 2019-08-15 Martin Liska <mliska@suse.cz>
16457 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16458 operators with no arguments.
16459 (eliminate_unnecessary_stmts): Likewise here.
16461 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16463 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16464 <case COMPARE>: Revert 2019-08-14 change.
16465 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16466 for (TARGET_64BIT || mode != DImode).
16468 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16470 * tree-vrp.c (value_range_base::set): Merge in code from
16471 value_range_base::set_and_canonicalize.
16472 Enforce canonicalization at set time.
16473 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16474 (value_range_base::set_undefined): Inline call to set().
16475 (value_range_base::set_varying): Same.
16476 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16477 (vrp_val_max): New argument handle_pointers.
16478 (vrp_val_min): Same.
16479 (ranges_from_anti_range): Same.
16480 (extract_range_into_wide_ints): Use tree argument instead of sign
16482 (extract_range_from_multiplicative_op): Take in tree type instead
16483 of precision and sign. Adapt function for canonicalized ranges.
16484 (extract_range_from_binary_expr): Pass type to
16485 extract_range_from_multiplicative_op.
16486 Adapt for canonicalized ranges.
16487 (extract_range_from_unary_expr): Same.
16488 (value_range_base::intersect_helper): Adjust for canonicalized
16490 (value_range_base::union_helper): Same.
16491 (value_range_base::normalize_symbolics): New.
16492 * tree-vrp.h (class value_range_base): Remove
16493 set_and_canonicalize.
16494 New prototype for normalize_symbolics.
16495 (class value_range): Remove set_and_canonicalize.
16496 (vrp_val_min): Adjust prototype.
16497 (vrp_val_max): Same.
16499 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16500 instead of set_and_canonicalize.
16502 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16504 PR middle-end/91444
16505 * tree-vect-stmts.c (vectorizable_call): Check that the function
16506 is a BUILT_IN_MD function before passing it to
16507 targetm.vectorize.builtin_md_vectorized_function.
16509 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16511 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16512 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16513 (aarch64_select_early_remat_modes): Use it.
16515 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16517 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16518 16 for SVE predicates even if they are fixed-length.
16520 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16522 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16523 operand order match the MOV /Z alias.
16525 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16527 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16528 the vector pattern as an aarch64_svpattern argument. Update the
16529 overloaded caller accordingly.
16530 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16531 (aarch64_output_sve_vector_inc_dec): Likewise.
16533 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16535 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16536 multiplication case, try to compute VG * (lowest set bit) directly
16537 rather than always basing the multiplication on VG. Use
16538 expand_mult for the multiplication if we can.
16540 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16542 * config/aarch64/aarch64-protos.h
16543 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16544 (aarch64_sve_inc_dec_immediate_p): Rename to...
16545 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16546 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16547 (aarch64_output_sve_scalar_inc_dec): Declare.
16548 (aarch64_output_sve_inc_dec_immediate): Rename to...
16549 (aarch64_output_sve_vector_inc_dec): ...this.
16550 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16551 (aarch64_output_sve_scalar_inc_dec): New functions.
16552 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16553 arguments. Only handle true ADDVL and ADDPL instructions;
16554 don't emit an INC or DEC.
16555 (aarch64_sve_inc_dec_immediate_p): Rename to...
16556 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16557 (aarch64_output_sve_inc_dec_immediate): Rename to...
16558 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16559 aarch64_sve_vector_inc_dec_immediate_p.
16560 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16561 (aarch64_sve_plus_immediate): New predicates.
16562 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16563 rather than aarch64_sve_addvl_addpl_immediate.
16564 (aarch64_sve_inc_dec_immediate): Rename to...
16565 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16566 aarch64_sve_vector_inc_dec_immediate_p.
16567 (aarch64_sve_add_operand): Update accordingly.
16568 * config/aarch64/constraints.md (Uai): New constraint.
16569 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16570 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16571 operand into a register if it satisfies aarch64_sve_plus_immediate.
16572 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16573 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16574 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16575 aarch64_output_sve_vector_inc_dec instead of
16576 aarch64_output_sve_inc_dec_immediate.
16578 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16580 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16581 (UNSPEC_REVW): New constants.
16582 (elem_bits): New mode attribute.
16583 (SVE_INT_UNARY): New int iterator.
16584 (optab): Handle UNSPEC_REV[BHW].
16585 (sve_int_op): New int attribute.
16586 (min_elem_bits): Handle VNx16QI and the predicate modes.
16587 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16588 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16589 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16590 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16591 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16592 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16593 unspecs based on the total width of the reversed data.
16594 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16595 reinterpret followed by a subreg on big-endian targets.
16597 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16598 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16600 * config/aarch64/aarch64-sve.md
16601 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16602 alternatives in which one of the inputs is in the same register
16605 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16607 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16608 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16610 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16612 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16613 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16615 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16616 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16618 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16619 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16620 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16622 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16623 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16625 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16626 Add an alternative that uses reversed shifts.
16628 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16630 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16633 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16635 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16636 a commutativity marker.
16638 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16639 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16641 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16642 (aarch64_prepare_sve_cond_int_fma): Declare.
16643 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16644 (aarch64_prepare_sve_int_fma): New functions.
16645 (aarch64_prepare_sve_cond_int_fma): Likewise.
16646 * config/aarch64/aarch64-sve.md
16647 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16648 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16649 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16650 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16651 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16652 (*madd<mode>): Rename to...
16653 (*fma<mode>4): ...this.
16654 (*msub<mode>): Rename to...
16655 (*fnma<mode>4): ...this.
16657 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16658 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16660 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16661 Print 2.0 naturally.
16662 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16663 * config/aarch64/predicates.md
16664 (aarch64_sve_float_negated_arith_immediate): New predicate,
16665 renamed from aarch64_sve_float_arith_with_sub_immediate.
16666 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16667 positive and negative constants.
16668 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16669 or an aarch64_sve_float_arith_with_sub_immediate.
16670 * config/aarch64/constraints.md (vsN): Use
16671 aarch64_sve_float_negated_arith_immediate.
16672 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16674 (sve_pred_fp_rhs2_immediate): New int attribute.
16675 * config/aarch64/aarch64-sve.md
16676 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16677 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16678 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16679 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16680 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16681 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16683 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16684 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16686 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16687 (*aarch64_cond_abd<SVE_F:mode>_3)
16688 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16690 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16691 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16693 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16694 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16696 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16697 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16699 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16700 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16701 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16702 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16704 * optabs.h (create_convert_operand_from): Expand comment.
16705 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16706 when mapping scalar rtxes to vector operands.
16707 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16708 ashiftrt and lshiftrt.
16709 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16710 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16711 (*cond_<optab><mode>_any_const): New patterns.
16713 2019-08-15 Martin Liska <mliska@suse.cz>
16716 * cgraph.c (cgraph_node::remove): When setting
16717 n->origin = NULL for all nested functions, reset
16720 2019-08-15 Martin Liska <mliska@suse.cz>
16722 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16725 2019-08-15 Martin Liska <mliska@suse.cz>
16728 * passes.c (order): Remove.
16729 (uid_hash_t): Likewise).
16730 (remove_cgraph_node_from_order): Remove from set
16731 of pointers (cgraph_node *).
16732 (insert_cgraph_node_to_order): New.
16733 (duplicate_cgraph_node_to_order): New.
16734 (do_per_function_toporder): Register all 3 cgraph hooks.
16735 Skip removed_nodes now as we know about all of them.
16737 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16739 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16740 <case E_V8QImode>: Use vector_set path for
16741 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16742 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16743 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16745 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16747 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16749 2019-08-14 Martin Sebor <msebor@redhat.com>
16751 PR tree-optimization/91294
16752 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16753 source length as exact.
16755 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16757 * doc/extend.texi: Add "noinit" attribute documentation.
16758 * doc/sourcebuild.texi: Add noinit effective target documentation.
16759 * varasm.c (default_section_type_flags): Add support for "noinit"
16761 (default_elf_select_section): Add support for "noinit" attribute.
16762 * config/msp430/msp430.c (msp430_attribute_table): Remove
16765 2019-08-14 Richard Biener <rguenther@suse.de>
16766 Uroš Bizjak <ubizjak@gmail.com>
16769 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16771 (scalar_chain::smode): New member.
16772 (scalar_chain::vmode): Likewise.
16773 (dimode_scalar_chain): Rename to...
16774 (general_scalar_chain): ... this.
16775 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16776 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16777 base with TImode and V1TImode.
16778 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16779 (general_scalar_chain::vector_const_cost): Adjust for SImode
16781 (general_scalar_chain::compute_convert_gain): Likewise. Add
16782 {S,U}{MIN,MAX} support.
16783 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16784 (general_scalar_chain::make_vector_copies): Likewise. Handle
16785 non-DImode chains appropriately.
16786 (general_scalar_chain::convert_reg): Likewise.
16787 (general_scalar_chain::convert_op): Likewise.
16788 (general_scalar_chain::convert_insn): Likewise. Add
16789 fatal_insn_not_found if the result is not recognized.
16790 (convertible_comparison_p): Pass in the scalar mode and use that.
16791 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16792 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16793 (scalar_to_vector_candidate_p): Remove by inlining into single
16795 (general_remove_non_convertible_regs): Rename from
16796 dimode_remove_non_convertible_regs.
16797 (remove_non_convertible_regs): Remove by inlining into single caller.
16798 (convert_scalars_to_vector): Handle SImode and DImode chains
16799 in addition to TImode chains.
16800 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16801 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16802 (*<maxmin>di3_doubleword): Likewise.
16804 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16805 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16807 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16808 (*cond_bic<mode>_any): New patterns.
16810 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16812 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16813 take the equivalent mask, as well as a bit count.
16814 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16815 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16816 (aarch64_sve_pred_and_operand): New predicates.
16817 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16819 * config/aarch64/aarch64-sve.md
16820 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16821 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16823 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16825 * config/aarch64/aarch64-sve.md
16826 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16827 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16830 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16831 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16833 * config/aarch64/aarch64-sve.md
16834 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16835 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16837 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16838 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16840 * config/aarch64/aarch64-sve.md
16841 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16842 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16844 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16846 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16847 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16850 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16851 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16853 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16855 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16856 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16858 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16859 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16860 (aarch64_print_operand): Add support for %I.
16861 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16862 Bitcast floating-point constants to the corresponding integer constant.
16863 (aarch64_float_const_representable_p): Handle vectors as well
16865 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16866 for the new vcond_mask_<mode><vpred> expander.
16867 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16868 test aarch64_float_const_representable_p.
16869 (aarch64_sve_reg_or_dup_imm): New predicate.
16870 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16871 gen_vcond_mask_<mode><vpred> instead of
16872 gen_aarch64_sve_dup<mode>_const.
16873 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16874 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16875 for operands 1 and 2 respectively. Force operand 2 into a
16876 register if operand 1 is a register. Fold old define_insn...
16877 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16878 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16879 floating-point constants that can be moved as integers. Add
16880 alternatives for MOV /M and FMOV /M.
16881 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16882 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16883 1 and 2 respectively.
16884 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16886 (vss): New constraint.
16888 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16890 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16891 (aarch64_sve_float_maxmin_operand): New predicates.
16892 * config/aarch64/constraints.md (vsB): New constraint.
16894 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16895 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16896 UNSPEC_COND_FMINNM.
16897 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16898 Use aarch64_sve_float_maxmin_operand for operand 2.
16899 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16900 Add alternatives for the constant forms.
16902 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16904 * config/aarch64/constraints.md (vsb): New constraint.
16905 (vsm): Generalize description.
16906 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16908 (sve_imm_con): Handle smax, smin, umax and umin.
16909 (sve_imm_prefix): New code attribute.
16910 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16911 (aarch64_sve_vsb_operand): New predicates.
16912 (aarch64_sve_mul_immediate): Rename to...
16913 (aarch64_sve_vsm_immediate): ...this.
16914 (aarch64_sve_mul_operand): Rename to...
16915 (aarch64_sve_vsm_operand): ...this.
16916 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16917 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16918 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16919 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16920 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16921 add movprfx support for the immediate alternatives.
16922 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16924 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16927 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16929 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16930 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16931 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16933 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16935 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16936 (optab, sve_int_op): Handle them.
16937 * config/aarch64/aarch64-sve.md: Expand comment.
16939 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16941 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16942 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16943 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16945 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16947 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16948 (aarch64_expand_sve_const_pred_trn): New functions.
16949 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16950 use the above functions when the parameter is true.
16951 (aarch64_expand_sve_const_pred): Update call accordingly.
16952 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16954 (@aarch64_sve_<perm_insn><mode>): ...this.
16956 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16958 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16960 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16961 (aarch64_sve_emit_int_cmp): New functions.
16962 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16963 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16964 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16965 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16966 (UNSPEC_PRED_Z): New unspec.
16967 (set_clobber_cc_nzc): Delete.
16968 * config/aarch64/aarch64-sve.md: Add a block comment about
16970 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16971 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16972 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16973 UNSPEC_MERGE_PTRUE.
16974 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16975 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16976 check for compatible predicates.
16977 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16978 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16979 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16982 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16984 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16985 * config/aarch64/aarch64-sve.md: Add a section describing it.
16986 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16987 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16988 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16989 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16990 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16991 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16992 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16993 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16994 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16995 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16996 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16997 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16998 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16999 (aarch64_evpc_rev_local): Update accordingly.
17001 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17003 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17005 (SVE_BHSI, SVE_SDI): Tweak comment.
17006 (SVE_HSDI): Likewise. Fix definition.
17007 (SVE_SDF): New mode iterator.
17008 (elem_bits): New mode attribute.
17009 (SVE_COND_FCVT): New int iterator.
17010 * config/aarch64/aarch64-sve.md
17011 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17012 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17013 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17014 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17015 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17016 ...these new patterns.
17017 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17018 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17019 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17021 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17022 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17023 ...these new patterns.
17024 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17025 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17026 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17027 ...this new pattern.
17028 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17029 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17030 ...this new pattern.
17031 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17033 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17035 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17036 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17037 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17039 (optab, su): Handle them.
17040 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17041 * config/aarch64/aarch64-sve.md
17042 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17043 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17044 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17045 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17046 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17047 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17048 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17049 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17050 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17052 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17053 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17054 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17055 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17056 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17057 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17058 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17059 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17060 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17061 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17062 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17063 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17064 of UNSPEC_FLOAT_CONVERT.
17065 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17066 aarch64_sve_extend<mode><Vwide>2.
17068 2019-08-14 Richard Biener <rguenther@suse.de>
17071 * config/i386/i386-features.c
17072 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17073 individual instruction gain. Fix reg-reg copy GRP cost. Use
17074 ix86_cost->sse_op for vector instruction costs.
17076 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17078 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17079 (cmp_op): Handle it.
17080 (SVE_COND_FP_CMP): Rename to...
17081 (SVE_COND_FP_CMP_I0): ...this.
17082 (SVE_FP_CMP): Remove.
17083 * config/aarch64/aarch64-sve.md
17084 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17085 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17086 using unspecs to represent the comparison.
17087 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17088 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17090 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17091 (aarch64_unspec_cond_code): Move after integer code. Handle
17093 (aarch64_emit_sve_predicated_cond): Replace with...
17094 (aarch64_emit_sve_fp_cond): ...this new function.
17095 (aarch64_emit_sve_or_conds): Replace with...
17096 (aarch64_emit_sve_or_fp_conds): ...this new function.
17097 (aarch64_emit_sve_inverted_cond): Replace with...
17098 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17099 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17101 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17103 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17104 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17105 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17106 SVE_HSD instead of SVE_SD.
17108 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17109 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17111 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17113 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17115 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17116 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17117 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17118 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17119 (*div<SVE_F:mode>3): Generalize to...
17120 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17122 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17123 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17125 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17127 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17129 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17131 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17133 * config/aarch64/aarch64-sve.md: Add a block comment about the
17134 handling of predicated FP operations.
17135 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17136 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17137 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17138 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17139 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17141 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17142 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17144 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17145 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17146 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17147 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17148 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17149 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17150 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17151 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17152 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17153 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17154 strictness operands. Use aarch64_sve_pred_dominates_p to check
17155 whether the predicate on the conditional operation is suitable
17156 for merging. Split patterns into the canonical equal-predicate form.
17157 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17158 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17160 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17161 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17163 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17164 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17165 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17167 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17168 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17171 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17172 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17174 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17175 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17176 actually has, rather than relying on REG_EQUAL notes.
17177 Make the insn operand order match the SVE operand order.
17178 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17179 the SVE operand order.
17181 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17183 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17184 (aarch64_emit_set_immediate): Likewise.
17185 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17186 (aarch64_pfalse_reg): Likewise.
17187 (aarch64_convert_sve_data_to_pred): New function.
17188 (aarch64_sve_move_pred_via_while): Take an optional target register
17189 and the required register mode.
17190 (aarch64_expand_sve_const_pred_1): New function.
17191 (aarch64_expand_sve_const_pred): Likewise.
17192 (aarch64_expand_mov_immediate): Build an all-true predicate
17193 if the significant bits of the immediate are all true. Use
17194 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17195 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17196 before register allocation.
17197 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17198 a VNx16BI PTRUE when splitting the memory alternative.
17199 (vec_duplicate<mode>): Update accordingly.
17200 (*pred_cmp<cmp_op><mode>): Rename to...
17201 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17203 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17205 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17206 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17207 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17208 (UNSPEC_PTEST): New unspec.
17209 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17210 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17211 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17212 * config/aarch64/aarch64-sve.md: Add a new section describing the
17213 handling of UNSPEC_PTEST.
17214 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17215 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17216 (ptest_ptrue<mode>): Replace with...
17217 (aarch64_ptest<mode>): ...this new pattern.
17218 (cbranch<mode>4): Update after above changes.
17219 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17220 UNSPEC_PTEST_PTRUE.
17221 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17222 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17223 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17225 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17228 * builtins.c (builtin_with_linkage_p): New function.
17229 * builtins.h (builtin_with_linkage_p): New function.
17230 * symtab.c (write_symbol): Remove redundant assert.
17231 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17232 Remove FIXME and use builtin_with_linkage_p.
17234 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17236 PR middle-end/91421
17237 * tree-core.h (function_decl::function_code): Change type to
17239 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17240 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17241 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17242 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17243 is BUILT_IN_NORMAL.
17244 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17245 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17246 (fndecl_built_in_p): Change the type of the "name" argument to
17248 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17249 after check for DECL_BUILT_IN_CLASS.
17250 * cgraphclones.c (build_function_decl_skip_args): Use
17251 set_decl_built_in_function.
17252 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17253 * ipa-split.c (split_function): Likewise.
17254 * langhooks.c (add_builtin_function_common): Likewise.
17255 * omp-simd-clone.c (simd_clone_create): Likewise.
17256 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17257 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17258 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17259 DECL_FUNCTION_CODE.
17260 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17261 instead of DECL_FUNCTION_CODE.
17262 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17263 instead of DECL_FUNCTION_CODE.
17264 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17265 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17266 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17267 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17268 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17269 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17270 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17271 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17272 (alpha_gimple_fold_builtin): Likewise.
17273 * config/arc/arc.c (arc_expand_builtin): Likewise.
17274 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17275 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17276 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17277 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17278 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17279 * config/frv/frv.c (frv_expand_builtin): Likewise.
17280 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17281 (gcn_expand_builtin): Likewise.
17282 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17283 (fold_builtin_cpu): Likewise.
17284 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17285 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17286 (ix86_gimple_fold_builtin): Likewise.
17287 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17288 (ia64_expand_builtin): Likewise.
17289 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17290 * config/mips/mips.c (mips_expand_builtin): Likewise.
17291 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17292 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17293 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17294 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17295 * config/pa/pa.c (pa_expand_builtin): Likewise.
17296 * config/pru/pru.c (pru_expand_builtin): Likewise.
17297 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17298 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17300 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17301 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17302 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17303 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17304 (rs6000_builtin_reciprocal): Likewise.
17305 * config/rx/rx.c (rx_expand_builtin): Likewise.
17306 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17307 * config/s390/s390.c (s390_expand_builtin): Likewise.
17308 * config/sh/sh.c (sh_expand_builtin): Likewise.
17309 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17310 (sparc_fold_builtin): Likewise.
17311 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17312 * config/spu/spu.c (spu_expand_builtin): Likewise.
17313 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17314 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17315 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17316 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17317 (xtensa_expand_builtin): Likewise.
17319 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17321 PR middle-end/91421
17322 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17323 before the DECL_FUNCTION_CODE.
17324 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17325 to check for a BUILT_IN_ALLOCA call.
17326 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17327 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17328 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17329 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17330 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17331 for BUILT_IN_NORMAL functions.
17332 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17333 test for BUILT_IN_TM_ABORT.
17334 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17335 to check for a BUILT_IN_STACK_RESTORE call.
17336 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17337 * tree-ssa-threadedge.c
17338 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17339 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17340 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17341 test for a BUILT_IN_NORMAL call instead of a negative test for
17342 an internal function call.
17344 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17346 * tree.h (build_vector_a_then_b): Declare.
17347 * tree.c (build_vector_a_then_b): New function.
17348 * fold-const-call.c (fold_while_ult): Likewise.
17349 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17350 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17351 (aarch64_svpattern): New enum.
17352 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17353 constants through aarch64_expand_mov_immediate.
17354 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17355 than general_operand as the predicate for operand 1.
17356 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17357 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17359 (simd_immediate_info::simd_immediate_info): New overload that
17360 takes a scalar_int_mode and an svpattern.
17361 (simd_immediate_info::u): Add a "pattern" field.
17362 (svpattern_token): New function.
17363 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17364 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17365 (aarch64_sve_move_pred_via_while): New functions.
17366 (aarch64_expand_mov_immediate): Try using
17367 aarch64_sve_move_pred_via_while for predicates that contain N ones
17368 followed by M zeros but that do not correspond to a VLnnn pattern.
17369 (aarch64_sve_pred_valid_immediate): New function.
17370 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17371 with PTRUE and PFALSE.
17372 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17375 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17377 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17379 (darwin_override_options): Likewise.
17380 * config/darwin.h: Likewise.
17381 * config/darwin.opt: Likewise.
17382 * config/i386/i386.c (output_pic_addr_const): Likewise.
17383 * config/rs6000/darwin.h: Likewise.
17384 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17385 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17386 ... this TARGET_MACHO_SYMBOL_STUBS.
17387 (FUNCTION_PROFILER):Likewise.
17388 * config/i386/i386.h: Likewise.
17390 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17392 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17393 <case E_V2SImode>: Use vec_extr path for
17394 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17395 <case E_V8QImode>: Ditto.
17396 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17397 Use SWI48 mode iterator. Use %k to output operand 0.
17398 (*mmx_pextrw): New insn pattern.
17399 (*mmx_pextrb): Ditto.
17400 (*mmx_pextrb_zext): Ditto.
17402 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17404 * target.def (libc_has_function, libc_has_fast_function): Improve
17405 documentation strings.
17406 * doc/tm.texi: Regenerate.
17408 2019-08-13 Caroline Tice <cmtice@google.com>
17411 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17412 vtv_end.o or vtv_end_preinit.o files if !static.
17414 2019-08-13 Olivier Hainque <hainque@adacore.com>
17416 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17418 2019-08-13 Olivier Hainque <hainque@adacore.com>
17420 * rtlanal.c (tablejump_casesi_pattern): New function, to
17421 determine if a tablejump insn is a casesi dispatcher. Extracted
17422 from patch_jump_insn.
17423 * rtl.h (tablejump_casesi_pattern): Declare.
17424 * cfgrtl.c (patch_jump_insn): Use it.
17425 * dwarf2cfi.c (create_trace_edges): Use it.
17427 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17430 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17431 operand is larger than a long int.
17433 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17435 * machmode.h (opt_mode::else_mode): New function.
17436 (opt_mode::else_blk): Use it.
17437 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17438 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17439 (aarch64_gen_stepped_int_parallel): Likewise.
17440 (aarch64_stepped_int_parallel_p): Likewise.
17441 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17443 * config/aarch64/aarch64.c
17444 (aarch64_expand_sve_widened_duplicate): Delete.
17445 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17446 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17447 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17448 argument. Use early returns in the !CONST_INT_P handling.
17449 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17450 than handling some inline.
17451 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17453 (aarch64_simd_container_mode): ...here.
17454 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17455 (aarch64_sve_ld1rq_operand_p): New functions.
17456 * config/aarch64/predicates.md (descending_int_parallel)
17457 (aarch64_sve_ld1rq_operand): New predicates.
17458 * config/aarch64/constraints.md (UtQ): New constraint.
17459 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17460 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17461 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17462 (@aarch64_sve_reinterpret<mode>): New expander.
17463 (*aarch64_sve_reinterpret<mode>): New pattern.
17464 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17465 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17466 (*sve_ld1rq<Vesize>): Replace with...
17467 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17469 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17471 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17474 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17476 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17477 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17478 (msp430_check_path_for_devices): New.
17479 (parse_devices_csv_1): New.
17480 (parse_devices_csv): New.
17481 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17482 MCU data in devices.csv before using the hard-coded data.
17483 Warn if devices.csv isn't found and the MCU wasn't found in the
17484 hard-coded data either.
17485 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17486 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17487 Search for devices.csv on -I and -L paths.
17488 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17489 msp430_set_driver_var.
17490 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17491 -mdevices-csv-loc=.
17492 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17493 searched for devices.csv.
17494 (mwarn-devices-csv): Document option.
17496 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17498 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17499 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17500 Use a single Dn alternative instead of separate Dz and Dm
17501 alternatives. Use aarch64_output_sve_move_immediate.
17502 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17504 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17505 for predicates too.
17506 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17507 (aarch64_output_ptrue): Delete.
17509 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17511 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17513 (simd_immediate_info::value, simd_immediate_info::step)
17514 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17516 (simd_immediate_info::u): ...this new union.
17517 (simd_immediate_info::simd_immediate_info): Update accordingly.
17518 (aarch64_output_simd_mov_immediate): Likewise.
17519 (aarch64_output_sve_mov_immediate): Likewise.
17521 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17523 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17525 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17526 (msp430_select_cpu): New spec function.
17527 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17529 * config/msp430/msp430-devices.c: New file.
17530 * config/msp430/msp430-devices.h: New file.
17531 * config/msp430/msp430.c: Remove msp430_mcu_data.
17532 (msp430_option_override): Use msp430_extract_mcu_data to extract
17534 (msp430_use_f5_series_hwmult): Likewise.
17535 (use_32bit_hwmult): Likewise.
17536 (msp430_no_hwmult): Likewise.
17537 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17539 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17541 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17542 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17543 Remove hard-coded MCU multilib data.
17545 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17547 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17548 based on the mode instead of testing properties of it.
17550 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17552 * doc/md.texi: Document the x and y constraints for AArch64.
17553 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17554 (FP_LO8_REGS): New reg_class.
17555 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17556 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17557 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17558 * config/aarch64/predicates.md (aarch64_simd_register): Use
17559 FP_REGNUM_P instead of checking the classes manually.
17560 * config/aarch64/constraints.md (y): New constraint.
17562 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17564 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17565 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17566 * config/aarch64/aarch64-simd.md
17567 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17568 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17569 from the asm template.
17570 * config/aarch64/aarch64-sve.md
17571 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17572 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17573 from the asm template.
17574 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17575 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17576 from the asm template.
17577 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17579 2019-08-13 Martin Liska <mliska@suse.cz>
17581 * value-prof.c (gimple_ic_transform): Add new line.
17582 Print details with MSG_NOTE.
17584 2019-08-13 Martin Liska <mliska@suse.cz>
17586 * doc/invoke.texi: Document automatic detection of jobserver.
17587 * lto-wrapper.c (run_gcc): Detect jobserver always.
17589 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17591 * config/i386/i386-expand.c (ix86_expand_vector_set)
17592 <case E_V2SImode>: Use vec_merge path for
17593 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17594 <case E_V8QImode>: Ditto.
17595 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17596 (*mmx_pinsrb): Ditto.
17598 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17602 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17603 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17604 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17605 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17606 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17608 2019-08-12 Richard Biener <rguenther@suse.de>
17611 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17614 2019-08-12 Richard Biener <rguenther@suse.de>
17617 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17618 lang_mask option, always use CL_DRIVER.
17619 (get_options_from_collect_gcc_options): Adjust.
17620 (find_and_merge_options): Likewise.
17621 (run_gcc): Likewise.
17623 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17625 * ipa-predicate.c (add_condition): Restore inverted test.
17627 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17629 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17630 (enum omp_clause_device_type_kind): New enum.
17631 (struct tree_omp_clause): Add subcode.device_type_kind.
17632 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17633 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17634 for device_type clause.
17635 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17636 * tree-pretty-print.c (dump_omp_clause): Likewise.
17639 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17642 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17644 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17645 handling spilled pseudos.
17647 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17650 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17651 to preserve the contents of the original insns.
17653 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17655 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17656 (addsi3_compare_op2): Likewise.
17658 2019-08-09 Martin Liska <mliska@suse.cz>
17660 * alias.c (alias_ptr_types_compatible_p): Strengten
17661 type comparison in LTO mode.
17663 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17665 PR middle-end/90313
17666 * tree-tailcall.c (find_tail_calls): Reject calls that might
17667 read from an escaped RESULT_DECL.
17669 2019-08-09 Martin Liska <mliska@suse.cz>
17671 * doc/invoke.texi: Document the option value.
17672 * lto-wrapper.c (run_gcc): Set auto_parallel
17673 only with -flto=auto.
17675 2019-08-09 Martin Liska <mliska@suse.cz>
17677 * opts.c (common_handle_option): Error for an invalid argument
17680 2019-08-09 Martin Liska <mliska@suse.cz>
17682 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17683 use dump_printf to report optimization.
17684 (sem_variable::merge): Likwise.
17685 (sem_item_optimizer::merge_classes): Use dump_printf to report
17688 2019-08-09 Martin Liska <mliska@suse.cz>
17690 * value-prof.c (gimple_divmod_fixed_value_transform):
17691 Use dump_printf_loc.
17692 (gimple_mod_pow2_value_transform): Likewise.
17693 (gimple_mod_subtract_transform): Likewise.
17694 (init_node_map): Likewise.
17695 (gimple_ic_transform): Likewise.
17696 (gimple_stringops_transform): Likewise.
17698 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17700 * doc/extend.texi: Add const qualifier to ld intrinsics.
17702 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17704 * config/rs6000/dfp.md (D64_D128): Rename to ...
17705 (DDTD): ... this, throughout.
17706 (dfp_suffix): Rename to ...
17707 (q): ... this, throughout.
17709 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17711 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17712 (dfp_suffix): Ditto.
17713 (adddd3, addtd3): Merge to ...
17714 (add<mode>3 for D64_D128): ... this.
17715 (subdd3, subtd3): Merge to ...
17716 (sub<mode>3 for D64_D128): ... this.
17717 (muldd3, multd3): Merge to ...
17718 (mul<mode>3 for D64_D128): ... this.
17719 (divdd3, divtd3): Merge to ...
17720 (div<mode>3 for D64_D128): ... this.
17721 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17722 (*cmp<mode>_internal1 for D64_D128): ... this.
17723 (ftruncdd2, ftrunctd2): Merge to ...
17724 (ftrunc<mode>2 for D64_D128): ... this.
17725 (fixdddi2, fixtddi2): Merge to ...
17726 (fix<mode>di2 for D64_D128): ... this.
17728 2019-08-08 Jim Wilson <jimw@sifive.com>
17731 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17732 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17733 Pass into recursive call.
17734 (riscv_flatten_aggregate_argument): New arg. Pass to
17735 riscv_flatten_aggregate_field.
17736 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17737 riscv_flatten_aggregate_argument twice, with false and true as last
17738 arg. Process result twice. Compare results and warn if different.
17739 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17741 2019-08-08 Martin Liska <mliska@suse.cz>
17744 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17745 * lto-wrapper.c (jobserver_active_p): Likewise.
17747 2019-08-08 Martin Liska <mliska@suse.cz>
17749 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17750 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17751 (create_version_clone_with_body): Likewise.
17753 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17755 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17756 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17757 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17758 GOVD_EXPLICIT flags.
17759 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17760 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17761 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17762 call install_var_field with mask 11 instead of 3.
17763 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17764 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17766 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17768 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17769 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17771 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17773 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17774 MOVPRFX alternatives. Make the GPR alternatives more expensive
17777 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17779 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17780 Disparage the GPR alternative relative to the FPR one.
17781 Fix handling of 8-bit and 16-bit FPR values.
17783 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17785 * config/aarch64/iterators.md (BITWISEV): Delete.
17786 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17787 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17788 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17789 UNSPEC_FMINNMV, UNSPEC_FMINV.
17790 (bit_reduc_op): Delete.
17791 (sve_int_op): New int attribute.
17792 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17793 UNSPEC_FMINNMV, UNSPEC_FMINV.
17794 * config/aarch64/aarch64-sve.md
17795 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17796 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17797 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17798 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17799 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17800 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17802 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17803 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17804 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17805 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17806 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17809 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17811 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17812 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17813 (fms<mode>4, *fms<mode>4): Replace with...
17814 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17815 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17816 Use unspecs instead of rtx codes.
17817 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17818 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17820 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17822 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17824 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17825 * config/aarch64/aarch64-sve.md
17826 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17827 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17828 use a single unspec for the rhs.
17829 (*<su><maxmin><mode>3): Delete.
17830 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17832 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17834 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17835 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17836 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17837 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17838 (optab, sve_fp_op): Handle them.
17839 (SVE_FP_UNARY): Delete.
17840 (optab): Remove sqrt entry.
17841 (sve_fp_op): Remove neg, abs and sqrt entries.
17842 (SVE_COND_FP_UNARY): New int iterator.
17843 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17844 (*<frint_pattern><mode>2): Delete.
17845 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17846 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17847 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17848 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17850 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17852 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17854 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17856 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17857 (UNSPEC_COND_FADD): ...this.
17858 (UNSPEC_COND_SUB): Rename to...
17859 (UNSPEC_COND_FSUB): ...this.
17860 (UNSPEC_COND_MUL): Rename to...
17861 (UNSPEC_COND_FMUL): ...this.
17862 (UNSPEC_COND_DIV): Rename to...
17863 (UNSPEC_COND_FDIV): ...this.
17864 (UNSPEC_COND_MAX): Rename to...
17865 (UNSPEC_COND_FMAXNM): ...this.
17866 (UNSPEC_COND_MIN): Rename to...
17867 (UNSPEC_COND_FMINNM): ...this.
17868 (UNSPEC_COND_LT): Rename to...
17869 (UNSPEC_COND_FCMLT): ...this.
17870 (UNSPEC_COND_LE): Rename to...
17871 (UNSPEC_COND_FCMLE): ...this.
17872 (UNSPEC_COND_EQ): Rename to...
17873 (UNSPEC_COND_FCMEQ): ...this.
17874 (UNSPEC_COND_NE): Rename to...
17875 (UNSPEC_COND_FCMNE): ...this.
17876 (UNSPEC_COND_GE): Rename to...
17877 (UNSPEC_COND_FCMGE): ...this.
17878 (UNSPEC_COND_GT): Rename to...
17879 (UNSPEC_COND_FCMGT): ...this.
17880 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17881 (sve_fp_op_rev): Update accordingly.
17882 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17884 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17886 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17888 * config/aarch64/check-sve-md.awk: New file.
17889 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17890 (insn-conditions.md): Depend on it.
17892 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17895 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17896 (*negsi2_cmpz_zext): Ditto.
17898 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17900 * config/aarch64/iterators.md (commutative): Remove.
17902 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17905 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17906 processing COLLECT_GCC_OPTIONS.
17907 (run_gcc): Likewise.
17909 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17911 PR tree-optimization/91109
17912 * lra-remat.c (update_scratch_ops): Remove assignment of the
17915 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17917 * data-streamer.h (streamer_write_poly_uint64): Declare.
17918 (streamer_read_poly_uint64): Likewise.
17919 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17920 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17921 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17922 (add_condition): Take a poly_int64 size.
17923 * ipa-predicate.c (add_condition): Likewise.
17924 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17925 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17926 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17927 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17928 condition::size as a poly_int64.
17929 (unmodified_parm_1): Take a poly_int64 size pointer.
17930 (unmodified_parm): Likewise.
17931 (unmodified_parm_or_parm_agg_item): Likewise.
17932 (set_cond_stmt_execution_predicate): Update accordingly.
17933 (set_switch_stmt_execution_predicate): Likewise.
17934 (will_be_nonconstant_expr_predicate): Likewise.
17935 (will_be_nonconstant_predicate): Likewise.
17936 (inline_read_section): Stream condition::size as a poly_int.
17937 (ipa_fn_summary_write): Likewise.
17939 2019-08-07 Martin Liska <mliska@suse.cz>
17941 * fold-const.c (twoval_comparison_p): Replace int
17942 with bool as a return type.
17943 (simple_operand_p): Likewise.
17944 (operand_equal_p): Replace int with bool as a return type.
17945 * fold-const.h (operand_equal_p): Likewise.
17947 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17949 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17950 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17951 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17952 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17953 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17954 * tree-pretty-print.c (dump_omp_clause): Likewise.
17955 * tree-nested.c (convert_nonlocal_omp_clauses,
17956 convert_local_omp_clauses): Likewise.
17957 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17959 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17960 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17961 clause with array or reference to array types, no matter what type
17962 except for reference it has.
17964 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17966 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17968 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17970 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17971 (arch_canonicalize): Support rv32g and rv64g and fix error
17974 2019-08-06 Martin Liska <mliska@suse.cz>
17976 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17977 and DECL_IS_OPERATOR_DELETE_P.
17979 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17981 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17982 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17983 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17984 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17985 (gimplify_omp_for): Don't do C++ random access iterator clause
17986 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17987 don't predetermine the artificial iterator in case of C++ random
17988 access iterators as lastprivate, but private. For OMP_LOOP, force
17989 bind expr around simd body and force for_pre_body before the
17990 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17991 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17992 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17993 diff var of C++ random access iterators. Handle
17994 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17995 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17996 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17997 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17998 * omp-low.c (lower_rec_input_clauses): For
17999 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18000 variables instead of default constructing them.
18001 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18002 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18003 is_taskloop_ctx check from the assert to the guarding condition.
18005 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18007 * config/riscv/multilib-generator: (canonical_order): New.
18008 (arch_canonicalize): Dito.
18009 Apply arch_canonicalize for alts.
18011 2019-08-05 Martin Sebor <msebor@redhat.com>
18013 * doc/extend.texi (Common Variable Attributes): Document alias
18016 2019-08-05 Marek Polacek <polacek@redhat.com>
18018 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18019 * doc/invoke.texi: Document -Wcomma-subscript.
18021 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18023 * tree-core.h (tree_function_decl): Make function_code an
18024 independent field. Group the remaining bitfields into bytes
18025 and move decl_type so that it contines to be at a byte boundary.
18026 Leave 12 bits for future expansion.
18028 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18030 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18031 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18032 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18035 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18037 * gimple.h (gimple_move_vops): Declare.
18038 * gimple.c (gimple_move_vops): New function
18039 * gimple-fold.c (replace_call_with_call_and_fold)
18040 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18041 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18042 (gimple_fold_call): Use it.
18043 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18044 * tree-call-cdce.c (use_internal_fn): Likewise.
18045 * tree-if-conv.c (predicate_load_or_store): Likewise.
18046 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18047 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18048 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18049 (update_call_from_tree): Likewise.
18050 * tree-vect-stmts.c (vectorizable_load): Likewise.
18051 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18053 2019-08-05 Martin Liska <mliska@suse.cz>
18056 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18057 with not arguments.
18058 (eliminate_unnecessary_stmts): Likewise.
18060 2019-08-05 Richard Biener <rguenther@suse.de>
18062 PR middle-end/91169
18063 * fold-const.c (get_array_ctor_element_at_index): Create
18064 offset_ints according to the sign of the index type and treat
18065 that as signed if it is obviously so.
18067 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18070 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18071 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18072 _mm256_storeu2_m128i): New function.
18074 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18076 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18077 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18079 2019-08-05 Alan Modra <amodra@gmail.com>
18082 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18083 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18085 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18087 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18088 bug that was fixed in Tcl 8.6.1.
18090 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18092 * config/rs6000/future.md: New file.
18093 * config/rs6000/rs6000.md: Include future.md.
18094 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18096 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18098 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18099 check to use targetm.slow_unaligned_access instead.
18101 * function.c (assign_param_data_one): Remove unused data members.
18103 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18105 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18106 build_distinct_type_copy.
18107 (simd_clone_adjust_argument_types): Ditto.
18108 (simd_clone_adjust): Call build_distinct_type_copy here.
18109 (expand_simd_clones): Ditto.
18111 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18114 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18116 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18118 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18119 from 'const void *'.
18120 (sort_locs_in_loop_postorder_cmp): Likewise.
18122 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18124 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18125 (hot-bb-count-ws-permille): Likewise.
18126 (hot-bb-frequency-fraction): Likewise.
18127 (unlikely-bb-count-fraction): Likewise.
18128 * params.def (hot-bb-count-fraction): Rework description.
18129 (hot-bb-count-ws-permille): Likewise.
18130 (hot-bb-frequency-fraction): Likewise.
18131 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18132 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18134 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18137 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18140 2019-08-02 Richard Biener <rguenther@suse.de>
18142 * vec.h (vec::sort): Add gcc_qsort_r support.
18143 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18144 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18145 to gcc_qsort_r style callback.
18146 (sort_locs_in_loop_postorder_cmp): Likewise.
18147 (analyze_memory_references): Use gcc_sort_r interfaces.
18148 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18150 2019-08-02 Martin Liska <mliska@suse.cz>
18153 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18154 to detect working job server.
18155 (driver::detect_jobserver): Test whether jobserver
18156 is active from GCC driver. That will prevent situation where
18157 GCC is invoked from a LD plugin and the linker already uses
18158 file descriptors suggested by make. That leads to a wrong
18160 * gcc.h (driver): Add detect_jobserver.
18161 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18162 not scanning for --jobserver-auth prefix.
18164 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18166 PR tree-optimization/91201
18167 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18168 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18171 2019-08-01 Martin Sebor <msebor@redhat.com>
18174 * tree.c (type_initializer_zero_p): Define.
18175 * tree.h (type_initializer_zero_p): New function.
18177 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18179 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18181 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18183 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18184 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18185 * predict.c (maybe_hot_count_p): Likewise.
18186 (maybe_hot_bb_p): Tweak comment.
18187 (maybe_hot_edge_p): Likewise.
18188 (probably_never_executed): Likewise. Minor tweak.
18189 (probably_never_executed_bb_p): Likewise.
18190 (unlikely_executed_edge_p): Likewise.
18191 (probably_never_executed_edge_p): Likewise.
18192 (optimize_function_for_size_p): Likewise.
18193 (optimize_function_for_speed_p): Likewise.
18194 (function_optimization_type): Likewise.
18195 (optimize_bb_for_size_p): Likewise.
18196 (optimize_bb_for_speed_p): Likewise.
18197 (bb_optimization_type): Likewise.
18198 (optimize_edge_for_size_p): Likewise.
18199 (optimize_edge_for_speed_p): Likewise.
18200 (optimize_insn_for_size_p): Likewise.
18201 (optimize_insn_for_speed_p): Likewise.
18202 (optimize_loop_for_size_p): Likewise.
18203 (optimize_loop_for_speed_p): Likewise.
18204 (optimize_loop_nest_for_speed_p): Likewise.
18205 (optimize_loop_nest_for_size_p): Likewise.
18206 (predictable_edge_p): Likewise.
18207 (handle_missing_profiles): Minor tweak.
18209 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18211 * config/rs6000/predicates.md (pcrel_external_address): Update
18214 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18217 * config/i386/mmx.md (usadv8qi): New expander.
18219 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18222 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18223 with reserved names that are in a system header.
18225 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18227 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18228 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18229 (*vec_extractv2si_0_zext): Ditto.
18230 (*vec_extractv2si_1): Add (rm,x) alternative.
18231 (*vec_extractv2si_1_zext): New insn pattern.
18232 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18235 2019-08-01 Richard Biener <rguenther@suse.de>
18237 * domwalk.c (bb_postorder): Remove static variable.
18238 (cmp_bb_postorder): Adjust.
18239 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18240 (dom_walker::walk): Adjust.
18242 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18244 * sort.cc (sort_r_ctx): New struct.
18245 (reorder23): Make templated on context type.
18246 (reorder45): Ditto.
18247 (cmp1): Ditto. Adjust signature.
18249 (mergesort): Ditto.
18250 [CHECKING_P] (cmp2to3): New static function. Use it...
18251 (gcc_qsort) [CHECKING_P]: ...here.
18252 (gcc_sort_r): New function.
18253 * system.h (sort_r_cmp_fn): New function typedef.
18254 (qsort_chk): Adjust signature.
18255 (gcc_sort_r): Declare.
18256 * vec.c (qsort_chk_error): Adjust.
18257 (qsort_chk): Adjust.
18259 2019-08-01 Richard Biener <rguenther@suse.de>
18261 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18262 (compute_antic): Localize it here.
18264 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18266 * common/config/riscv/riscv-common.c: Check -march string ends
18269 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18271 * ipa-devirt.c (type_warning_cmp): Make static.
18272 (decl_warning_cmp): Ditto.
18274 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18277 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18278 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18279 use of deleted rs6000_dejagnu_cpu_index variable.
18280 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18281 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18282 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18283 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18284 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18285 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18287 2019-07-31 Richard Biener <rguenther@suse.de>
18289 PR tree-optimization/91280
18290 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18291 Decompose MEM_REF manually for offset handling.
18293 2019-07-31 Richard Biener <rguenther@suse.de>
18295 PR tree-optimization/91293
18296 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18297 of reduction stmts.
18299 2019-07-31 Matt Thomas <matt@3am-software.com>
18300 Nick Hudson <nick@nthcliff.demon.co.uk>
18301 Matthew Green <mrg@eterna.com.au>
18302 Maya Rashish <coypu@sdf.org>
18304 * config.gcc (hppa*-*-netbsd*): New target.
18305 * config/pa/pa-netbsd.h: New file.
18306 * config/pa/pa32-netbsd.h: New file.
18308 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18310 PR tree-optimization/91201
18311 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18313 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18315 * config/gcn/gcn-valu.md
18316 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18317 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18318 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18319 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18320 struct ilist. Add nops for delayeduse insns.
18321 * config/gcn/gcn.md (delayeduse): New attribute.
18322 (*movbi): Remove s_waitcnt from stores.
18323 (*mov<mode>_insn): Likewise.
18324 (*movti_insn): Likewise. Add delayeduse attribute.
18325 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18326 (atomic_store<mode>): Remove or adjust s_waitcnt.
18328 2019-07-31 Richard Biener <rguenther@suse.de>
18330 * vr-values.h (vr_values::swap_vr_value): New.
18331 (vr_values::free_value_range): likewise.
18332 * vr-values.c (vr_values::swap_vr_value): Implement.
18333 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18334 Do not return a range or take a var.
18335 (evrp_range_analyzer::stack): Change back to recording a non-const
18337 * gimple-ssa-evrp-analyze.c
18338 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18340 (evrp_range_analyzer::pop_to_marker): Adjust.
18341 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18342 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18343 no longer needed value-range.
18345 2019-07-31 Martin Liska <mliska@suse.cz>
18347 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18348 have size and (or) alignment as 2nd and later arguments.
18349 Mark all of them as necessary.
18351 2019-07-31 Richard Biener <rguenther@suse.de>
18353 PR tree-optimization/91178
18354 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18355 Use tail-recursion.
18357 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18359 PR tree-optimization/91201
18360 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18361 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18363 (reduc_plus_scal_<mode>): Improve formatting by introducing
18366 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18368 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18369 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18370 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18371 (aarch64_init_tme_builtins): New.
18372 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18373 (aarch64_expand_builtin_tme): New.
18374 (aarch64_expand_builtin): Handle TME builtins.
18375 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18376 __ARM_FEATURE_TME when enabled.
18377 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18378 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18380 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18381 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18383 (tstart, ttest, tcommit, tcancel): New instructions.
18384 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18385 (__tcancel, __ttest): New.
18386 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18387 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18388 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18389 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18390 * config/arm/types.md: Add new tme type attr.
18391 * doc/invoke.texi: Document "tme".
18393 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18395 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18396 warn_unused_result attribute.
18397 (cmse_check_address_range): Add warn_unused_result attribute.
18399 2019-07-31 Richard Biener <rguenther@suse.de>
18401 PR tree-optimization/91257
18402 * tree-vrp.c (union_ranges): Unify equality and less tests
18403 by using compare_values. Re-order cheap tests first.
18405 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18407 PR middle-end/91301
18408 * gimplify.c (gimplify_omp_for): If for class iterator on
18409 distribute parallel for there is no data sharing clause
18410 on inner_for_stmt, look for private clause on combined
18411 parallel too and if found, move it to inner_for_stmt.
18413 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18415 * lra-int.h (lra_operand_data): Remove early_clobber field.
18416 (lra_insn_reg): Likewise.
18417 * lra.c (debug_operand_data): Update accordingly.
18418 (setup_operand_alternative): Likewise.
18419 (new_insn_reg): Likewise. Remove early_clobber parameter.
18420 (collect_non_operand_hard_regs): Update call accordingly.
18421 Don't assign to lra_insn_reg::early_clobber.
18422 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18423 and update calls to new_insn_reg.
18424 (lra_update_insn_regno_info): Update calls accordingly.
18425 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18426 alternative number as a parameter and test whether the operand
18427 is earlyclobbered in that particular alternative.
18428 (process_alt_operands): Update call accordingly. Use per-alternative
18429 checks for earyclobber here too.
18430 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18431 against zero for IRA_UNKNOWN_ALT.
18433 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18435 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18437 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18439 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18440 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18442 2019-07-30 Martin Liska <mliska@suse.cz>
18445 * cgraph.c (cgraph_edge::make_direct): Use
18446 edge->indirect_unknown_callee as edge->resolve_speculation can
18447 deallocate edge which is this pointer.
18449 2019-07-30 Richard Biener <rguenther@suse.de>
18451 PR tree-optimization/91257
18452 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18454 2019-07-30 Martin Liska <mliska@suse.cz>
18456 * doc/invoke.texi: Document new behavior.
18457 * lto-wrapper.c (cpuset_popcount): New function
18458 is a copy of libgomp/config/linux/proc.c.
18459 (init_num_threads): Likewise.
18460 (run_gcc): Automatically detect core count for -flto.
18461 (jobserver_active_p): New function.
18463 2019-07-30 Richard Biener <rguenther@suse.de>
18465 PR tree-optimization/91257
18466 * bitmap.h (bitmap_ior_into_and_free): Declare.
18467 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18468 whether to add the unliked element to the freelist.
18469 (bitmap_list_insert_element_after): Add defaulted param for
18470 an already allocated element.
18471 (bitmap_ior_into_and_free): New function.
18472 * tree-ssa-structalias.c (condense_visit): Reduce the
18473 ponts-to and edge bitmaps of the SCC members in a
18474 logarithmic fashion rather than all to one.
18476 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18478 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18479 parameter. When nonnull, make sure that the addition or subtraction
18480 has the same condition.
18481 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18482 for CFN_COND_MUL too.
18484 2019-07-30 Richard Biener <rguenther@suse.de>
18486 PR tree-optimization/91291
18487 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18490 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18492 PR middle-end/91216
18493 * omp-low.c (global_nonaddressable_vars): New variable.
18494 (use_pointer_for_field): For global decls, if they are non-addressable,
18495 remember it in the global_nonaddressable_vars bitmap, if they are
18496 addressable and in the global_nonaddressable_vars bitmap, ignore their
18497 TREE_ADDRESSABLE bit.
18498 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18499 vars in global_nonaddressable_vars bitmap.
18500 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18503 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18504 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18505 comparison to unsigned HOST_WIDE_INT before shifting it left.
18507 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18509 * config/i386/i386.md (movstrict<mode>): Use register_operand
18510 predicate for operand 0. Add expander condition. Assert that
18511 operand 0 is a SUBREG RTX.
18512 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18513 Update operand constraints and insn condition.
18514 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18515 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18516 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18517 Update operand 0 constraints.
18518 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18520 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18522 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18523 when -m{code,data}-region are used without -mlarge.
18524 * config/msp430/msp430.c (msp430_option_override): Error when a
18525 non-default code or data region is used without -mlarge.
18526 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18527 attributes when they are used without -mlarge.
18529 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18532 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18534 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18536 PR middle-end/91242
18537 * wide-int.h (generic_wide_int::sext_elt): New function.
18538 * inchash.h (hash::add_wide_int): Use it instead of elt.
18540 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18542 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18544 * config/arm/arm.md (<crc_variant>): Rename to...
18545 (arm_<crc_variant>): ... This.
18546 (<cdp>): Rename to...
18547 (arm_<cdp>): ... This.
18548 (<ldc>): Rename to...
18549 (arm_<ldc>): ... This.
18550 (<stc>): Rename to...
18551 (arm_<stc>): ... This.
18552 (<mcr>): Rename to...
18553 (arm_<mcr>): ... This.
18554 (<mrc>): Rename to...
18555 (arm_<mrc>): ... This.
18556 (<mcrr>): Rename to...
18557 (arm_<mcrr>): ... This.
18558 (<mrrc>): Rename to...
18559 (arm_<mrrc>): ... This.
18561 2019-07-29 Richard Biener <rguenther@suse.de>
18563 PR tree-optimization/91257
18564 * tree-ssa-sccvn.h (struct vn_avail): New.
18565 (struct vn_ssa_aux): Add avail member.
18566 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18567 member, add m_avail_freelist one.
18568 (rpo_elim::~rpo_elim): Remove.
18569 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18571 (rpo_elim::eliminate_push_avail): Likewise.
18572 (do_unwind): Likewise.
18573 (do_rpo_vn): Likewise.
18575 2019-07-29 Richard Biener <rguenther@suse.de>
18577 PR tree-optimization/91257
18578 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18579 most cases, instead call compare_values which handles the
18580 symbolic ranges we handle specially.
18581 (compare_values_warnv): Do not call operand_less_p but open-code
18582 the effective fold calls. Avoid converting so much.
18584 2019-07-29 Martin Liska <mliska@suse.cz>
18586 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18587 remove LHS of operator new call. It's handled latter.
18589 2019-07-29 Richard Biener <rguenther@suse.de>
18591 PR tree-optimization/91267
18592 * vr-values.c (vr_values::update_value_range): Add early return
18593 for effectively VARYING lattice entry.
18595 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18598 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18599 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18600 necessary if keep_all_vdefs_p is true.
18601 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18602 that keep_all_vdefs_p is false.
18603 (mark_all_reaching_defs_necessary): Likewise.
18604 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18606 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18608 * common.opt (Og): Change the initial value of flag_dse to 0.
18609 * opts.c (default_options_table): Move OPT_ftree_dse from
18610 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18611 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18612 entry before the OPT_ftree_sra entry.
18613 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18614 of flags disabled by Og.
18616 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18618 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18621 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18623 * doc/sourcebuild.texi (check-function-bodies): Document.
18625 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18627 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18628 VEC_DUPLICATE of a fixed-length vector even if the result
18629 is variable-length. Likewise fold a duplicate of a
18630 variable-length vector if the variable-length vector is
18631 itself a duplicate of a fixed-length sequence.
18632 (test_vector_ops_duplicate): Test more cases.
18634 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18636 * vector-builder.h (vector_builder): Add a shape template parameter.
18637 (vector_builder::new_unary_operation): New function, generalizing
18638 the old tree_vector_builder function.
18639 (vector_builder::new_binary_operation): Likewise.
18640 (vector_builder::binary_encoded_nelts): Likewise.
18641 * int-vector-builder.h (int_vector_builder): Update template
18642 parameters to vector_builder.
18643 (int_vector_builder::shape_nelts): New function.
18644 * rtx-vector-builder.h (rtx_vector_builder): Update template
18645 parameters to vector_builder.
18646 (rtx_vector_builder::shape_nelts): New function.
18647 (rtx_vector_builder::nelts_of): Likewise.
18648 (rtx_vector_builder::npatterns_of): Likewise.
18649 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18650 * tree-vector-builder.h (tree_vector_builder): Update template
18651 parameters to vector_builder.
18652 (tree_vector_builder::shape_nelts): New function.
18653 (tree_vector_builder::nelts_of): Likewise.
18654 (tree_vector_builder::npatterns_of): Likewise.
18655 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18656 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18657 (tree_vector_builder::new_binary_operation): Delete.
18658 (tree_vector_builder::binary_encoded_nelts): Likewise.
18659 * simplify-rtx.c: Include rtx-vector-builder.h.
18660 (distributes_over_addition_p): New function.
18661 (simplify_const_unary_operation)
18662 (simplify_const_binary_operation): Generalize handling of vector
18663 constants to include variable-length vectors.
18664 (test_vector_ops_series): Add more tests.
18666 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18669 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18670 than INDENTIFIER_POINTER.
18672 2019-07-28 Martin Liska <mliska@suse.cz>
18675 * cgraph.c (symbol_table::create_edge): Always allocate
18677 (symbol_table::free_edge): Store summary_id to
18678 edge_released_summary_ids if != -1;
18679 * cgraph.h (NEXT_FREE_NODE): Remove.
18680 (SET_NEXT_FREE_NODE): Likewise.
18681 (NEXT_FREE_EDGE): Likewise.
18682 (symbol_table::release_symbol): Store summary_id to
18683 cgraph_released_summary_ids if != -1;
18684 (symbol_table::allocate_cgraph_symbol): Always allocate
18687 2019-07-28 Alan Modra <amodra@gmail.com>
18689 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18692 2019-07-28 Alan Modra <amodra@gmail.com>
18695 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18697 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18698 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18699 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18701 2019-07-28 Alan Modra <amodra@gmail.com>
18704 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18705 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18706 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18707 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18708 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18709 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18710 in asm_default spec.
18711 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18712 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18714 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18716 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18718 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18721 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18722 * config/aarch64/aarch64-option-extensions.def: Add new comments
18723 and restore easier to read options.
18725 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18727 * convert.c (convert_to_real_1): Move part of conversion code...
18728 * match.pd: ...To here.
18730 2019-07-26 Martin Jambor <mjambor@suse.cz>
18733 * ipa-inline-transform.c (check_speculations_1): New function.
18734 (push_all_edges_in_set_to_vec): Likewise.
18735 (check_speculations): Use check_speculations_1, new parameter
18737 (inline_call): Pass new_edges to check_speculations.
18738 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18740 (speculation_useful_p): Early return true if edge is inlined, remove
18741 later checks for inline_failed.
18743 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18745 PR rtl-optimization/91223
18746 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18747 matching with INOUT operand.
18749 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18751 * stmt.c (expand_case): Try to narrow the index type if it's larger
18752 than a word. Tidy up.
18754 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18756 * cif-code.def (NEVER_CALL): New code.
18757 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18758 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18760 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18762 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18763 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18765 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18767 * ipa-devirt.c (add_type_duplicate): Fix return value.
18769 2019-07-25 Richard Biener <rguenther@suse.de>
18771 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18772 type parameter and use it instead of guessing expression
18773 type from the first operand.
18774 (extract_range_from_binary_expr): Pass expr_type down.
18776 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18778 * config/arm/arm.md (SATrev): Change to code attribute.
18779 (*satsi_<SAT:code>): Adjust for the above.
18780 (*satsi_<SAT:code>_shift): Likewise.
18782 2019-07-25 Richard Biener <rguenther@suse.de>
18784 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18785 Make value_range * temporary const.
18786 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18788 (evrp_range_analyzer::record_ranges_from_): Likewise.
18789 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18790 deal with having recorded a const one.
18791 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18792 Return a const value_range *.
18793 (evrp_range_analyzer::pop_value_range): Likewise.
18794 (evrp_range_analyzer::stack): Record const value_range *s.
18795 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18797 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18798 (format_integer): Likewise.
18799 (sprintf_dom_walker::handle_gimple_call): Likewise.
18800 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18801 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18802 (vrp_prop::get_value_range): Adjust.
18803 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18804 modifying the lattice in-place.
18805 (vrp_prop::visit_stmt): Likewise.
18806 * vr-values.c (vr_values::get_lattice_entry): New private method.
18807 (vr_values::get_value_range): Wrap it and return a const
18809 (vr_values::set_def_to_varying): New.
18810 (vr_values::set_defs_to_varying): Use it.
18811 (vr_values::update_value_range): Likewise.
18812 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18813 (values::op_with_constant_singleton_va): Likewise.
18814 (vr_values::extract_range_for_var_from_co): Likewise.
18815 (vr_values::extract_range_from_ssa_name): Likewise.
18816 (vr_values::extract_range_from_cond_expr): Likewise.
18817 (vr_values::extract_range_basic): Likewise.
18818 (compare_ranges): Take const value_range *, adjust.
18819 (compare_range_with_value): Likewise.
18820 (vrp_valueize): Adjust.
18821 (vrp_valueize_1): Likewise.
18822 (vr_values::get_vr_for_comparison): Return a const value_range *.
18823 (vr_values::compare_name_with_value): Adjust.
18824 (vr_values::compare_names): Likewise.
18825 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18827 (vr_values::vrp_evaluate_conditional): Likewise.
18828 (find_case_label_ranges): Take a const value_range *.
18829 (vr_values::vrp_visit_switch_stmt): Adjust.
18830 (vr_values::extract_range_from_phi_node): Likewise.
18831 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18832 (vr_values::simplify_abs_using_ranges): Likewise.
18833 (test_for_singularity): Take a const value_range *.
18834 (range_fits_type_p): Likewise.
18835 (vr_values::simplify_cond_using_ranges_1): Adjust.
18836 (vr_values::simplify_cond_using_ranges_2): Likewise.
18837 (vr_values::simplify_switch_using_ranges): Likewise.
18838 (vr_values::simplify_float_conversion_usi): Likewise.
18839 (vr_values::two_valued_val_range_p): Likewise.
18840 * vr-values.h (vr_values::get_value_range): Return a const
18842 (vr_values::set_def_to_varying): New.
18843 (vr_values::get_lattice_entry): New private method.
18844 (vr_values::get_vr_for_comparison): Return a const value_range *.
18846 2019-07-25 Martin Liska <mliska@suse.cz>
18847 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18850 * common.opt: Add -fallocation-dce
18851 * gimple.c (gimple_call_operator_delete_p): New.
18852 * gimple.h (gimple_call_operator_delete_p): Likewise.
18853 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18854 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18855 DECL_IS_OPERATOR_DELETE_P.
18856 (mark_all_reaching_defs_necessary_1): Likewise.
18857 (propagate_necessity): Likewise.
18858 (eliminate_unnecessary_stmts): Handle
18859 gimple_call_operator_delete_p.
18860 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18861 Add packing of OPERATOR_DELETE.
18862 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18864 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18865 (DECL_SET_IS_OPERATOR_DELETE): New.
18866 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18868 2019-07-25 Martin Liska <mliska@suse.cz>
18870 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18871 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18872 * coverage.c (coverage_begin_function): Likewise.
18873 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18874 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18875 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18876 (sem_item::hash_referenced_symbol_properties): Likewise.
18877 * lto-streamer-out.c (hash_tree): Likewise.
18878 * predict.c (expr_expected_value_1): Likewise.
18879 * tree-inline.c (expand_call_inline): Likewise.
18880 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18881 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18882 * tree-core.h (enum function_decl_type): New enum.
18883 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18884 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18885 (set_function_decl_type): Likewise.
18886 (DECL_IS_OPERATOR_NEW_P): New.
18887 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18888 (DECL_LAMBDA_FUNCTION): Likewise.
18889 (DECL_LAMBDA_FUNCTION_P): Likewise.
18890 (DECL_IS_OPERATOR_NEW): Remove.
18891 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18893 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18895 * ipa-profile.c (get_most_common_single_value): Use
18896 get_nth_most_common_value.
18897 * profile.c (sort_hist_value): New function.
18898 (compute_value_histograms): Call sort_hist_value to sort the
18899 values after loading from disk.
18900 * value-prof.c (get_most_common_single_value): Rename to ...
18901 get_nth_most_common_value. Add input params n, return
18902 the n_th value and count.
18903 (gimple_divmod_fixed_value_transform): Use
18904 get_nth_most_common_value.
18905 (gimple_ic_transform): Likewise.
18906 (gimple_stringops_transform): Likewise.
18907 * value-prof.h (get_most_common_single_value): Add input params
18910 2019-07-25 Richard Biener <rguenther@suse.de>
18912 PR tree-optimization/91236
18913 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18914 size of CONSTRUCTOR write. Fix buffer size we pass to
18915 native_encode_expr.
18917 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18919 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18920 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18923 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18925 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18926 explicitly disabled with --disable-initfini-array.
18928 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18930 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18933 2019-07-24 Martin Sebor <msebor@redhat.com>
18935 PR tree-optimization/91183
18936 PR tree-optimization/86688
18937 * builtins.c (compute_objsize): Handle MEM_REF.
18938 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18939 (get_min_string_length): Remove.
18940 (count_nonzero_bytes): New function.
18941 (handle_char_store): Rename...
18942 (handle_store): to this. Handle multibyte stores via integer types.
18943 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18946 2019-07-24 Martin Sebor <msebor@redhat.com>
18949 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18950 (diagnostic_report_diagnostic): Same.
18951 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18952 (diagnostic_context::lang_mask): New data member.
18953 * ipa-pure-const.c (suggest_attribute): Use
18954 lang_hooks.option_lang_mask ().
18955 * opts-common.c (option_enabled): Handle new argument.
18956 (get_option_state): Pass an additional argument.
18957 * opts.c (print_filtered_help): Print supported languages for
18958 unsupported options. Adjust printing of current state.
18959 * opts.h (option_enabled): Add argument.
18960 * toplev.c (print_switch_values): Use lang_mask.
18961 (general_init): Set global_dc->lang_mask.
18963 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18966 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18968 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18970 * cgraphunit.c (symbol_table::compile): Start and stop
18971 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18972 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18974 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18976 * gimplify.c (flag_instrument_functions_exclude_p): Include
18977 namespace/class information in the printable name.
18978 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18979 to tokens entered into the vector.
18981 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18983 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18984 (get_static_chain): Call it instead of build_simple_mem_ref.
18985 (get_frame_field): Likewise.
18986 (get_nonlocal_debug_decl): Likewise.
18987 (convert_nonlocal_reference_op): Likewise.
18989 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18991 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18993 (arc_compute_frame_size): Millicode is disabled when compiling
18995 (arc_return_address_register): Likewise.
18996 (arc_compute_function_type): Likewise.
18997 (arc_compute_frame_size): Likewise.
18998 (secondary_reload_info): Likewise.
18999 (arc_get_unalign): Likewise.
19000 (arc_can_use_return_insn): Declare.
19001 * config/arc/arc.c (AUX_LP_START): Define
19002 (AUX_LP_END): Likewise.
19003 (arc_frame_info): Update gmask member to 64-bit datum.
19004 (GMASK_LEN): Update.
19005 (arc_compute_function_type): Make it static, move it forward.
19006 (arc_must_save_register): Update, consider the extra regs.
19007 (arc_compute_millicode_save_restore_regs): Update to use the 64
19009 (arc_compute_frame_size): Likewise.
19010 (arc_enter_leave_p): Likewise.
19011 (arc_save_callee_saves): Likewise.
19012 (arc_restore_callee_saves): Likewise.
19013 (arc_save_callee_enter): Likewise.
19014 (arc_restore_callee_leave): Likewise.
19015 (arc_save_callee_milli): Likewise.
19016 (arc_restore_callee_milli): Likewise.
19017 (arc_expand_prologue): Add new interrupt handling.
19018 (arc_return_address_register): Make it static, move it forward.
19019 (arc_expand_epilogue): Add new interrupt handling.
19020 (arc_get_unalign): Delete.
19021 (arc_epilogue_uses): Make sure we do not remove the extra
19022 saved/restored registers when interrupt.
19023 (arc_can_use_return_insn): New function.
19024 (push_reg): Likewise.
19025 (pop_reg): Likewise.
19026 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19028 (arc_restore_callee_saves): Likewise, but restoring.
19029 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19030 (R33_REG): Likewise.
19031 (R34_REG): Likewise.
19032 (R35_REG): Likewise.
19033 (R36_REG): Likewise.
19034 (R37_REG): Likewise.
19035 (R38_REG): Likewise.
19036 (R39_REG): Likewise.
19037 (R45_REG): Likewise.
19038 (R46_REG): Likewise.
19039 (R47_REG): Likewise.
19040 (R48_REG): Likewise.
19041 (R49_REG): Likewise.
19042 (R50_REG): Likewise.
19043 (R51_REG): Likewise.
19044 (R52_REG): Likewise.
19045 (R53_REG): Likewise.
19046 (R54_REG): Likewise.
19047 (R55_REG): Likewise.
19048 (R56_REG): Likewise.
19049 (R58_REG): Likewise.
19050 (type): Add rtie attribute.
19051 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19052 (movsi_insn): Accept moves to lp_count.
19053 (rtie): Update pattern.
19054 (simple_return): Simplify it, don't use this pattern as a return
19056 (arc600_rtie): New pattern.
19057 (p_return_i): Clean up.
19058 (return): Likewise.
19059 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19061 * config/arc/predicates.md (move_src_operand): Consider lp_count
19064 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19066 * config/s390/predicates.md (addv_const_operand): New predicate.
19067 * config/s390/s390-modes.def (CCO): New condition code mode.
19068 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19069 (s390_branch_condition_mask): Likewise.
19070 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19071 ("mulv<mode>4"): New expanders.
19072 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19073 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19074 pattern definitions.
19076 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19078 PR middle-end/91166
19079 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19080 (define_predicates): Add entry for uniform_vector_p.
19081 (vec_same_elem_p): New match pattern.
19083 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19086 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19087 * config/i386/darwin32-biarch.h .. to here.
19088 * config/i386/darwin64-biarch.h: Adjust comments.
19089 * config/rs6000/darwin32-biarch.h: Likewise.
19090 * config/rs6000/darwin64-biarch.h: Likewise.
19091 * config.gcc: Missed commit from r273746
19092 (*-*-darwin*): Don't include CPU t-darwin here.
19093 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19094 an error message if i686-darwin configuration is attempted for
19097 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19100 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19101 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19102 an error message if i686-darwin configuration is attempted for
19104 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19105 (powerpc-*-darwin*): Use biarch files where needed.
19106 (powerpc64-*-darwin*): Likewise.
19107 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19108 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19110 * config/i386/darwin32-biarch.h: New.
19111 * config/i386/darwin64.h: Rename.
19112 * config/i386/darwin64-biarch.h: To this.
19113 * config/i386/t-darwin: Rename.
19114 * config/i386/t-darwin32-biarch: To this.
19115 * config/i386/t-darwin64: Rename.
19116 * config/i386/t-darwin64-biarch: To this.
19117 * config/rs6000/darwin32-biarch.h: New.
19118 * config/rs6000/darwin64.h: Rename.
19119 * config/rs6000/darwin64-biarch.h: To this.
19120 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19122 * config/rs6000/t-darwin8: Rename.
19123 * config/rs6000/t-darwin32-biarch: To this.
19124 * config/rs6000/t-darwin64 Rename.
19125 * config/rs6000/t-darwin64-biarch: To this.
19127 2019-07-23 Martin Sebor <msebor@redhat.com>
19129 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19131 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19133 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19134 (rh): New alias for it.
19136 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19138 * gdbhooks.py: Pass replace=True to
19139 gdb.printing.register_pretty_printer.
19141 2019-07-23 Richard Biener <rguenther@suse.de>
19144 * lto-streamer-in.c (input_function): Drop inline-entry markers
19145 that ended up with an unknown location block.
19147 2019-07-23 Richard Biener <rguenther@suse.de>
19149 PR tree-optimization/83518
19150 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19151 init from a constant even when partial defs are already recorded.
19153 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19155 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19156 * config/i386/znver1.md: Enable patterns for znver2 and add store
19157 variants which use extra AGU unit.
19159 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19161 * config/i386/i386-options.c (ix86_option_override_internal): Default
19162 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19163 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19166 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19168 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19169 (znver2_costs): Update 256 bit SSE costs and multiplication.
19171 2019-07-23 Jan Beulich <jbeulich@suse.com>
19173 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19174 Require only AVX512F.
19175 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19176 alternative expanding to vpternlog.
19178 2019-07-23 Martin Liska <mliska@suse.cz>
19180 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19181 to -flto in dwarf producer string.
19183 2019-07-23 Richard Biener <rguenther@suse.de>
19185 * tree-cfg.c (label_for_bb): Remove global var.
19186 (main_block_label): Take label_for_bb as argument.
19187 (cleanup_dead_labels_eh): Likewise, adjust.
19188 (cleanup_dead_labels): Adjust.
19190 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19192 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19193 Configurations): Add documentation for __builtin_mtfsf.
19195 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19197 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19198 * config/riscv/riscv.c (riscv_constant_alignment): Use
19199 riscv_align_data_type.
19200 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19201 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19202 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19203 * config/riscv/riscv.opt (malign-data): New.
19204 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19206 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19208 * cgraph.c (dump_graphviz): New function.
19209 * cgraph.h (dump_graphviz): New function.
19210 * symtab.c (dump_graphviz): New function.
19212 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19214 * config/aarch64/aarch64-simd.md
19215 (*aarch64_simd_sra<mode>): New.
19216 * config/aarch64/iterators.md
19217 (SHIFTRT): New iterator.
19218 (sra_op): New attribute.
19220 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19222 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19223 callee-saved regs R4->R10 in an interrupt function that calls another
19226 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19228 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19229 (_mm_blendv_epi8): New.
19231 2019-07-22 Richard Biener <rguenther@suse.de>
19233 PR tree-optimization/91221
19234 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19235 restrict partial-def handling of empty constructors and
19236 memset to refs with known offset.
19238 2019-07-22 Jan Beulich <jbeulich@suse.com>
19240 * config/i386/sse.md (ternlogsuffix): New.
19241 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19243 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19245 2019-07-22 Martin Liska <mliska@suse.cz>
19247 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19249 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19251 2019-07-22 Martin Liska <mliska@suse.cz>
19253 * lto-section-in.c (lto_get_section_data):
19254 Use new function get_compression.
19255 * lto-streamer-out.c (produce_lto_section): Use
19256 set_compression to encode compression algorithm.
19257 * lto-streamer.h (struct lto_section): Do not
19258 use bitfields in the format.
19260 2019-07-22 Martin Liska <mliska@suse.cz>
19263 * opts-common.c (decode_cmdline_option): Decode
19264 argument of -Werror and check it for a wrong language.
19265 * opts-global.c (complain_wrong_lang): Remove such case.
19267 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19269 * config/arc/arc.c (prepare_move_operands): Always use an
19270 intermediate register when storing a TLS symbols.
19272 2019-07-22 Stafford Horne <shorne@gmail.com>
19274 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19277 2019-07-22 Stafford Horne <shorne@gmail.com>
19279 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19280 and munordered-float validations.
19281 * config/or1k/constraints.md (d): New register constraint.
19282 * config/or1k/predicates.md (fp_comparison_operator): New.
19283 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19285 (or1k_expand_compare): Normalize unordered comparisons.
19286 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19287 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19288 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19289 * config/or1k/or1k.md (type): Add fpu.
19290 (fpu): New instruction reservation.
19291 (F, f, fr, fi, FI, FOP, fop): New.
19292 (<fop><F:mode>3): New ALU instruction definition.
19293 (float<fi><F:mode>2): New conversion instruction definition.
19294 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19295 (fpcmpcc): New code iterator.
19296 (*sf_fp_insn): New instruction definition.
19297 (cstore<F:mode>4): New expand definition.
19298 (cbranch<F:mode>4): New expand definition.
19299 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19300 munordered-float): New options.
19301 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19304 2019-07-22 Stafford Horne <shorne@gmail.com>
19306 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19307 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19308 documenation to be more clear.
19309 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19311 * config/or1k/or1k.opt (mrori): New option.
19312 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19313 msfimm, mshftimm): Rewrite documentation to be more clear.
19314 * config/or1k/or1k.md (insn_support): Add ror and rori.
19315 (enabled): Add conditions for ror and rori.
19316 (rotrsi3): Replace condition for shftimm with ror and rori.
19318 2019-07-22 Stafford Horne <shorne@gmail.com>
19321 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19322 (extend<mode>si2): Update predicate.
19323 * config/or1k/predicates.md (volatile_mem_operand): New.
19324 (reg_or_mem_operand): New.
19326 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19328 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19329 * config/rs6000/rs6000-call.c: ... to here.
19331 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19333 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19336 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19338 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19340 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19342 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19344 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19346 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19347 (any_memory_operand): New predicate.
19348 (reg_or_mem_operand): Use it.
19350 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19353 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19355 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19357 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19358 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19360 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19362 * tree.def (OMP_LOOP): New tree code.
19363 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19364 (enum omp_clause_bind_kind): New enum.
19365 (struct tree_omp_clause): Add subcode.bind_kind.
19366 * tree.h (OMP_LOOP_CHECK): Rename to ...
19367 (OMP_LOOPING_CHECK): ... this.
19368 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19369 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19370 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19371 (OMP_CLAUSE_BIND_KIND): Define.
19372 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19373 bind clause entries.
19374 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19375 * tree-pretty-print.c (dump_omp_clause): Likewise.
19376 (dump_generic_node): Handle OMP_LOOP.
19377 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19378 (in_omp_construct): New variable.
19379 (is_gimple_stmt): Handle OMP_LOOP.
19380 (gimplify_scan_omp_clauses): For lastprivate don't set
19381 check_non_private if code == OMP_LOOP. For reduction clause
19382 on OMP_LOOP combined with parallel or teams propagate as shared
19383 on the combined construct. Handle OMP_CLAUSE_BIND.
19384 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19385 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19386 for constructs from a loop construct to gimplify_scan_omp_clauses.
19387 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19388 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19389 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19390 to match the implicit ORT_TARGET construct around whole body.
19391 Temporarily clear in_omp_construct when processing body.
19392 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19393 etc. temporarily set in_omp_construct when processing body.
19394 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19395 * omp-low.c (struct omp_context): Add loop_p.
19396 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19397 in that the original var might be private.
19398 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19399 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19400 addition of loop construct.
19401 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19403 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19404 lastprivate non-addressable iterator of a collapse(1) simd.
19406 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19408 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19411 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19413 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19414 refer to default conditions. Warn for the 'y' spec which is ignored
19415 by current linkers.
19417 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19419 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19420 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19421 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19422 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19423 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19424 init_cumulative_args, rs6000_promote_function_mode,
19425 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19426 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19427 rs6000_function_arg_boundary, rs6000_parm_offset,
19428 rs6000_parm_start, rs6000_arg_size,
19429 rs6000_darwin64_record_arg_advance_flush,
19430 rs6000_darwin64_record_arg_advance_recurse,
19431 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19432 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19433 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19434 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19435 rs6000_finish_function_arg, rs6000_function_arg,
19436 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19437 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19438 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19439 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19440 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19441 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19442 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19443 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19444 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19445 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19446 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19447 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19448 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19449 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19450 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19451 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19452 get_element_number, altivec_expand_vec_set_builtin,
19453 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19454 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19455 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19456 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19457 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19458 rs6000_expand_builtin, rs6000_vector_type,
19459 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19460 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19461 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19463 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19464 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19465 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19466 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19467 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19468 init_cumulative_args, rs6000_promote_function_mode,
19469 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19470 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19471 rs6000_function_arg_boundary, rs6000_parm_offset,
19472 rs6000_parm_start, rs6000_arg_size,
19473 rs6000_darwin64_record_arg_advance_flush,
19474 rs6000_darwin64_record_arg_advance_recurse,
19475 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19476 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19477 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19478 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19479 rs6000_finish_function_arg, rs6000_function_arg,
19480 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19481 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19482 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19483 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19484 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19485 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19486 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19487 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19488 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19489 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19490 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19491 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19492 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19493 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19494 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19495 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19496 get_element_number, altivec_expand_vec_set_builtin,
19497 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19498 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19499 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19500 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19501 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19502 rs6000_expand_builtin, rs6000_vector_type,
19503 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19504 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19505 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19506 to here from rs6000.c.
19507 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19508 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19509 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19510 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19511 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19512 rs6000_return_in_memory, rs6000_return_in_msb,
19513 rs6000_pass_by_reference, setup_incoming_varargs,
19514 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19515 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19516 rs6000_function_arg_padding, rs6000_function_arg,
19517 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19518 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19519 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19520 rs6000_passes_long_double, rs6000_passes_vector,
19521 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19522 altivec_builtin_mask_for_load) Add declarations.
19523 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19524 * config/config.gcc: Add new source file rs6000-call.c to garbage
19525 collector and extra_objs.
19527 2019-07-19 Jeff Law <law@redhat.com>
19529 PR tree-optimization/86061
19530 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19531 strncpy. Drop some trivial dead code.
19532 (maybe_trim_memstar_call): Handle strncpy.
19534 2019-07-19 Richard Biener <rguenther@suse.de>
19536 PR tree-optimization/91211
19537 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19538 memset encoding size.
19540 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19543 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19545 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19548 * ipa-inline.c (recursive_inlining): Fix limits check.
19550 2019-07-19 Richard Biener <rguenther@suse.de>
19552 PR tree-optimization/91200
19553 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19554 no PHI nodes in middle-bb.
19556 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19558 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19560 * config/aarch64/aarch64-option-extensions.def: Likewise.
19562 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19564 PR middle-end/91190
19565 * function.c (insert_temp_slot_address): Store into the hash table
19566 a copy of address to avoid RTL sharing issues.
19568 2019-07-19 Richard Biener <rguenther@suse.de>
19570 PR tree-optimization/91207
19572 2019-07-17 Richard Biener <rguenther@suse.de>
19574 PR tree-optimization/91178
19575 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19576 loads with a gap larger than the vector size always use
19578 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19579 avoid loading vectors that are only contained in the gap
19580 and thus are not needed.
19582 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19584 * config/i386/i386.md (*addqi_2_slp): Remove.
19585 (*<code>qi_2_slp): Ditto.
19587 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19589 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19590 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19591 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19592 Rename function from rs6000_prefixed_address.
19593 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19595 (TARGET_TOC): Likewise.
19596 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19598 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19600 (TARGET_TOC): Likewise.
19601 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19603 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19605 (TARGET_TOC): Likewise.
19606 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19607 check to require -mcmodel=medium for pc-relative addressing.
19608 (create_TOC_reference): Add assertion for TARGET_TOC.
19609 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19611 (rs6000_emit_move): Likewise.
19612 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19613 to 'TOC_alias_set'.
19614 (get_TOC_alias_set): Likewise.
19615 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19617 (rs6000_can_eliminate): Likewise.
19618 (rs6000_prefixed_address_mode_p): Rename function from
19619 rs6000_prefixed_address.
19620 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19621 TARGET_HAS_TOC and not pc-relative.
19622 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19623 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19625 (TARGET_TOC): Likewise.
19626 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19629 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19632 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19633 for operand 0. Do not use (match_dup) to match operand 1 with
19634 operand 0. Add check in insn constraint that either input operand
19635 matches operand 0. Use SWI12 mode iterator to also handle
19637 (*and<mode>_1_slp): Ditto.
19638 (*<code>qi_1_slp): Ditto.
19639 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19640 Do not use (match_dup) to match operand 1 with operand 0. Add
19641 check in insn constraint that operand 1 matches operand 0.
19642 Use SWI12 mode iterator to also handle HImode operands.
19643 (*ashl<mode>3_1_slp): Ditto.
19644 (*<shift_insn><mode>3_1_slp): Ditto.
19645 (*<rotate_insn><mode>3_1_slp): Ditto.
19647 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19649 * config/arm/arm-builtins.c
19650 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19651 (arm_expand_unop_builtin): Likewise.
19652 * config/arm/crypto.md
19653 (crypto_sha1h): Convert from define_insn to define_expand.
19654 (crypto_<crypto_pattern>): Likewise.
19655 (crypto_sha1h_lb): New define_insn.
19656 (crypto_<crypto_pattern>_lb): Likewise.
19658 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19661 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19662 (vsha1cq_u32): Likewise.
19663 (vsha1pq_u32): Likewise.
19664 (vsha1mq_u32): Likewise.
19665 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19667 (crypto_sha1c): Correct vec select.
19668 (crypto_sha1m): Likewise.
19669 (crypto_sha1p): Likewise.
19671 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19673 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19674 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19675 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19676 (subdi_zesidi_zesidi): Likewise.
19677 (negdi2_compare, negdi2_insn): Likewise.
19678 (negdi_extensidi): Likewise.
19679 (negdi_zero_extendsidi): Likewise.
19680 (arm_cmpdi_insn): Likewise.
19681 (subsi3_carryin): Use arm_borrow_operation.
19682 (subsi3_carryin_const): Likewise.
19683 (subsi3_carryin_const0): Likewise.
19684 (subsi3_carryin_compare): Likewise.
19685 (subsi3_carryin_compare_const): Likewise.
19686 (subsi3_carryin_compare_const0): Likewise.
19687 (subsi3_carryin_shift): Likewise.
19688 (rsbsi3_carryin_shift): Likewise.
19689 (negsi2_carryin_compare): Likewise.
19691 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19693 PR tree-optimization/91137
19694 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19695 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19696 Init, use and fini the above new field.
19697 (determine_base_object_1): New function.
19698 (determine_base_object): Reimplement using walk_tree.
19700 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19702 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19703 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19704 CLEANUP_FORCE_FAST_DCE is set.
19705 * ifcvt.c (rest_of_handle_if_conversion): Pass
19706 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19707 if-conversion succeeded.
19709 2019-07-18 Richard Biener <rguenther@suse.de>
19711 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19712 branches to make code less indented.
19714 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19716 PR middle-end/81824
19717 * attribs.c (decls_mismatched_attributes): Simplify the logic
19718 that avoids duplicates and false positives.
19720 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19722 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19723 data into data section when generating PIC code.
19724 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19725 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19726 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19727 return 2 for SOM and 0 for other targets.
19729 2019-07-17 Jeff Law <law@redhat.com>
19731 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19732 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19733 avoid unexpected switch statement fallthru.
19735 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19737 * config/i386/i386.md (*add<dwi>3_doubleword):
19738 Remove redundant constraints.
19739 (*add<mode>_1): Ditto.
19742 (*addqi_1_slp): Ditto.
19743 (*add<mode>_2): Ditto.
19744 (*addv<mode>4): Ditto.
19745 (*sub<dwi>3_doubleword): Ditto.
19746 (*sub<mode>_1): Ditto.
19747 (*subqi_1_slp): Ditto.
19748 (*sub<mode>_2): Ditto.
19749 (*subv<mode>4): Ditto.
19750 (*sub<mode>_3): Ditto.
19751 (@add<mode>3_carry): Ditto.
19752 (@sub<mode>3_carry): Ditto.
19753 (*add<mode>3_cc_overflow_1): Ditto.
19754 (*add<mode>3_zext_cc_overflow_2): Ditto.
19756 (*and<mode>_1): Ditto.
19758 (*andqi_1_slp): Ditto.
19760 (*andqi_2_maybe_si): Ditto.
19761 (*and<mode>_2): Ditto.
19762 (*andqi_2_slp): Ditto.
19763 (*<code><mode>_1): Ditto.
19764 (*<code>qi_1): Ditto.
19765 (*<code>qi_1_slp): Ditto.
19766 (*<code><mode>_2): Ditto.
19767 (*<code>qi_2_slp): Ditto.
19769 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19771 * alias.c (record_component_aliases): Do not simplify pointed-to
19772 types of ODR types.
19774 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19776 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19777 partial reg stall on alternative 2.
19779 2019-07-17 Richard Biener <rguenther@suse.de>
19781 PR tree-optimization/91178
19782 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19783 lower SSA names to avoid quadratic behavior in the common case.
19784 * tree-data-ref.c (split_constant_offset): Add limit argument
19785 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19786 (split_constant_offset_1): Add limit argument and use it to
19787 limit SSA def walking. Optimize the common plus/minus case.
19789 2019-07-17 Richard Biener <rguenther@suse.de>
19791 PR tree-optimization/91178
19792 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19793 loads with a gap larger than the vector size always use
19795 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19796 avoid loading vectors that are only contained in the gap
19797 and thus are not needed.
19799 2019-07-17 Richard Biener <rguenther@suse.de>
19801 PR tree-optimization/91180
19802 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19803 computation for memset partial defs.
19805 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19807 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19808 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19809 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19810 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19811 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19812 * omp-grid.c (grid_process_grid_body,
19813 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19814 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19815 == GF_OMP_FOR_KIND_SIMD.
19816 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19817 check_omp_nesting_restrictions, scan_omp_1_stmt,
19818 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19819 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19820 omp_find_scan): Likewise.
19821 * omp-expand.c (expand_omp_for): Likewise.
19822 * omp-general.c (omp_extract_for_data): Likewise.
19824 PR tree-optimization/91157
19825 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19826 a vector boolean with scalar mode.
19827 (expand_vector_condition): Handle first operand being a vector boolean
19829 (expand_vector_operations_1): For comparisons, don't bail out early
19830 if the return type is vector boolean with scalar mode, but comparison
19831 operand type is not.
19833 2019-07-17 Richard Biener <rguenther@suse.de>
19835 PR tree-optimization/91181
19836 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19837 IFN_LOADs as calls.
19839 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19841 * config/i386/i386.md (*testdi_1): Match CCZmode for
19842 constants that might have the SImode sign bit set.
19843 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19844 Use correct constraints for pentium pairing.
19845 (*test<mode>_1): Ditto.
19847 2019-07-16 Jeff Law <law@redhat.com>
19849 PR rtl-optimization/91173
19850 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19851 SSA_NAME with a constant value, fold its value into the offset
19852 and clear the base before calling gen_addr_rtx.
19854 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19856 PR rtl-optimization/91164
19857 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19858 invalidate dominance info.
19860 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19862 * read-md.h (md_reader::record_potential_iterator_use): Add a
19863 file_location parameter.
19864 * read-rtl.c (attribute_use::loc): New field.
19865 (map_attr_string): Take a file_location parameter. Report cases
19866 in which attributes map to multiple distinct values.
19867 (apply_attribute_uses): Update call accordingly.
19868 (md_reader::handle_overloaded_name): Likewise.
19869 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19871 (record_attribute_use): Take a file_location parameter.
19872 Initialize attribute_use::loc.
19873 (md_reader::record_potential_iterator_use): Take a file_location
19874 parameter. Update call to record_attribute_use.
19875 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19876 (rtx_reader::read_rtx_code): Likewise.
19877 (rtx_reader::read_rtx_operand): Likewise. Record a location
19878 for implicitly-expanded empty strings.
19880 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19882 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19883 Use file_location instead of separate fields.
19884 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19885 separate filename and line number.
19886 * read-md.c (ptr_loc): As above.
19887 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19888 (md_reader::fprint_md_ptr_loc): Likewise.
19889 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19890 instead of a separate filename and line number.
19891 (md_reader::read_string): Update call accordingly.
19893 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19895 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19896 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19897 leaving the choice between SFDF and P implicit.
19898 (*mov<mode>_update2): Likewise.
19899 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19900 rather than leaving the choice betweem IBM128 and GPR implicit.
19901 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19902 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19904 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19905 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19906 * config/rs6000/vsx.md
19907 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19908 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19909 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19910 and VSX_EXTRACT_I implicit.
19912 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19914 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19915 Explicitly use <MOVEP1:MODE> for the mode attribute.
19917 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19920 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19922 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19925 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19926 .machine directive.
19928 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19930 * config/i386/i386.md (@test<mode>_ccno_1):
19931 Rename from test<mode>_ccno_1.
19932 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19933 (*testqi_1_maybe_si): Remove modrm attribute.
19934 (*test<mode>_1): Ditto.
19935 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19936 gen_test_ccno_1 and gen_extend_insn.
19938 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19940 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19943 2019-07-15 Richard Biener <rguenther@suse.de>
19945 PR middle-end/91162
19946 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19947 node make sure to replace all uses with something valid.
19949 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19951 PR tree-optimization/88497
19952 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19953 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19954 function undistribute_bitref_for_vector.
19955 (undistribute_bitref_for_vector): New function.
19956 (cleanup_vinfo_map): Likewise.
19957 (sort_by_mach_mode): Likewise.
19959 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19961 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19962 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19963 and testdi_ccno_1 using SWI48 mode attribute.
19964 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19965 x86_64_szext_general_operand.
19966 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19967 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19968 instead of genera_operand mode attribute.
19970 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19972 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19973 fopen and fclose to their respective types.
19974 (DotFn.invoke): Ditto.
19976 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19978 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19979 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19980 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19981 (array_index_predicate): Remove.
19982 (analyze_function_body): Account cost for variable ofsetted array
19984 (estimate_node_size_and_time): Do not compute array index hint.
19985 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19986 (inline_read_section): Do not read array index hint.
19987 (ipa_fn_summary_write): Do not write array index hint.
19988 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19989 * ipa-cp.c (hint_time_bonus): Remove.
19990 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19991 (ipa_fnsummary): Remove array_index.
19992 * ipa-inline.c (want_inline_small_function_p): Do not use
19994 (edge_badness): Likewise.
19995 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19997 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20000 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20001 superfluous "builtin function" phrasing.
20003 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20005 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20007 (aliasing_component_refs_walk): Break out from ...
20008 (aliasing_component_refs_p): ... here.
20010 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20013 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20014 "builtin function" phrasing.
20016 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20019 * recog.h (temporary_volatile_ok): New class.
20020 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20021 volatile_ok temporarily to true using temporary_volatile_ok.
20022 * expr.c (emit_block_move_via_cpymem): Likewise.
20023 * optabs.c (maybe_legitimize_operand): Likewise.
20025 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20027 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20028 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20029 uses inside of order(concurrent) constructs.
20030 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20031 OMP_CLAUSE_ORDER is seen.
20032 * omp-low.c (struct omp_context): Add order_concurrent member.
20033 (scan_sharing_clauses): Set ctx->order_concurrent if
20034 OMP_CLAUSE_ORDER is seen.
20035 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20036 of simd order(concurrent). Diagnose constructs not allowed inside of
20037 for order(concurrent).
20038 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20039 complaining about static double setjmp (double); or class static
20040 methods or non-global namespace setjmps.
20041 (omp_runtime_api_call): New function.
20042 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20043 order(concurrent) loops.
20045 2019-07-12 Martin Sebor <msebor@redhat.com>
20047 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20048 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20049 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20050 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20052 2019-07-12 Jan Hubicka <jh@suse.cz>
20054 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20055 (indirect_refs_may_alias_p): ... here.
20056 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20057 mem refs in the access paths.
20059 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20061 PR tree-optimization/89430
20062 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20063 store elimination for local variable without address escape.
20065 2019-07-12 Jeff Law <law@redhat.com>
20067 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20068 for the ".far" section.
20070 2019-07-12 Richard Biener <rguenther@suse.de>
20072 PR tree-optimization/91145
20073 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20076 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20078 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20079 rather than this_state as the lowering context for the ELSE
20080 seq in a GIMPLE_EH_ELSE.
20082 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20084 * vector-builder.h (vector_builder::elt): Allow already-supplied
20085 elements to be read back before building is complete.
20087 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20089 PR rtl-optimization/91136
20090 * df-core.c (ACCESSING REFS): Fix typos in comment.
20091 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20092 the beginning of the block to the initial set of live registers.
20094 2019-07-12 Richard Biener <rguenther@suse.de>
20096 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20097 * fold-const.c (get_array_ctor_element_at_index): Add
20098 ctor_idx output parameter informing the caller where in
20099 the constructor the element was (not) found. Add early exit
20100 for when the ctor is sorted.
20101 * gimple-fold.c (fold_array_ctor_reference): Support constant
20102 folding across multiple array elements.
20104 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20106 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20107 doesn't have location, set the current location to the function's end.
20109 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20111 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20112 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20113 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20114 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20115 * config/aarch64/aarch64-simd.md
20116 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20117 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20118 * config/aarch64/aarch64-sve.md
20119 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20120 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20122 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20124 * doc/md.texi: Document that @ patterns can have different
20125 numbers of operands.
20126 * genemit.c (handle_overloaded_gen): Handle this case.
20127 * genopinit.c (handle_overloaded_gen): Likewise.
20128 * gensupport.c (replace_operands_with_dups): Iterate over
20129 the new rtx's format rather than the old one's.
20131 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20133 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20134 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20135 order clause entries.
20136 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20137 * tree-pretty-print.c (dump_omp_clause): Likewise.
20138 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20140 * omp-low.c (scan_sharing_clauses): Likewise.
20141 * tree-nested.c (convert_nonlocal_omp_clauses,
20142 convert_local_omp_clauses): Likewise.
20144 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20146 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20147 fallthrough target of current basic block isn't the placed
20150 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20153 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20154 (_mm512_storeu_epi64): Likewise.
20155 (_mm512_loadu_epi32): Likewise.
20156 (_mm512_storeu_epi32): Likewise.
20157 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20158 (_mm_storeu_epi64): Likewise.
20159 (_mm256_storeu_epi32): Likewise.
20160 (_mm_storeu_epi32): Likewise.
20162 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20164 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20166 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20168 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20171 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20174 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20175 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20176 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20177 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20178 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20179 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20181 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20182 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20183 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20185 (sse2_cvttpd2dq<mask_name>): Change into ...
20186 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20187 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20188 (*sse2_cvtpd2dq<mask_name>): Change into ...
20189 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20190 Add "C" constraint to const0_operand.
20191 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20192 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20196 * config/i386/i386-builtin-types.def
20197 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20198 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20199 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20200 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20201 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20202 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20203 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20204 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20205 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20206 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20207 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20208 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20209 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20210 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20211 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20212 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20213 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20214 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20215 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20216 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20217 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20218 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20219 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20220 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20221 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20222 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20223 __builtin_ia32_vpdpbusd_v4si_maskz,
20224 __builtin_ia32_vpdpbusds_v16si_mask,
20225 __builtin_ia32_vpdpbusds_v16si_maskz,
20226 __builtin_ia32_vpdpbusds_v8si_mask,
20227 __builtin_ia32_vpdpbusds_v8si_maskz,
20228 __builtin_ia32_vpdpbusds_v4si_mask,
20229 __builtin_ia32_vpdpbusds_v4si_maskz,
20230 __builtin_ia32_vpdpwssd_v16si_mask,
20231 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20232 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20233 __builtin_ia32_vpdpwssd_v4si_maskz,
20234 __builtin_ia32_vpdpwssds_v16si_mask,
20235 __builtin_ia32_vpdpwssds_v16si_maskz,
20236 __builtin_ia32_vpdpwssds_v8si_mask,
20237 __builtin_ia32_vpdpwssds_v8si_maskz,
20238 __builtin_ia32_vpdpwssds_v4si_mask,
20239 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20240 suffixed types rather than *_INT.
20241 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20242 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20243 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20244 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20245 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20246 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20248 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20250 * tree-vrp.c (intersect_ranges): If we know the intersection is
20251 empty, there is no need to conservatively add anything else to
20254 2019-07-11 Richard Biener <rguenther@suse.de>
20256 PR middle-end/91131
20257 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20258 when the object is volatile and we have not cleared it even though
20259 there are no nonzero elements.
20261 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20263 * config/rs6000/predicates.md (cint34_operand): Update
20264 SIGNED_34BIT_OFFSET_P call.
20265 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20266 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20267 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20268 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20269 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20271 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20272 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20273 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20274 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20275 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20277 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20279 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20280 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20281 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20282 (DEF_MIN_OSX_VERSION): New.
20284 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20286 * fold-const.c (fold_relational_const): Fix folding of
20287 vector-to-scalar NE_EXPRs.
20288 (test_vector_folding): Add more tests.
20290 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20293 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20294 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20295 (vec_setv2di_internal): Reexpress as...
20296 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20297 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20298 rather than gen_neon_vset_lane<mode>.
20300 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20303 * lra-constraints.c (process_alt_operands): Don't match user
20304 defined regs only if they are early clobbers.
20306 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20308 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20310 2019-07-10 Richard Biener <rguenther@suse.de>
20312 PR tree-optimization/91126
20313 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20314 native encoding offset for BYTES_BIG_ENDIAN.
20315 (vn_reference_lookup_3): Likewise.
20317 2019-07-10 Richard Biener <rguenther@suse.de>
20319 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20320 LHS whenever possible.
20322 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20324 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20325 from ...; work also on duplicated types.
20326 (nonoverlapping_component_refs_since_match): ... here
20327 (ncr_type_uid): Break out from ...
20328 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20330 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20331 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20333 2019-07-09 Martin Sebor <msebor@redhat.com>
20335 PR tree-optimization/90989
20336 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20337 optimization to just single character stores.
20339 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20341 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20342 Swap operands only once.
20344 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20346 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20347 for both call instructions.
20349 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20351 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20352 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20354 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20356 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20357 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20358 function from rs6000-logue.c back to rs6000.c.
20359 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20361 2019-07-09 Martin Sebor <msebor@redhat.com>
20364 * auto-profile.c: Change class-key of PODs to struct and others
20366 * basic-block.h: Same.
20367 * bitmap.c (bitmap_alloc): Same.
20369 * builtins.c (expand_builtin_prefetch): Same.
20370 (expand_builtin_interclass_mathfn): Same.
20371 (expand_builtin_strlen): Same.
20372 (expand_builtin_mempcpy_args): Same.
20373 (expand_cmpstr): Same.
20374 (expand_builtin___clear_cache): Same.
20375 (expand_ifn_atomic_bit_test_and): Same.
20376 (expand_builtin_thread_pointer): Same.
20377 (expand_builtin_set_thread_pointer): Same.
20378 * caller-save.c (setup_save_areas): Same.
20379 (replace_reg_with_saved_mem): Same.
20380 (insert_restore): Same.
20381 (insert_save): Same.
20382 (add_used_regs): Same.
20383 * cfg.c (get_bb_copy): Same.
20384 (set_loop_copy): Same.
20387 * cfgexpand.c (alloc_stack_frame_space): Same.
20388 (add_stack_var): Same.
20389 (add_stack_var_conflict): Same.
20390 (add_scope_conflicts_1): Same.
20391 (update_alias_info_with_stack_vars): Same.
20392 (expand_used_vars): Same.
20393 * cfghooks.c (redirect_edge_and_branch_force): Same.
20394 (delete_basic_block): Same.
20395 (split_edge): Same.
20396 (make_forwarder_block): Same.
20397 (force_nonfallthru): Same.
20398 (duplicate_block): Same.
20399 (lv_flush_pending_stmts): Same.
20400 * cfghooks.h: Same.
20401 * cfgloop.c (flow_loops_cfg_dump): Same.
20402 (flow_loop_nested_p): Same.
20403 (superloop_at_depth): Same.
20404 (get_loop_latch_edges): Same.
20405 (flow_loop_dump): Same.
20406 (flow_loops_dump): Same.
20407 (flow_loops_free): Same.
20408 (flow_loop_nodes_find): Same.
20409 (establish_preds): Same.
20410 (flow_loop_tree_node_add): Same.
20411 (flow_loop_tree_node_remove): Same.
20412 (flow_loops_find): Same.
20413 (find_subloop_latch_edge_by_profile): Same.
20414 (find_subloop_latch_edge_by_ivs): Same.
20415 (mfb_redirect_edges_in_set): Same.
20416 (form_subloop): Same.
20417 (merge_latch_edges): Same.
20418 (disambiguate_multiple_latches): Same.
20419 (disambiguate_loops_with_multiple_latches): Same.
20420 (flow_bb_inside_loop_p): Same.
20421 (glb_enum_p): Same.
20422 (get_loop_body_with_size): Same.
20423 (get_loop_body): Same.
20424 (fill_sons_in_loop): Same.
20425 (get_loop_body_in_dom_order): Same.
20426 (get_loop_body_in_custom_order): Same.
20427 (release_recorded_exits): Same.
20428 (get_loop_exit_edges): Same.
20429 (num_loop_branches): Same.
20430 (remove_bb_from_loops): Same.
20431 (find_common_loop): Same.
20432 (delete_loop): Same.
20433 (cancel_loop): Same.
20434 (verify_loop_structure): Same.
20435 (loop_preheader_edge): Same.
20436 (loop_exit_edge_p): Same.
20437 (single_exit): Same.
20438 (loop_exits_to_bb_p): Same.
20439 (loop_exits_from_bb_p): Same.
20440 (get_loop_location): Same.
20441 (record_niter_bound): Same.
20442 (get_estimated_loop_iterations_int): Same.
20443 (max_stmt_executions_int): Same.
20444 (likely_max_stmt_executions_int): Same.
20445 (get_estimated_loop_iterations): Same.
20446 (get_max_loop_iterations): Same.
20447 (get_max_loop_iterations_int): Same.
20448 (get_likely_max_loop_iterations): Same.
20449 * cfgloop.h (simple_loop_desc): Same.
20451 (loop_depth): Same.
20452 (loop_outer): Same.
20453 (loop_iterator::next): Same.
20454 (loop_outermost): Same.
20455 * cfgloopanal.c (mark_irreducible_loops): Same.
20456 (num_loop_insns): Same.
20457 (average_num_loop_insns): Same.
20458 (expected_loop_iterations_unbounded): Same.
20459 (expected_loop_iterations): Same.
20460 (mark_loop_exit_edges): Same.
20461 (single_likely_exit): Same.
20462 * cfgloopmanip.c (fix_bb_placement): Same.
20463 (fix_bb_placements): Same.
20464 (remove_path): Same.
20465 (place_new_loop): Same.
20467 (scale_loop_frequencies): Same.
20468 (scale_loop_profile): Same.
20469 (create_empty_if_region_on_edge): Same.
20470 (create_empty_loop_on_edge): Same.
20473 (fix_loop_placements): Same.
20474 (copy_loop_info): Same.
20475 (duplicate_loop): Same.
20476 (duplicate_subloops): Same.
20477 (loop_redirect_edge): Same.
20478 (can_duplicate_loop_p): Same.
20479 (duplicate_loop_to_header_edge): Same.
20480 (mfb_keep_just): Same.
20481 (has_preds_from_loop): Same.
20482 (create_preheader): Same.
20483 (create_preheaders): Same.
20484 (lv_adjust_loop_entry_edge): Same.
20485 (loop_version): Same.
20486 * cfgloopmanip.h: Same.
20488 * cgraphbuild.c: Same.
20489 * combine.c (make_extraction): Same.
20490 * config/i386/i386-features.c: Same.
20491 * config/i386/i386-features.h: Same.
20492 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20493 (ix86_emit_outlined_ms2sysv_restore): Same.
20494 (ix86_noce_conversion_profitable_p): Same.
20495 (ix86_init_cost): Same.
20496 (ix86_simd_clone_usable): Same.
20497 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20499 * coretypes.h: Same.
20500 * data-streamer-in.c (string_for_index): Change class-key of PODs
20501 to struct and others to class.
20502 (streamer_read_indexed_string): Same.
20503 (streamer_read_string): Same.
20504 (bp_unpack_indexed_string): Same.
20505 (bp_unpack_string): Same.
20506 (streamer_read_uhwi): Same.
20507 (streamer_read_hwi): Same.
20508 (streamer_read_gcov_count): Same.
20509 (streamer_read_wide_int): Same.
20510 * data-streamer.h (streamer_write_bitpack): Same.
20511 (bp_unpack_value): Same.
20512 (streamer_write_char_stream): Same.
20513 (streamer_write_hwi_in_range): Same.
20514 (streamer_write_record_start): Same.
20515 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20516 (add_cross_iteration_register_deps): Same.
20517 (build_intra_loop_deps): Same.
20518 * df-core.c (df_analyze): Same.
20519 (loop_post_order_compute): Same.
20520 (loop_inverted_post_order_compute): Same.
20521 * df-problems.c (df_rd_alloc): Same.
20522 (df_rd_simulate_one_insn): Same.
20523 (df_rd_local_compute): Same.
20524 (df_rd_init_solution): Same.
20525 (df_rd_confluence_n): Same.
20526 (df_rd_transfer_function): Same.
20527 (df_rd_free): Same.
20528 (df_rd_dump_defs_set): Same.
20529 (df_rd_top_dump): Same.
20530 (df_lr_alloc): Same.
20531 (df_lr_reset): Same.
20532 (df_lr_local_compute): Same.
20533 (df_lr_init): Same.
20534 (df_lr_confluence_n): Same.
20535 (df_lr_free): Same.
20536 (df_lr_top_dump): Same.
20537 (df_lr_verify_transfer_functions): Same.
20538 (df_live_alloc): Same.
20539 (df_live_reset): Same.
20540 (df_live_init): Same.
20541 (df_live_confluence_n): Same.
20542 (df_live_finalize): Same.
20543 (df_live_free): Same.
20544 (df_live_top_dump): Same.
20545 (df_live_verify_transfer_functions): Same.
20546 (df_mir_alloc): Same.
20547 (df_mir_reset): Same.
20548 (df_mir_init): Same.
20549 (df_mir_confluence_n): Same.
20550 (df_mir_free): Same.
20551 (df_mir_top_dump): Same.
20552 (df_word_lr_alloc): Same.
20553 (df_word_lr_reset): Same.
20554 (df_word_lr_init): Same.
20555 (df_word_lr_confluence_n): Same.
20556 (df_word_lr_free): Same.
20557 (df_word_lr_top_dump): Same.
20558 (df_md_alloc): Same.
20559 (df_md_simulate_one_insn): Same.
20560 (df_md_reset): Same.
20561 (df_md_init): Same.
20562 (df_md_free): Same.
20563 (df_md_top_dump): Same.
20564 * df-scan.c (df_insn_delete): Same.
20565 (df_insn_rescan): Same.
20566 (df_notes_rescan): Same.
20567 (df_sort_and_compress_mws): Same.
20568 (df_install_mws): Same.
20569 (df_refs_add_to_chains): Same.
20570 (df_ref_create_structure): Same.
20571 (df_ref_record): Same.
20572 (df_def_record_1): Same.
20573 (df_find_hard_reg_defs): Same.
20574 (df_uses_record): Same.
20575 (df_get_conditional_uses): Same.
20576 (df_get_call_refs): Same.
20577 (df_recompute_luids): Same.
20578 (df_get_entry_block_def_set): Same.
20579 (df_entry_block_defs_collect): Same.
20580 (df_get_exit_block_use_set): Same.
20581 (df_exit_block_uses_collect): Same.
20582 (df_mws_verify): Same.
20583 (df_bb_verify): Same.
20584 * df.h (df_scan_get_bb_info): Same.
20585 * doc/tm.texi: Same.
20586 * dse.c (record_store): Same.
20587 * dumpfile.h: Same.
20588 * emit-rtl.c (const_fixed_hasher::equal): Same.
20589 (set_mem_attributes_minus_bitpos): Same.
20590 (change_address): Same.
20591 (adjust_address_1): Same.
20592 (offset_address): Same.
20593 * emit-rtl.h: Same.
20594 * except.c (dw2_build_landing_pads): Same.
20595 (sjlj_emit_dispatch_table): Same.
20596 * explow.c (allocate_dynamic_stack_space): Same.
20597 (emit_stack_probe): Same.
20598 (probe_stack_range): Same.
20599 * expmed.c (store_bit_field_using_insv): Same.
20600 (store_bit_field_1): Same.
20601 (store_integral_bit_field): Same.
20602 (extract_bit_field_using_extv): Same.
20603 (extract_bit_field_1): Same.
20604 (emit_cstore): Same.
20605 * expr.c (emit_block_move_via_cpymem): Same.
20606 (expand_cmpstrn_or_cmpmem): Same.
20607 (set_storage_via_setmem): Same.
20608 (emit_single_push_insn_1): Same.
20609 (expand_assignment): Same.
20610 (store_constructor): Same.
20611 (expand_expr_real_2): Same.
20612 (expand_expr_real_1): Same.
20613 (try_casesi): Same.
20615 * function.c (try_fit_stack_local): Same.
20616 (assign_stack_local_1): Same.
20617 (assign_stack_local): Same.
20618 (cut_slot_from_list): Same.
20619 (insert_slot_to_list): Same.
20620 (max_slot_level): Same.
20621 (move_slot_to_level): Same.
20622 (temp_address_hasher::equal): Same.
20623 (remove_unused_temp_slot_addresses): Same.
20624 (assign_temp): Same.
20625 (combine_temp_slots): Same.
20626 (update_temp_slot_address): Same.
20627 (preserve_temp_slots): Same.
20628 * function.h: Same.
20630 * gcc-rich-location.h: Same.
20632 * genattrtab.c (check_attr_test): Same.
20633 (check_attr_value): Same.
20634 (convert_set_attr_alternative): Same.
20635 (convert_set_attr): Same.
20636 (check_defs): Same.
20637 (copy_boolean): Same.
20638 (get_attr_value): Same.
20639 (expand_delays): Same.
20640 (make_length_attrs): Same.
20642 (make_alternative_compare): Same.
20643 (simplify_test_exp): Same.
20644 (tests_attr_p): Same.
20645 (get_attr_order): Same.
20646 (clear_struct_flag): Same.
20648 (compares_alternatives_p): Same.
20651 (find_attrs_to_cache): Same.
20652 (write_test_expr): Same.
20653 (walk_attr_value): Same.
20654 (write_attr_get): Same.
20655 (eliminate_known_true): Same.
20656 (write_insn_cases): Same.
20657 (write_attr_case): Same.
20658 (write_attr_valueq): Same.
20659 (write_attr_value): Same.
20660 (write_dummy_eligible_delay): Same.
20661 (next_comma_elt): Same.
20663 (make_internal_attr): Same.
20664 (copy_rtx_unchanging): Same.
20665 (gen_insn_reserv): Same.
20666 (check_tune_attr): Same.
20667 (make_automaton_attrs): Same.
20668 (handle_arg): Same.
20669 * genextract.c (gen_insn): Same.
20670 (VEC_char_to_string): Same.
20671 * genmatch.c (print_operand): Same.
20673 (parser::parse_operation): Same.
20674 (parser::parse_capture): Same.
20675 (parser::parse_c_expr): Same.
20676 (parser::parse_simplify): Same.
20678 * genoutput.c (output_operand_data): Same.
20679 (output_get_insn_name): Same.
20680 (compare_operands): Same.
20681 (place_operands): Same.
20682 (process_template): Same.
20683 (validate_insn_alternatives): Same.
20684 (validate_insn_operands): Same.
20685 (gen_expand): Same.
20686 (note_constraint): Same.
20687 * genpreds.c (write_one_predicate_function): Same.
20688 (add_constraint): Same.
20689 (process_define_register_constraint): Same.
20690 (write_lookup_constraint_1): Same.
20691 (write_lookup_constraint_array): Same.
20692 (write_insn_constraint_len): Same.
20693 (write_reg_class_for_constraint_1): Same.
20694 (write_constraint_satisfied_p_array): Same.
20695 * genrecog.c (optimize_subroutine_group): Same.
20696 * gensupport.c (process_define_predicate): Same.
20697 (queue_pattern): Same.
20698 (remove_from_queue): Same.
20699 (process_rtx): Same.
20700 (is_predicable): Same.
20701 (change_subst_attribute): Same.
20702 (subst_pattern_match): Same.
20703 (alter_constraints): Same.
20704 (alter_attrs_for_insn): Same.
20705 (shift_output_template): Same.
20706 (alter_output_for_subst_insn): Same.
20707 (process_one_cond_exec): Same.
20709 (process_define_cond_exec): Same.
20710 (mnemonic_htab_callback): Same.
20711 (gen_mnemonic_attr): Same.
20712 (read_md_rtx): Same.
20713 * ggc-page.c: Same.
20714 * gimple-loop-interchange.cc (dump_reduction): Same.
20715 (dump_induction): Same.
20716 (loop_cand::~loop_cand): Same.
20717 (free_data_refs_with_aux): Same.
20718 (tree_loop_interchange::interchange_loops): Same.
20719 (tree_loop_interchange::map_inductions_to_loop): Same.
20720 (tree_loop_interchange::move_code_to_inner_loop): Same.
20721 (compute_access_stride): Same.
20722 (compute_access_strides): Same.
20723 (proper_loop_form_for_interchange): Same.
20724 (tree_loop_interchange_compute_ddrs): Same.
20725 (prune_datarefs_not_in_loop): Same.
20726 (prepare_data_references): Same.
20727 (pass_linterchange::execute): Same.
20728 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20729 (unroll_jam_possible_p): Same.
20730 (fuse_loops): Same.
20731 (adjust_unroll_factor): Same.
20732 (tree_loop_unroll_and_jam): Same.
20733 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20734 (loop_versioning::expensive_stmt_p): Same.
20735 (loop_versioning::version_for_unity): Same.
20736 (loop_versioning::dump_inner_likelihood): Same.
20737 (loop_versioning::find_per_loop_multiplication): Same.
20738 (loop_versioning::analyze_term_using_scevs): Same.
20739 (loop_versioning::record_address_fragment): Same.
20740 (loop_versioning::analyze_expr): Same.
20741 (loop_versioning::analyze_blocks): Same.
20742 (loop_versioning::prune_conditions): Same.
20743 (loop_versioning::merge_loop_info): Same.
20744 (loop_versioning::add_loop_to_queue): Same.
20745 (loop_versioning::decide_whether_loop_is_versionable): Same.
20746 (loop_versioning::make_versioning_decisions): Same.
20747 (loop_versioning::implement_versioning_decisions): Same.
20748 * gimple-ssa-evrp-analyze.c
20749 (evrp_range_analyzer::record_ranges_from_phis): Same.
20750 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20751 (count_multiple_uses): Same.
20752 (split_group): Same.
20753 (imm_store_chain_info::output_merged_store): Same.
20754 (pass_store_merging::process_store): Same.
20755 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20756 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20758 (alloca_call_type): Same.
20759 (pass_walloca::execute): Same.
20760 * gimple-streamer-in.c (input_phi): Same.
20761 (input_gimple_stmt): Same.
20762 * gimple-streamer.h: Same.
20763 * godump.c (go_force_record_alignment): Same.
20764 (go_format_type): Same.
20765 (go_output_type): Same.
20766 (go_output_fndecl): Same.
20767 (go_output_typedef): Same.
20768 (keyword_hash_init): Same.
20769 (find_dummy_types): Same.
20770 * graph.c (draw_cfg_nodes_no_loops): Same.
20771 (draw_cfg_nodes_for_loop): Same.
20772 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20773 * hsa-brig.c: Same.
20774 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20775 * hsa-dump.c (dump_hsa_cfun): Same.
20776 * hsa-gen.c (gen_function_def_parameters): Same.
20777 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20778 * input.c (dump_line_table_statistics): Same.
20779 (test_lexer): Same.
20781 * internal-fn.c (get_multi_vector_move): Same.
20782 (expand_load_lanes_optab_fn): Same.
20783 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20784 (expand_GOMP_SIMT_EXIT): Same.
20785 (expand_GOMP_SIMT_LAST_LANE): Same.
20786 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20787 (expand_GOMP_SIMT_VOTE_ANY): Same.
20788 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20789 (expand_GOMP_SIMT_XCHG_IDX): Same.
20790 (expand_addsub_overflow): Same.
20791 (expand_neg_overflow): Same.
20792 (expand_mul_overflow): Same.
20793 (expand_call_mem_ref): Same.
20794 (expand_mask_load_optab_fn): Same.
20795 (expand_scatter_store_optab_fn): Same.
20796 (expand_gather_load_optab_fn): Same.
20797 * ipa-cp.c (ipa_get_parm_lattices): Same.
20798 (print_all_lattices): Same.
20799 (ignore_edge_p): Same.
20800 (build_toporder_info): Same.
20801 (free_toporder_info): Same.
20802 (push_node_to_stack): Same.
20803 (ipcp_lattice<valtype>::set_contains_variable): Same.
20804 (set_agg_lats_to_bottom): Same.
20805 (ipcp_bits_lattice::meet_with): Same.
20806 (set_single_call_flag): Same.
20807 (initialize_node_lattices): Same.
20808 (ipa_get_jf_ancestor_result): Same.
20809 (ipcp_verify_propagated_values): Same.
20810 (propagate_scalar_across_jump_function): Same.
20811 (propagate_context_across_jump_function): Same.
20812 (propagate_bits_across_jump_function): Same.
20813 (ipa_vr_operation_and_type_effects): Same.
20814 (propagate_vr_across_jump_function): Same.
20815 (set_check_aggs_by_ref): Same.
20816 (set_chain_of_aglats_contains_variable): Same.
20817 (merge_aggregate_lattices): Same.
20818 (agg_pass_through_permissible_p): Same.
20819 (propagate_aggs_across_jump_function): Same.
20820 (call_passes_through_thunk_p): Same.
20821 (propagate_constants_across_call): Same.
20822 (devirtualization_time_bonus): Same.
20823 (good_cloning_opportunity_p): Same.
20824 (context_independent_aggregate_values): Same.
20825 (gather_context_independent_values): Same.
20826 (perform_estimation_of_a_value): Same.
20827 (estimate_local_effects): Same.
20828 (value_topo_info<valtype>::add_val): Same.
20829 (add_all_node_vals_to_toposort): Same.
20830 (value_topo_info<valtype>::propagate_effects): Same.
20831 (ipcp_propagate_stage): Same.
20832 (ipcp_discover_new_direct_edges): Same.
20833 (same_node_or_its_all_contexts_clone_p): Same.
20834 (cgraph_edge_brings_value_p): Same.
20835 (gather_edges_for_value): Same.
20836 (create_specialized_node): Same.
20837 (find_more_scalar_values_for_callers_subset): Same.
20838 (find_more_contexts_for_caller_subset): Same.
20839 (copy_plats_to_inter): Same.
20840 (intersect_aggregates_with_edge): Same.
20841 (find_aggregate_values_for_callers_subset): Same.
20842 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20843 (decide_about_value): Same.
20844 (decide_whether_version_node): Same.
20845 (spread_undeadness): Same.
20846 (identify_dead_nodes): Same.
20847 (ipcp_store_vr_results): Same.
20848 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20849 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20850 (redirect_to_unreachable): Same.
20851 (edge_set_predicate): Same.
20852 (evaluate_conditions_for_known_args): Same.
20853 (evaluate_properties_for_edge): Same.
20854 (ipa_fn_summary_t::duplicate): Same.
20855 (ipa_call_summary_t::duplicate): Same.
20856 (dump_ipa_call_summary): Same.
20857 (ipa_dump_fn_summary): Same.
20858 (eliminated_by_inlining_prob): Same.
20859 (set_cond_stmt_execution_predicate): Same.
20860 (set_switch_stmt_execution_predicate): Same.
20861 (compute_bb_predicates): Same.
20862 (will_be_nonconstant_expr_predicate): Same.
20863 (phi_result_unknown_predicate): Same.
20864 (analyze_function_body): Same.
20865 (compute_fn_summary): Same.
20866 (estimate_edge_devirt_benefit): Same.
20867 (estimate_edge_size_and_time): Same.
20868 (estimate_calls_size_and_time): Same.
20869 (estimate_node_size_and_time): Same.
20870 (remap_edge_change_prob): Same.
20871 (remap_edge_summaries): Same.
20872 (ipa_merge_fn_summary_after_inlining): Same.
20873 (ipa_fn_summary_generate): Same.
20874 (inline_read_section): Same.
20875 (ipa_fn_summary_read): Same.
20876 (ipa_fn_summary_write): Same.
20877 * ipa-fnsummary.h: Same.
20878 * ipa-hsa.c (ipa_hsa_read_section): Same.
20879 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20880 * ipa-icf.c (sem_function::param_used_p): Same.
20881 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20882 * ipa-inline.c (edge_badness): Same.
20883 (inline_small_functions): Same.
20884 * ipa-polymorphic-call.c
20885 (ipa_polymorphic_call_context::stream_out): Same.
20886 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20887 (predicate::remap_after_inlining): Same.
20888 (predicate::stream_out): Same.
20889 * ipa-predicate.h: Same.
20890 * ipa-profile.c (ipa_profile_read_summary): Same.
20891 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20892 (count_formal_params): Same.
20893 (ipa_dump_param): Same.
20894 (ipa_alloc_node_params): Same.
20895 (ipa_print_node_jump_functions_for_edge): Same.
20896 (ipa_print_node_jump_functions): Same.
20897 (ipa_load_from_parm_agg): Same.
20898 (get_ancestor_addr_info): Same.
20899 (ipa_compute_jump_functions_for_edge): Same.
20900 (ipa_analyze_virtual_call_uses): Same.
20901 (ipa_analyze_stmt_uses): Same.
20902 (ipa_analyze_params_uses_in_bb): Same.
20903 (update_jump_functions_after_inlining): Same.
20904 (try_decrement_rdesc_refcount): Same.
20905 (ipa_impossible_devirt_target): Same.
20906 (update_indirect_edges_after_inlining): Same.
20907 (combine_controlled_uses_counters): Same.
20908 (ipa_edge_args_sum_t::duplicate): Same.
20909 (ipa_write_jump_function): Same.
20910 (ipa_write_indirect_edge_info): Same.
20911 (ipa_write_node_info): Same.
20912 (ipa_read_edge_info): Same.
20913 (ipa_prop_read_section): Same.
20914 (read_replacements_section): Same.
20915 * ipa-prop.h (ipa_get_param_count): Same.
20916 (ipa_get_param): Same.
20917 (ipa_get_type): Same.
20918 (ipa_get_param_move_cost): Same.
20919 (ipa_set_param_used): Same.
20920 (ipa_get_controlled_uses): Same.
20921 (ipa_set_controlled_uses): Same.
20922 (ipa_get_cs_argument_count): Same.
20923 * ipa-pure-const.c (analyze_function): Same.
20924 (pure_const_read_summary): Same.
20926 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20927 * ipa-split.c (test_nonssa_use): Same.
20928 (dump_split_point): Same.
20929 (dominated_by_forbidden): Same.
20930 (split_part_set_ssa_name_p): Same.
20931 (find_split_points): Same.
20932 * ira-build.c (finish_loop_tree_nodes): Same.
20933 (low_pressure_loop_node_p): Same.
20934 * ira-color.c (ira_reuse_stack_slot): Same.
20936 * ira.c (setup_reg_equiv): Same.
20937 (print_insn_chain): Same.
20939 * loop-doloop.c (doloop_condition_get): Same.
20941 (record_reg_sets): Same.
20942 (doloop_optimize): Same.
20943 * loop-init.c (loop_optimizer_init): Same.
20944 (fix_loop_structure): Same.
20945 * loop-invariant.c (merge_identical_invariants): Same.
20946 (compute_always_reached): Same.
20947 (find_exits): Same.
20948 (may_assign_reg_p): Same.
20949 (find_invariants_bb): Same.
20950 (find_invariants_body): Same.
20951 (replace_uses): Same.
20952 (can_move_invariant_reg): Same.
20953 (free_inv_motion_data): Same.
20954 (move_single_loop_invariants): Same.
20955 (change_pressure): Same.
20956 (mark_ref_regs): Same.
20957 (calculate_loop_reg_pressure): Same.
20958 * loop-iv.c (biv_entry_hasher::equal): Same.
20959 (iv_extend_to_rtx_code): Same.
20960 (check_iv_ref_table_size): Same.
20961 (clear_iv_info): Same.
20962 (latch_dominating_def): Same.
20963 (iv_get_reaching_def): Same.
20964 (iv_constant): Same.
20970 (get_biv_step): Same.
20972 (analyzed_for_bivness_p): Same.
20973 (record_biv): Same.
20974 (iv_analyze_biv): Same.
20975 (iv_analyze_expr): Same.
20976 (iv_analyze_def): Same.
20977 (iv_analyze_op): Same.
20978 (iv_analyze): Same.
20979 (iv_analyze_result): Same.
20981 (eliminate_implied_conditions): Same.
20982 (simplify_using_initial_values): Same.
20983 (shorten_into_mode): Same.
20984 (canonicalize_iv_subregs): Same.
20985 (determine_max_iter): Same.
20986 (check_simple_exit): Same.
20987 (find_simple_exit): Same.
20988 (get_simple_loop_desc): Same.
20989 * loop-unroll.c (report_unroll): Same.
20990 (decide_unrolling): Same.
20991 (unroll_loops): Same.
20992 (loop_exit_at_end_p): Same.
20993 (decide_unroll_constant_iterations): Same.
20994 (unroll_loop_constant_iterations): Same.
20995 (compare_and_jump_seq): Same.
20996 (unroll_loop_runtime_iterations): Same.
20997 (decide_unroll_stupid): Same.
20998 (unroll_loop_stupid): Same.
20999 (referenced_in_one_insn_in_loop_p): Same.
21000 (reset_debug_uses_in_loop): Same.
21001 (analyze_iv_to_split_insn): Same.
21002 * lra-eliminations.c (lra_debug_elim_table): Same.
21003 (setup_can_eliminate): Same.
21005 (lra_get_elimination_hard_regno): Same.
21006 (lra_eliminate_regs_1): Same.
21007 (eliminate_regs_in_insn): Same.
21008 (update_reg_eliminate): Same.
21009 (init_elimination): Same.
21010 (lra_eliminate): Same.
21012 * lra-lives.c (initiate_live_solver): Same.
21013 * lra-remat.c (create_remat_bb_data): Same.
21014 * lra-spills.c (lra_spill): Same.
21015 * lra.c (lra_set_insn_recog_data): Same.
21016 (lra_set_used_insn_alternative_by_uid): Same.
21017 (init_reg_info): Same.
21018 (expand_reg_info): Same.
21019 * lto-cgraph.c (output_symtab): Same.
21020 (read_identifier): Same.
21021 (get_alias_symbol): Same.
21022 (input_node): Same.
21023 (input_varpool_node): Same.
21025 (input_edge): Same.
21026 (input_cgraph_1): Same.
21027 (input_refs): Same.
21028 (input_symtab): Same.
21029 (input_offload_tables): Same.
21030 (output_cgraph_opt_summary): Same.
21031 (input_edge_opt_summary): Same.
21032 (input_cgraph_opt_section): Same.
21033 * lto-section-in.c (lto_free_raw_section_data): Same.
21034 (lto_create_simple_input_block): Same.
21035 (lto_free_function_in_decl_state_for_node): Same.
21036 * lto-streamer-in.c (lto_tag_check_set): Same.
21037 (lto_location_cache::revert_location_cache): Same.
21038 (lto_location_cache::input_location): Same.
21039 (lto_input_location): Same.
21040 (stream_input_location_now): Same.
21041 (lto_input_tree_ref): Same.
21042 (lto_input_eh_catch_list): Same.
21043 (input_eh_region): Same.
21044 (lto_init_eh): Same.
21045 (make_new_block): Same.
21047 (fixup_call_stmt_edges): Same.
21048 (input_struct_function_base): Same.
21049 (input_function): Same.
21050 (lto_read_body_or_constructor): Same.
21051 (lto_read_tree_1): Same.
21052 (lto_read_tree): Same.
21053 (lto_input_scc): Same.
21054 (lto_input_tree_1): Same.
21055 (lto_input_toplevel_asms): Same.
21056 (lto_input_mode_table): Same.
21057 (lto_reader_init): Same.
21058 (lto_data_in_create): Same.
21059 * lto-streamer-out.c (output_cfg): Same.
21060 * lto-streamer.h: Same.
21061 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21062 (generate_prolog_epilog): Same.
21063 (mark_loop_unsched): Same.
21064 (dump_insn_location): Same.
21065 (loop_canon_p): Same.
21066 (sms_schedule): Same.
21067 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21068 (expand_omp_for_generic): Same.
21069 (expand_omp_for_static_nochunk): Same.
21070 (expand_omp_for_static_chunk): Same.
21071 (expand_omp_simd): Same.
21072 (expand_omp_taskloop_for_inner): Same.
21073 (expand_oacc_for): Same.
21074 (expand_omp_atomic_pipeline): Same.
21075 (mark_loops_in_oacc_kernels_region): Same.
21076 * omp-offload.c (oacc_xform_loop): Same.
21077 * omp-simd-clone.c (simd_clone_adjust): Same.
21078 * optabs-query.c (get_traditional_extraction_insn): Same.
21079 * optabs.c (expand_vector_broadcast): Same.
21080 (expand_binop_directly): Same.
21081 (expand_twoval_unop): Same.
21082 (expand_twoval_binop): Same.
21083 (expand_unop_direct): Same.
21084 (emit_indirect_jump): Same.
21085 (emit_conditional_move): Same.
21086 (emit_conditional_neg_or_complement): Same.
21087 (emit_conditional_add): Same.
21088 (vector_compare_rtx): Same.
21089 (expand_vec_perm_1): Same.
21090 (expand_vec_perm_const): Same.
21091 (expand_vec_cond_expr): Same.
21092 (expand_vec_series_expr): Same.
21093 (maybe_emit_atomic_exchange): Same.
21094 (maybe_emit_sync_lock_test_and_set): Same.
21095 (expand_atomic_compare_and_swap): Same.
21096 (expand_atomic_load): Same.
21097 (expand_atomic_store): Same.
21098 (maybe_emit_op): Same.
21099 (valid_multiword_target_p): Same.
21100 (create_integer_operand): Same.
21101 (maybe_legitimize_operand_same_code): Same.
21102 (maybe_legitimize_operand): Same.
21103 (create_convert_operand_from_type): Same.
21104 (can_reuse_operands_p): Same.
21105 (maybe_legitimize_operands): Same.
21106 (maybe_gen_insn): Same.
21107 (maybe_expand_insn): Same.
21108 (maybe_expand_jump_insn): Same.
21109 (expand_insn): Same.
21110 * optabs.h (create_expand_operand): Same.
21111 (create_fixed_operand): Same.
21112 (create_output_operand): Same.
21113 (create_input_operand): Same.
21114 (create_convert_operand_to): Same.
21115 (create_convert_operand_from): Same.
21117 * poly-int.h: Same.
21118 * predict.c (optimize_insn_for_speed_p): Same.
21119 (optimize_loop_for_size_p): Same.
21120 (optimize_loop_for_speed_p): Same.
21121 (optimize_loop_nest_for_speed_p): Same.
21122 (get_base_value): Same.
21123 (predicted_by_loop_heuristics_p): Same.
21124 (predict_extra_loop_exits): Same.
21125 (predict_loops): Same.
21126 (predict_paths_for_bb): Same.
21127 (predict_paths_leading_to): Same.
21128 (propagate_freq): Same.
21129 (pass_profile::execute): Same.
21131 * profile-count.c (profile_count::differs_from_p): Same.
21132 (profile_probability::differs_lot_from_p): Same.
21133 * profile-count.h: Same.
21134 * profile.c (branch_prob): Same.
21135 * regrename.c (free_chain_data): Same.
21136 (mark_conflict): Same.
21137 (create_new_chain): Same.
21138 (merge_overlapping_regs): Same.
21139 (init_rename_info): Same.
21140 (merge_chains): Same.
21141 (regrename_analyze): Same.
21142 (regrename_do_replace): Same.
21143 (scan_rtx_reg): Same.
21144 (record_out_operands): Same.
21145 (build_def_use): Same.
21146 * regrename.h: Same.
21148 * reload1.c (init_reload): Same.
21149 (maybe_fix_stack_asms): Same.
21150 (copy_reloads): Same.
21151 (count_pseudo): Same.
21152 (count_spilled_pseudo): Same.
21154 (find_reload_regs): Same.
21155 (select_reload_regs): Same.
21156 (spill_hard_reg): Same.
21157 (fixup_eh_region_note): Same.
21158 (set_reload_reg): Same.
21159 (allocate_reload_reg): Same.
21160 (compute_reload_subreg_offset): Same.
21161 (reload_adjust_reg_for_icode): Same.
21162 (emit_input_reload_insns): Same.
21163 (emit_output_reload_insns): Same.
21164 (do_input_reload): Same.
21165 (inherit_piecemeal_p): Same.
21167 * sanopt.c (maybe_get_dominating_check): Same.
21168 (maybe_optimize_ubsan_ptr_ifn): Same.
21169 (can_remove_asan_check): Same.
21170 (maybe_optimize_asan_check_ifn): Same.
21171 (sanopt_optimize_walker): Same.
21172 * sched-deps.c (add_dependence_list): Same.
21173 (chain_to_prev_insn): Same.
21174 (add_insn_mem_dependence): Same.
21175 (create_insn_reg_set): Same.
21176 (maybe_extend_reg_info_p): Same.
21177 (sched_analyze_reg): Same.
21178 (sched_analyze_1): Same.
21179 (get_implicit_reg_pending_clobbers): Same.
21180 (chain_to_prev_insn_p): Same.
21181 (deps_analyze_insn): Same.
21182 (deps_start_bb): Same.
21183 (sched_free_deps): Same.
21185 (init_deps_reg_last): Same.
21187 * sched-ebb.c: Same.
21188 * sched-int.h: Same.
21189 * sched-rgn.c (add_branch_dependences): Same.
21190 (concat_insn_mem_list): Same.
21192 (sched_rgn_compute_dependencies): Same.
21193 * sel-sched-ir.c (reset_target_context): Same.
21194 (copy_deps_context): Same.
21195 (init_id_from_df): Same.
21196 (has_dependence_p): Same.
21197 (change_loops_latches): Same.
21198 (bb_top_order_comparator): Same.
21199 (make_region_from_loop_preheader): Same.
21200 (sel_init_pipelining): Same.
21201 (get_loop_nest_for_rgn): Same.
21202 (make_regions_from_the_rest): Same.
21203 (sel_is_loop_preheader_p): Same.
21204 * sel-sched-ir.h (inner_loop_header_p): Same.
21205 (get_all_loop_exits): Same.
21206 * selftest.h: Same.
21207 * sese.c (sese_build_liveouts): Same.
21208 (sese_insert_phis_for_liveouts): Same.
21209 * sese.h (defined_in_sese_p): Same.
21210 * sreal.c (sreal::stream_out): Same.
21212 * streamer-hooks.h: Same.
21213 * target-globals.c (save_target_globals): Same.
21214 * target-globals.h: Same.
21215 * target.def: Same.
21217 * targhooks.c (default_has_ifunc_p): Same.
21218 (default_empty_mask_is_expensive): Same.
21219 (default_init_cost): Same.
21220 * targhooks.h: Same.
21222 * tree-affine.c (aff_combination_mult): Same.
21223 (aff_combination_expand): Same.
21224 (aff_combination_constant_multiple_p): Same.
21225 * tree-affine.h: Same.
21226 * tree-cfg.c (build_gimple_cfg): Same.
21227 (replace_loop_annotate_in_block): Same.
21228 (replace_uses_by): Same.
21230 (dump_cfg_stats): Same.
21231 (gimple_duplicate_sese_region): Same.
21232 (gimple_duplicate_sese_tail): Same.
21233 (move_block_to_fn): Same.
21234 (replace_block_vars_by_duplicates): Same.
21235 (move_sese_region_to_fn): Same.
21236 (print_loops_bb): Same.
21237 (print_loop): Same.
21238 (print_loops): Same.
21240 (debug_loops): Same.
21241 * tree-cfg.h: Same.
21242 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21243 (chrec_fold_multiply_poly_poly): Same.
21244 (chrec_evaluate): Same.
21245 (chrec_component_in_loop_num): Same.
21246 (reset_evolution_in_loop): Same.
21247 (is_multivariate_chrec): Same.
21248 (chrec_contains_symbols): Same.
21249 (nb_vars_in_chrec): Same.
21250 (chrec_convert_1): Same.
21251 (chrec_convert_aggressive): Same.
21252 * tree-chrec.h: Same.
21253 * tree-core.h: Same.
21254 * tree-data-ref.c (dump_data_dependence_relation): Same.
21255 (canonicalize_base_object_address): Same.
21256 (data_ref_compare_tree): Same.
21257 (prune_runtime_alias_test_list): Same.
21258 (get_segment_min_max): Same.
21259 (create_intersect_range_checks): Same.
21260 (conflict_fn_no_dependence): Same.
21261 (object_address_invariant_in_loop_p): Same.
21262 (analyze_ziv_subscript): Same.
21263 (analyze_siv_subscript_cst_affine): Same.
21264 (analyze_miv_subscript): Same.
21265 (analyze_overlapping_iterations): Same.
21266 (build_classic_dist_vector_1): Same.
21267 (add_other_self_distances): Same.
21268 (same_access_functions): Same.
21269 (build_classic_dir_vector): Same.
21270 (subscript_dependence_tester_1): Same.
21271 (subscript_dependence_tester): Same.
21272 (access_functions_are_affine_or_constant_p): Same.
21273 (get_references_in_stmt): Same.
21274 (loop_nest_has_data_refs): Same.
21275 (graphite_find_data_references_in_stmt): Same.
21276 (find_data_references_in_bb): Same.
21277 (get_base_for_alignment): Same.
21278 (find_loop_nest_1): Same.
21279 (find_loop_nest): Same.
21280 * tree-data-ref.h (dr_alignment): Same.
21281 (ddr_dependence_level): Same.
21282 * tree-if-conv.c (fold_build_cond_expr): Same.
21283 (add_to_predicate_list): Same.
21284 (add_to_dst_predicate_list): Same.
21285 (phi_convertible_by_degenerating_args): Same.
21286 (idx_within_array_bound): Same.
21287 (all_preds_critical_p): Same.
21288 (pred_blocks_visited_p): Same.
21289 (predicate_bbs): Same.
21290 (build_region): Same.
21291 (if_convertible_loop_p_1): Same.
21292 (is_cond_scalar_reduction): Same.
21293 (predicate_scalar_phi): Same.
21294 (remove_conditions_and_labels): Same.
21295 (combine_blocks): Same.
21296 (version_loop_for_if_conversion): Same.
21297 (versionable_outer_loop_p): Same.
21298 (ifcvt_local_dce): Same.
21299 (tree_if_conversion): Same.
21300 (pass_if_conversion::gate): Same.
21301 * tree-if-conv.h: Same.
21302 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21303 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21305 (stmt_has_scalar_dependences_outside_loop): Same.
21306 (copy_loop_before): Same.
21307 (create_bb_after_loop): Same.
21308 (const_with_all_bytes_same): Same.
21309 (generate_memset_builtin): Same.
21310 (generate_memcpy_builtin): Same.
21311 (destroy_loop): Same.
21312 (build_rdg_partition_for_vertex): Same.
21313 (compute_access_range): Same.
21314 (data_ref_segment_size): Same.
21315 (latch_dominated_by_data_ref): Same.
21316 (compute_alias_check_pairs): Same.
21317 (fuse_memset_builtins): Same.
21318 (finalize_partitions): Same.
21319 (find_seed_stmts_for_distribution): Same.
21320 (prepare_perfect_loop_nest): Same.
21321 * tree-parloops.c (lambda_transform_legal_p): Same.
21322 (loop_parallel_p): Same.
21323 (reduc_stmt_res): Same.
21324 (add_field_for_name): Same.
21325 (create_call_for_reduction_1): Same.
21326 (replace_uses_in_bb_by): Same.
21327 (transform_to_exit_first_loop_alt): Same.
21328 (try_transform_to_exit_first_loop_alt): Same.
21329 (transform_to_exit_first_loop): Same.
21331 (gen_parallel_loop): Same.
21332 (gather_scalar_reductions): Same.
21333 (get_omp_data_i_param): Same.
21334 (try_create_reduction_list): Same.
21335 (oacc_entry_exit_single_gang): Same.
21336 (parallelize_loops): Same.
21337 * tree-pass.h: Same.
21338 * tree-predcom.c (determine_offset): Same.
21339 (last_always_executed_block): Same.
21340 (split_data_refs_to_components): Same.
21341 (suitable_component_p): Same.
21342 (valid_initializer_p): Same.
21343 (find_looparound_phi): Same.
21344 (insert_looparound_copy): Same.
21345 (add_looparound_copies): Same.
21346 (determine_roots_comp): Same.
21347 (predcom_tmp_var): Same.
21348 (initialize_root_vars): Same.
21349 (initialize_root_vars_store_elim_1): Same.
21350 (initialize_root_vars_store_elim_2): Same.
21351 (finalize_eliminated_stores): Same.
21352 (initialize_root_vars_lm): Same.
21353 (remove_stmt): Same.
21354 (determine_unroll_factor): Same.
21355 (execute_pred_commoning_cbck): Same.
21356 (base_names_in_chain_on): Same.
21357 (combine_chains): Same.
21358 (pcom_stmt_dominates_stmt_p): Same.
21359 (try_combine_chains): Same.
21360 (prepare_initializers_chain_store_elim): Same.
21361 (prepare_initializers_chain): Same.
21362 (prepare_initializers): Same.
21363 (prepare_finalizers_chain): Same.
21364 (prepare_finalizers): Same.
21365 (insert_init_seqs): Same.
21366 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21367 (compute_overall_effect_of_inner_loop): Same.
21368 (add_to_evolution_1): Same.
21369 (add_to_evolution): Same.
21370 (follow_ssa_edge_binary): Same.
21371 (follow_ssa_edge_expr): Same.
21372 (backedge_phi_arg_p): Same.
21373 (follow_ssa_edge_in_condition_phi_branch): Same.
21374 (follow_ssa_edge_in_condition_phi): Same.
21375 (follow_ssa_edge_inner_loop_phi): Same.
21376 (follow_ssa_edge): Same.
21377 (analyze_evolution_in_loop): Same.
21378 (analyze_initial_condition): Same.
21379 (interpret_loop_phi): Same.
21380 (interpret_condition_phi): Same.
21381 (interpret_rhs_expr): Same.
21382 (interpret_expr): Same.
21383 (interpret_gimple_assign): Same.
21384 (analyze_scalar_evolution_1): Same.
21385 (analyze_scalar_evolution): Same.
21386 (analyze_scalar_evolution_for_address_of): Same.
21387 (get_instantiated_value_entry): Same.
21388 (loop_closed_phi_def): Same.
21389 (instantiate_scev_name): Same.
21390 (instantiate_scev_poly): Same.
21391 (instantiate_scev_binary): Same.
21392 (instantiate_scev_convert): Same.
21393 (instantiate_scev_not): Same.
21394 (instantiate_scev_r): Same.
21395 (instantiate_scev): Same.
21396 (resolve_mixers): Same.
21397 (initialize_scalar_evolutions_analyzer): Same.
21398 (scev_reset_htab): Same.
21399 (scev_reset): Same.
21400 (derive_simple_iv_with_niters): Same.
21401 (simple_iv_with_niters): Same.
21402 (expression_expensive_p): Same.
21403 (final_value_replacement_loop): Same.
21404 * tree-scalar-evolution.h (block_before_loop): Same.
21405 * tree-ssa-address.h: Same.
21406 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21407 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21408 (record_edge_info): Same.
21409 * tree-ssa-live.c (var_map_base_fini): Same.
21410 (remove_unused_locals): Same.
21411 * tree-ssa-live.h: Same.
21412 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21413 (pass_ch_vect::execute): Same.
21414 (pass_ch::process_loop_p): Same.
21415 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21416 (movement_possibility): Same.
21417 (outermost_invariant_loop): Same.
21419 (determine_max_movement): Same.
21420 (invariantness_dom_walker::before_dom_children): Same.
21421 (move_computations): Same.
21422 (may_move_till): Same.
21423 (force_move_till_op): Same.
21424 (force_move_till): Same.
21425 (memref_free): Same.
21426 (record_mem_ref_loc): Same.
21427 (set_ref_stored_in_loop): Same.
21428 (mark_ref_stored): Same.
21429 (sort_bbs_in_loop_postorder_cmp): Same.
21430 (sort_locs_in_loop_postorder_cmp): Same.
21431 (analyze_memory_references): Same.
21432 (mem_refs_may_alias_p): Same.
21433 (find_ref_loc_in_loop_cmp): Same.
21434 (rewrite_mem_ref_loc::operator): Same.
21435 (first_mem_ref_loc_1::operator): Same.
21436 (sm_set_flag_if_changed::operator): Same.
21437 (execute_sm_if_changed_flag_set): Same.
21438 (execute_sm): Same.
21439 (hoist_memory_references): Same.
21440 (ref_always_accessed::operator): Same.
21441 (refs_independent_p): Same.
21442 (record_dep_loop): Same.
21443 (ref_indep_loop_p_1): Same.
21444 (ref_indep_loop_p): Same.
21445 (can_sm_ref_p): Same.
21446 (find_refs_for_sm): Same.
21447 (loop_suitable_for_sm): Same.
21448 (store_motion_loop): Same.
21449 (store_motion): Same.
21450 (fill_always_executed_in): Same.
21451 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21452 (estimated_unrolled_size): Same.
21453 (loop_edge_to_cancel): Same.
21454 (remove_exits_and_undefined_stmts): Same.
21455 (remove_redundant_iv_tests): Same.
21456 (unloop_loops): Same.
21457 (estimated_peeled_sequence_size): Same.
21458 (try_peel_loop): Same.
21459 (canonicalize_loop_induction_variables): Same.
21460 (canonicalize_induction_variables): Same.
21461 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21463 (stmt_after_inc_pos): Same.
21464 (contains_abnormal_ssa_name_p): Same.
21465 (niter_for_exit): Same.
21468 (find_givs_in_bb): Same.
21469 (find_induction_variables): Same.
21470 (find_interesting_uses_cond): Same.
21471 (outermost_invariant_loop_for_expr): Same.
21472 (idx_find_step): Same.
21473 (add_candidate_1): Same.
21474 (add_iv_candidate_derived_from_uses): Same.
21475 (alloc_use_cost_map): Same.
21476 (prepare_decl_rtl): Same.
21477 (generic_predict_doloop_p): Same.
21478 (computation_cost): Same.
21479 (determine_common_wider_type): Same.
21480 (get_computation_aff_1): Same.
21481 (get_use_type): Same.
21482 (determine_group_iv_cost_address): Same.
21484 (difference_cannot_overflow_p): Same.
21485 (may_eliminate_iv): Same.
21486 (determine_set_costs): Same.
21487 (cheaper_cost_pair): Same.
21488 (compare_cost_pair): Same.
21489 (iv_ca_cand_for_group): Same.
21490 (iv_ca_recount_cost): Same.
21491 (iv_ca_set_remove_invs): Same.
21492 (iv_ca_set_no_cp): Same.
21493 (iv_ca_set_add_invs): Same.
21494 (iv_ca_set_cp): Same.
21495 (iv_ca_add_group): Same.
21496 (iv_ca_cost): Same.
21497 (iv_ca_compare_deps): Same.
21498 (iv_ca_delta_reverse): Same.
21499 (iv_ca_delta_commit): Same.
21500 (iv_ca_cand_used_p): Same.
21501 (iv_ca_delta_free): Same.
21503 (iv_ca_free): Same.
21504 (iv_ca_dump): Same.
21505 (iv_ca_extend): Same.
21506 (iv_ca_narrow): Same.
21507 (iv_ca_prune): Same.
21508 (cheaper_cost_with_cand): Same.
21509 (iv_ca_replace): Same.
21510 (try_add_cand_for): Same.
21511 (get_initial_solution): Same.
21512 (try_improve_iv_set): Same.
21513 (find_optimal_iv_set_1): Same.
21514 (create_new_iv): Same.
21515 (rewrite_use_compare): Same.
21516 (remove_unused_ivs): Same.
21517 (determine_scaling_factor): Same.
21518 * tree-ssa-loop-ivopts.h: Same.
21519 * tree-ssa-loop-manip.c (create_iv): Same.
21520 (compute_live_loop_exits): Same.
21521 (add_exit_phi): Same.
21522 (add_exit_phis): Same.
21523 (find_uses_to_rename_use): Same.
21524 (find_uses_to_rename_def): Same.
21525 (find_uses_to_rename_in_loop): Same.
21526 (rewrite_into_loop_closed_ssa): Same.
21527 (check_loop_closed_ssa_bb): Same.
21528 (split_loop_exit_edge): Same.
21529 (ip_end_pos): Same.
21530 (ip_normal_pos): Same.
21531 (copy_phi_node_args): Same.
21532 (gimple_duplicate_loop_to_header_edge): Same.
21533 (can_unroll_loop_p): Same.
21534 (determine_exit_conditions): Same.
21535 (scale_dominated_blocks_in_loop): Same.
21536 (niter_for_unrolled_loop): Same.
21537 (tree_transform_and_unroll_loop): Same.
21538 (rewrite_all_phi_nodes_with_iv): Same.
21539 * tree-ssa-loop-manip.h: Same.
21540 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21541 (number_of_iterations_ne): Same.
21542 (assert_no_overflow_lt): Same.
21543 (assert_loop_rolls_lt): Same.
21544 (number_of_iterations_lt): Same.
21545 (adjust_cond_for_loop_until_wrap): Same.
21546 (tree_simplify_using_condition): Same.
21547 (simplify_using_initial_conditions): Same.
21548 (simplify_using_outer_evolutions): Same.
21549 (loop_only_exit_p): Same.
21550 (ssa_defined_by_minus_one_stmt_p): Same.
21551 (number_of_iterations_popcount): Same.
21552 (number_of_iterations_exit): Same.
21553 (find_loop_niter): Same.
21554 (finite_loop_p): Same.
21555 (chain_of_csts_start): Same.
21556 (get_val_for): Same.
21557 (loop_niter_by_eval): Same.
21558 (derive_constant_upper_bound_ops): Same.
21559 (do_warn_aggressive_loop_optimizations): Same.
21560 (record_estimate): Same.
21561 (get_cst_init_from_scev): Same.
21562 (record_nonwrapping_iv): Same.
21563 (idx_infer_loop_bounds): Same.
21564 (infer_loop_bounds_from_ref): Same.
21565 (infer_loop_bounds_from_array): Same.
21566 (infer_loop_bounds_from_pointer_arith): Same.
21567 (infer_loop_bounds_from_signedness): Same.
21568 (bound_index): Same.
21569 (discover_iteration_bound_by_body_walk): Same.
21570 (maybe_lower_iteration_bound): Same.
21571 (estimate_numbers_of_iterations): Same.
21572 (estimated_loop_iterations): Same.
21573 (estimated_loop_iterations_int): Same.
21574 (max_loop_iterations): Same.
21575 (max_loop_iterations_int): Same.
21576 (likely_max_loop_iterations): Same.
21577 (likely_max_loop_iterations_int): Same.
21578 (estimated_stmt_executions_int): Same.
21579 (max_stmt_executions): Same.
21580 (likely_max_stmt_executions): Same.
21581 (estimated_stmt_executions): Same.
21582 (stmt_dominates_stmt_p): Same.
21583 (nowrap_type_p): Same.
21584 (loop_exits_before_overflow): Same.
21585 (scev_var_range_cant_overflow): Same.
21586 (scev_probably_wraps_p): Same.
21587 (free_numbers_of_iterations_estimates): Same.
21588 * tree-ssa-loop-niter.h: Same.
21589 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21590 (idx_analyze_ref): Same.
21591 (analyze_ref): Same.
21592 (gather_memory_references_ref): Same.
21593 (mark_nontemporal_store): Same.
21594 (emit_mfence_after_loop): Same.
21595 (may_use_storent_in_loop_p): Same.
21596 (mark_nontemporal_stores): Same.
21597 (should_unroll_loop_p): Same.
21598 (volume_of_dist_vector): Same.
21599 (add_subscript_strides): Same.
21600 (self_reuse_distance): Same.
21601 (insn_to_prefetch_ratio_too_small_p): Same.
21602 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21603 (patch_loop_exit): Same.
21604 (find_or_create_guard_phi): Same.
21605 (easy_exit_values): Same.
21606 (connect_loop_phis): Same.
21607 (connect_loops): Same.
21608 (compute_new_first_bound): Same.
21609 (split_loop): Same.
21610 (tree_ssa_split_loops): Same.
21611 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21612 (is_maybe_undefined): Same.
21613 (tree_may_unswitch_on): Same.
21614 (simplify_using_entry_checks): Same.
21615 (tree_unswitch_single_loop): Same.
21616 (tree_unswitch_loop): Same.
21617 (tree_unswitch_outer_loop): Same.
21618 (empty_bb_without_guard_p): Same.
21619 (used_outside_loop_p): Same.
21620 (get_vop_from_header): Same.
21621 (hoist_guard): Same.
21622 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21623 (get_lsm_tmp_name): Same.
21624 * tree-ssa-loop.h: Same.
21625 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21626 (build_and_add_sum): Same.
21627 (no_side_effect_bb): Same.
21629 (linearize_expr): Same.
21630 (should_break_up_subtract): Same.
21631 (linearize_expr_tree): Same.
21632 * tree-ssa-scopedtables.c: Same.
21633 * tree-ssa-scopedtables.h: Same.
21634 * tree-ssa-structalias.c (condense_visit): Same.
21635 (label_visit): Same.
21636 (dump_pred_graph): Same.
21637 (perform_var_substitution): Same.
21638 (move_complex_constraints): Same.
21639 (remove_preds_and_fake_succs): Same.
21640 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21641 (determine_bb_domination_status): Same.
21642 (duplicate_thread_path): Same.
21643 (thread_through_all_blocks): Same.
21644 * tree-ssa-threadupdate.h: Same.
21645 * tree-streamer-in.c (streamer_read_string_cst): Same.
21646 (input_identifier): Same.
21647 (unpack_ts_type_common_value_fields): Same.
21648 (unpack_ts_block_value_fields): Same.
21649 (unpack_ts_translation_unit_decl_value_fields): Same.
21650 (unpack_ts_omp_clause_value_fields): Same.
21651 (streamer_read_tree_bitfields): Same.
21652 (streamer_alloc_tree): Same.
21653 (lto_input_ts_common_tree_pointers): Same.
21654 (lto_input_ts_vector_tree_pointers): Same.
21655 (lto_input_ts_poly_tree_pointers): Same.
21656 (lto_input_ts_complex_tree_pointers): Same.
21657 (lto_input_ts_decl_minimal_tree_pointers): Same.
21658 (lto_input_ts_decl_common_tree_pointers): Same.
21659 (lto_input_ts_decl_non_common_tree_pointers): Same.
21660 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21661 (lto_input_ts_field_decl_tree_pointers): Same.
21662 (lto_input_ts_function_decl_tree_pointers): Same.
21663 (lto_input_ts_type_common_tree_pointers): Same.
21664 (lto_input_ts_type_non_common_tree_pointers): Same.
21665 (lto_input_ts_list_tree_pointers): Same.
21666 (lto_input_ts_vec_tree_pointers): Same.
21667 (lto_input_ts_exp_tree_pointers): Same.
21668 (lto_input_ts_block_tree_pointers): Same.
21669 (lto_input_ts_binfo_tree_pointers): Same.
21670 (lto_input_ts_constructor_tree_pointers): Same.
21671 (lto_input_ts_omp_clause_tree_pointers): Same.
21672 (streamer_read_tree_body): Same.
21673 * tree-streamer.h: Same.
21674 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21675 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21676 (vect_analyze_possibly_independent_ddr): Same.
21677 (vect_analyze_data_ref_dependence): Same.
21678 (vect_compute_data_ref_alignment): Same.
21679 (vect_enhance_data_refs_alignment): Same.
21680 (vect_analyze_data_ref_access): Same.
21681 (vect_check_gather_scatter): Same.
21682 (vect_find_stmt_data_reference): Same.
21683 (vect_create_addr_base_for_vector_ref): Same.
21684 (vect_setup_realignment): Same.
21685 (vect_supportable_dr_alignment): Same.
21686 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21687 (adjust_phi_and_debug_stmts): Same.
21688 (vect_set_loop_mask): Same.
21689 (add_preheader_seq): Same.
21690 (vect_maybe_permute_loop_masks): Same.
21691 (vect_set_loop_masks_directly): Same.
21692 (vect_set_loop_condition_masked): Same.
21693 (vect_set_loop_condition_unmasked): Same.
21694 (slpeel_duplicate_current_defs_from_edges): Same.
21695 (slpeel_add_loop_guard): Same.
21696 (slpeel_can_duplicate_loop_p): Same.
21697 (create_lcssa_for_virtual_phi): Same.
21699 (vect_update_ivs_after_vectorizer): Same.
21700 (vect_gen_vector_loop_niters_mult_vf): Same.
21701 (slpeel_update_phi_nodes_for_loops): Same.
21702 (slpeel_update_phi_nodes_for_guard1): Same.
21703 (find_guard_arg): Same.
21704 (slpeel_update_phi_nodes_for_guard2): Same.
21705 (slpeel_update_phi_nodes_for_lcssa): Same.
21706 (vect_do_peeling): Same.
21707 (vect_create_cond_for_alias_checks): Same.
21708 (vect_loop_versioning): Same.
21709 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21710 (vect_inner_phi_in_double_reduction_p): Same.
21711 (vect_analyze_scalar_cycles_1): Same.
21712 (vect_fixup_scalar_cycles_with_patterns): Same.
21713 (vect_get_loop_niters): Same.
21714 (bb_in_loop_p): Same.
21715 (vect_get_max_nscalars_per_iter): Same.
21716 (vect_verify_full_masking): Same.
21717 (vect_compute_single_scalar_iteration_cost): Same.
21718 (vect_analyze_loop_form_1): Same.
21719 (vect_analyze_loop_form): Same.
21720 (vect_active_double_reduction_p): Same.
21721 (vect_analyze_loop_operations): Same.
21722 (neutral_op_for_slp_reduction): Same.
21723 (vect_is_simple_reduction): Same.
21724 (vect_model_reduction_cost): Same.
21725 (get_initial_def_for_reduction): Same.
21726 (get_initial_defs_for_reduction): Same.
21727 (vect_create_epilog_for_reduction): Same.
21728 (vectorize_fold_left_reduction): Same.
21729 (vectorizable_reduction): Same.
21730 (vectorizable_induction): Same.
21731 (vectorizable_live_operation): Same.
21732 (loop_niters_no_overflow): Same.
21733 (vect_get_loop_mask): Same.
21734 (vect_transform_loop_stmt): Same.
21735 (vect_transform_loop): Same.
21736 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21737 (vect_determine_precisions): Same.
21738 (vect_pattern_recog_1): Same.
21739 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21740 * tree-vect-stmts.c (stmt_vectype): Same.
21741 (process_use): Same.
21742 (vect_init_vector_1): Same.
21743 (vect_truncate_gather_scatter_offset): Same.
21744 (get_group_load_store_type): Same.
21745 (vect_build_gather_load_calls): Same.
21746 (vect_get_strided_load_store_ops): Same.
21747 (vectorizable_simd_clone_call): Same.
21748 (vectorizable_store): Same.
21749 (permute_vec_elements): Same.
21750 (vectorizable_load): Same.
21751 (vect_transform_stmt): Same.
21752 (supportable_widening_operation): Same.
21753 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21754 (vec_info::free_stmt_vec_info): Same.
21755 (vect_free_loop_info_assumptions): Same.
21756 (vect_loop_vectorized_call): Same.
21757 (set_uid_loop_bbs): Same.
21758 (vectorize_loops): Same.
21759 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21760 * tree.c (add_tree_to_fld_list): Same.
21761 (fld_type_variant_equal_p): Same.
21762 (fld_decl_context): Same.
21763 (fld_incomplete_type_of): Same.
21764 (free_lang_data_in_binfo): Same.
21765 (need_assembler_name_p): Same.
21766 (find_decls_types_r): Same.
21767 (get_eh_types_for_runtime): Same.
21768 (find_decls_types_in_eh_region): Same.
21769 (find_decls_types_in_node): Same.
21770 (assign_assembler_name_if_needed): Same.
21771 * value-prof.c (stream_out_histogram_value): Same.
21772 * value-prof.h: Same.
21773 * var-tracking.c (use_narrower_mode): Same.
21774 (prepare_call_arguments): Same.
21775 (vt_expand_loc_callback): Same.
21776 (resolve_expansions_pending_recursion): Same.
21777 (vt_expand_loc): Same.
21778 * varasm.c (const_hash_1): Same.
21779 (compare_constant): Same.
21780 (tree_output_constant_def): Same.
21781 (simplify_subtraction): Same.
21782 (get_pool_constant): Same.
21783 (output_constant_pool_2): Same.
21784 (output_constant_pool_1): Same.
21785 (mark_constants_in_pattern): Same.
21786 (mark_constant_pool): Same.
21787 (get_section_anchor): Same.
21788 * vr-values.c (compare_range_with_value): Same.
21789 (vr_values::extract_range_from_phi_node): Same.
21790 * vr-values.h: Same.
21791 * web.c (unionfind_union): Same.
21792 * wide-int.h: Same.
21794 2019-07-09 Martin Sebor <msebor@redhat.com>
21797 * align.h: Change class-key from class to struct and vice versa
21798 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21799 * alloc-pool.h: Same.
21800 * asan.c (shadow_mem_size): Same.
21801 * auto-profile.c: Same.
21802 * basic-block.h: Same.
21804 * cfgexpand.c (set_rtl): Same.
21805 (expand_one_stack_var_at): Same.
21806 * cfghooks.h: Same.
21809 * config/i386/i386.h: Same.
21810 * df-problems.c (df_print_bb_index): Same.
21812 * df.h (df_single_use): Same.
21813 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21814 (layout::annotation_line_showed_range_p): Same.
21815 (get_printed_columns): Same.
21816 (correction::ensure_terminated): Same.
21817 (line_corrections::~line_corrections): Same.
21820 * dump-context.h: Same.
21821 * dumpfile.h: Same.
21822 * dwarf2out.c: Same.
21823 * edit-context.c: Same.
21824 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21826 * function.c (assign_stack_local): Same.
21827 * function.h: Same.
21829 * gcov.c (block_info::block_info): Same.
21830 * genattrtab.c: Same.
21831 * genextract.c: Same.
21832 * genmatch.c (comparison_code_p): Same.
21833 (id_base::id_base): Same.
21834 (decision_tree::print): Same.
21835 * genoutput.c: Same.
21836 * genpreds.c (write_one_predicate_function): Same.
21837 * genrecog.c (validate_pattern): Same.
21838 (find_operand_positions): Same.
21839 (optimize_subroutine_group): Same.
21840 (merge_pattern_transition::merge_pattern_transition): Same.
21841 (merge_pattern_info::merge_pattern_info): Same.
21842 (merge_state_result::merge_state_result): Same.
21843 (merge_into_state): Same.
21844 * gensupport.c: Same.
21845 * gensupport.h: Same.
21846 * ggc-common.c (init_ggc_heuristics): Same.
21847 * ggc-tests.c (test_union): Same.
21848 * gimple-loop-interchange.cc (dump_induction): Same.
21849 * gimple-loop-versioning.cc: Same.
21850 * gimple-match.h (gimple_match_cond::any_else): Same.
21851 * gimple-ssa-backprop.c: Same.
21852 * gimple-ssa-sprintf.c: Same.
21853 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21855 (store_immediate_info::store_immediate_info): Same.
21856 (merged_store_group::apply_stores): Same.
21857 (get_location_for_stmts): Same.
21858 * gimple-ssa-strength-reduction.c: Same.
21859 * gimple-ssa-warn-alloca.c: Same.
21860 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21861 * godump.c (go_type_decl): Same.
21862 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21863 * hash-map.h: Same.
21864 * hash-set-tests.c (test_set_of_strings): Same.
21865 * hsa-brig.c: Same.
21866 * hsa-common.h: Same.
21867 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21868 * input.c (assert_loceq): Same.
21871 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21872 * ipa-fnsummary.h: Same.
21873 * ipa-inline.h: Same.
21874 * ipa-prop.h: Same.
21875 * ipa-split.c (visit_bb): Same.
21876 * ira-int.h (minmax_set_iter_next): Same.
21877 * loop-invariant.c: Same.
21879 * lra-eliminations.c: Same.
21881 * lra-lives.c (mark_regno_dead): Same.
21882 * lra-remat.c: Same.
21883 * lra-spills.c: Same.
21884 * lto-streamer.h: Same.
21885 * mem-stats.h: Same.
21886 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21887 * omp-low.c (omp_clause_aligned_alignment): Same.
21888 * optabs-query.h (get_vcond_eq_icode): Same.
21890 * opts.c (wrap_help): Same.
21891 * poly-int.h: Same.
21892 * predict.c (predict_paths_leading_to_edge): Same.
21893 * pretty-print.h: Same.
21894 * profile-count.h: Same.
21896 * read-rtl-function.c: Same.
21899 * regrename.c: Same.
21900 * regrename.h: Same.
21902 * rtl-iter.h: Same.
21903 * rtl.h (costs_add_n_insns): Same.
21905 * sched-int.h: Same.
21906 * sel-sched-ir.h: Same.
21907 * selftest.h: Same.
21908 * sese.h (vec_find): Same.
21910 * target-globals.h: Same.
21911 * tree-affine.c (aff_combination_find_elt): Same.
21912 * tree-affine.h: Same.
21913 * tree-data-ref.h: Same.
21914 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21915 * tree-predcom.c: Same.
21916 * tree-scalar-evolution.c (find_var_scev_info): Same.
21917 * tree-ssa-alias.h: Same.
21918 * tree-ssa-ccp.c: Same.
21919 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21920 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21921 (rewrite_mem_refs): Same.
21922 (execute_sm_if_changed): Same.
21923 (hoist_memory_references): Same.
21924 * tree-ssa-loop-ivopts.c (operator<=): Same.
21925 * tree-ssa-loop.h: Same.
21926 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21927 * tree-ssa-structalias.c: Same.
21928 * tree-switch-conversion.h (cluster::cluster): Same.
21929 (simple_cluster::simple_cluster): Same.
21930 * tree-vect-patterns.c (type_conversion_p): Same.
21931 * tree-vectorizer.c (dump_stmt_cost): Same.
21932 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21933 * tree.c (protected_set_expr_location): Same.
21934 * tree.h (desired_pro_or_demotion_p): Same.
21935 (fndecl_built_in_p): Same.
21936 * unique-ptr-tests.cc: Same.
21937 * var-tracking.c (delete_variable_part): Same.
21938 * varasm.c (assemble_real): Same.
21939 (tree_output_constant_def): Same.
21941 * wide-int-bitmask.h: Same.
21942 * wide-int.h (decompose): Same.
21944 2019-07-09 Richard Biener <rguenther@suse.de>
21946 PR tree-optimization/91114
21947 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21948 find a vector type isn't fatal.
21950 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21952 * config/aarch64/aarch64-simd.md
21953 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21954 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21955 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21956 (*aarch64_crypto_aese_fused,
21957 *aarch64_crypto_aesd_fused): Update to new definition.
21958 * config/aarch64/aarch64.c
21959 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21961 2019-07-09 Richard Biener <rguenther@suse.de>
21963 * gimple-match.h (gimple_match_op::resimplify): New.
21964 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21965 gimple_resimplify4, gimple_resimplify5): Remove.
21966 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21967 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21969 (gimple_match_op::resimplify): New.
21970 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21971 according to availability. Use gimple_match_op::resimplify.
21973 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21975 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21977 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21979 * config/arm/crypto.md:
21980 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21981 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21982 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21983 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21985 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21986 * config/arm/aarch-common-protos.h
21987 (aarch_crypto_can_dual_issue): Remove.
21988 * config/arm/aarch-common.c
21989 (aarch_crypto_can_dual_issue): Likewise.
21990 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21991 * config/arm/cortex-a53.md: Likewise.
21992 * config/arm/cortex-a57.md: Likewise.
21993 * config/arm/iterators.md:
21994 (CRYPTO_BINARY): Redefine.
21995 (CRYPTO_UNARY): Removed.
21996 (CRYPTO_AES, CRYPTO_AESMC): New.
21998 2019-07-09 Richard Biener <rguenther@suse.de>
22000 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22001 (vn_reference_lookup_3): If the main ref has no access path recorded
22002 but orig_ref has use it to do access-path based disambiguation.
22003 (vn_reference_lookup_pieces): Adjust.
22004 (vn_reference_lookup): Pass down original ref if we valueized.
22006 2019-07-09 Martin Liska <mliska@suse.cz>
22008 * doc/extend.texi: Document influence on loop
22011 2019-07-09 Martin Liska <mliska@suse.cz>
22013 * lto-compress.c (lto_normalized_zstd_level): Do not use
22014 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22015 of libzstd. One can use 0 as a default compression level.
22017 2019-07-09 Martin Liska <mliska@suse.cz>
22019 * doc/invoke.texi: Add link from -fprofile-dir option.
22020 Use better wording for 'gcno filename'.
22022 2019-07-08 Martin Sebor <msebor@redhat.com>
22024 PR middle-end/71924
22025 PR middle-end/90549
22026 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22028 (args_loc_t): New type.
22029 (args_loc_t, locmap_t): same.
22030 (diag_returned_locals): New function.
22031 (is_addr_local): Same.
22032 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22033 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22034 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22036 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22038 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22039 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22040 and casts in offset when different, both through gimple stmts
22041 and through trees. Rewritten using loops to minimize code duplication
22044 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22046 * emit-rtl.c (set_insn_locations): New function moved from...
22047 * function.c (set_insn_locations): ...here.
22048 * ira-emit.c (emit_moves): Propagate location of the first instruction
22049 to the inserted move instructions.
22050 * reg-stack.c (compensate_edge): Set the location if the sequence is
22051 inserted on the edge.
22052 * rtl.h (set_insn_locations): Declare.
22054 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22056 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22057 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22060 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22062 PR rtl-optimization/88233
22063 * common.opt (fsplit-wide-types-early): New option.
22064 * common/config/rs6000/rs6000-common.c
22065 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22067 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22068 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22069 flag_split_wide_types_early.
22070 (pass_data_lower_subreg3): New.
22071 (pass_lower_subreg3): New.
22072 (make_pass_lower_subreg3): New.
22073 * passes.def (pass_lower_subreg2): Move after the loop passes.
22074 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22075 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22076 the pass pipeline; its previous place is taken by ...
22077 (make_pass_lower_subreg3): ... this.
22079 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22081 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22082 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22084 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22086 * config/s390/constraints.md: Add new jsc constraint.
22087 * config/s390/predicates.md: New predicates.
22088 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22089 * config/s390/s390.c (s390_valid_shift_count): New function.
22090 (print_shift_count_operand): Use s390_valid_shift_count.
22091 (print_operand): Likewise.
22092 * config/s390/s390.md: Use new predicate.
22093 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22094 * config/s390/vector.md: Use new predicate.
22096 2019-07-08 Andrew Waterman <andrew@sifive.com>
22097 Jim Wilson <jimw@sifive.com>
22099 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22100 bitsize instead of BITS_PER_WORD.
22102 2019-07-08 Martin Liska <mliska@suse.cz>
22104 * collect2.c (defined): Revert to before r254460.
22105 (scan_prog_file): Revert to before r254460.
22107 2019-07-08 Richard Biener <rguenther@suse.de>
22109 PR tree-optimization/83518
22110 * tree-ssa-sccvn.c: Include splay-tree.h.
22111 (struct pd_range, struct pd_data): New.
22112 (struct vn_walk_cb_data): Add data to track partial definitions.
22113 (vn_walk_cb_data::~vn_walk_cb_data): New.
22114 (vn_walk_cb_data::push_partial_def): New.
22115 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22116 (vn_reference_lookup_2): When partial defs are registered give up.
22117 (vn_reference_lookup_3): Track partial defs for memset and
22118 constructor zeroing and for defs from constants.
22120 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22122 * doc/install.texi (bootstrap-Og): Document.
22124 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22126 * config/riscv/pic.md (*local_pic_load_s<mode>)
22127 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22128 referenced by <mode>, giving...
22129 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22130 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22131 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22132 use <X:MODE> for the mode attribute.
22134 2019-07-07 Jeff Law <law@redhat.com>
22136 PR tree-optimization/91090
22137 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22138 in handling of ranges to simplify switch statements.
22140 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22142 * config/darwin.c (darwin_override_options): Make a final check on PIC
22145 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22147 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22148 on for kernel code.
22150 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22153 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22154 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22155 instead of matching them to "l" output operands.
22157 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22159 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22160 and check whether addr.reg is nonnull before using it.
22162 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22164 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22165 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22166 variable(s). For conditional lastprivate look through outer
22167 GIMPLE_OMP_SCAN context.
22168 (lower_omp_1): For conditional lastprivate look through outer
22169 GIMPLE_OMP_SCAN context.
22171 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22172 member to combined_into_simd_safelen1.
22173 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22174 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22175 clauses if ctx->combined_into_simd_safelen1 put statements after the
22176 predicate conditionalized block rather than into it.
22178 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22180 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22182 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22183 Make the choice of <mode> explicit, giving...
22184 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22186 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22188 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22189 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22191 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22192 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22193 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22194 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22195 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22196 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22197 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22198 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22199 (*avx512f_scatterdi<mode>): Likewise.
22200 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22202 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22204 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22205 specify the mode iterator referenced by <mode>, giving...
22206 (*push1_h8300hs_<QHI:mode>): ...this.
22208 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22210 * config/gcn/gcn-valu.md
22211 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22212 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22213 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22214 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22215 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22216 but using the _exec comparison patterns.
22217 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22218 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22219 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22220 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22221 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22222 but using the _exec comparison patterns.
22224 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22226 * config/arm/sync.md
22227 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22228 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22229 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22230 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22231 <SIDI:cas_cmp_str>.
22233 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22235 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22236 (maybe_lookup_ctx): Add forward declaration.
22237 (omp_find_scan): Likewise. Walk into body of simd if composited
22238 with worksharing loop.
22239 (scan_omp_simd_scan): New function.
22240 (scan_omp_1_stmt): Call it.
22241 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22242 ctx->for_simd_scan_phase.
22243 (lower_rec_input_clauses): Do much less work for inscan reductions
22244 in ctx->for_simd_scan_phase is_simd regions.
22245 (lower_omp_scan): Set is_simd also on simd constructs composited
22246 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22247 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22248 emit their body after in simd constructs composited with worksharing
22250 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22252 * omp-low.c (omp_find_scan): Make static.
22253 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22254 the second loop, var2 represents the first partial sum and so needs
22255 to go before rprivb[ivar].
22257 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22259 * config/rs6000/rs6000-logue.c: Remove unused code.
22261 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22263 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22265 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22268 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22269 check with a frame laid out check.
22271 2019-07-05 Richard Biener <rguenther@suse.de>
22273 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22274 when comparing against a store with possibly the same value.
22276 2019-07-05 Richard Biener <rguenther@suse.de>
22278 PR tree-optimization/91091
22279 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22280 (walk_non_aliased_vuses): Likewise.
22281 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22282 (get_continuation_for_phi): New tbaa_p parameter and pass
22284 (walk_non_aliased_vuses): Likewise.
22285 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22286 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22287 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22289 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22290 (adjust_offsets_for_equal_base_address): New function.
22291 (vn_reference_lookup_3): Use it to catch more base equivalences.
22292 Handle and pass down tbaa_p flag.
22293 (vn_reference_lookup_pieces): Adjust.
22294 (vn_reference_lookup): Remove alias-set altering, instead pass
22295 down false as tbaa_p.
22297 2019-07-05 Richard Biener <rguenther@suse.de>
22299 PR tree-optimization/91091
22300 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22301 accesses can happen with -fno-strict-aliasing.
22303 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22305 * tree-ssa-alias.c (alias_stats): Add
22306 nonoverlapping_component_refs_since_match_p_must_overlap.
22307 (dump_alias_stats): Print it.
22308 (nonoverlapping_component_refs_since_match_p): Add early exit.
22309 (nonoverlapping_component_refs_p): Do not account early exit.
22311 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22313 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22314 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22315 (emit_eh_dispatch): Delete.
22316 (lower_catch): Emit the eh_dispatch manually and set the location of
22317 the first catch statement onto it.
22318 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22319 (lower_eh_dispatch): Propagate location.
22320 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22321 (eliminate_build): Likewise.
22323 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22325 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22326 phi nodes if possible.
22327 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22328 location info on the newly created statement.
22329 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22330 newly created increment if needed.
22332 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22334 PR middle-end/78884
22335 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22336 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22337 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22338 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22339 ctx->add_safelen1 is set.
22341 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22342 GOMP_loop_start at the start of second worksharing loop in a scan.
22343 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22344 worksharing loop in a scan even if there are conditional lastprivates,
22345 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22347 2019-07-04 Jan Hubicka <jh@suse.cz>
22349 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22350 Fix check for match in the ref walk.
22352 2019-07-04 Martin Liska <mliska@suse.cz>
22354 * tree-ssa-loop-niter.c
22355 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22356 (estimate_numbers_of_iterations):
22357 Support __builtin_expect_with_probability for analysis
22358 of # of loop iterations.
22360 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22362 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22363 * except.c: Likewise.
22364 * expr.c (expand_expr_real_1): Reject it.
22365 * gimplify.c (gimplify_expr): Gimplify it, within
22367 * tree-dump.c (dequeue_and_dump): Dump it.
22368 * tree-pretty-print.c (dump_generic_node): Likewise.
22369 * tree.c (block_may_fallthru): Handle it.
22370 * tree.def (EH_ELSE_EXPR): Introduce it.
22371 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22372 with GIMPLE_EH_ELSE as try/finally/else.
22374 2019-07-04 Richard Biener <rguenther@suse.de>
22377 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22378 parameter whether to disable GC collection.
22379 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22381 (execute_all_ipa_transforms): Likewise and pass it down.
22382 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22383 collection from applying IPA transforms.
22384 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22385 from applying IPA transforms.
22387 2019-07-04 Richard Biener <rguenther@suse.de>
22389 PR tree-optimization/90911
22390 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22391 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22392 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22393 scalar_loop_scaling.
22394 (vect_transform_loop): Scale scalar loop profile if needed.
22395 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22396 the loop copy from if-conversion adjust edge probabilities
22397 and scale the vectorized loop body profile, queue the scalar
22398 profile for updating after peeling.
22400 2019-07-04 Jan Hubicka <jh@suse.cz>
22402 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22403 parameters; return early for must-alias.
22404 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22405 outer types match, try nonoverlapping_component_refs
22406 if must-alias is not obvious.
22407 (indirect_refs_may_alias_p): Likewise.
22408 (refs_may_alias_p_2): Likewise.
22410 2019-07-04 Richard Biener <rguenther@suse.de>
22412 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22414 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22416 (struct vn_walk_cb_data): New callback data struct.
22417 (vn_reference_lookup_2): Adjust.
22418 (vn_reference_lookup_3): Likewise.
22419 (vn_reference_lookup_pieces): Likewise.
22420 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22421 (visit_reference_op_load): Adjust.
22423 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22425 PR tree-optimization/91063
22426 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22427 stmt from stmts sequence before calling vect_init_vector_1.
22430 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22433 * fwprop.c (reg_single_def_p): New function.
22434 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22435 (forward_propagate_into): New parameter reg_prop_only
22436 with default value false.
22437 Propagate def's src into loop only if SET_SRC and SET_DEST
22438 of def_set have single definitions.
22439 Likewise if reg_prop_only is set to true.
22440 (fwprop): New param fwprop_addr_p.
22441 Integrate fwprop_addr into fwprop.
22442 (fwprop_addr): Remove.
22443 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22445 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22446 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22447 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22449 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22451 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22452 in worksharing loop scans.
22454 PR tree-optimization/91074
22455 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22458 PR rtl-optimization/90756
22459 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22462 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22464 * config/aarch64/aarch64.md: Remove redundant constraints from
22465 define_expand but keep some patterns untouched if they are
22466 specially selected by TARGET_SECONDARY_RELOAD hook.
22467 * config/aarch64/aarch64-sve.md: Likewise.
22468 * config/aarch64/atomics.md: Remove redundant constraints from
22470 * config/aarch64/aarch64-simd.md: Likewise.
22472 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22474 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22475 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22476 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22478 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22481 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22483 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22484 (STARTFILE_SPEC): Split crt3 into a separate spec.
22485 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22486 (DARWIN_CRT2_SPEC): New.
22487 (DARWIN_CRT3_SPEC): New.
22488 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22489 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22490 (DARWIN_CRT3_SPEC): New.
22492 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22494 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22495 Change the RTL attribute "length" from "4" to "*" to allow the
22496 length attribute to be adjusted automatically for prefixed load,
22497 store, and add immediate instructions.
22498 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22500 (extendsi<mode>2, EXTSI iterator): Likewise.
22501 (movsi_internal1): Likewise.
22502 (movsi_from_sf): Likewise.
22503 (movdi_from_sf_zero_ext): Likewise.
22504 (mov<mode>_internal): Likewise.
22505 (movcc_internal1, QHI iterator): Likewise.
22506 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22507 (movsf_from_si): Likewise.
22508 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22509 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22510 (mov<mode>, FMOVE128 iterator): Likewise.
22511 (movdi_internal64): Likewise.
22512 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22514 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22515 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22516 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22517 (vsx_splat_v4sf): Likewise.
22519 2019-07-03 Mark Wielaard <mark@klomp.org>
22522 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22523 DW_AT_addr_base if there is actually a .debug_addr section with
22525 (output_addr_table): Add DWARF5 table header generation here after
22526 checking there are actually any addresses from...
22527 (dwarf2out_finish): ...here.
22529 2019-07-03 Richard Biener <rguenther@suse.de>
22531 PR middle-end/91069
22532 * match.pd (vec_perm -> bit_insert): Fix element read from
22535 2019-07-03 Martin Liska <mliska@suse.cz>
22537 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22538 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22540 * generic-match-head.c: Include dbgcnt.h.
22541 * gimple-match-head.c: Likewise.
22543 2019-07-03 Martin Liska <mliska@suse.cz>
22545 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22546 (GCOV_COUNTER_V_TOPN): New.
22547 (GCOV_COUNTER_V_INDIR): Use _topn.
22548 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22549 (GCOV_TOPN_VALUES): New.
22550 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22551 (GCOV_TOPN_VALUES_COUNTERS): New.
22552 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22554 (gimple_init_gcov_profiler): Rename variables from one_value
22556 (gimple_gen_one_value_profiler): Remove.
22557 (gimple_gen_topn_values_profiler): New function.
22558 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22559 names instead of SINGLE_VALUE.
22560 (stream_out_histogram_value): Likewise.
22561 (stream_in_histogram_value): Likewise.
22562 (get_most_common_single_value): Likewise.
22563 (gimple_divmod_fixed_value_transform): Likewise.
22564 (gimple_stringops_transform): Likewise.
22565 (gimple_divmod_values_to_profile): Likewise.
22566 (gimple_stringops_values_to_profile): Likewise.
22567 (gimple_find_values_to_profile): Likewise.
22568 * value-prof.h (enum hist_type): Rename to TOPN.
22569 (gimple_gen_one_value_profiler): Remove.
22570 (gimple_gen_topn_values_profiler): New.
22572 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22574 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22575 if it has the DW_AT_data_member_location attribute.
22577 2019-07-03 Richard Biener <rguenther@suse.de>
22579 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22582 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22584 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22585 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22586 (tlsdesc_small_sve_<mode>): Likewise.
22588 2019-07-03 Martin Liska <mliska@suse.cz>
22590 * Makefile.in: Define ZSTD_LIB.
22591 * common.opt: Adjust compression level
22592 to support also zstd levels.
22593 * config.in: Regenerate.
22594 * configure: Likewise.
22595 * configure.ac: Add --with-zstd and --with-zstd-include options
22597 * doc/install.texi: Mention zstd dependency.
22598 * gcc.c: Print supported LTO compression algorithms.
22599 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22600 (lto_compression_zstd): Likewise.
22601 (lto_uncompression_zstd): Likewise.
22602 (lto_end_compression): Dispatch in between zlib and zstd.
22603 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22604 (lto_uncompression_zlib): Make it static.
22605 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22606 * lto-section-in.c (lto_get_section_data): Pass info
22607 about used compression.
22608 * lto-streamer-out.c: By default use zstd when possible.
22609 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22610 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22612 2019-07-03 Martin Liska <mliska@suse.cz>
22614 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22615 * lto-section-out.c (lto_destroy_simple_output_block): Never
22616 compress LTO_section_lto section.
22617 * lto-streamer-out.c (produce_asm): Do not set major_version
22619 (lto_output_toplevel_asms): Likewise.
22620 (produce_lto_section): New function.
22621 (lto_output): Call produce_lto_section.
22622 (lto_write_mode_table): Do not set major_version and
22624 (produce_asm_for_decls): Likewise.
22625 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22627 (struct lto_header): Remove.
22628 (struct lto_section): New struct.
22629 (struct lto_simple_header): Do not inherit from lto_header.
22630 (struct lto_file_decl_data): Add lto_section_header field.
22632 2019-07-03 Martin Liska <mliska@suse.cz>
22634 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22636 * reg-stack.c (check_asm_stack_operands): Likewise.
22637 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22638 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22639 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22640 force_expand_binop.
22642 2019-07-03 Martin Liska <mliska@suse.cz>
22644 PR tree-optimization/90892
22645 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22646 in string constants.
22648 2019-07-03 Martin Liska <mliska@suse.cz>
22650 PR middle-end/90899
22651 * multiple_target.c (create_dispatcher_calls): Add to comdat
22652 group only if set for ifunc.
22654 2019-07-03 Martin Liska <mliska@suse.cz>
22657 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22658 Define local_object_name in outer scope in order to handle
22659 use-after-scope issue.
22661 2019-07-03 Martin Liska <mliska@suse.cz>
22663 * common.opt: Add fprofile-note.
22664 * coverage.c (coverage_init): Append the option
22666 * doc/invoke.texi: Document -fprofile-note.
22668 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22670 PR tree-optimization/91033
22671 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22672 vect_analyze_data_refs): Add bool * arguments.
22673 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22674 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22675 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22676 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22677 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22678 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22679 vect_analyze_data_refs caller.
22681 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22683 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22684 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22685 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22686 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22687 OMP_CLAUSE__SCANTEMP_ entry.
22688 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22689 * tree-pretty-print.c (dump_omp_clause): Likewise.
22690 * tree-nested.c (convert_nonlocal_omp_clauses,
22691 convert_local_omp_clauses): Likewise.
22692 * omp-general.h (struct omp_for_data): Add have_scantemp and
22693 have_nonctrl_scantemp members.
22694 * omp-general.c (omp_extract_for_data): Initialize them.
22695 * omp-low.c (struct omp_context): Add scan_exclusive member.
22696 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22697 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22698 ctx->scan_exclusive.
22699 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22700 of !ctx->scan_inclusive.
22701 (lower_rec_input_clauses): Simplify gimplification of dtors using
22702 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22703 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22704 loops. Don't add barrier for reduction_omp_orig_ref if
22705 ctx->scan_??xclusive.
22706 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22707 (lower_omp_scan): Use ctx->scan_exclusive instead
22708 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22709 reductions. Use new_vard != new_var instead of repeated
22710 omp_is_reference calls.
22711 (omp_find_scan, lower_omp_for_scan): New functions.
22712 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22714 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22715 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22716 and fd->have_scantemp.
22718 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22719 on worksharing loop propagate it as shared clause to containing
22722 * omp-expand.c (expand_omp_for_static_nochunk,
22723 expand_omp_for_static_chunk): For nowait worksharing loop with
22724 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22727 2019-07-02 qing zhao <qing.zhao@oracle.com>
22729 PR preprocessor/90581
22730 * doc/cppopts.texi: Add document for -fmax-include-depth.
22731 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22733 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22735 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22736 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22737 (mmx_packssdw): Ditto.
22738 (mmx_punpckhbw): Ditto.
22739 (mmx_punpcklbw): Ditto.
22740 (mmx_punpckhwd): Ditto.
22741 (mmx_punpcklwd): Ditto.
22742 (mmx_punpckhdq): Ditto.
22743 (mmx_punpckldq): Ditto.
22744 (*vec_dupv4hi): Ditto.
22745 (*vec_dupv2si): Ditto.
22746 (mmx_pmovmskb): Ditto.
22747 * config/i386/sse.md (sse_cvtpi2ps): Use
22748 TARGET_SSE2 && SSE_REG_P in split condition.
22749 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22750 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22751 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22752 (ssse3_pshufbv8qi3): Ditto.
22753 (ssse3_palignrdi): Ditto.
22755 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22757 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22758 with inlined save and restore.
22760 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22762 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22763 to be inserted on single successor edge of the entry block. Then call
22764 commit_edge_insertions instead of inserting the instructions manually.
22765 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22766 RTL expansion and rebuild jump labels chain.
22768 2019-07-02 Richard Biener <rguenther@suse.de>
22770 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22772 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22774 * tree.c (build_common_tree_nodes): Initialize them.
22775 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22776 Make declarations comments.
22777 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22778 chrec_known): Remove definitions.
22779 (initialize_scalar_evolutions_analyzer): Remove.
22780 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22781 * tree-streamer.c (preload_common_nodes): Do not preload
22782 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22784 2019-07-02 Jan Hubicka <jh@suse.cz>
22786 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22789 2019-07-02 Jan Hubicka <jh@suse.cz>
22791 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22793 (nonoverlapping_component_refs_since_match_p): ... this one;
22794 handle also non-decl bases; return -1 if search gave up.
22795 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22796 nonoverlapping_component_refs_of_decl_p_no_alias to
22797 nonoverlapping_component_refs_since_match_p_may_alias,
22798 nonoverlapping_component_refs_since_match_p_no_alias.
22799 (dump_alias_stats): Update dumping.
22800 (aliasing_matching_component_refs_p): Break out from ...;
22801 dispatch to nonoverlapping_component_refs_for_decl_p
22802 and nonoverlapping_component_refs_since_match_p.
22803 (aliasing_component_refs_p): ... here; call
22804 nonoverlapping_component_refs_p in scenarios where we can not
22805 precisely determine base match.
22806 (decl_refs_may_alias_p): Use
22807 nonoverlapping_component_refs_since_match_p.
22808 (indirect_ref_may_alias_decl_p): Do not call
22809 nonoverlapping_component_refs_p.
22810 (indirect_refs_may_alias_p): Likewise.
22812 2019-07-02 Jan Hubicka <jh@suse.cz>
22814 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22815 to clobber of return value.
22817 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22819 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22820 for is_neon_type instructions that have not already been categorized.
22822 2019-07-02 Richard Biener <rguenther@suse.de>
22824 PR tree-optimization/58483
22825 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22826 for MEM_REF base hashing.
22827 (equal_mem_array_ref_p): Likewise for base comparison.
22829 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22831 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22832 parameterized name.
22833 (signbit<mode>2): Use that name. Simplify.
22835 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22837 PR middle-end/66726
22838 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22839 Tune heuristic from PR71016 to allow MIN / MAX.
22841 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22843 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22844 parameterized name.
22845 (abs<mode>2): Use that name. Simplify.
22847 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22849 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22850 parameterized name.
22851 (neg<mode>2): Use that name. Simplify.
22853 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22855 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22857 (abs<mode>2): Use that name. Simplify.
22859 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22861 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22863 (neg<mode>2): Use that name. Simplify.
22865 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22867 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22868 ("enabled" attribute): Handle sse_noavx isa attribute.
22869 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22870 Use TARGET_SSE && SSE_REGNO_P in split condition.
22871 (*vec_dupv2sf): Ditto.
22873 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22875 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22877 (floatsi<mode>2): Use that name. Simplify.
22879 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22881 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22882 parameterized name.
22883 (extenddf<mode>2_vsx): Make this a parameterized name.
22884 (extenddf<mode>2): Use those names. Simplify.
22886 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22888 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22890 (eh_return): Use that name. Simplify.
22892 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22894 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22895 (doloop_end): Use that name. Simplify.
22897 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22899 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22900 parameterized name.
22901 (indirect_jump): Use that name. Simplify.
22903 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22905 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22906 parameterized name.
22907 (abs<mode>2): Use that name. Simplify.
22909 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22911 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22912 parameterized name.
22913 (fix_trunc<mode>si2): Use that name. Simplify.
22915 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22917 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22918 (allocate_stack): Use that name. Simplify.
22920 2019-07-01 Martin Sebor <msebor@redhat.com>
22922 PR middle-end/90923
22923 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22924 (hash_map::get_or_insert): Same. Reformat comment.
22925 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22926 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22927 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22928 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22929 (hash_table::hash_table (const hash_table&)): Use copy ctor
22930 instead of assignment to copy elements.
22932 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22933 John David Anglin <danglin@gcc.gnu.org>
22936 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22937 using saved frame pointer.
22939 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22941 PR middle-end/64242
22942 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22943 Add frame clobber and schedule blockage.
22945 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22947 * doc/invoke.texi (Link Options): Further editorial changes to
22948 -flinker-output docs.
22950 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22952 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22953 Load both operands of a PLUS into registers separately.
22955 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22957 * config/s390/vector.md: Fix shift count operand printing.
22959 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22961 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22963 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22965 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22966 Use recog_data to test for an output operand.
22968 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22970 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22971 exclude any others that are disparaged or that are bound to need
22973 (ira_get_dup_out_num): Expand comment.
22975 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22977 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22978 constraint string for each operand/alternative combo. Only handle
22979 '%' at the start of constraint strings, and look for it outside
22982 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22984 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22985 alternative_mask instead of HARD_REG_SET to represent a
22986 bitmask of alternatives.
22987 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22988 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22990 2019-07-01 Martin Liska <mliska@suse.cz>
22992 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22993 use () for a constructor call.
22994 (test_applying_fixits_line_out_of_range): Likewise.
22995 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22997 (free_page): Likewise.
22999 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23001 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23002 parameter names to match usage (no functional change).
23003 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23005 2019-07-01 Richard Biener <rguenther@suse.de>
23007 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23009 (pass_fre::execute): Honor it.
23010 * passes.def: Adjust pass_fre invocations to allow iterating,
23011 add non-iterating pass_fre before late threading/dom.
23013 2019-07-01 Richard Biener <rguenther@suse.de>
23015 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23016 TARGET_MEM_REF handling to also handle address-taken ones.
23018 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23020 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23021 hardware attributes): Document avx512vp2intersect.
23023 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23025 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23026 (abs<mode>2): New expander.
23027 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23028 Use CODE_FOR_ssse3_absv8qi2.
23029 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23030 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23032 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23034 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23035 to sse, sse_noavx and avx. Update all uses.
23037 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23039 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23040 (*mmx_<plusminus_insn><mode>3): Ditto.
23041 (*mmx_mulv4hi3"): Ditto.
23042 (*mmx_smulv4hi3_highpart): Ditto.
23043 (*mmx_umulv4hi3_highpart): Ditto.
23044 (*mmx_pmaddwd): Ditto.
23045 (*sse2_umulv1siv1di3): Ditto.
23046 (*mmx_<code>v4hi3): Ditto.
23047 (*mmx_<code>v8qi3): Ditto.
23048 (mmx_ashr<mode>3): Ditto.
23049 ("mmx_<shift_insn><mode>3): Ditto.
23050 (*mmx_eq<mode>3): Ditto.
23051 (mmx_gt<mode>3): Ditto.
23052 (mmx_andnot<mode>3): Ditto.
23053 (*mmx_<code><mode>3): Ditto.
23054 (*mmx_pinsrw): Ditto.
23055 (*mmx_pextrw): Ditto.
23056 (mmx_pshufw_1): Ditto.
23057 (*mmx_uavgv8qi3): Ditto.
23058 (*mmx_uavgv4hi3): Ditto.
23059 ("mmx_psadbw): Ditto.
23060 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23061 (sse_cvttps2pi): Ditto.
23062 (ssse3_pmaddubsw): Ditto.
23063 (*ssse3_pmulhrswv4hi3): Ditto.
23064 (ssse3_psign<mode>3): Ditto.
23066 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23068 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23069 adjustment for bit-fields to all aggregate types.
23071 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23073 * config/rs6000/predicates.md (pcrel_address): Use
23074 SYMBOL_REF_LOCAL_P to determine if a label is local.
23075 (pcrel_external_address): New predicate.
23076 (non_prefixed_mem_operand): Delete, predicate not used.
23077 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23078 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23080 (SYMBOL_REF_PCREL_P): Likewise.
23083 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23085 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23086 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23087 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23089 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23091 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23092 override on extra_headers.
23094 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23096 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23097 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23099 (darwin_driver_init): Likewise.
23101 2019-06-28 Jan Beulich <jbeulich@suse.com>
23103 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23104 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23105 Eliminate redundant alternative.
23107 2019-06-28 Jan Beulich <jbeulich@suse.com>
23109 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23110 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23111 Use vector_operand.
23113 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23115 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23116 having a lower cost regardless of the speed option.
23118 2019-06-28 Jan Beulich <jbeulich@suse.com>
23120 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23121 vector_operand plus, on both alternatives, "Bm" constraint.
23123 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23125 * config/arm/arm.md: Remove redundant constraints from
23126 define_expand but leave reload_inm and reload_outm patterns
23127 untouched since they need special constraints to work.
23128 * config/arm/arm-fixed.md: Remove redundant constraints from
23130 * config/arm/iwmmxt.md: Likewise.
23131 * config/arm/neon.md: Likewise.
23132 * config/arm/sync.md: Likewise.
23133 * config/arm/thumb1.md: Likewise.
23134 * config/arm/vec-common.md: Likewise.
23136 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23138 * doc/install.texi: Document --disable-tm-clone-registry.
23140 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23143 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23146 PR tree-optimization/91010
23147 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23148 return true. Otherwise, don't call operand_equal_p if offset1 or
23149 offset2 is NULL and just return false.
23151 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23153 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23154 user-specified float mode choice for kernel mode code.
23156 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23158 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23161 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23163 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23164 use longcall for 64b code.
23166 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23168 * builtins.c (get_memory_rtx): Fix comment.
23169 * optabs.def (movmem_optab): Change to cpymem_optab.
23170 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23171 (emit_block_move_hints): Change movmem to cpymem.
23172 * defaults.h: Change movmem to cpymem.
23173 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23174 (default_use_by_pieces_infrastructure_p): Ditto.
23175 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23176 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23178 * config/aarch64/aarch64.h: Change movmem to cpymem.
23179 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23180 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23181 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23183 * config/arc/arc-protos.h: Change movmem to cpymem.
23184 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23185 * config/arc/arc.h: Change movmem to cpymem in comment.
23186 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23187 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23188 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23189 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23190 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23191 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23192 * config/avr/avr-protos.h: Change movmem to cpymem.
23193 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23194 avr_out_movmem): Change movmem to cpymem.
23195 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23196 Change movmem to cpymem.
23197 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23198 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23199 Change movmem to cpymem.
23200 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23201 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23202 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23203 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23204 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23205 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23206 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23207 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23208 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23209 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23210 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23211 expand_small_cpymem_or_setmem,
23212 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23213 expand_set_or_cpymem_constant_prologue,
23214 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23215 * config/i386/i386-protos.h: Change movmem to cpymem.
23216 * config/i386/i386.h: Change movmem to cpymem in comment.
23217 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23218 (setmem<mode>): Change expansion function name.
23219 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23220 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23221 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23222 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23223 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23224 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23225 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23227 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23228 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23229 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23230 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23231 Change movmem to cpymem.
23232 * config/mips/mips.h: Change movmem to cpymem.
23233 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23234 * config/nds32/nds32-memory-manipulation.c
23235 (nds32_expand_movmemsi_loop_unknown_size,
23236 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23237 nds32_expand_movmemsi_unroll,
23238 nds32_expand_movmemsi): Change movmem to cpymem.
23239 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23240 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23241 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23242 (pa_adjust_insn_length): Change call to compute_movmem_length.
23243 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23244 movmemdi, movmemdi_prereload,
23245 movmemdi_postreload): Change movmem to cpymem.
23246 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23247 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23248 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23249 * config/riscv/riscv.h: Change movmem to cpymem.
23250 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23251 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23252 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23254 * config/s390/s390-protos.h: Change movmem to cpymem.
23255 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23256 s390_expand_insv): Change movmem to cpymem.
23257 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23258 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23259 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23260 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23261 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23262 for nonexistent function.
23263 * config/vax/vax.h: Change movmem to cpymem in comment.
23264 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23265 * config/visium/visium.h: Change movmem to cpymem in comment.
23266 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23267 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23268 * doc/md.texi: Change movmem to cpymem and update description to match.
23269 * doc/rtl.texi: Change movmem to cpymem.
23270 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23271 * doc/tm.texi: Regenerate.
23273 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23275 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23276 -fvariable-expansion-in-unroller by default.
23277 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23280 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23283 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23284 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23286 * config.gcc(rs6000-*-*): Define target_gtfiles.
23288 2019-06-27 Jan Hubicka <jh@suse.cz>
23290 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23291 (add_type_duplicate): When odr hash is not allocated, to nothing.
23292 (odr_based_tbaa_p): New function.
23293 (set_type_canonical_for_odr_type): New function.
23294 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23295 set_type_canonical_for_odr_type): New.
23296 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23297 ODR based TBAA are not equivalent to non-ODR types.
23299 2019-06-27 Martin Liska <mliska@suse.cz>
23301 PR tree-optimization/90974
23302 PR rtl-optimization/90975
23303 PR rtl-optimization/90976
23305 PR tree-optimization/91017
23306 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23308 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23309 initial commit of IRA.
23310 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23312 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23313 Remove unused mode1.
23314 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23317 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23320 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23321 instead of register_operand for operands[1], add m to its constraints
23322 if operands[2] uses "C" constraint. Ensure in condition that if
23323 operands[2] is not 0, then operands[1] is not a MEM. For last two
23324 alternatives, use unaligned loads instead of aligned if operands[1] is
23325 misaligned_operand.
23327 2019-06-27 Martin Liska <mliska@suse.cz>
23329 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23331 * bt-load.c (move_btr_def): Likewise.
23332 * builtins.c (expand_builtin_apply_args_1): Likewise.
23333 (expand_builtin_apply): Likewise.
23334 * cfgexpand.c (expand_asm_stmt): Likewise.
23335 (construct_init_block): Likewise.
23336 * cfghooks.c (verify_flow_info): Likewise.
23337 * cfgloopmanip.c (remove_path): Likewise.
23338 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23339 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23340 * combine.c (simplify_if_then_else): Likewise.
23341 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23342 (choose_basereg): Likewise.
23343 (ix86_expand_prologue): Likewise.
23344 (ix86_preferred_output_reload_class): Likewise.
23345 * cselib.c (cselib_record_sets): Likewise.
23346 * df-scan.c (df_scan_alloc): Likewise.
23347 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23348 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23349 * emit-rtl.c (try_split): Likewise.
23350 * graphite-scop-detection.c (assign_parameter_index_in_region):
23352 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23353 * ira-color.c (setup_profitable_hard_regs): Likewise.
23354 * ira.c (rtx_moveable_p): Likewise.
23355 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23356 * read-rtl.c (read_subst_mapping): Likewise.
23357 * regrename.c (scan_rtx): Likewise.
23358 * reorg.c (fill_slots_from_thread): Likewise.
23359 * tree-inline.c (tree_function_versioning): Likewise.
23360 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23361 * tree-ssa-sink.c (statement_sink_location): Likewise.
23362 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23363 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23364 (vect_create_epilog_for_reduction): Likewise.
23365 * tree.c (build_nonstandard_integer_type): Likewise.
23367 2019-06-27 Richard Biener <rguenther@suse.de>
23369 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23371 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23373 PR tree-optimization/89772
23374 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23375 out-of-bound accesses checking.
23377 2019-06-27 Martin Liska <mliska@suse.cz>
23379 PR tree-optimization/91014
23380 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23381 when LHS is NULL_TREE.
23383 2019-06-27 Martin Liska <mliska@suse.cz>
23385 * symbol-summary.h (traverse): Pass
23386 argument a to the call of callback.
23387 (gt_ggc_mx): Mark arguments as unused.
23388 (gt_pch_nx): Likewise.
23390 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23393 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23396 2019-06-26 Jeff Law <law@redhat.com>
23398 PR tree-optimization/90883
23399 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23400 (delete_dead_or_redundant_assignment): Likewise.
23402 PR tree-optimization/90883
23403 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23404 * tree-ssa-dse.c: Update various comments to distinguish between
23405 dead and redundant stores.
23406 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23407 (dse_optimize_redundant_stores): New function.
23408 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23409 Distinguish between dead and redundant calls in dump output. All
23411 (delete_dead_or_redundant_assignment): Similarly for assignments.
23412 (dse_optimize_stmt): Handle _CHK variants. For statements which
23413 store 0 into multiple memory locations, try to prove a subsequent
23414 store is redundant.
23416 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23419 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23420 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23422 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23424 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23425 (branch_islands): New extern.
23426 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23427 * config/rs6000/rs6000.c: .. here.
23429 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23431 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23432 (powerpc*-*-*) ... to here.
23434 2019-06-26 Jeff Law <law@redhat.com>
23436 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23437 memcpy, memmove and memset builtins.
23438 (maybe_trim_memstar_call): Likewise.
23440 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23442 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23444 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23446 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23448 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23450 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23452 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23454 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23457 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23459 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23461 2019-06-26 Richard Biener <rguenther@suse.de>
23464 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23466 2019-06-26 Richard Biener <rguenther@suse.de>
23468 * lto-streamer.h (lto_bitmap_alloc): Remove.
23469 (lto_bitmap_free): Likewise.
23470 * lto-streamer.c (lto_bitmap_alloc): Remove.
23471 (lto_bitmap_free): Likewise.
23472 (lto_obstack): Likewise.
23473 (lto_obstack_initialized): Likewise.
23474 * lto-streamer-out.c (lto_output): Use own obstack for local
23475 bitmap, free it consistently.
23477 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23480 * config/i386/sse.md
23481 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23482 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23483 insns if operands[2] is misaligned_operand.
23485 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23487 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23489 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23492 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23494 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23496 2019-06-26 Martin Liska <mliska@suse.cz>
23498 PR tree-optimization/90973
23499 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23500 epilogue_cost_vec instead of prologue_cost_vec for
23503 2019-06-26 Martin Liska <mliska@suse.cz>
23505 * bb-reorder.c (connect_better_edge_p): Add missing else
23506 statement in the middle of if-else statements.
23508 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23509 H.J. Lu <hongjiu.lu@intel.com>
23510 Olga Makhotina <olga.makhotina@intel.com>
23512 * common/config/i386/i386-common.c
23513 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23514 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23515 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23516 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23517 (ix86_handle_option): Handle -mavx512vp2intersect.
23518 * config/i386/avx512vp2intersectintrin.h: New.
23519 * config/i386/avx512vp2intersectvlintrin.h: New.
23520 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23521 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23522 AVX512VP2INTERSECT.
23523 * config/i386/i386-builtin-types.def: Add new types.
23524 * config/i386/i386-builtin.def: Add new builtins.
23525 * config/i386/i386-builtins.c: (enum processor_features): Add
23526 F_AVX512VP2INTERSECT.
23527 (static const _isa_names_table isa_names_table): Ditto.
23528 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23529 __AVX512VP2INTERSECT__.
23530 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23531 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23532 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23533 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23534 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23535 * config/i386/i386-options.c (ix86_target_string): Add
23536 -mavx512vp2intersect.
23537 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23538 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23539 P2HImode and P2QImode.
23540 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23541 number for P2QImode and P2HImode.
23542 (ix86_regmode_natural_size): New function.
23543 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23544 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23545 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23546 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23547 * config/i386/i386.opt: Add -mavx512vp2intersect.
23548 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23549 avx512vp2intersectvlintrin.h.
23550 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23551 (define_mode_iterator VI48_AVX512VP2VL): New.
23552 (avx512vp2intersect_2intersect<mode>,
23553 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23554 * config.gcc: Add avx512vp2intersectvlintrin.h and
23555 avx512vp2intersectintrin.h to extra_headers.
23556 * doc/invoke.texi: Document -mavx512vp2intersect.
23558 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23560 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23562 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23564 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23565 savres_routine_syms, savres_routine_name, morestack_ref,
23566 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23567 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23568 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23569 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23570 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23571 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23572 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23573 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23574 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23575 get_stack_clash_protection_probe_interval,
23576 get_stack_clash_protection_guard_size,
23577 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23578 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23579 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23580 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23581 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23582 gen_frame_mem_offset, rs6000_savres_routine_name,
23583 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23584 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23585 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23586 rs6000_global_entry_point_prologue_needed_p,
23587 rs6000_get_separate_components, rs6000_components_for_bb,
23588 rs6000_disqualify_components, rs6000_emit_prologue_components,
23589 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23590 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23591 rs6000_output_savres_externs, rs6000_output_function_prologue,
23592 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23593 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23594 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23595 rs6000_output_function_epilogue, gen_add3_const,
23596 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23597 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23599 (machine_function): Moved to rs6000.h.
23600 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23602 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23603 savres_routine_syms, savres_routine_name, morestack_ref,
23604 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23605 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23606 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23607 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23608 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23609 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23610 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23611 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23612 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23613 get_stack_clash_protection_probe_interval,
23614 get_stack_clash_protection_guard_size,
23615 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23616 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23617 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23618 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23619 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23620 gen_frame_mem_offset, rs6000_savres_routine_name,
23621 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23622 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23623 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23624 rs6000_global_entry_point_prologue_needed_p,
23625 rs6000_get_separate_components, rs6000_components_for_bb,
23626 rs6000_disqualify_components, rs6000_emit_prologue_components,
23627 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23628 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23629 rs6000_output_savres_externs, rs6000_output_function_prologue,
23630 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23631 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23632 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23633 rs6000_output_function_epilogue, gen_add3_const,
23634 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23635 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23636 to here from rs6000.c.
23637 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23638 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23639 quad_address_offset_p) Moved to here from rs6000.c.
23640 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23641 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23644 2019-06-25 Martin Liska <mliska@suse.cz>
23646 * hash-table.c (hashtab_chk_error): Move here from ...
23647 * hash-table.h (hashtab_chk_error): ... here.
23649 2019-06-25 Martin Liska <mliska@suse.cz>
23651 PR tree-optimization/90978
23652 * df-scan.c (df_update_entry_block_defs): Remove dead else
23654 (df_update_exit_block_uses): Likewise.
23656 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23657 Andrew Stubbs <ams@codesourcery.com>
23659 * config.gcc (thread_file): Set to gcn for AMD GCN.
23660 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23661 (TARGET_EMUTLS_VAR_INIT): New hook.
23663 2019-06-25 Martin Jambor <mjambor@suse.cz>
23666 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23668 2019-06-25 Richard Biener <rguenther@suse.de>
23670 PR tree-optimization/90930
23671 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23672 into parallel form in the last pass instance.
23674 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23676 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23677 (arc_legitimize_pic_address): Simplify and cleanup the function.
23678 (SYMBOLIC_CONST): Remove.
23679 (prepare_pic_move): Likewise.
23680 (prepare_move_operands): Handle complex mov cases here.
23681 (arc_legitimize_address_0): Remove call to
23682 arc_legitimize_pic_address.
23683 (arc_legitimize_address): Remove call to
23684 arc_legitimize_tls_address.
23685 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23686 (movhi_insn): Likewise.
23688 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23690 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23692 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23693 format of "__intN" types for UINTMAX_TYPE.
23694 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23695 format of "__intN" types for SIZETYPE.
23696 * tree.c (build_common_tree_nodes): Accept "__intN__"
23697 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23698 * doc/invoke.texi: Document that __intN__ disables pedantic
23701 2019-06-25 Jan Hubicka <jh@suse.cz>
23703 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23704 base2_alias_set is non-zero before doing TBAA based disambiguation.
23706 2019-06-25 Martin Liska <mliska@suse.cz>
23708 PR tree-optimization/90973
23709 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23710 of prologue and epilogue.
23712 2019-06-24 Jan Hubicka <jh@suse.cz>
23714 * ipa-utils.h (type_with_linkage_p): Verify that type is
23716 (odr_type_p): Remove extra return.
23717 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23718 hash STRING_FLAG only for arrays and integers.
23719 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23720 Update analogously.
23721 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23723 * print-tree.c (print_node): Print cxx-odr-p
23725 * tree.c (need_assembler_name_p): Also check that type
23727 (verify_type_variant): Update verification of SRING_FLAG;
23728 also check CXX_ODR_P.
23729 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23730 (TYPE_STRING_FLAG): Use it.
23731 (TYPE_CXX_ODR_P): New macro.
23732 * dwarf2out.c (gen_array_type_die): First check that type
23733 is an array and then test string flag.
23735 2019-06-24 Richard Biener <rguenther@suse.de>
23737 PR tree-optimization/90972
23738 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23739 in common code, dealing with STRING_CST properly.
23741 2019-06-24 Richard Biener <rguenther@suse.de>
23743 PR tree-optimization/90930
23744 PR tree-optimization/90316
23745 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23746 decrement of limit.
23748 2019-06-24 Martin Sebor <msebor@redhat.com>
23750 * tree-pretty-print.h: Remove unnecessary punctuation characters
23752 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23754 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23756 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23757 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23758 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23760 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23762 * config/rs6000/darwin.h: Handle GCC target pragma.
23764 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23766 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23768 2019-06-22 Jeff Law <law@redhat.com>
23770 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23772 2019-06-22 Jan Hubicka <jh@suse.cz>
23774 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23775 give up on bitfields; continue searching for different refs
23778 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23780 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23781 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23782 containing the offset as possible simd lane access. Look through
23783 widening conversion. Move the
23784 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23786 2019-06-21 Richard Biener <rguenther@suse.de>
23788 PR tree-optimization/90930
23789 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23790 flag on new stmts to avoid re-processing them.
23792 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23794 PR c++/90875 - added -Wswitch-outside-range option
23795 * doc/invoke.texi (Wswitch-outside-range): Document.
23797 2019-06-21 Jeff Law <law@redhat.com>
23799 PR tree-optimization/90949
23800 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23801 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23803 2019-06-21 Richard Biener <rguenther@suse.de>
23806 * dwarf2out.c (prune_unused_types_walk): Always consider
23807 function-local extern declarations as used.
23809 2019-06-21 Richard Biener <rguenther@suse.de>
23811 PR tree-optimization/90913
23812 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23813 the scalar variant of if-conversion versioning.
23815 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23817 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23818 create another "omp scan inscan exclusive" array if
23819 !ctx->scan_inclusive.
23820 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23821 (lower_omp_scan): Likewise.
23822 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23823 2-bit bitfield for simd_lane_access_p member.
23824 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23825 aux == (void *)-4 as simd lane access.
23826 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23827 comment with permutations to show the canonical permutation order.
23828 (vectorizable_scan_store): Handle exclusive scan.
23829 (vectorizable_store): Call vectorizable_scan_store even for
23830 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23832 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23833 "omp simd array" arrays with one byte elements.
23835 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23837 * config/alpha/alpha.md (@unaligned_store<mode>):
23838 Rename from unaligned_store<mode>.
23839 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23840 * config/alpha/sync.md (@load_locked_<mode>): Rename
23841 from load_locked_<mode>.
23842 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23843 (@atomic_compare_and_swap<mode>_1): Rename
23844 from atomic_compare_and_swap<mode>_1.
23845 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23846 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23847 Use gen_reload_in_aligned and gen_unaligned_store.
23848 (emit_load_locked): Remove.
23849 (emit_store_conditional): Ditto.
23850 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23851 (alpha_split_compare_and_swap): Ditto.
23852 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23853 (alpha_split_compare_and_swap_12): Use gen_load_locked
23854 and gen_store_conditional.
23855 (alpha_split_atomic_exchange): Ditto.
23856 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23857 (alpha_split_atomic_exchange_12): Use gen_load_locked
23858 and gen_store_conditional.
23860 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23862 * config/aarch64/aarch64-errata.h: New file.
23863 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23864 (CA53_ERR_843419_SPEC): Delete.
23865 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23866 * config/aarch64/aarch64-linux.h: Likewise.
23867 * config/aarch64/aarch64-netbsd.h: Likewise.
23868 * config/aarch64/aarch64-freebsd.h: Likewise.
23870 2019-06-20 Marek Polacek <polacek@redhat.com>
23872 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23874 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23876 * config/rs6000/rs6000.md (isa attribute): Add support for
23877 for a future processor.
23879 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23882 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23883 standard scalar operation pattern for V2DF.
23884 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23885 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23886 (*ieee_<ieee_maxmin><mode>3): Likewise.
23887 (vec_setv2df_0): Likewise.
23889 2019-06-20 Jan Hubicka <jh@suse.cz>
23891 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23892 parameter; it has no use in gimple memory model.
23893 (indirect_ref_may_alias_decl_p): Update.
23895 2019-06-20 Martin Liska <mliska@suse.cz>
23897 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23900 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23902 * tree-vect-stmts.c (enum scan_store_kind): New type.
23903 (scan_store_can_perm_p): Change last argument from int * to
23904 vec<enum scan_store_kind> *, record precisely which permutations
23905 need whole vector left shift or that plus VEC_COND_EXPR.
23906 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23907 and additional VEC_COND_EXPR only for those iterations that need it.
23909 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23911 * config.gcc: Fix ARM --with-fpu checking and error message.
23913 2019-06-19 Marek Polacek <polacek@redhat.com>
23915 PR c++/60364 - noreturn after first decl not diagnosed.
23916 * attribs.c (get_attribute_namespace): No longer static.
23917 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23919 (attr_noreturn_exclusions): Make it extern.
23920 * attribs.h (get_attribute_namespace): Declare.
23921 * tree-inline.c (function_attribute_inlinable_p): Use
23922 get_attribute_name.
23924 2019-06-19 Martin Sebor <msebor@redhat.com>
23926 PR tree-optimization/90626
23927 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23929 PR tree-optimization/90626
23930 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23931 (handle_builtin_string_cmp): Call it.
23933 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23935 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23936 and DARWIN_NOPIE_SPEC.
23937 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23938 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23939 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23940 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23941 (DARWIN_EXPORT_DYNAMIC): Delete.
23942 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23943 and pie options processing to darwin.h.
23944 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23946 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23948 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23949 in computing the number of options to be moved.
23951 2019-06-19 Maya Rashish <coypu@sdf.org>
23953 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23954 (CLEAR_INSN_CACHE) Use it.
23956 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23958 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23960 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23962 PR middle-end/84521
23963 * builtins.c (expand_builtin_setjmp_setup): Save
23964 hard_frame_pointer_rtx.
23965 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23967 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23969 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23971 (remove_reg_equal_offset_note): Remove unused function.
23972 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23974 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23975 (arc_builtin_setjmp_frame_value): Remove function.
23976 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23977 (avr_builtin_setjmp_frame_value): Remove function.
23978 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23979 (ix86_builtin_setjmp_frame_value): Remove function.
23980 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23981 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23982 (sparc_builtin_setjmp_frame_value): Remove function.
23983 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23984 (vax_builtin_setjmp_frame_value): Remove function.
23985 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23986 pointer if has_nonlocal_label.
23988 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23990 * doc/md.texi: Document vec_shl_<mode> pattern.
23991 * optabs.def (vec_shl_optab): New optab.
23992 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23993 argument, if == vec_shl_optab, check for left whole vector shift
23994 pattern rather than right shift.
23995 (expand_vec_perm_const): Add vec_shl_optab support.
23996 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23998 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23999 can be handled by vec_shl_optab.
24000 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24001 (check_scan_store): Use it.
24002 (vectorizable_scan_store): If target can't do normal permutations,
24003 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24005 * config/i386/sse.md (vec_shl_<mode>): New expander.
24007 * omp-low.c (lower_rec_input_clauses): Handle references properly
24009 (lower_omp_scan): Likewise.
24011 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24013 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24014 mem_mode is BLKmode.
24016 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24019 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24020 pointer adjustment for the case of no callee-saved registers and
24021 stack frame bigger than 128 bytes.
24023 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24025 PR middle-end/90862
24026 * omp-low.c (check_omp_nesting_restrictions): Handle
24027 GF_OMP_TARGET_KIND_OACC_DECLARE.
24029 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24031 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24032 (@add<mode>3_carry): Rename from add<mode>3_carry.
24033 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24034 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24035 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24036 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24037 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24038 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24039 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24040 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24041 (cmpstrnsi): Use gen_cmp_1.
24042 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24043 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24044 (@umonitor_<mode>): Rename from umonitor_<mode>.
24045 * config/i386/i386-expand.c (ix86_expand_copysign):
24046 Use gen_copysign3_const and gen_copysign3_var.
24047 (ix86_expand_xorsign): Use gen_xorsign3_1.
24048 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24049 gen_sub3_carry_ccgz and gen_cmp1.
24050 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24051 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24052 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24053 (ix86_split_lshr): Ditto.
24054 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24056 2019-06-18 Jason Merrill <jason@redhat.com>
24058 * tree.c (build_constructor): Add MEM_STAT_DECL.
24060 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24062 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24063 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24064 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24065 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24066 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24067 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24068 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24069 Use CC_NZC instead of CC.
24070 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24071 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24072 (aarch64_print_operand): Handle E_CC_NZCmode.
24073 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24074 of gen_set_clobber_cc.
24076 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24078 * config/aarch64/aarch64-sve.md: Tabify file.
24080 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24082 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24083 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24084 * config/aarch64/aarch64-sve.md: Use it.
24086 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24088 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24089 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24090 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24091 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24092 (aarch64_expand_sve_vec_cmp_int): Use it.
24093 (aarch64_expand_sve_vec_cmp_float): Likewise.
24094 * config/aarch64/aarch64-sve.md: Likewise throughout.
24096 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24097 Kugan Vivekanandarajah <kuganv@linaro.org>
24099 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24100 (*cond_<optab><mode>_z): Fold into...
24101 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24102 operand 4 can be tied to operand 0 (either inherently or via RA).
24104 2019-06-18 Richard Biener <rguenther@suse.de>
24107 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24108 as if optimized away.
24110 2019-06-18 Tom de Vries <tdevries@suse.de>
24112 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24113 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24114 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24116 (define_insn "@set_softstack_<mode>"): ... this.
24117 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24118 (define_insn "@omp_simt_enter_<mode>"): ... this.
24119 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24120 (define_insn "@omp_simt_exit_<mode>"): ... this.
24122 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24124 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24125 vf parameter. Restore the previous iv step of nscalars_step,
24126 but give it iv_type rather than compare_type. Tweak code order
24127 to match the comments.
24128 (vect_set_loop_condition_masked): Update accordingly.
24129 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24130 for iv_precision. Tweak comment formatting.
24132 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24134 * config/darwin.c: Strip trailing whitespace.
24136 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24138 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24139 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24141 2019-06-18 Martin Jambor <mjambor@suse.cz>
24144 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24145 caller does not have flag_ipa_cp set.
24147 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24149 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24150 from "*fold_left_plus_<mode>", updated operands order.
24151 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24152 * internal-fn.c (mask_fold_left_direct): New define.
24153 (expand_mask_fold_left_optab_fn): Likewise.
24154 (direct_mask_fold_left_optab_supported_p): Likewise.
24155 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24156 * optabs.def (mask_fold_left_plus_optab): New optab.
24157 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24158 masked internal_fn for a reduction ifn.
24159 (vectorize_fold_left_reduction): Add support for masking reductions.
24161 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24163 PR middle-end/80791
24164 * target.def (predict_doloop_p): New hook.
24165 * targhooks.h (default_predict_doloop_p): New declaration.
24166 * targhooks.c (default_predict_doloop_p): New function.
24167 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24168 * doc/tm.texi: Regenerate.
24169 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24170 (TARGET_PREDICT_DOLOOP_P): New macro.
24171 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24173 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24175 * omp-low.c (struct omp_context): Add scan_inclusive field.
24176 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24178 (struct omplow_simd_context): Add lastlane member.
24179 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24180 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24182 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24183 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24184 (lower_omp_scan): New function.
24185 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24186 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24187 check 3rd argument if present rather than 2nd.
24188 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24189 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24191 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24192 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24194 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24195 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24196 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24198 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24199 IFN_GOMP_SIMD_LANE argument.
24200 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24201 encoded ->aux value.
24202 * tree-vect-stmts.c: Include attribs.h.
24203 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24204 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24206 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24207 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24209 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24212 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24213 (*nabs<mode>2_1): Ditto.
24214 (nabs sse-reg splitter): New splitter.
24215 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24217 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24219 PR bootstrap/90873.
24220 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24223 2019-06-17 Tom de Vries <tdevries@suse.de>
24225 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24226 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24227 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24229 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24231 (define_insn "omp_simt_enter_insn"): Rename to ...
24232 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24233 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24234 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24235 gen_omp_simt_enter_si.
24236 (define_expand "omp_simt_exit"): New.
24237 (define_insn "omp_simt_exit"): Rename to ...
24238 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24241 2019-06-17 Matthew Green <mrg@eterna.com.au>
24242 Maya Rashish <coypu@sdf.org>
24244 * config.gcc (aarch64*-*-netbsd*): New target.
24245 * config/aarch64/aarch64-netbsd.h: New file.
24246 * config/aarch64/t-aarch64-netbsd: Likewise.
24248 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24250 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24251 the access path from base to first VIEW_CONVERT_EXPR or
24254 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24256 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24257 access path on BIT_FIELD_REFs.
24259 2019-06-17 Martin Liska <mliska@suse.cz>
24262 * ipa-utils.h (odr_type_p): Remove dead code.
24264 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24266 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24267 alternative Solaris 11.4 format.
24268 * configure: Regenerate.
24270 2019-06-17 Tom de Vries <tdevries@suse.de>
24272 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24273 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24275 (define_insn "call_value_insn"): Rename to ...
24276 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24278 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24281 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24283 PR middle-end/64242
24284 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24285 frame clobbers and schedule block.
24286 (builtin_longjmp): Likewise.
24288 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24290 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24291 describe how to perform MSPABI compliant 64-bit shift.
24292 * config/msp430/msp430.md (ashldi3): New define_expand.
24293 (ashrdi3): New define_expand.
24294 (lshrdi3): New define_expand.
24296 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24298 * doc/sourcebuild.texi: Document new effective target keyword
24301 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24303 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24304 indirect_refs_may_alias_p): Revert accidental commits.
24306 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24307 at the end of structures.
24309 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24311 * config/darwin.c (machopic_indirect_call_target): Use renamed
24312 darwin_picsymbol_stubs to decide on output.
24313 (darwin_override_options): Handle darwin_picsymbol_stubs.
24314 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24315 (LD64_VERSION): Revise default.
24316 * config/darwin.opt: (mpic-symbol-stubs): New option.
24317 (darwin_picsymbol_stubs): New variable.
24318 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24319 rename to TARGET_MACHO_PICSYM_STUBS.
24320 * config/i386/i386.c (output_pic_addr_const): Likewise.
24321 * config/i386/i386.h Likewise.
24322 * config/rs6000/darwin.h: Likewise.
24323 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24324 darwin_picsymbol_stubs.
24326 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24328 * config/darwin.opt (prebind, noprebind, seglinkedit,
24329 noseglinkedit): Add RejectNegative.
24331 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24333 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24334 in my previous patch.
24336 2019-06-16 Tom de Vries <tdevries@suse.de>
24338 PR tree-optimization/89376
24339 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24341 2019-06-15 Maya Rashish <coypu@sdf.org>
24343 * doc/invoke.texi (Spec Files): Update location of the
24346 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24348 * doc/extend.texi (Common Function Attributes): Clarify
24349 no_sanitize. Fix grammar.
24351 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24353 * tree-ssa-alias.c (alias_stats): Add
24354 nonoverlapping_component_refs_p_may_alias,
24355 nonoverlapping_component_refs_p_no_alias,
24356 nonoverlapping_component_refs_of_decl_p_may_alias,
24357 nonoverlapping_component_refs_of_decl_p_no_alias.
24358 (dump_alias_stats): Dump them.
24359 (nonoverlapping_component_refs_of_decl_p): Add stats.
24360 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24363 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24365 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24366 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24368 (*anddi3_doubleword): Split before reload. Merge with
24369 anddi->zext pre-reload splitter.
24370 (*andndi3_doubleword): Split before reload.
24371 (*<code>di3_doubleword): Ditto.
24372 (*one_cmpldi2_doubleword): Ditto.
24374 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24376 PR middle-end/90779
24377 * gimplify.c: Include omp-offload.h and context.h.
24378 (gimplify_bind_expr): Add "omp declare target" attributes
24379 to static block scope variables inside of target region or target
24382 2019-06-15 Tom de Vries <tdevries@suse.de>
24384 PR tree-optimization/90009
24385 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24386 Return NULL if bb contains IFN_UNIQUE.
24388 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24390 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24391 (un): New define_mode_attr.
24392 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24393 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24394 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24396 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24398 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24400 * config/darwin.opt: Add RejectNegative where needed, reorder
24401 and add minimal functional descriptions.
24403 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24405 PR rtl-optimization/90765
24406 * calls.c (update_stack_alignment_for_call): New function.
24407 (expand_call): Call update_stack_alignment_for_call when
24408 outgoing parameter is passed in the stack.
24409 (emit_library_call_value_1): Likewise.
24410 * function.c (locate_and_pad_parm): Don't update
24411 stack_alignment_needed and preferred_stack_boundary.
24413 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24416 * config/i386/i386-features.c
24417 (dimode_scalar_chain::compute_convert_gain): Replace
24418 mmxsse_to_integer with sse_to_integer.
24419 * config/i386/i386.c (ix86_register_move_cost): Verify that
24420 moves between MMX and non-MMX units require secondary memory.
24421 Correct costs of moves between SSE and integer units.
24422 * config/i386/i386.h (processor_costs): Rename cost of moving
24423 SSE register to integer to sse_to_integer. Rename cost of
24425 2019-06-14 Matt Thomas <matt@3am-software.com>
24426 Matthew Green <mrg@eterna.com.au>
24427 Nick Hudson <skrll@netbsd.org>
24428 Maya Rashish <coypu@sdf.org>
24429 Richard Earnshaw <rearnsha@arm.com>
24431 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24432 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24433 * config/arm/netbsd-eabi.h: New file.
24434 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24436 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24437 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24438 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24439 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24441 2019-06-14 Richard Biener <rguenther@suse.de>
24443 * tree-loop-distribution.c (classify_partition): Return
24444 whether a reduction appeared in all partitions and do not
24445 stop builtin detection because of this.
24446 (distribute_loop): Sort a non-builtin partition last if
24447 there's a reduction in all partitions and make sure the
24448 partition prevailing as last is not a builtin.
24450 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24453 * ipa-prop.c (add_to_agg_contents_list): New function.
24454 (clobber_by_agg_contents_list_p): Likewise.
24455 (extract_mem_content): Likewise.
24456 (get_place_in_agg_contents_list): Delete.
24457 (determine_known_aggregate_parts): Renamed from
24458 determine_locally_known_aggregate_parts. New parameter
24461 2019-06-13 Martin Sebor <msebor@redhat.com>
24463 PR tree-optimization/90662
24464 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24467 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24470 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24471 dbase is not TARGET_MEM_REF.
24473 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24475 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24477 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24478 Do not generate DImode extends for 32bit targets.
24479 (and->zext post-reload splitter): Use gen_extend_insn
24480 instead of indirect functions.
24481 (anddi->zext pre-reload splitter): New.
24482 (*zext<mode>_doubleword_and): Remove.
24483 (*zext<mode>_doubleword): Ditto.
24484 (*zextsi_doubleword): Dittto.
24486 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24488 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24489 Use gen_sub3_insn instead of indirect function.
24490 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24492 (ix86_adjust_counter): Ditto.
24494 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24495 Lijia He <helijia@linux.ibm.com>
24497 PR tree-optimization/77820
24498 * tree-ssa-threadedge.c
24499 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24501 (thread_across_edge): Add call to
24502 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24504 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24506 * config/darwin-driver.c (validate_macosx_version_min): New.
24507 (darwin_default_min_version): Cleanup and validate supplied version.
24508 (darwin_driver_init): Likewise and push cleaned version into opts.
24510 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24512 PR tree-optimization/90869
24513 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24514 converts in MEM_REF referencing decl rather than view converts
24515 from decl type to MEM_REF type.
24517 2019-06-13 Richard Biener <rguenther@suse.de>
24519 PR tree-optimization/90856
24520 * tree-sra.c (build_ref_for_model): Only use
24521 build_reconstructed_reference when address-spaces are the same.
24523 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24525 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24526 wrap ei variable name in the declaration in ()s.
24527 (nvptx_single): Actually use mode_label variable. Formatting fix.
24529 2019-06-13 Richard Biener <rguenther@suse.de>
24531 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24532 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24533 also return the condition stmt.
24534 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24535 loop we can version and version that, reusing the loop version
24536 created by if-conversion instead of versioning again.
24538 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24540 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24542 * tree-vrp (value_range_base::may_contain_p): Call into
24543 value_inside_range.
24544 (value_inside_range): Make private inside value_range_base class.
24545 Take min/max from *this.
24546 (range_includes_p): Remove.
24547 * tree-vrp.h (value_range_base): Add value_inside_range.
24548 (range_includes_p): Remove.
24549 (range_includes_zero_p): Call may_contain_p.
24550 * vr-values.c (compare_range_with_value): Same.
24552 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24554 * doc/extend.texi (ARC Function Attributes): Update info.
24556 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24558 PR tree-optimization/89713
24559 * doc/invoke.texi (-ffinite-loops): Document new option.
24560 * common.opt (-ffinite-loops): New option.
24561 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24562 IFN_GOACC_LOOP calls as necessary.
24563 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24565 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24566 IFN_GOACC_LOOP call is not used.
24567 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24569 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24572 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24573 compare_type is not with Pmode size, we will create an IV with
24574 Pmode size with truncated use (i.e. converted to the correct type).
24575 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24576 (vect_iv_limit_for_full_masking): New. Factored out of
24577 vect_set_loop_condition_masked.
24578 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24579 (vect_iv_limit_for_full_masking): Declare.
24581 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24584 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24585 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24586 (get_alias_ptr_type_for_ptr_address): Likewise.
24587 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24588 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24589 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24592 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24594 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24596 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24598 * common/config/pru/pru-common.c: New file.
24599 * config.gcc: Add PRU target.
24600 * config/pru/alu-zext.md: New file.
24601 * config/pru/constraints.md: New file.
24602 * config/pru/predicates.md: New file.
24603 * config/pru/pru-opts.h: New file.
24604 * config/pru/pru-passes.c: New file.
24605 * config/pru/pru-pragma.c: New file.
24606 * config/pru/pru-protos.h: New file.
24607 * config/pru/pru.c: New file.
24608 * config/pru/pru.h: New file.
24609 * config/pru/pru.md: New file.
24610 * config/pru/pru.opt: New file.
24611 * config/pru/t-pru: New file.
24612 * doc/extend.texi: Document PRU pragmas.
24613 * doc/invoke.texi: Document PRU-specific options.
24614 * doc/md.texi: Document PRU asm constraints.
24616 2019-06-12 Martin Sebor <msebor@redhat.com>
24618 PR middle-end/90676
24619 * tree-pretty-print.c (dump_mem_ref): New function. Include
24620 MEM_REF type in output when different size than operand.
24621 (dump_generic_node): Move code to dump_mem_ref and call it.
24623 2019-06-12 Martin Sebor <msebor@redhat.com>
24625 PR tree-optimization/90662
24626 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24629 2019-06-12 Tom de Vries <tdevries@suse.de>
24631 PR tree-optimization/90009
24632 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24634 2019-06-12 Martin Liska <mliska@suse.cz>
24636 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24638 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24639 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24640 Do not sanitize created maps.
24642 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24644 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24645 value_range::singleton_p.
24646 * tree-vrp.c (value_range_constant_singleton): Remove.
24647 * tree-vrp.h (value_range_constant_singleton): Remove.
24648 * vr-values.c (vr_values::singleton): Use
24649 value_range::singleton_p.
24651 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24654 * cfgexpand.c (align_local_variable): Add really_expand argument,
24655 don't SET_DECL_ALIGN if it is false.
24656 (add_stack_var): Add really_expand argument, pass it through to
24657 align_local_variable.
24658 (expand_one_stack_var_1): Pass true as really_expand to
24659 align_local_variable.
24660 (expand_one_ssa_partition): Pass true as really_expand to
24662 (expand_one_var): Pass really_expand through to add_stack_var.
24664 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24666 * config/arm/iterators.md (VABAL): New int iterator.
24667 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24668 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24669 UNSPEC_VABAL_U values.
24671 2019-06-12 Martin Liska <mliska@suse.cz>
24673 * value-prof.c (stream_out_histogram_value): Only first value
24676 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24679 * symtab.c (symtab_node::set_section): Allow being called on aliases
24680 as long as they aren't analyzed yet.
24682 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24684 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24685 to `mips_set_text_contents_type' to indicate whether a
24686 non-debug insn follows.
24688 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24690 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24691 enabling -mpcrel by default.
24692 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24693 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24694 that the test against -mcpu=future is done first. Then test if
24695 -mprefixed-addr is on for -mpcrel.
24696 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24698 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24701 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24702 instead of and.u%d.
24704 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24706 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24708 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24710 PR c++/90449 - add -Winaccessible-base option.
24711 * doc/invoke.texi (Winaccessible-base): Document.
24713 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24715 PR tree-optimization/62041
24716 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24718 2019-06-11 Jason Merrill <jason@redhat.com>
24720 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24721 * tree.c (get_tree_code_name): Likewise.
24722 * print-tree.c (print_node): Only briefly print a node with an
24725 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24728 * trans-mem.c (tm_memopt_compute_available): Add assertion
24729 that blocks is not empty. Formatting fix.
24731 2019-06-11 Martin Liska <mliska@suse.cz>
24734 * hash-table.h: Extend create_gcc, add one parameter
24735 that is passed into hash_table::hash_table.
24737 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24739 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24741 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24742 Emit clobber also for non-sse operations.
24743 (ix86_split_fp_absneg_operator): New function.
24744 * config/i386/i386.md (SSEMODEF): New mode iterator.
24745 (ssevecmodef): New mode attribute.
24746 (<code>tf2): Use absneg code iterator.
24747 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24748 Add three-operand AVX alternatives.
24749 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24750 Use absneg code iterator and X87MODEF mode iterator.
24751 (absneg fp_reg non-sse splitter): Call absneg code iterator
24752 and X87MODEF mode iterator.
24753 (absneg general_reg non-sse splitter): Use absneg code iterator
24754 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24755 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24756 code iterator. Add three-operand AVX alternative.
24757 (absneg sse_reg splitter): Use absneg code iterator
24758 and SSEMODEF mode iterator. Handle AVX operands.
24759 (absneg fp_reg splitter): Use absneg code iterator
24760 and MODEF mode iterator.
24761 (absneg general_reg splitter): Merge splitters using MODEF mode
24762 iterator. Use absneg code iterator. Call
24763 ix86_split_fp_absneg_operator.
24764 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24765 Do not enable for non-sse modes before reload.
24766 (CSGNMODE): Remove.
24767 (CSGNVMODE): Ditto.
24768 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24769 ssevecmodef mode attribute instaed of CSGNVMODE.
24770 (copysign<mode>3_const): Ditto.
24771 (copysign<mode>3_var): Ditto.
24772 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24773 Use absneg code iterator. Simplify code using std::swap.
24774 * config/i386/predicates.md (absneg_operator): Remove.
24776 2019-06-10 Martin Sebor <msebor@redhat.com>
24778 * gimple-fold.c (get_range_strlen): Update comment that didn't
24779 make it into r267503 or related commits.
24781 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24783 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24784 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24786 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24788 * tree.def (OMP_SCAN): New tree code.
24789 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24790 OMP_CLAUSE_EXCLUSIVE.
24791 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24792 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24793 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24794 OMP_CLAUSE_{IN,EX}CLUSIVE.
24795 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24796 * tree-nested.c (convert_nonlocal_reference_stmt,
24797 convert_local_reference_stmt, convert_gimple_call): Handle
24799 * tree-pretty-print.c (dump_omp_clause): Handle
24800 OMP_CLAUSE_{IN,EX}CLUSIVE.
24801 (dump_generic_node): Handle OMP_SCAN.
24802 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24803 * gimple.h (gomp_scan): New type.
24804 (is_a_helper <gomp_scan *>::test,
24805 is_a_helper <const gomp_scan *>::test): New templates.
24806 (gimple_build_omp_scan): Declare.
24807 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24808 gimple_omp_scan_set_clauses): New inline functions.
24809 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24810 * gimple.c (gimple_build_omp_scan): New function.
24811 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24812 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24813 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24814 GIMPLE_OMP_TASKGROUP.
24815 (dump_gimple_omp_scan): New function.
24816 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24817 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24818 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24819 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24820 (is_gimple_stmt): Handle OMP_SCAN.
24821 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24822 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24823 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24824 mentioned in nested #pragma omp scan. Handle
24825 OMP_CLAUSE_{IN,EX}CLUSIVE.
24826 (gimplify_expr): Handle OMP_SCAN.
24827 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24828 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24830 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24833 2019-06-10 Martin Liska <mliska@suse.cz>
24835 * ipa-cp.c (ignore_edge_p): New function.
24836 (build_toporder_info): Use it.
24837 * ipa-inline.c (ignore_edge_p): New function.
24838 (inline_small_functions): Use it.
24839 * ipa-pure-const.c (ignore_edge_for_nothrow):
24840 Verify opt_for_fn for caller and callee.
24841 (ignore_edge_for_pure_const): Likewise.
24842 * ipa-reference.c (ignore_edge_p): Extend to check
24844 * ipa-utils.c (searchc): Refactor.
24845 * ipa-utils.h: Fix coding style.
24847 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24849 * config/arc/arc.c (arc_rtx_costs): Update costs.
24851 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24853 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24854 (arc_split_ior): Likewise.
24855 (arc_check_mov_const): Likewise.
24856 (arc_split_mov_const): Likewise.
24857 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24858 (arc_rtx_costs): Replace check Crr with Cax constraint.
24859 (prepare_move_operands): Cleanup, remove unused code.
24860 (arc_split_ior): New function.
24861 (arc_check_ior_const): Likewise.
24862 (arc_split_mov_const): Likewise.
24863 (arc_check_mov_const): Likewise.
24864 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24865 in define_insn_and_split pattern.
24866 (iorsi3): Likewise.
24867 (mulsi3_v2): Add new matching variant.
24868 (andsi3_i): Cleanup pattern.
24869 (rotrsi3_cnt1): Update pattern.
24870 (rotrsi3_cnt8): New pattern.
24871 (ashlsi2_cnt8): Likewise.
24872 (ashlsi2_cnt16): Likewise.
24873 * config/arc/constraints.md (C0p): Update constraint.
24875 (C0x): New pattern.
24876 (Cax): New pattern.
24878 2019-06-10 Martin Liska <mliska@suse.cz>
24880 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24881 Update coding style.
24882 (sem_item_optimizer::dump_cong_classes):
24883 Print how many items are in a non-singular class. Improve
24886 2019-06-10 Martin Liska <mliska@suse.cz>
24888 * value-prof.c (dump_histogram_value): Change dump format.
24889 (gimple_mod_subtract_transform): Remove legacy comment.
24891 2019-06-10 Martin Liska <mliska@suse.cz>
24893 * value-prof.c (dump_histogram_value): Print histogram values
24896 2019-06-10 Martin Liska <mliska@suse.cz>
24898 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24899 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24900 * ipa-profile.c (ipa_profile_generate_summary):
24901 Use get_most_common_single_value.
24902 * tree-profile.c (gimple_init_gcov_profiler):
24903 Instrument with __gcov_one_value_profiler_v2
24904 and __gcov_indirect_call_profiler_v4.
24905 * value-prof.c (dump_histogram_value):
24906 Print all values for HIST_TYPE_SINGLE_VALUE.
24907 (stream_out_histogram_value): Update assert for
24909 (stream_in_histogram_value): Set number of
24910 counters for HIST_TYPE_SINGLE_VALUE.
24911 (get_most_common_single_value): New.
24912 (gimple_divmod_fixed_value_transform):
24913 Use get_most_common_single_value.
24914 (gimple_ic_transform): Likewise.
24915 (gimple_stringops_transform): Likewise.
24916 (gimple_find_values_to_profile): Set number
24917 of counters for HIST_TYPE_SINGLE_VALUE.
24918 * value-prof.h (get_most_common_single_value): New.
24920 2019-06-10 Martin Liska <mliska@suse.cz>
24922 * hash-map.h: Pass default value to hash_table ctor.
24923 * hash-table.h: Add default value to call of a ctor.
24925 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24927 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24928 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24930 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24933 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24934 Call pa_output_function_label.
24935 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24936 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24937 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24939 (pa_linux_output_function_prologue): Declare.
24940 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24941 (pa_output_function_label): New.
24942 (pa_output_function_prologue): Revise to use pa_output_function_label.
24943 (pa_linux_output_function_prologue): New.
24944 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24946 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24948 * tree-vrp.h (value_range_base::intersect): New.
24949 (value_range::intersect_helper): Move from here...
24950 (value_range_base::intersect_helper): ...to here.
24951 * tree-vrp.c (value_range::intersect_helper): Rename to...
24952 (value_range_base::intersect_helper): ...this, and rewrite to
24953 return a value instead of modifying THIS in place.
24954 Also, move equivalence handling...
24955 (value_range::intersect): ...here, while calling intersect_helper.
24956 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24958 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24960 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24962 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24964 * Makefile.in (genprogerr): Add condmd.
24965 (genprog): Remove it here.
24967 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24969 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24971 2019-06-07 Richard Biener <rguenther@suse.de>
24974 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24975 that appear after user labels.
24977 2019-06-07 Martin Liska <mliska@suse.cz>
24979 * cselib.c (cselib_init): Disable hash table
24981 * hash-set.h: Pass new default argument to m_table.
24982 * hash-table.c: Add global variable with hash table
24983 sanitization limit.
24984 * hash-table.h (Allocator>::hash_table): Add new argument
24986 (hashtab_chk_error): New.
24987 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24988 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24989 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24991 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24993 * common.opt (flto-odr-type-merging): Ignore.
24994 * invoke.texi (-flto-odr-type-merging): Remove.
24995 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24996 (can_be_vtable_hashed_p): Remove.
24997 (hash_odr_vtable): Remove.
24998 (odr_vtable_hasher::hash): Remove.
24999 (types_same_for_odr): Remove.
25000 (types_odr_comparable): Remove.
25001 (odr_vtable_hasher::equal): Remove.
25002 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25003 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25004 (get_odr_type): Do not use vtable hash.
25005 (dump_odr_type): Remove commented out code.
25006 (build_type_inheritance_graph): Do not allocate vtable hash.
25007 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25008 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25009 (odr_type_p): Likewise.
25010 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25013 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25015 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25016 immediately after same_types_for_tbaa_p returns -1 and continue
25017 looking for possible exact match; if matching types are arrays
25018 watch for partial overlaps.
25019 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25020 (indirect_refs_may_alias_p): Do type based disambiguation first;
25023 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25025 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25027 2019-06-07 Martin Liska <mliska@suse.cz>
25029 * doc/invoke.texi: Remove param.
25030 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25032 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25033 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25034 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25035 * profile.c (instrument_values): Remove
25036 HIST_TYPE_INDIR_CALL_TOPN.
25037 * tree-profile.c (init_ic_make_global_vars):
25038 Always build __gcov_indirect_call only.
25039 (gimple_init_gcov_profiler): Remove usage
25040 of PARAM_INDIR_CALL_TOPN_PROFILE.
25041 (gimple_gen_ic_profiler): Likewise.
25042 * value-prof.c (dump_histogram_value): Likewise.
25043 (stream_in_histogram_value): Likewise.
25044 (gimple_indirect_call_to_profile): Likewise.
25045 (gimple_find_values_to_profile): Likewise.
25046 * value-prof.h (enum hist_type): Likewise.
25048 2019-06-07 Martin Liska <mliska@suse.cz>
25050 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25053 2019-06-07 Martin Liska <mliska@suse.cz>
25055 PR tree-optimization/78902
25056 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25057 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25058 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25059 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25060 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25061 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25062 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25063 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25064 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25065 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25066 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25067 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25068 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25070 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25071 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25072 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25073 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25074 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25075 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25076 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25077 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25078 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25079 warn_unused_result attribute.
25080 (BUILT_IN_STRDUP): Likewise.
25081 (BUILT_IN_STRNDUP): Likewise.
25082 (BUILT_IN_ALLOCA): Likewise.
25083 (BUILT_IN_CALLOC): Likewise.
25084 (BUILT_IN_MALLOC): Likewise.
25085 (BUILT_IN_REALLOC): Likewise.
25087 2019-06-06 Jim Wilson <jimw@sifive.com>
25090 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25091 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25092 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25094 2019-06-06 Martin Sebor <msebor@redhat.com>
25096 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25097 (handle_builtin_malloc): Remove trailing spaces.
25098 (handle_builtin_memset): Same.
25099 (handle_builtin_memcmp): Same.
25100 (compute_string_length): Same.
25101 (determine_min_objsize): Same.
25102 (handle_builtin_string_cmp): Same.
25103 (handle_char_store): Same. Break up excessively long line.
25105 2019-06-06 Martin Jambor <mjambor@suse.cz>
25107 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25110 2019-06-06 Martin Jambor <mjambor@suse.cz>
25112 * tree-sra.c (struct access): New field grp_same_access_path.
25113 (dump_access): Dump it.
25114 (build_reconstructed_reference): New function.
25115 (build_ref_for_model): Use it if possible.
25116 (path_comparable_for_same_access): New function.
25117 (same_access_path_p): Likewise.
25118 (sort_and_splice_var_accesses): Set the new flag.
25119 (analyze_access_subtree): Likewise.
25120 (propagate_subaccesses_across_link): Propagate zero value of the new
25121 flag down the access tree.
25123 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25125 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25126 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25127 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25128 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25131 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25133 PR tree-optimization/90332
25134 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25135 Handle VALS containing two vectors.
25136 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25138 (@aarch64_combinez<mode>): ... This.
25139 (*aarch64_combinez_be<mode>): Rename to...
25140 (@aarch64_combinez_be<mode>): ... This.
25141 (vec_init<mode><Vhalf>): New define_expand.
25142 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25144 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25146 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25147 library functions only when not optimizing for size.
25148 (ashlsi3): Likewise.
25149 (ashrhi3): Likewise.
25150 (ashrsi3): Likewise.
25151 (lshrhi3): Likewise.
25152 (lshrsi3): Likewise.
25154 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25156 PR rtl-optimization/88751
25157 * ira.c (ira): Use the number of the actually referenced registers
25158 when calculating the threshold.
25160 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25162 * configure: Regenerate.
25164 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25166 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25167 register if it is in memory, so the shift can be emulated with a rotate
25169 (ashrhi3): Likewise.
25170 (lshrhi3): Likewise.
25172 2019-06-06 Martin Liska <mliska@suse.cz>
25174 PR tree-optimization/87954
25175 * match.pd: Simplify mult where both arguments are 0 or 1.
25177 2019-06-06 Richard Biener <rguenther@suse.de>
25179 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25180 put equivalences on UNDEFINED ranges.
25181 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25182 Make sure to drop defs of stmts added during simplification
25185 2019-06-06 Richard Biener <rguenther@suse.de>
25187 * tree-ssa-structalias.c: Include tree-cfg.h.
25188 (make_heapvar): Do not make heap vars artificial.
25189 (find_func_aliases_for_builtin_call): Handle stack allocation
25191 (find_func_aliases): Delay processing of simple enough returns
25193 (set_uids_in_ptset): Adjust.
25194 (find_what_var_points_to): Likewise.
25195 (solve_constraints): Do not dump points-to sets here.
25196 (compute_points_to_sets): Post-process return statements,
25197 amending the escaped solution. Dump points-to sets afterwards.
25198 (ipa_pta_execute): Dump points-to sets.
25200 2019-06-06 Martin Liska <mliska@suse.cz>
25203 * doc/install.texi: Fix HTML headers and
25204 titles for 'Installing GCC' pages.
25206 2019-06-06 Martin Liska <mliska@suse.cz>
25208 * ipa-icf-gimple.h (dump_message_1): Remove.
25209 (dump_message): Likewise.
25210 (return_false_with_message_1): Print also file.
25211 (return_false_with_msg): Likewise.
25212 (return_with_result): Likewise.
25213 (return_with_debug): Likewise.
25214 * ipa-icf.c (sem_function::equals_private): Remove call
25217 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25219 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25220 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25221 memory operand for it.
25222 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25224 2019-06-05 Martin Sebor <msebor@redhat.com>
25226 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25227 Adjust quoting and hyphenation.
25228 * convert.c (convert_to_real_1): Same.
25229 * gcc.c (driver_wrong_lang_callback): Same.
25230 (driver::handle_unrecognized_options): Same.
25231 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25232 * opts-common.c (cmdline_handle_error): Same.
25233 (read_cmdline_option): Same.
25234 * opts-global.c (complain_wrong_lang): Same.
25235 (print_ignored_options): Same.
25236 (handle_common_deferred_options): Same.
25237 * pretty-print.h: Same.
25238 * print-rtl.c (debug_bb_n_slim): Same.
25239 * sched-rgn.c (make_pass_sched_fusion): Same.
25240 * tree-cfg.c (verify_gimple_assign_unary): Same.
25241 (verify_gimple_label): Same.
25242 * tree-ssa-operands.c (verify_ssa_operands): Same.
25243 * varasm.c (do_assemble_alias): Same.
25244 (assemble_alias): Same.
25246 2019-06-05 Richard Henderson <rth@twiddle.net>
25248 * config/alpha/alpha.c (direct_return): Move down after
25249 struct machine_function definition; use saved frame_size;
25251 (struct machine_function): Add sa_mask, sa_size, frame_size.
25252 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25253 (alpha_compute_frame_layout): ... new function.
25254 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25255 (alpha_initial_elimination_offset): Use saved sa_size.
25256 (alpha_vms_initial_elimination_offset): Likewise.
25257 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25258 (alpha_expand_prologue): Use saved frame data. Merge integer
25259 and fp register save loops.
25260 (alpha_expand_epilogue): Likewise.
25261 (alpha_start_function): Use saved frame data.
25262 * config/alpha/alpha-protos.h (direct_return): Update.
25263 (alpha_sa_size): Remove.
25265 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25267 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25268 multiplication by a power-of-two value.
25269 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25270 and turn the modulo operation into a masking operation.
25272 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25275 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25276 with VOIDmode inner operands.
25278 2019-06-05 Richard Biener <rguenther@suse.de>
25280 PR middle-end/90726
25281 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25282 turn an expression graph into a tree.
25284 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25286 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25288 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25289 treat it like explicit monotonic schedule modifier.
25290 (expand_omp_for): Initialize has_lastprivate_conditional.
25291 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25294 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25295 references, lookup in in hash map MEM_REF operand instead of the
25297 (lower_omp_1): When looking for lastprivate conditional assignments,
25298 handle MEM_REFs with REFERENCE_TYPE operands.
25300 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25301 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25302 and references a VLA. Handle references to non-VLAs if is_simd
25303 all privatization clauses like reductions.
25304 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25305 If omp_is_reference, use always omp simd arrays and set
25306 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25307 fails, emit reference initialization.
25309 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25312 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25313 _mm_mask_fpclass_sd_mask): New intrinsics.
25314 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25315 * config/i386/i386-builtin.def
25316 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25318 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25319 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25320 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25321 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25322 case QI_FTYPE_V2SF_INT): Ditto.
25323 * config/i386/sse.md
25324 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25325 Extended to insnstructions with mask operands.
25327 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25329 * config/rs6000/constraints.md (define_register_constraint "wp"):
25331 (define_register_constraint "wq"): Delete.
25332 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25333 (rs6000_init_hard_regno_mode_ok): Adjust.
25334 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25335 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25336 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25337 (define_mode_attr VSa): Delete.
25338 (define_mode_attr VSisa): New.
25339 (rest of file): Adjust.
25340 * doc/md.texi (Machine Constraints): Adjust.
25342 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25344 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25345 (define_attr "enabled"): Handle those new isa values.
25347 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25349 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25350 (define_mode_attr VSr5): Delete.
25351 (define_mode_attr VStype_sqrt): Delete.
25352 (define_mode_iterator VSX_SPDP): Delete.
25353 (define_mode_attr VS_spdp_res): Delete.
25354 (define_mode_attr VS_spdp_insn): Delete.
25355 (define_mode_attr VS_spdp_type): Delete.
25356 (*vsx_sqrt<mode>2): Adjust.
25357 (vsx_<VS_spdp_insn>): Delete, split to...
25358 (vsx_xscvdpsp): ... this. New. And...
25359 (vsx_xvcvspdp): ... this. New. And...
25360 (vsx_xvcvdpsp): ... this. New.
25362 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25364 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25366 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25367 (rest of file): Adjust.
25369 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25371 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25372 (vsx_extract_<mode>_var): Ditto.
25374 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25376 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25379 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25381 * config/rs6000/constraints.md (define_register_constraint "ww"):
25383 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25384 (rs6000_init_hard_regno_mode_ok): Adjust.
25385 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25386 RS6000_CONSTRAINT_ww.
25387 * config/rs6000/rs6000.md: Adjust.
25388 * config/rs6000/vsx.md: Adjust.
25389 * doc/md.texi (Machine Constraints): Adjust.
25391 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25393 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25394 (define_mode_attr sd): New.
25395 (define_mode_attr s): New.
25396 (define_mode_attr Ftrad): Delete.
25397 (define_mode_attr Fvsx): Delete.
25398 (define_mode_attr Fs): Delete.
25399 (rest of file): Use the new mode attributes.
25400 * config.rs6000/vsx.md: Use the new mode attributes.
25402 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25404 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25407 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25409 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25410 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25411 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25413 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25416 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25417 C++ with strict ANSI requirements.
25419 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25421 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25422 computations when step is 1.
25424 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25426 * config/rs6000/constraints.md (define_register_constraint "wf"):
25428 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25429 (rs6000_init_hard_regno_mode_ok): Adjust.
25430 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25431 RS6000_CONSTRAINT_wf.
25432 * config/rs6000/rs6000.md: Adjust.
25433 * config/rs6000/vsx.md: Adjust.
25434 * doc/md.texi (Machine Constraints): Adjust.
25436 2019-06-04 Andrew Pinski <apinski@marvell.com>
25438 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25441 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25443 * config/rs6000/constraints.md (define_register_constraint "wd"):
25445 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25446 (rs6000_init_hard_regno_mode_ok): Adjust.
25447 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25448 RS6000_CONSTRAINT_wd.
25449 * config/rs6000/rs6000.md: Adjust.
25450 * config/rs6000/vsx.md: Adjust.
25451 * doc/md.texi (Machine Constraints): Adjust.
25453 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25455 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25456 (rest of file): Adjust.
25458 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25460 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25461 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25462 (vsx_splat_<mode>_reg): Adjust.
25464 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25466 * config/rs6000/constraints.md (define_register_constraint "ws"):
25468 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25469 (rs6000_init_hard_regno_mode_ok): Adjust.
25470 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25471 RS6000_CONSTRAINT_ws.
25472 * config/rs6000/rs6000.md: Adjust.
25473 * config/rs6000/vsx.md: Adjust.
25474 * doc/md.texi (Machine Constraints): Adjust.
25476 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25478 * config/rs6000/constraints.md (define_register_constraint "wv"):
25480 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25481 (rs6000_init_hard_regno_mode_ok): Adjust.
25482 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25483 RS6000_CONSTRAINT_wv.
25484 * config/rs6000/rs6000.md: Adjust.
25485 * config/rs6000/vsx.md: Adjust.
25486 * doc/md.texi (Machine Constraints): Adjust.
25488 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25490 * config/rs6000/constraints.md (define_register_constraint "wi"):
25492 (define_register_constraint "wt"): Delete.
25493 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25494 (rs6000_init_hard_regno_mode_ok): Adjust.
25495 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25496 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25497 * config/rs6000/rs6000.md: Adjust.
25498 * config/rs6000/vsx.md: Adjust.
25499 * doc/md.texi (Machine Constraints): Adjust.
25501 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25503 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25505 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25506 default_elf_asm_output_external.
25508 2019-06-04 Martin Liska <mliska@suse.cz>
25510 * ipa-icf.c (INCLUDE_LIST): Remove.
25511 (sem_item_optimizer::execute): Remove call to init_wpa.
25512 * ipa-icf.h (init_wpa): Remove.
25514 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25516 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25517 conditional on combined for simd.
25518 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25520 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25521 constructs, don't remove lastprivate_conditional_map, but instead set
25522 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25523 to parent construct temporaries.
25524 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25525 like !ctx->lastprivate_conditional_map.
25526 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25527 use up->outer context instead of up.
25528 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25529 gimple_omp_for_combined_p.
25530 (expand_omp_for_static_nochunk): Likewise.
25531 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25532 probably moved over into expand_omp_for_generic rather than being copied
25535 2019-06-04 Martin Liska <mliska@suse.cz>
25537 * value-prof.c (dump_histogram_value): Fix typo.
25538 (gimple_mod_subtract_transform): Likewise.
25540 2019-06-04 Richard Biener <rguenther@suse.de>
25542 PR middle-end/90726
25543 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25544 (tree_contains_chrecs): Likewise.
25545 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25546 exponential behaivor from ...
25547 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25549 (expression_expensive_p): Avoid exponential behavior and compute
25550 expanded size, rejecting any expansion.
25551 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25552 (idx_contains_abnormal_ssa_name_p): Likewise.
25553 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25554 (contains_abnormal_ssa_name_p): Simplify and use
25555 walk_tree_without_duplicates.
25557 2019-06-04 Richard Biener <rguenther@suse.de>
25559 PR tree-optimization/90738
25561 2019-06-03 Richard Biener <rguenther@suse.de>
25563 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25564 full reference tree and record in ref->ref.
25565 (vn_reference_lookup_3): Pass in original ref to
25566 ao_ref_init_from_vn_reference.
25567 (vn_reference_lookup): Likewise.
25568 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25569 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25570 Handle non-decl bases in the original reference.
25572 2019-06-04 Martin Liska <mliska@suse.cz>
25574 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25575 number of references.
25576 (sem_item_optimizer::do_congruence_step):
25577 (sem_item_optimizer::worklist_push): Dump how references
25579 (sem_item_optimizer::worklist_pop): Use heap.
25580 (sem_item_optimizer::process_cong_reduction): Likewise.
25581 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25583 2019-06-04 Martin Liska <mliska@suse.cz>
25585 * ipa-icf.h (struct sem_usage_pair_hash): New.
25586 (sem_usage_pair_hash::hash): Likewise.
25587 (sem_usage_pair_hash::equal): Likewise.
25588 (struct sem_usage_hash): Likewise.
25589 * ipa-icf.c (sem_item::sem_item): Initialize
25590 referenced_by_count.
25591 (sem_item::add_reference): Register a reference
25592 in ref_map and not in target->usages.
25593 (sem_item::setup): Remove initialization of
25595 (sem_item::~sem_item): Remove usage of dead vectors.
25596 (sem_item::dump): Remove dump of references.
25597 (sem_item_optimizer::sem_item_optimizer): Initialize
25599 (sem_item_optimizer::read_section): Remove useless
25601 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25602 (sem_item_optimizer::build_graph): Pass m_references
25603 to ::add_reference.
25604 (sem_item_optimizer::verify_classes): Remove usage of dead
25606 (sem_item_optimizer::traverse_congruence_split): Return true
25607 when a class is split.
25608 (sem_item_optimizer::do_congruence_step_for_index): Use
25609 hash_map for look up of (sem_item *, index). That brings
25610 significant speed up.
25611 (sem_item_optimizer::do_congruence_step): Return true
25612 when a split is done.
25613 (congruence_class::is_class_used): Use referenced_by_count.
25615 2019-06-04 Alan Modra <amodra@gmail.com>
25618 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25621 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25623 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25624 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25625 (rs6000_secondary_reload_simple_move): Adjust.
25626 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25627 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25628 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25631 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25632 (floatunssi<mode>2_lfiwzx): Adjust.
25633 (fix_trunc<mode>si2_stfiwx): Adjust.
25634 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25635 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25636 (mfpgpr): Mark as deprecated.
25637 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25638 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25639 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25641 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25643 * config/rs6000/constraints.md (define_register_constraint "wg"):
25645 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25646 RS6000_CONSTRAINT_wg.
25647 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25648 (rs6000_init_hard_regno_mode_ok): Adjust.
25649 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25650 Delete "wg" alternatives.
25651 * doc/md.texi (Machine Constraints): Adjust.
25653 2019-06-03 Alan Modra <amodra@gmail.com>
25655 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25656 (get_uncond_jump_length): Assert length less than INT_MAX and
25659 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25661 PR middle-end/64242
25662 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25664 (expand_builtin_nonlocal_goto): Likewise.
25666 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25668 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25669 (aarch64_asm_output_external): Declare.
25670 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25671 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25672 (aarch64_asm_output_alias): New.
25673 (aarch64_asm_output_external): New.
25674 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25675 (ASM_OUTPUT_EXTERNAL): Define.
25677 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25678 * tree-vrp.h (value_range_base::nonzero_p): New.
25679 (value_range_base::set_nonnull): Rename to...
25680 (value_range_base::set_nonzero): ...this.
25681 (value_range_base::set_null): Rename to...
25682 (value_range_base::set_zero): ...this.
25683 (value_range::set_nonnull): Remove.
25684 (value_range::set_null): Remove.
25685 * tree-vrp.c (range_is_null): Remove.
25686 (range_is_nonnull): Remove.
25687 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25688 instead of range_is_*null.
25689 (extract_range_from_unary_expr): Same.
25690 (value_range_base::set_nonnull): Rename to...
25691 (value_range_base::set_nonzero): ...this.
25692 (value_range::set_nonnull): Remove.
25693 (value_range_base::set_null): Rename to...
25694 (value_range_base::set_zero): ...this.
25695 (value_range::set_null): Remove.
25696 (extract_range_from_binary_expr): Rename set_*null uses to
25698 (extract_range_from_unary_expr): Same.
25699 (union_helper): Same.
25700 * vr-values.c (get_value_range): Use set_*zero instead of
25702 (vr_values::extract_range_from_binary_expr): Same.
25703 (vr_values::extract_range_basic): Same.
25705 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25708 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25710 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25712 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25713 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25715 (aarch64_<su>abd<mode>_3): ... This.
25716 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25718 2019-06-03 Richard Biener <rguenther@suse.de>
25720 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25721 full reference tree and record in ref->ref.
25722 (vn_reference_lookup_3): Pass in original ref to
25723 ao_ref_init_from_vn_reference.
25724 (vn_reference_lookup): Likewise.
25725 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25726 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25727 Handle non-decl bases in the original reference.
25729 2019-06-03 Martin Liska <mliska@suse.cz>
25731 * doc/generic.texi: Remove Java Trees.
25733 2019-06-03 Martin Liska <mliska@suse.cz>
25735 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25736 returns 0 when operands are equal.
25738 2019-06-03 Richard Biener <rguenther@suse.de>
25740 PR tree-optimization/90716
25741 * tree-loop-distribution.c (destroy_loop): Process blocks in
25744 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25747 * vector-builder.h (vector_builder::count_dups): New method.
25748 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25750 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25751 (vec_init<mode><Vel>): New pattern.
25752 * config/aarch64/aarch64.c (emit_insr): New function.
25753 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25754 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25755 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25756 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25758 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25760 PR tree-optimization/90681
25761 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25762 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25763 special case for SLP, but fail on non-groupped loads.
25765 2019-06-03 Martin Liska <mliska@suse.cz>
25767 * cfg.c (debug): Use TDF_DETAILS for debug and
25768 print edge info only once.
25770 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25773 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25775 2019-06-01 Martin Sebor <msebor@redhat.com>
25777 PR middle-end/90694
25778 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25780 2019-05-31 Jan Hubicka <jh@suse.cz>
25782 * alias.c: Include ipa-utils.h.
25783 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25784 * ipa-devirt.c (prevailing_odr_type): New.
25785 * ipa-utils.h (previaling_odr_type): Declare.
25787 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25788 Hongtao Liu <hongtao.liu@intel.com>
25791 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25792 NOTE_INSN_DELETED_LABEL check.
25794 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25795 Robert Suchanek <robert.suchanek@mips.com>
25797 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25798 and 3rd operands of the fmadd/fmsub/maddv builtin.
25800 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25802 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25803 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25804 on OMP_SIMD if not nested inside of worksharing loop that also has
25805 lastprivate conditional clause for the same decl.
25806 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25807 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25809 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25811 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25813 (lower_lastprivate_clauses): Likewise.
25814 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25815 calling lower_rec_input_clauses.
25816 (lower_omp_for): Likewise.
25817 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25818 clause on simd construct.
25819 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25820 OMP_CLAUSE__CONDTEMP_ clause is present.
25822 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25825 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25828 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25829 TEX_D32, TEX_D64 or TEX_D128.
25831 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25833 * match.pd (~(vec?cst1:cst2)): New transformation.
25835 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25837 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25838 ((size_t)(A /[ex] B) CMP C): New transformation.
25840 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25842 * doc/md.texi: Document define_insn_and_rewrite.
25843 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25844 * gensupport.c (queue_elem): Update comment.
25845 (replace_operands_with_dups): New function.
25846 (gen_rewrite_sequence): Likewise.
25847 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25848 * read-rtl.c (apply_subst_iterator): Likewise.
25849 (add_condition_to_rtx, named_rtx_p): Likewise.
25850 (rtx_reader::read_rtx_operand): Likewise.
25851 * config/aarch64/aarch64-sve.md
25852 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25853 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25854 define_insn_and_rewrite.
25855 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25856 Remove separate define_split.
25858 2019-05-31 Jan Hubicka <jh@suse.cz>
25860 * tree-ssa-alias.c (type_has_components_p): New function.
25861 (aliasing_component_refs_p): Use it.
25863 2019-05-31 Martin Liska <mliska@suse.cz>
25865 * gdbhooks.py: Add const_tree to TreePrinter.
25867 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25870 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25871 * doc/invoke.texi (Debugging Options): Document new default of
25872 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25874 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25876 PR tree-optimization/90671
25877 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25878 template_block used to be empty on the first call, don't use
25879 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25880 seq with bb_seq and set it with set_bb_seq.
25882 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25884 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25886 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25887 Michael Meissner <meissner@linux.ibm.com>
25889 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25890 (prefixed_mem_operand): Likewise.
25891 (non_prefixed_mem_operand): Likewise.
25892 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25894 * config/rs6000/rs6000.c (print_operand_address): Handle
25895 PC-relative addresses.
25896 (mode_supports_prefixed_address_p): New function.
25897 (rs6000_prefixed_address): New function.
25898 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25899 (SYMBOL_REF_PCREL_P): Likewise.
25901 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25903 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25904 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25905 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25906 is nested inside of parallel region, add _condtemp_ clause to both.
25907 * tree-nested.c (convert_nonlocal_omp_clauses,
25908 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25910 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25912 * omp-general.c (omp_extract_for_data): Compute it.
25913 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25914 (lower_rec_input_clauses): Likewise.
25915 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25916 clause is already present, just add one further one after it.
25917 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25918 (lower_send_shared_vars): Clear _condtemp_ vars.
25919 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25920 or section or taskgroup.
25921 * omp-expand.c (determine_parallel_type): Disallow combining only if
25922 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25923 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25924 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25925 expand_omp_for_static_chunk, expand_omp_for): Use
25926 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25927 determine if a special set of API routines are needed and if condtemp
25928 needs to be initialized, while always initialize cond_var if
25929 fd->lastprivate_conditional is non-zero.
25931 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25932 Michael Meissner <meissner@linux.ibm.com>
25934 * config/rs6000/constraints.md (eI): New constraint.
25935 * config/rs6000/predicates.md (cint34_operand): New predicate.
25936 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25937 (SIGNED_34BIT_OFFSET_P): Likewise.
25938 * doc/md.texi (eI): Document constraint.
25940 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25942 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25944 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25945 Michael Meissner <meissner@linux.ibm.com>
25947 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25948 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25949 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25950 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25951 (OTHER_FUTURE_MASKS): Likewise.
25952 (POWERPC_MASKS): Likewise.
25953 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25954 specified without -mprefixed-addr or -mcpu=future. Error if
25955 -mprefixed-addr is specified without -mcpu=future.
25956 (rs6000_opt_masks): Add entry for prefixed-addr.
25957 * rs6000.opt (mprefixed-addr): New option.
25959 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25961 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25962 cfun->is_thunk check.
25964 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25966 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25969 2019-05-30 Martin Liska <mliska@suse.cz>
25971 * gdbinit.in: Fix 'ptc' command. Add trt
25972 that prints TREE_TYPE($).
25974 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25975 Alan Modra <amodra@gmail.com>
25977 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25979 (rs6000_indirect_call_template_1): ...and here.
25980 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25981 plt16_ha, plt16_lo, mtctr indirect calls. Use
25982 rs6000_pltseq_enum.
25983 (rs6000_decl_ok_for_sibcall): New function.
25984 (rs6000_function_ok_for_sibcall): Refactor.
25985 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25986 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25987 when pcrel. Reorganize.
25988 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25989 * rs6000.h (rs6000_pltseq_enum): New enum.
25990 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25991 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25992 (*pltseq_plt16_ha): Likewise.
25993 (*pltseq_plt16_lo): Likewise.
25994 (*pltseq_mtctr): Likewise.
25995 (*pltseq_plt_pcrel): New insn.
25996 (*call_local_aix): Handle @notoc calls.
25997 (*call_value_local_aix): Likewise.
25998 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25999 (*call_value_nonlocal_aix): Likewise.
26000 (*call_indirect_pcrel): New insn.
26001 (*call_value_indirect_pcrel): Likewise.
26003 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26005 * config/i386/sse.md (*save_multiple<mode>): Rename from
26006 save_multiple<mode>.
26007 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26008 (*restore_multiple_and_return<mode>): Rename from
26009 restore_multiple_and_return<mode>.
26010 (*restore_multiple_leave_return<mode>): Rename from
26011 restore_multiple_leave_return<mode>.
26013 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26015 * config.gcc (rx-*-linux*): New target.
26016 * config/rx/elf.opt: New file.
26017 * config/rx/linux.h: Likewise.
26018 * config/rx/t-linux: Likewise.
26019 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26021 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26022 (ASM_APP_OFF): Likewise.
26023 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26026 2019-05-29 Jan Hubicka <jh@suse.cz>
26028 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26029 variants are pointer equivalent.
26031 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26033 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26034 * config/aarch64/aarch64-sve2.md: New file.
26035 (<u>avg<mode>3_floor): New pattern.
26036 (<u>avg<mode>3_ceil): Likewise.
26037 (*<sur>h<addsub><mode>): Likewise.
26038 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26039 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26041 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26044 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26045 for var_opt_string printing. In cl_optimization_print_diff, print
26046 (null) instead of invoking undefined behavior if one of the
26047 var_opt_string pointers is NULL and use && instead of first || in the
26048 guarding condition. For var_target_other options, handle const char *
26049 target variables similarly to const char * optimize node variables.
26051 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26053 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26054 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26055 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26056 Add autib1716 and pacib1716 initialisation.
26057 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26058 for autib1716 and pacib1716.
26059 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26060 aarch64_post_cfi_startproc): Define.
26061 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26062 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26063 aarch64_handle_pac_ret_protection): Set default sign key to A.
26064 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26065 aarch64_expand_prologue): Add check for b-key.
26066 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26067 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26068 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26069 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26070 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26071 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26072 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26073 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26074 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26075 pauth_hint_num_a with pauth_hint_num.
26076 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26077 pauth_hint_num_a with pauth_hint_num.
26078 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26079 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26080 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26081 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26082 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26083 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26084 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26085 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26086 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26087 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26088 UNSPEC_AUTIA1716 respectively.
26089 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26090 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26091 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26092 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26093 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26094 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26096 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26098 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26099 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26100 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26101 explicit clause on combined parallel into implicit shared clause.
26102 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26103 and firstprivate if the decl has one too from combined parallel to
26104 the worksharing construct.
26106 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26107 Michael Meissner <meissner@linux.ibm.com>
26109 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26111 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26113 * rtl.h (LABEL_REF_P): New #define.
26115 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26117 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26119 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26121 * internal-fn.c: Marked mask_load_direct as vectorizable.
26122 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26123 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26124 combined even if masks different with allow_slp_p param.
26125 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26126 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26127 dissolve SLP-only vectorizable groups when SLP has been discarded.
26128 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26129 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26131 (vect_build_slp_tree_1): Fixed comment typo.
26132 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26133 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26134 loads for SLP only.
26135 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26137 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26139 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26141 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26142 Remove obsolete use_thunk reference.
26143 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26144 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26145 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26146 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26147 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26148 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26149 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26150 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26151 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26153 2019-05-28 Nathan Sidwell <nathan@acm.org>
26155 * tree.h (IDENTIFIER_ANON_P): New.
26156 (anon_aggrname_format, anon_aggname_p): Don't declare.
26157 (make_anon_name): Declare.
26158 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26159 (hash_tree): Likewise.
26160 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26161 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26162 (anon_cnt, make_anon_name): New.
26164 2019-05-28 Martin Liska <mliska@suse.cz>
26167 * opts-global.c (decode_options): Print help for all
26168 help_option_arguments.
26169 * opts.c (print_help): Add new argument.
26170 (common_handle_option): Remember all values into
26171 help_option_arguments.
26172 * opts.h (print_help): Add new argument.
26174 2019-05-28 Martin Liska <mliska@suse.cz>
26177 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26178 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26179 (func_checker::compare_bb): Call compare_loops.
26181 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26183 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26184 on sections construct.
26185 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26187 (lower_omp_sections): Handle lastprivate conditional.
26188 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26189 lastprivate_conditional_map.
26190 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26192 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26193 critical, taskgroup and section regions when looking for a region
26194 with non-NULL lastprivate_conditional_map.
26196 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26198 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26199 (*ix86_gen_sub3): Ditto.
26200 (*ix86_gen_sub3_carry): Ditto.
26201 (*ix86_gen_one_cmpl2): Ditto.
26202 (*ix86_gen_andsp): Ditto.
26203 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26204 (gen_and2_insn): New static function.
26205 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26206 Use gen_add3_insn instead of ix86_gen_add3.
26207 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26208 instead of ix86_gen_add3.
26209 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26210 Use gen_sub3_insn instead of ix86_gen_sub3.
26211 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26212 instead of ix86_gen_add3.
26213 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26214 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26215 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26216 * config/i386/i386-options.c (ix86_option_override_internal):
26217 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26218 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26220 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26222 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26223 and DW_OP_GNU_const_index opcodes.
26225 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26227 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26229 2019-05-27 Richard Biener <rguenther@suse.de>
26231 PR tree-optimization/90637
26232 * tree-ssa-sink.c (statement_sink_location): Honor the
26233 computed sink location for single-uses.
26235 2019-05-27 Richard Biener <rguenther@suse.de>
26237 PR middle-end/90610
26238 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26241 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26243 * config/i386/i386.md (@sub<mode>3_carry): Rename
26244 from sub<mode>3_carry.
26245 (@leave_<mode>): New expander.
26246 (*leave): Rename from leave.
26247 (*leave_rex64): Rename from leave_rex64.
26248 (@monitorx_<mode>): Rename from monitorx_<mode>.
26249 (@clzero_<mode>): Rename from clzero_<mode>.
26250 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26251 from sse3_monitor_<mode>.
26252 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26253 (*ix86_gen_leave): Ditto.
26254 (*ix86_gen_monitor): Ditto.
26255 (*ix86_gen_monitorx): Ditto.
26256 (*ix86_gen_clzero): Ditto.
26257 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26258 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26259 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26260 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26261 Use gen_sse3_monitor instead of ix86_gen_monitor.
26262 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26263 instead of ix86_gen_monitorx.
26264 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26265 instead of ix86_gen_clzero.
26266 * config/i386/i386-options.c (ix86_option_override_internal):
26267 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26268 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26270 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26272 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26273 Rename from tls_global_dynamic_64_<mode>.
26274 (@tls_local_dynamic_base_64_<mode>): Rename from
26275 tls_local_dynamic_base_64_<mode>.
26276 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26277 Remove indirect function.
26278 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26279 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26280 instead of ix86_gen_tls_global_dynamic_64.
26281 Use gen_tls_local_dynamic_base_64 instead of
26282 ix86_gen_tls_local_dynamic_base_64.
26283 * config/i386/i386-options.c (ix86_option_override_internal):
26284 Do not initialize ix86_gen_tls_global_dynamic_64 and
26285 ix86_gen_tls_local_dynamic_base_64.
26287 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26289 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26290 Rename from pro_epilogue_adjust_stack_<mode>_add.
26291 (@pro_epilogue_adjust_stack_sub_<mode>)
26292 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26293 (@allocate_stack_worker_probe_<mode>):
26294 Rename from allocate_stack_worker_probe_<mode>.
26295 (allocate_stack): Use gen_allocate_stack_worker_probe.
26296 (probe_stack): Use gen_probe_stack_1.
26297 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26298 (@adjust_stack_and_probe_<mode>): Rename from
26299 adjust_stack_and_probe<mode>.
26300 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26301 (stack_protect_set): Use gen_stack_protect_set_1.
26302 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26303 (stack_protect_test): Use gen_stack_protect_test_1.
26304 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26305 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26306 Remove indirect function.
26307 (*ix86_gen_adjust_stack_and_probe): Ditto.
26308 (*ix86_gen_probe_stack_range): Ditto.
26309 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26310 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26311 (ix86_adjust_stack_and_probe_stack_clash): Use
26312 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26313 (ix86_adjust_stack_and_probe): Ditto.
26314 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26315 of ix86_gen_probe_stack_range.
26316 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26317 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26318 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26319 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26320 CODE_FOR_stack_protect_test_{si,di}.
26321 * config/i386/i386-options.c (ix86_option_override_internal):
26322 Do not initialize ix86_gen_allocate_stack_worker,
26323 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26325 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26327 * doc/invoke.texi (Link Options): Many editorial changes around
26330 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26332 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26333 pre-Solaris 11 referene and most Studio compiler details.
26335 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26338 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26339 DImode to SImode in floating-point registers on 64-bit target.
26340 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26341 register_operand in xmpyu patterns.
26343 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26345 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26346 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26347 OMP_CLAUSE__REDUCTEMP_.
26348 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26349 OMP_CLAUSE__CONDTEMP_.
26350 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26351 * tree-pretty-print.c (dump_omp_clause): Likewise.
26352 * tree-nested.c (convert_nonlocal_omp_clauses,
26353 convert_local_omp_clauses): Likewise.
26354 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26355 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26356 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26358 (gimplify_omp_for): Warn and disable conditional modifier from
26359 lastprivate on loop iterators.
26360 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26362 * omp-general.c (omp_extract_for_data): Initialize it.
26363 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26365 (delete_omp_context): Delete it.
26366 (lower_lastprivate_conditional_clauses): New function.
26367 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26368 handle lastprivate conditional clauses.
26369 (lower_reduction_clauses): Add CLIST argument, emit it into
26370 the critical section if any.
26371 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26372 lower_reduction_clauses callers.
26373 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26374 to lower_lastprivate_clauses.
26375 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26376 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26377 clist into a critical section if not emitted there already by
26378 lower_reduction_clauses.
26379 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26381 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26382 conditional variables.
26383 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26385 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26386 expand_omp_for_static_chunk): Handle lastprivate conditional.
26387 (expand_omp_for): Handle fd.lastprivate_conditional like
26390 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26392 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26393 kernel does not exit cleanly.
26394 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26396 2019-05-24 Jason Merrill <jason@redhat.com>
26399 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26401 2019-05-24 Richard Biener <rguenther@suse.de>
26404 * tree-loop-distribution.c (struct partition): Add location
26406 (partition_alloc): Initialize all fields.
26407 (generate_memset_builtin): Use the location recorded in the
26408 partition for the generated call.
26409 (generate_memcpy_builtin): Likewise.
26410 (classify_partition): Record the location of a single store
26411 as location for the partition.
26413 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26415 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26418 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26421 * common/config/aarch64/aarch64-common.c
26422 (aarch64_rewrite_selected_cpu): Change local temporary variable
26423 type from unsigned long to uint64_t.
26424 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26425 aarch64_get_extension_string_for_isa_flags): Change declaration to
26426 match new definition by replacing unsigned long with uint64_t.
26428 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26431 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26432 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26433 Handle stack_protect_test_<mode> codegen similarly to corresponding
26436 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26438 * config/i386/darwin.h: Reject -mfentry*.
26439 * doc/sourcebuild.texi: Document mfentry target support.
26441 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26443 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26444 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26445 false for PC-relative functions.
26446 (rs6000_output_function_prologue): Change called function name to
26447 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26448 name,1" for PC-relative functions.
26449 (rs6000_elf_declare_function_name): Change called function name to
26450 rs6000_global_entry_point_prologue_needed_p.
26452 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26455 * config/i386/i386.c (gen_rtx_cost):
26456 Use ix86_tune_cost instead of ix86_cost.
26458 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26459 Michael Meissner <meissner@linux.ibm.com>
26460 Segher Boessenkool <segher@kernel.crashing.org>
26462 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26464 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26465 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26466 (rs6000_fndecl_pcrel_p): Likewise.
26467 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26468 error if -mpcrel is requested without -mcpu=future.
26469 (rs6000_opt_masks): Add entry for pcrel.
26470 (rs6000_fndecl_pcrel_p): New function.
26471 (rs6000_pcrel_p): Likewise.
26472 * config/rs6000/rs6000.opt (mpcrel): New option.
26473 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26475 2019-05-23 Jan Hubicka <jh@suse.cz>
26476 Martin Liska <mliska@suse.cz>
26478 PR tree-optimization/90576
26479 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26481 (aliasing_component_refs_p): Fix three way size compare conditional;
26482 give up earlier in case we can not decide on equivalence.
26484 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26485 Michael Meissner <meissner@linux.ibm.com>
26486 Segher Boessenkool <segher@kernel.crashing.org>
26488 * config.gcc: Add future cpu.
26489 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26490 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26492 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26493 (RS6000_CPU): New instantiation for future cpu.
26494 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26496 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26497 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26498 * config/rs6000/rs6000-tables.opt: Regenerate.
26499 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26500 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26501 (rs6000_machine_from_flags): Handle future cpu.
26502 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26503 PROCESSOR_POWER9 for now.
26504 (rs6000_adjust_cost): Likewise.
26505 (rs6000_issue_rate): Likewise.
26506 (rs6000_register_move_cost): Likewise.
26507 (rs6000_opt_masks): Add entry for future.
26508 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26509 (MASK_FUTURE): New #define.
26510 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26511 * config/rs6000/rs6000.opt (mfuture): New target option.
26512 * doc/invoke.texi (mcpu): Add future cpu.
26514 2019-05-23 Martin Liska <mliska@suse.cz>
26517 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26518 operation points to a temporary (pointed via tree_to_wide_ref)
26519 that is out of scope after the &.
26521 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26524 * doc/extend.texi (Function Names): Add missing word.
26526 2019-05-23 Richard Biener <rguenther@suse.de>
26528 PR tree-optimization/88440
26529 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26531 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26533 (generate_memcpy_builtin): Likewise.
26534 (distribute_loop): Pass in whether to only distribute patterns.
26535 (prepare_perfect_loop_nest): Also allow size optimization.
26536 (pass_loop_distribution::execute): When optimizing a loop
26537 nest for size allow pattern replacement.
26539 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26542 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26545 2019-05-23 Martin Liska <mliska@suse.cz>
26548 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26549 expression similarly to gimplify_decl_expr.
26551 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26553 * cse.c (cse_dump_path): s/dump_file/f.
26555 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26558 * diagnostic-format-json.cc: Include "selftest.h".
26559 (json_from_expanded_location): Only add "file" key for non-NULL
26561 (json_from_location_range): Don't add "start" and "finish"
26562 children if they are UNKNOWN_LOCATION.
26563 (selftest::test_unknown_location): New selftest.
26564 (selftest::test_bad_endpoints): New selftest.
26565 (selftest::diagnostic_format_json_cc_tests): New function.
26566 * json.cc (json::object::get): New function.
26567 (selftest::test_object_get): New selftest.
26568 (selftest::json_cc_tests): Call it.
26569 * json.h (json::object::get): New decl.
26570 * selftest-run-tests.c (selftest::run_tests): Call
26571 selftest::diagnostic_format_json_cc_tests.
26572 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26575 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26576 Andrew Stubbs <amd@codesourcery.com>
26578 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26579 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26580 (kernel): Rename to...
26581 (main_kernel): ... this.
26582 (load_image): Load _init_array and _fini_array kernels.
26583 (run): Add argument for kernel to run.
26584 (main): Run init_array_kernel before main_kernel, and
26585 fini_array_kernel after.
26586 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26587 amdgpu_hsa_kernel attribute on functions.
26588 (gcn_disable_constructors): Delete.
26589 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26590 * config/gcn/crt0.c (size_t): Define.
26591 (_init_array, _fini_array): New.
26592 (__preinit_array_start, __preinit_array_end,
26593 __init_array_start, __init_array_end,
26594 __fini_array_start, __fini_array_end): Declare weak references.
26596 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26598 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26600 2019-05-22 Jason Merrill <jason@redhat.com>
26602 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26604 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26607 * config/i386/i386-options.c (ix86_init_machine_status): Set
26608 stack_frame_required to true.
26609 * config/i386/i386.c (ix86_get_frame_size): New function.
26610 (ix86_frame_pointer_required): Replace get_frame_size with
26611 ix86_get_frame_size.
26612 (ix86_compute_frame_layout): Likewise.
26613 (ix86_find_max_used_stack_alignment): Changed to void. Set
26614 stack_frame_required.
26615 (ix86_finalize_stack_frame_flags): Always call
26616 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26617 ix86_get_frame_size.
26618 * config/i386/i386.h (machine_function): Add stack_frame_required.
26620 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26622 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26624 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26626 * common/config/aarch64/aarch64-common.c
26627 (struct aarch64_option_extension, struct processor_name_to_arch,
26628 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26629 aarch64_contains_opt,
26630 aarch64_get_extension_string_for_isa_flags): Change type of
26631 variables storing flags to uint64_t.
26632 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26633 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26634 * config/aarch64/aarch64.c (struct processor,
26635 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26636 aarch64_validate_march, aarch64_override_options,
26637 aarch64_option_print, aarch64_handle_attr_isa_flags,
26638 aarch64_declare_function_name, aarch64_start_file): Make flag
26639 variables uint64_t.
26640 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26641 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26642 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26643 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26644 * config/aarch64/driver-aarch64.c
26645 (struct aarch64_arch_extension, struct aarch64_core_data,
26646 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26647 flag variables uint64_t.
26648 * doc/invoke.texi: Add documentation for new arguments.
26650 2019-05-22 Richard Biener <rguenther@suse.de>
26652 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26654 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26656 2019-05-22 Martin Liska <mliska@suse.cz>
26659 * doc/extend.texi: Document the change.
26661 2019-05-22 Richard Biener <rguenther@suse.de>
26663 PR tree-optimization/90450
26664 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26665 (mem_ref_hasher::equal): Check it.
26666 (mem_ref_alloc): Initialize it.
26667 (gather_mem_refs_stmt): Set it.
26669 2019-05-22 Richard Biener <rguenther@suse.de>
26671 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26673 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26676 2019-05-22 Alan Modra <amodra@gmail.com>
26678 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26679 (ASM_CPU_SPEC): Conditionally add -many.
26680 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26681 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26682 (rs6000_file_start): ..extracted from here, and modified to
26684 (rs6000_output_function_prologue): Emit .machine as necessary.
26686 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26688 PR middle-end/90553
26689 * ira-lives.c (process_bb_node_lives): Consider defs
26690 for a call insn to be die before the call, not after.
26692 * function.c (assign_parm_setup_block): Raise alignment of
26693 stacked parameter only for STRICT_ALIGNMENT targets.
26695 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26697 * config/rs6000/constraints.md (define_register_constraint "wz"):
26699 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26700 RS6000_CONSTRAINT_wz.
26701 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26702 (rs6000_init_hard_regno_mode_ok): Adjust.
26703 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26704 * doc/md.texi (Machine Constraints): Adjust.
26706 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26708 * config/rs6000/constraints.md (define_register_constraint "wl"):
26710 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26711 RS6000_CONSTRAINT_wl.
26712 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26713 (rs6000_init_hard_regno_mode_ok): Adjust.
26714 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26715 * doc/md.texi (Machine Constraints): Adjust.
26717 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26719 * config/rs6000/constraints.md (define_register_constraint "wm"):
26721 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26722 RS6000_CONSTRAINT_wm.
26723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26724 (rs6000_init_hard_regno_mode_ok): Adjust.
26725 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26726 * doc/md.texi (Machine Constraints): Adjust.
26728 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26730 * config/rs6000/constraints.md (define_register_constraint "wk"):
26732 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26733 RS6000_CONSTRAINT_wk.
26734 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26735 (rs6000_init_hard_regno_mode_ok): Adjust.
26736 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26737 * doc/md.texi (Machine Constraints): Adjust.
26739 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26741 * config/rs6000/constraints.md (define_register_constraint "wj"):
26743 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26744 RS6000_CONSTRAINT_wj.
26745 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26746 (rs6000_init_hard_regno_mode_ok): Adjust.
26747 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26749 * config/rs6000/vsx.md: Ditto.
26750 * doc/md.texi (Machine Constraints): Adjust.
26752 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26754 * config/rs6000/constraints.md (define_register_constraint "wh"):
26756 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26757 RS6000_CONSTRAINT_wh.
26758 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26759 (rs6000_init_hard_regno_mode_ok): Adjust.
26760 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26761 * doc/md.texi (Machine Constraints): Adjust.
26763 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26766 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26767 Avoid calling gen_lowpart with CONST operand.
26769 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26771 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26772 field template_last_to_copy.
26773 (ssa_create_duplicates): Set it, and use it. Attempt to
26774 preserve more debug stmts.
26776 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26778 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26779 (signbit<mode>2): New expander
26781 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26784 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26785 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26787 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26789 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26790 %ebx and %ecx bafore calling cpuid with leaf 1 or
26791 non-constant leaf argument.
26793 2019-05-21 Alan Modra <amodra@gmail.com>
26796 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26797 power9 direct move cost.
26799 2019-05-21 Richard Biener <rguenther@suse.de>
26801 PR middle-end/90510
26802 * fold-const.c (fold_read_from_vector): New function.
26803 * fold-const.h (fold_read_from_vector): Declare.
26804 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26805 single-element insert permutations. Canonicalize selector
26806 further and fix issue with last commit.
26808 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26810 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26811 parameter with default value false to declaration.
26812 (split_edges_for_insertion): New inline function. Wrapper for
26813 split_critical_edges with for_edge_insertion_p = true.
26814 * tree-cfg.c (split_critical_edges): Don't split non-critical
26815 edges if for_edge_insertion_p is false. Fix whitespace.
26816 * tree-ssa-pre.c (pass_pre::execute): Call
26817 split_edges_for_insertion instead of split_critical_edges.
26818 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26819 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26820 (pass_data_sink_code): Update function name in the comment.
26822 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26824 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26825 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26826 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26827 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26830 2019-05-21 Martin Liska <mliska@suse.cz>
26832 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26834 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26835 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26837 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26839 (rs6000_function_arg): Likewise.
26840 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26841 (rs6000_expand_ternop_builtin): Use interval syntax.
26842 (get_element_number): Likewise.
26843 (altivec_expand_builtin): Likewise.
26844 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26846 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26850 * function.h (struct function): Add calls_eh_return member.
26851 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26852 gimplifying __builtin_eh_return call.
26853 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26855 (expand_call_inline): Or in src_cfun->calls_eh_return into
26856 dst_cfun->calls_eh_return.
26857 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26858 cfun->calls_eh_return.
26859 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26860 * lto-streamer-out.c (output_struct_function_base): Write
26863 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26865 PR rtl-optimization/43147
26866 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26867 IX86_BUILTIN_SHUFPD.
26869 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26871 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26872 (refs_may_alias_p_1): ... here; update stats.
26873 (refs_may_alias_p): Do not update stats here.
26875 2019-05-20 Richard Biener <rguenther@suse.de>
26877 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26878 doesn't produce pointers.
26879 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26880 the first operand points to.
26882 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26884 * tree-ssa-alias.c (compare_sizes): New function.
26885 (sompare_type_sizes): New function
26886 (aliasing_component_refs_p): Use it.
26887 (indirect_ref_may_alias_decl_p): Likewise.
26889 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26891 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26893 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26895 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26896 (LIBLSAN_EARLY_SPEC): Likewise.
26897 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26899 2019-05-20 Martin Liska <mliska@suse.cz>
26901 * config/i386/i386.c (ix86_libc_has_fast_function):
26902 Add ATTRIBUTE_UNUSED for the argument.
26904 2019-05-20 Richard Biener <rguenther@suse.de>
26906 * gimple-match-head.c: Include vec-perm-indices.h.
26907 * generic-match-head.c: Likewise.
26908 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26910 * fold-const.c (fold_vec_perm): Export.
26911 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26912 (match.pd): ...here.
26914 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26916 * cfgloop.h (struct loop): Add simdlen member.
26917 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26918 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26919 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26920 as new argument to autovectorize_vector_sizes target hook. If
26921 loop->simdlen, pick up vector size where the vectorization factor
26922 is equal to loop->simd, and if there is none, fall back to the first
26924 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26926 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26927 * omp-general.c (omp_max_vf): Likewise.
26928 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26929 * tree-vect-slp.c (vect_slp_bb): Likewise.
26930 * target.def (autovectorize_vector_sizes): Add ALL argument and
26932 * doc/tm.texi: Adjust documentation.
26933 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26934 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26935 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26937 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26938 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26939 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26940 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26941 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26942 preferred vector size is not 512-bit or 256-bit, just put those
26943 unpreferred ones last.
26945 2019-05-20 Martin Liska <mliska@suse.cz>
26947 * targhooks.c (default_libc_has_fast_function): New function.
26948 * targhooks.h (default_libc_has_fast_function): Likewise.
26950 2019-05-20 Martin Liska <mliska@suse.cz>
26952 PR middle-end/90263
26953 * builtins.c (expand_builtin_memory_copy_args): When having a
26954 target with fast mempcpy implementation do now use memcpy.
26955 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26956 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26957 * doc/tm.texi: Likewise.
26958 * doc/tm.texi.in: Likewise.
26960 * expr.c (emit_block_move_hints): Add 2 new arguments.
26961 * expr.h (emit_block_move_hints): Bail out when libcall
26962 to memcpy would be used.
26964 2019-05-20 Martin Liska <mliska@suse.cz>
26966 * profile-count.c: Add vertical spacing in order
26967 to separate functions.
26968 * profile-count.h: Likewise.
26970 2019-05-20 Martin Liska <mliska@suse.cz>
26972 * profile-count.h: Do not use full qualified
26974 * profile-count.c (profile_count::to_frequency): Likewise.
26976 2019-05-20 Martin Liska <mliska@suse.cz>
26978 * profile-count.h (enum profile_quality): Use capital letters
26979 for enum value names. Use the adjusted names.
26980 * profile-count.c: Use the adjusted names.
26982 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26984 * config/rs6000/constraints.md (define_register_constraint "wH"):
26986 (define_register_constraint "wI"): Delete.
26987 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26988 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26989 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26990 (rs6000_init_hard_regno_mode_ok): Adjust.
26991 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26992 resp. "d", or with "wa" as appropriate, all with "p8v".
26993 * config/rs6000/vsx.md: Ditto.
26994 * doc/md.texi (Machine Constraints): Adjust.
26996 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26998 * config/rs6000/constraints.md (define_register_constraint "wy"):
27000 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27001 RS6000_CONSTRAINT_wy.
27002 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27003 (rs6000_init_hard_regno_mode_ok): Adjust.
27004 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27005 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27006 (define_mode_attr Fisa): New.
27007 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27008 * doc/md.texi (Machine Constraints): Adjust.
27010 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27012 * config/rs6000/constraints.md (define_register_constraint "wu"):
27014 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27015 RS6000_CONSTRAINT_wu.
27016 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27017 (rs6000_init_hard_regno_mode_ok): Adjust.
27018 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27020 (define_mode_attr Fa): Delete.
27021 * config/rs6000/vsx.md: Ditto.
27022 * doc/md.texi (Machine Constraints): Adjust.
27024 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27026 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27028 (define_register_constraint "wK"): Delete.
27029 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27030 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27031 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27032 (rs6000_init_hard_regno_mode_ok): Adjust.
27033 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27034 Replace "wK" constraint by "wH" with "p9v".
27035 * config/rs6000/vsx.md: Ditto.
27036 * doc/md.texi (Machine Constraints): Adjust.
27038 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27040 * config/rs6000/constraints.md (define_register_constraint "wb"):
27042 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27043 RS6000_CONSTRAINT_wb.
27044 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27045 (rs6000_init_hard_regno_mode_ok): Adjust.
27046 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27047 * config/rs6000/vsx.md: Ditto.
27048 * doc/md.texi (Machine Constraints): Adjust.
27050 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27052 * config/rs6000/constraints.md (define_register_constraint "wo"):
27054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27055 RS6000_CONSTRAINT_wo.
27056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27057 (rs6000_init_hard_regno_mode_ok): Adjust.
27058 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27059 * config/rs6000/altivec.md: Ditto.
27060 * doc/md.texi (Machine Constraints): Adjust.
27062 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27064 * config/darwin-c.c (darwin_register_objc_includes): Do not
27065 prepend the sysroot when building gnu-runtime header search
27068 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27070 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27071 instead of direct output of the asm.
27073 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27075 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27076 argument to be type bool (was int before).
27077 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27078 at first use. Use type bool for some variables. Fix a theoretical
27079 eh_return bug for svr4.
27081 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27083 * config/rs6000/rs6000.md (isa): New attribute.
27084 (enabled): New attribute.
27086 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27088 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27089 assemble_start_function and assemble_end_function.
27091 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27093 PR middle-end/89433
27094 * omp-general.c (oacc_verify_routine_clauses): Change formal
27095 parameters. Add checking if already marked with an OpenACC
27096 'routine' directive. Adjust all users.
27098 PR middle-end/89433
27099 * omp-general.c (oacc_build_routine_dims): Move some of its
27101 (oacc_verify_routine_clauses): ... this new function.
27102 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27104 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27106 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27107 formating of picbase labels to match other ports.
27109 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27111 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27112 in the generated code.
27114 2019-05-16 Martin Sebor <msebor@redhat.com>
27116 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27117 identifiers, keywords, operators, and types in diagnostics. Correct
27118 quoting, spelling, and sentence capitalization issues.
27119 (expand_builtin_atomic_is_lock_free): Same.
27120 (fold_builtin_next_arg): Same.
27121 * cfgexpand.c (expand_one_var): Same.
27122 (tree_conflicts_with_clobbers_p): Same.
27123 (expand_asm_stmt): Same.
27124 (verify_loop_structure): Same.
27125 * cgraphunit.c (process_function_and_variable_attributes): Same.
27126 * collect-utils.c (collect_execute): Same.
27127 * collect2.c (maybe_run_lto_and_relink): Same.
27128 (is_lto_object_file): Same.
27129 (scan_prog_file): Same.
27130 * convert.c (convert_to_real_1): Same.
27131 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27132 * except.c (verify_eh_tree): Same.
27133 * gcc.c (execute): Same.
27134 (eval_spec_function): Same.
27135 (run_attempt): Same.
27136 (driver::set_up_specs): Same.
27137 (compare_debug_auxbase_opt_spec_function): Same.
27138 * gcov-tool.c (unlink_gcda_file): Same.
27140 (do_rewrite): Same.
27141 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27142 * gimplify.c (gimplify_asm_expr): Same.
27143 (gimplify_adjust_omp_clauses): Same.
27144 * hsa-gen.c (gen_hsa_addr_insns): Same.
27145 (gen_hsa_insns_for_load): Same.
27146 (gen_hsa_cmp_insn_from_gimple): Same.
27147 (gen_hsa_insns_for_operation_assignment): Same.
27148 (gen_get_level): Same.
27149 (gen_hsa_alloca): Same.
27150 (omp_simple_builtin::generate): Same.
27151 (gen_hsa_atomic_for_builtin): Same.
27152 (gen_hsa_insns_for_call): Same.
27153 * input.c (dump_location_info): Same.
27154 * ipa-devirt.c (compare_virtual_tables): Same.
27155 * ira.c (ira_setup_eliminable_regset): Same.
27156 * lra-assigns.c (lra_assign): Same.
27157 * lra-constraints.c (lra_constraints): Same.
27158 * lto-streamer-in.c (lto_input_mode_table): Same.
27159 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27160 (merge_and_complain): Same.
27161 (compile_offload_image): Same.
27162 (compile_images_for_offload_targets): Same.
27163 (debug_objcopy): Same.
27166 * opts.c (print_specific_help): Same.
27167 (parse_no_sanitize_attribute): Same.
27168 (print_help): Same.
27169 (handle_param): Same.
27170 * plugin.c (add_new_plugin): Same.
27171 (parse_plugin_arg_opt): Same.
27172 (try_init_one_plugin): Same.
27173 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27174 operators, and types in diagnostics. Correct quoting and spelling
27176 * read-rtl-function.c (parse_edge_flag_token): Same.
27177 (function_reader::parse_enum_value): Same.
27178 * reg-stack.c (check_asm_stack_operands): Same.
27179 * regcprop.c (validate_value_data): Same.
27180 * sched-rgn.c (make_pass_sched_fusion): Same.
27181 * stmt.c (check_unique_operand_names): Same.
27182 * targhooks.c (default_target_option_pragma_parse): Same.
27183 * tlink.c (recompile_files): Same.
27184 * toplev.c (process_options): Same.
27185 (do_compile): Same.
27186 * trans-mem.c (diagnose_tm_1): Same.
27187 (ipa_tm_scan_irr_block): Same.
27188 (ipa_tm_diagnose_transaction): Same.
27189 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27190 format a tree code name in a diagnostic.
27191 (verify_types_in_gimple_min_lval): Same.
27192 (verify_types_in_gimple_reference): Same.
27193 (verify_gimple_call): Same.
27194 (verify_gimple_assign_unary): Same.
27195 (verify_gimple_assign_binary): Same.
27196 (verify_gimple_assign_ternary): Same.
27197 (verify_gimple_assign_single): Same.
27198 (verify_gimple_switch): Same.
27199 (verify_gimple_label): Same.
27200 (verify_gimple_phi): Same.
27201 (verify_gimple_in_seq): Same.
27202 (verify_eh_throw_stmt_node): Same.
27203 (collect_subblocks): Same.
27204 (gimple_verify_flow_info): Same.
27205 (do_warn_unused_result): Same.
27206 * tree-inline.c (expand_call_inline): Same.
27207 * tree-into-ssa.c (update_ssa): Same.
27208 * tree.c (tree_int_cst_elt_check_failed): Same.
27209 (tree_vec_elt_check_failed): Same.
27210 (omp_clause_operand_check_failed): Same.
27211 (verify_type_variant): Same.
27212 (verify_type): Same.
27213 * value-prof.c (verify_histograms): Same.
27214 * varasm.c (assemble_start_function): Same.
27216 2019-05-16 Martin Sebor <msebor@redhat.com>
27218 * config/i386/i386-expand.c (get_element_number): Quote keywords
27219 and other internal names in diagnostics. Adjust other diagnostic
27220 formatting issues noted by -Wformat-diag.
27221 * config/i386/i386-features.c
27222 (ix86_mangle_function_version_assembler_name): Same.
27223 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27224 * config/i386/i386.c (ix86_function_type_abi): Same.
27225 (ix86_function_ms_hook_prologue): Same.
27226 (classify_argument): Same.
27227 (ix86_expand_prologue): Same.
27228 (ix86_md_asm_adjust): Same.
27229 (ix86_memmodel_check): Same.
27231 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27233 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27234 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27237 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27240 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27241 intrinsics without SSE/SSE2/SSSE3.
27242 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27244 (*mmx_uavgv8qi3): Likewise.
27246 2019-05-17 Richard Biener <rguenther@suse.de>
27248 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27249 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27251 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27253 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27254 vec_sldw insn pattern.
27256 2019-05-17 Richard Biener <rguenther@suse.de>
27258 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27260 2019-05-17 Martin Liska <mliska@suse.cz>
27263 * toplev.c (output_stack_usage): With LTO and sanitizer it
27264 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27265 has no file location.
27267 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27270 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27271 sz0 is equal to sz1, instead return false in that case.
27273 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27274 has non-constant expression, force sctx.lane and use two
27275 argument IFN_GOMP_SIMD_LANE instead of single argument.
27276 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27277 two argument IFN_GOMP_SIMD_LANE without lhs.
27278 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27280 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27282 (LOOP_REQUIRES_VERSIONING): Or in
27283 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27284 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27286 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27287 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27288 from simd if clause if needed.
27290 2019-05-16 Richard Biener <rguenther@suse.de>
27292 * tree-affine.c (expr_to_aff_combination): New function split
27294 (tree_to_aff_combination): ... here.
27295 (aff_combination_expand): Avoid building a GENERIC tree.
27297 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27299 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27300 assemble_start_function and assemble_end_function calls.
27301 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27302 assemble_start_function and assemble_end_function.
27303 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27304 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27305 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27306 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27307 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27308 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27309 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27310 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27311 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27312 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27313 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27314 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27316 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27317 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27318 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27319 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27320 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27321 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27322 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27323 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27324 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27325 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27326 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27327 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27328 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27329 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27331 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27332 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27333 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27335 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27337 * tree-ssa-alias.c (alias_stats): Add
27338 aliasing_component_refs_p_may_alias and
27339 aliasing_component_refs_p_no_alias.
27340 (dump_alias_stats): Print aliasing_component_refs_p stats.
27341 (aliasing_component_refs_p): Update stats.
27343 2019-05-16 Martin Liska <mliska@suse.cz>
27346 * multiple_target.c (expand_target_clones): Do not allow
27347 target_clones being used with a symbol that is an alias.
27349 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27351 PR tree-optimization/90394
27352 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27353 positives rather than ICE for cases where (code2 == NE_EXPR
27354 && code1 == BIT_AND_EXPR).
27356 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27359 * tree-core.h (struct tree_decl_common): Document
27360 decl_nonshareable_flag for PARM_DECLs.
27361 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27362 * calls.c (expand_call): Don't try tail call if caller
27363 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27364 passed on the stack and callee needs to pass any arguments on the
27366 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27367 else if instead of series of mutually exclusive ifs. Handle
27368 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27369 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27371 * lto-streamer.h (LTO_major_version): Bump to 9.
27373 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27375 PR tree-optimization/90106
27376 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27377 new parameter as new internal function call, also move it to new
27379 (use_internal_fn): Pass internal function call to
27380 shrink_wrap_one_built_in_call_with_conds.
27382 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27384 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27386 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27387 safelen_int and set loop->dont_vectorize.
27389 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27392 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27394 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27396 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27397 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27398 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27401 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27404 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27405 define_insn_and_split to support SSE emulation.
27406 (*vec_extractv2sf_0): Likewise.
27407 (*vec_extractv2sf_1): Likewise.
27408 (*vec_extractv2si_0): Likewise.
27409 (*vec_extractv2si_1): Likewise.
27410 (*vec_extractv2si_zext_mem): Likewise.
27411 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27412 (vec_extractv2sf_1 splitter): Likewise.
27413 (vec_extractv2sfsf): Likewise.
27414 (vec_setv2si): Likewise.
27415 (vec_extractv2si_1 splitter): Likewise.
27416 (vec_extractv2sisi): Likewise.
27417 (vec_setv4hi): Likewise.
27418 (vec_extractv4hihi): Likewise.
27419 (vec_setv8qi): Likewise.
27420 (vec_extractv8qiqi): Likewise.
27421 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27422 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27423 (vec_extractv2sisi): Likewise.
27424 (vec_extractv4hihi): Likewise.
27425 (vec_extractv8qiqi): Likewise.
27426 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27427 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27428 (vec_initv2sisi): Likewise.
27429 (vec_initv4hihi): Likewise.
27430 (vec_initv8qiqi): Likewise.
27431 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27432 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27433 (vec_setv4hi): Likewise.
27434 (vec_setv8qi): Likewise.
27436 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27439 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27440 TARGET_MMX_WITH_SSE.
27441 (MMXMODE:*mov<mode>_internal): Likewise.
27442 (MMXMODE:movmisalign<mode>): Likewise.
27444 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27447 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27448 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27449 (sse2_cvtpd2pi): Ditto.
27450 (sse2_cvttpd2pi): Ditto.
27451 (*vec_concatv2sf_sse4_1): Ditto.
27452 (*vec_concatv2sf_sse): Ditto.
27453 (*vec_concatv2si_sse4_1): Ditto.
27454 (*vec_concatv2si): Ditto.
27455 (*vec_concatv4si_0): Ditto.
27456 (*vec_concatv2di_0): Ditto.
27458 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27461 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27463 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27466 * config/i386/sse.md (ssse3_palignrdi): Changed to
27467 define_insn_and_split to support SSE emulation.
27469 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27472 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27477 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27478 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27481 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27484 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27485 or TARGET_MMX_WITH_SSE.
27486 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27488 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27491 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27493 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27496 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27497 Changed to define_insn_and_split to support SSE emulation.
27499 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27502 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27503 Changed to define_insn_and_split to support SSE emulation.
27505 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27508 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27509 (*mmx_<emms>): This.
27510 (mmx_<emms>): New expander.
27512 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27515 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27517 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27519 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27522 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27524 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27527 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27529 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27532 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27533 TARGET_MMX_WITH_SSE.
27534 (*mmx_uavgv4hi3): Add SSE emulation.
27536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27539 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27540 and TARGET_MMX_WITH_SSE.
27541 (*mmx_uavgv8qi3): Add SSE emulation.
27543 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27546 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27547 maskmovdqu for __MMX_WITH_SSE__.
27549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27552 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27553 TARGET_MMX and TARGET_MMX_WITH_SSE.
27554 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27556 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27559 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27560 define_insn_and_split to support SSE emulation.
27562 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27565 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27566 and TARGET_MMX_WITH_SSE.
27567 (mmx_<code>v8qi3): Likewise.
27568 (smaxmin:<code>v4hi3): New.
27569 (umaxmin:<code>v8qi3): Likewise.
27570 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27571 (umaxmin:*mmx_<code>v8qi3): Likewise.
27573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27576 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27577 TARGET_MMX_WITH_SSE.
27578 (*mmx_pinsrw): Add SSE emulation.
27580 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27583 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27585 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27588 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27589 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27592 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27595 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27596 (sse_cvttps2pi): Likewise.
27598 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27601 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27602 TARGET_MMX_WITH_SSE.
27603 (mmx_pshufw_1): Add SSE emulation.
27604 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27605 TARGET_MMX_WITH_SSE to support SSE emulation.
27607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27610 * config/i386/constraints.md (Yw): New constraint.
27611 * config/i386/mmx.md (*vec_dupv2si): Changed to
27612 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27613 support SSE emulation.
27615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27618 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27619 TARGET_MMX_WITH_SSE.
27620 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27622 (mmx_gt<mode>3): Likewise.
27624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27627 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27628 TARGET_MMX_WITH_SSE. Add SSE support.
27630 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27633 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27634 TARGET_MMX_WITH_SSE.
27635 (any_logic:<code><mode>3): New.
27636 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27639 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27642 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27643 TARGET_MMX_WITH_SSE. Add SSE emulation.
27644 (mmx_<shift_insn><mode>3): Likewise.
27645 (ashr<mode>3): New.
27646 (<shift_insn><mode>3): Likewise.
27648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27651 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27652 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27657 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27658 TARGET_MMX_WITH_SSE.
27659 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27662 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27665 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27666 TARGET_MMX_WITH_SSE.
27668 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27674 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27675 (plusminus:mmx_<plusminus_insn><mode>3): Check
27676 TARGET_MMX_WITH_SSE.
27677 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27678 (<plusminus_insn><mode>3): New.
27679 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27680 (*mmx_<plusminus_insn><mode>3): Likewise.
27682 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27685 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27686 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27688 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27689 define_insn_and_split to support SSE emulation.
27690 (mmx_punpcklbw): Likewise.
27691 (mmx_punpckhwd): Likewise.
27692 (mmx_punpcklwd): Likewise.
27693 (mmx_punpckhdq): Likewise.
27694 (mmx_punpckldq): Likewise.
27696 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27697 Uros Bizjak <ubizjak@gmail.com>
27700 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27702 (ix86_split_mmx_pack): Likewise.
27703 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27705 (ix86_split_mmx_pack): Likewise.
27706 * config/i386/i386.md (mmx_isa): New.
27707 (enabled): Also check mmx_isa.
27708 * config/i386/mmx.md (any_s_truncate): New code iterator.
27709 (s_trunsuffix): New code attr.
27710 (mmx_packsswb): Removed.
27711 (mmx_packssdw): Likewise.
27712 (mmx_packuswb): Likewise.
27713 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27714 MMX packsswb/packuswb with SSE2.
27715 (mmx_packssdw): Likewise.
27716 * config/i386/predicates.md (register_mmxmem_operand): New.
27718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27721 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27722 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27723 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27724 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27725 (ix86_vector_mode_supported_p): Likewise.
27726 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27728 2019-05-15 Martin Liska <mliska@suse.cz>
27730 PR middle-end/90478
27731 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27732 Check for overflow.
27734 2019-05-15 Richard Biener <rguenther@suse.de>
27736 * tree-into-ssa.c (pass_build_ssa::execute): Run
27737 update_address_taken before going into SSA.
27739 2019-05-15 Richard Biener <rguenther@suse.de>
27741 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27742 as __BIT_FIELD_REF with type with -gimple.
27744 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27746 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27747 semantically equivalent branches (left over after prior refactorings).
27749 2019-05-15 Richard Biener <rguenther@suse.de>
27751 PR tree-optimization/88828
27752 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27755 2019-05-14 Richard Biener <rguenther@suse.de>
27757 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27758 as __VIEW_CONVERT with -gimple.
27760 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27763 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27766 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27768 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27769 define_split to become a define_insn_and_split.
27771 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27773 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27775 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27776 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27777 (sibcall_epilogue): Adjust.
27778 (epilogue): Adjust.
27780 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27782 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27783 to unsupported ones.
27784 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27785 * config.host: Likewise.
27786 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27787 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27788 __svr4__]: Remove "brand" fallback.
27789 [!KSTAT_DATA_STRING]: Remove.
27790 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27792 (comdat_group): Likewise.
27793 (set_have_as_tls): Likewise.
27794 (gcc_cv_target_dl_iterate_phdr): Likewise.
27795 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27796 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27797 * configure: Regenerate.
27798 * doc/install.texi: Simplify Solaris target triplets.
27799 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27800 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27801 Remove Solaris 10 references.
27802 Remove obsolete Solaris bug reference.
27803 (Specific, sparc-sun-solaris2.10): Remove.
27805 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27807 * config/i386/i386.md (any_div): New code iterator.
27808 (paired_mod): New code attribute.
27809 (sgnprefix): Handle DIV and UDIV RTXes.
27811 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27812 and udivmod<mode>4 patterns using any_div code iterator.
27813 (divmod splitters): Macroize splitters using any_div code iterator.
27814 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27815 (*udivmodsi4_pow2_zext_2): Ditto.
27816 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27817 and *udivmod<mode>4_noext patterns using any_div code iterator.
27818 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27819 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27820 patterns using any_div code iterator.
27821 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27822 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27823 patterns using any_div code iterator.
27824 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27825 udivmodhiqi3 patterns using any_extend code iterator.
27827 2019-05-14 Richard Biener <rguenther@suse.de>
27828 H.J. Lu <hongjiu.lu@intel.com>
27830 PR tree-optimization/88828
27831 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27832 permuting in a single non-constant element not extracted
27835 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27837 * internal-fn.def (SIGNBIT): New.
27838 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27840 (signbitv4sf2): Likewise.
27842 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27845 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27846 next insn when the SRC reg is dead.
27848 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27850 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27851 (alloc_cand_and_find_basis): Ditto.
27852 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27853 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27854 (create_add_imm_cand, slsr_process_cast): Ditto.
27855 (slsr_process_copy, replace_mult_candidate): Ditto.
27856 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27857 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27858 (pass_strength_reduction::execute): Init the first NULL element.
27860 2019-05-13 Nathan Sidwell <nathan@acm.org>
27862 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27863 (run_attempt): Reformat line break.
27865 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27868 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27869 data registers in sibcall epilogues.
27870 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27872 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27875 * configure.ac (--enable-frame-pointer):
27876 Disable by default for cygwin and mingw.
27877 * configure: Regenerate.
27879 2019-05-13 Nathan Sidwell <nathan@acm.org>
27881 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27883 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27884 (gen_member_die): Move abstract origin check earlier. Only VARs
27885 can be static_inline_p. Simplify splicing control flow.
27887 2019-05-13 Richard Biener <rguenther@suse.de>
27889 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27891 (vect_build_slp_tree_1): Likewise.
27893 2019-05-13 Richard Biener <rguenther@suse.de>
27895 PR tree-optimization/90402
27896 * tree-if-conv.c (tree_if_conversion): Value number only
27897 the loop body by making the latch an exit of the region
27899 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27901 (do_rpo_vn): Deal with multiple edges into the entry block
27902 that are not backedges inside the region by skipping PHIs
27903 of the entry block.
27905 2019-05-13 Richard Biener <rguenther@suse.de>
27907 PR tree-optimization/90316
27908 * tree-ssa-pre.c (insert_aux): Fold into ...
27909 (insert): ... this function. Use a RPO walk to reduce the
27910 number of required iterations.
27912 2019-05-13 Martin Liska <mliska@suse.cz>
27914 PR tree-optimization/90416
27915 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27916 string instead of passing the second part as va_arg argument.
27918 2019-05-13 Martin Liska <mliska@suse.cz>
27920 PR gcov-profile/90380
27921 * gcov.c (handle_cycle): Do not support zero cycle count,
27922 it should not be possible.
27923 (path_contains_zero_cycle_arc): New function.
27924 (circuit): Ignore zero cycle arc counts.
27926 2019-05-13 Martin Liska <mliska@suse.cz>
27928 PR gcov-profile/90380
27929 * gcov.c (enum loop_type): Remove the enum and
27931 (handle_cycle): Assert that we should not reach
27933 (circuit): Use loop_found instead of a tri-state loop_type.
27934 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27937 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27940 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27941 (ix86_output_indirect_branch_via_reg): Use output mechanism
27942 accounting for __USER_LABEL_PREFIX__.
27943 (ix86_output_indirect_branch_via_push): Likewise.
27944 (ix86_output_function_return): Likewise.
27945 (ix86_output_indirect_function_return): Likewise.
27947 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27949 * doc/md.texi: Document use of code attributes in rtx patterns.
27950 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27951 * read-rtl.c (find_code): Split out search loops into...
27952 (maybe_find_code): ...this new function.
27953 (check_code_iterator): Make the error message more informative.
27954 (check_code_attribute): New function.
27955 (rtx_reader::rtx_alloc_for_name): Likewise.
27956 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27957 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27958 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27959 <max_opp> directly as an rtx code instead of via a match_operator.
27960 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27961 (<su>abd<mode>_3): Update accordingly.
27963 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27965 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27966 is given, print the state of the EH "save world" computation for
27969 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27972 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27973 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27975 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27977 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27978 Use pinsrd for TARGET_SSE4_1.
27979 * config/i386/sse.md (movdi_to_sse): Ditto.
27981 2019-05-10 Richard Biener <rguenther@suse.de>
27983 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27984 (do_rpo_vn): Initialize next_value_id.
27986 2019-05-10 Martin Liska <mliska@suse.cz>
27988 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27991 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27993 PR tree-optimization/90385
27994 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27995 arguments of the exit phis.
27998 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27999 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28001 (copy_tree_body_r): Likewise.
28002 (copy_fn): Set id.do_not_fold to true.
28004 2019-05-10 Martin Liska <mliska@suse.cz>
28006 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28007 Reapply changes from r269790.
28009 2019-05-10 Martin Liska <mliska@suse.cz>
28011 PR middle-end/90340
28012 * doc/invoke.texi: New params.
28013 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28014 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28015 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28017 * tree-switch-conversion.h (struct jump_table_cluster):
28020 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28022 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28024 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28026 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28028 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28030 PR rtl-optimization/88879
28031 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28033 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28036 * config/arm/arm.c (callee_saved_reg_p): Move before
28037 thumb_find_work_register.
28038 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28039 thumb_find_work_register. Only call df_get_live_out once.
28040 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28041 (thumb_find_work_register): Use
28042 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28043 algorithms to locate a spare call clobbered reg.
28045 2019-05-09 Martin Liska <mliska@suse.cz>
28047 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28048 and MAX_EXPR in GIMPLE FE format.
28050 2019-05-09 Martin Liska <mliska@suse.cz>
28052 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28053 * gimple-pretty-print.c (dump_gimple_bb_header):
28055 (pp_cfg_jump): Dump edge probability.
28056 * profile-count.c (profile_quality_as_string): Simplify
28057 with a static array.
28058 (parse_profile_quality): New function.
28059 (profile_count::dump): Simplify with a static array.
28060 (profile_count::from_gcov_type): Add new argument.
28061 * profile-count.h (parse_profile_quality): Likewise.
28062 * predict.h (set_hot_bb_threshold): New.
28063 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28065 * predict.c (get_hot_bb_threshold): Set from the new param.
28066 (set_hot_bb_threshold): New.
28068 2019-05-09 Richard Biener <rguenther@suse.de>
28070 PR tree-optimization/90395
28071 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28072 rewrite vector stores that throw internally.
28074 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28076 * cif-code.def (CHKP): Remove.
28079 * configure.ac (--enable-frame-pointer): Disable by default for
28081 * configure: Regenerate.
28083 2019-05-09 Alan Modra <amodra@gmail.com>
28086 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28087 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28088 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28089 cost for general <-> vsx when direct moves are available.
28090 Cost union classes at minimal cost for any reg in the class.
28091 Correct calculation for moves between vsx, float, and altivec.
28092 Don't return a low cost for moves between special regs. Don't
28093 use hard coded register numbers.
28094 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28095 (rs6000_ira_change_pseudo_allocno_class): New function.
28096 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28097 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28099 (movsi_internal1): Don't disparage vector alternatives.
28100 (mov<mode>_internal): Likewise, excepting alternative that
28102 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28103 we <- b alternative.
28105 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28108 PR tree-optimization/89060
28109 * tree-ssa-live.h (live_vars_map): New typedef.
28110 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28111 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28112 (struct compute_live_vars_data): New type.
28113 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28114 live_vars_at_stmt, destroy_live_vars): New functions.
28115 * tree-tailcall.c: Include tree-ssa-live.h.
28116 (live_vars, live_vars_vec): New global variables.
28117 (find_tail_calls): Perform variable life analysis before punting.
28118 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28119 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28121 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28122 Perform variable life analysis to select variables that really need
28124 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28125 instead set id->eh_landing_pad_dest and assert it is the same.
28126 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28128 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28129 Richard Earnshaw <rearnsha@arm.com>
28132 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28134 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28135 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28136 register if both the epilogue and prologue can use call-clobbered
28138 (thumb1_unexpanded_epilogue): Use
28139 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28140 picking temporaries for restoring high regs to match that of the
28141 prologue where possible.
28142 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28143 the list of work registers. Detect if the return address is still live
28144 at the end of the prologue and avoid using it for a work register if so.
28145 If the return address is not live, add LR to the list of pushable regs
28146 after the first pass.
28148 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28150 PR tree-optimization/90078
28151 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28152 (INFTY): Increase the value for infinite cost.
28153 (struct comp_cost): Promote type of members to int64_t.
28154 (infinite_cost): Don't set complexity in initialization.
28155 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28156 overflows to infinite_cost.
28157 (adjust_setup_cost): Promote type of parameter and cost computation
28159 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28161 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28162 cost computation to int64_t.
28163 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28164 int64_t's format specifier in dump.
28166 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28168 PR tree-optimization/90240
28169 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28170 with respect to scaling factor pre-computed for each basic block.
28171 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28172 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28173 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28174 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28175 live range for array of loop's basic blocks. Cleanup aux field of
28176 loop's basic blocks.
28178 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28180 PR tree-optimization/90356
28181 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28183 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28185 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28186 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28187 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28188 (ix86_handle_option): Handle -mavx512bf16.
28189 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28191 * config/i386/avx512bf16vlintrin.h: New.
28192 * config/i386/avx512bf16intrin.h: New.
28193 * config/i386/cpuid.h (bit_AVX512BF16): New.
28194 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28195 * config/i386/i386-builtin-types.def: Add new types.
28196 * config/i386/i386-builtin.def: Add new builtins.
28197 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28199 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28200 (ix86_option_override_internal): Handle BF16.
28201 (ix86_valid_target_attribute_inner_p): Ditto.
28202 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28203 * config/i386/i386-builtin.c (enum processor_features): Add
28205 (static const _isa_names_table isa_names_table): Ditto.
28206 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28207 (PTA_AVX512BF16): Ditto.
28208 * config/i386/i386.opt: Add -mavx512bf16.
28209 * config/i386/immintrin.h: Include avx512bf16intrin.h
28210 and avx512bf16vlintrin.h.
28211 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28212 avx512f_cvtneps2bf16_<mode><mask_name>,
28213 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28214 * config/i386/subst.md (mask_half): Add new subst.
28215 * doc/invoke.texi: Document -mavx512bf16.
28217 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28219 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28220 Delete declaration.
28221 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28222 (rs6000_debug_legitimize_reload_address): Delete.
28223 (rs6000_legitimize_reload_address_ptr): Delete.
28224 (rs6000_option_override_internal): Adjust.
28225 (mem_operand_gpr): Adjust comment.
28226 (legitimate_lo_sum_address_p): Ditto.
28227 (rs6000_legitimize_reload_address): Delete.
28228 (rs6000_debug_legitimize_reload_address): Delete.
28229 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28231 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28234 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28235 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28236 to compute vector element selector for both constant and variable
28239 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28241 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28242 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28243 ashrdi3_cvt using SWI48 mode iterator.
28245 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28247 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28248 (aarch64_<su>abd<mode>_3): Likewise.
28249 (*aarch64_<su>abd<mode>_3): New define_insn.
28250 (<sur>sad<vsi2qi>): New define_expand.
28251 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28252 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28253 (build_vect_cond_expr): Likewise.
28255 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28257 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28258 clobbers outside of accessible_reg_set.
28259 * config/i386/i386.c (ix86_conditional_register_usage):
28260 Disable register sets by clearing corresponding bits in
28261 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28262 call_used_regs and don't clear corresponding reg_names array members.
28264 2019-05-07 Richard Biener <rguenther@suse.de>
28266 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28267 not specified still compute a comp_vectype for invariant
28270 2019-05-07 Richard Biener <rguenther@suse.de>
28272 PR tree-optimization/90316
28273 * tree-ssa-pre.c (translate_vuse_through_block): When
28274 same_valid is NULL do not bother to search for a virtual
28276 (phi_translate_1): When operands changed we cannot keep
28277 the same value-number so do not bother to ask whether
28278 that's possible from translate_vuse_through_block.
28280 2019-05-07 Martin Liska <mliska@suse.cz>
28282 * bitmap.c (bitmap_register): Come up with
28283 alloc_descriptor_max_uid and assign it for
28285 (register_overhead): Use get_descriptor as
28287 (release_overhead): New.
28288 (bitmap_elem_to_freelist): Call it.
28289 (bitmap_elt_clear_from): Likewise.
28290 (bitmap_obstack_free): Likewise.
28291 (bitmap_move): Sensitively release memory.
28292 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28293 (bitmap_initialize): Initialize alloc_descriptor to zero.
28294 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28296 2019-05-07 Richard Biener <rguenther@suse.de>
28298 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28299 we build a SLP node. Remove max_size and limiting.
28300 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28302 2019-05-07 Richard Biener <rguenther@suse.de>
28304 PR tree-optimization/90316
28305 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28306 limit by reference.
28307 (walk_non_aliased_vuses): Take walking limit argument.
28308 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28309 walking if it is reached instead of just counting.
28310 (get_continuation_for_phi): Likewise.
28311 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28312 limiting to the callback.
28313 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28314 (vn_reference_lookup_3): Likewise.
28315 (vn_reference_lookup_pieces): Likewise.
28316 (vn_reference_lookup): Likewise.
28317 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28318 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28319 (avail_exprs_stack::lookup_avail_expr): Likewise.
28321 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28323 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28324 for comparaible types in the second direction even if first one
28325 hits incomparable type.
28327 2019-05-07 Richard Biener <rguenther@suse.de>
28330 * lto-wrapper.c (debug_objcopy): Use the original filename
28331 including archive offset for the filename used for -save-temps.
28333 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28335 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28338 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28339 Hongtao Liu <hongtao.liu@intel.com>
28343 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28344 Modified, original implementation isn't correct.
28346 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28348 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28349 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28350 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28351 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28352 (FRAME_POINTER_REGNUM): Change numbering.
28353 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28354 (alt_reg_names): Adjust.
28355 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28357 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28358 (DWARF_FRAME_REGISTERS): Delete.
28359 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28360 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28362 (REG_ALLOC_ORDER): Adjust.
28363 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28364 (REG_CLASS_CONTENTS): Adjust.
28365 (RETURN_ADDR_RTX): Change comment.
28366 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28368 (REGISTER_NAMES): Adjust.
28369 (ADDITIONAL_REGISTER_NAMES): Adjust.
28370 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28372 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28374 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28376 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28377 (DWARF_FRAME_REGISTERS): Adjust.
28378 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28380 (REG_ALLOC_ORDER): Adjust.
28381 (enum reg_class): Delete SPR_REGS.
28382 (REG_CLASS_NAMES): Delete SPR_REGS.
28383 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28384 (REGISTER_NAMES): Adjust.
28385 (ADDITIONAL_REGISTER_NAMES): Adjust.
28386 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28387 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28388 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28389 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28390 (htm_spr_regno): Delete.
28391 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28393 (rs6000_dbx_register_number): Adjust.
28395 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28397 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28399 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28401 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28402 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28404 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28406 PR tree-optimization/88709
28407 PR tree-optimization/90271
28408 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28409 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28410 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28412 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28413 of the store merging group is larger than
28414 PARAM_STORE_MERGING_MAX_SIZE parameter.
28415 (split_group): Add bzero_first argument. If set, always emit first
28416 the first store which must be = {} of the whole area and then for the
28417 rest of the stores consider all zero bytes as paddings.
28418 (imm_store_chain_info::output_merged_store): Check if first store
28419 is = {} of the whole area and if yes, determine which setting of
28420 bzero_first for split_group gives smaller number of stores. Adjust
28421 split_group callers.
28422 (lhs_valid_for_store_merging_p): Allow decls.
28423 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28425 (pass_store_merging::process_store): Likewise.
28427 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28430 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28431 handling of V1TImode.
28433 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28436 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28437 and enable_frame_pointer ...
28438 * configure.ac: ... here. Update help strings for
28439 --enable-frame-pointer.
28440 * configure: Regenerate.
28441 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28442 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28443 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28444 (USE_X86_64_FRAME_POINTER): Ditto.
28446 2019-05-06 Martin Liska <mliska@suse.cz>
28448 * config.gcc: Append to target_gtfiles and fix indentation.
28450 2019-05-06 Richard Biener <rguenther@suse.de>
28452 PR tree-optimization/90358
28453 * tree-vect-stmts.c (get_group_load_store_type): Properly
28454 detect unused upper half of load.
28455 (vectorizable_load): Likewise.
28457 2019-05-06 Richard Biener <rguenther@suse.de>
28459 PR tree-optimization/88828
28460 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28461 (simplify_vector_constructor): ...here. Handle constants in
28464 2019-05-06 Richard Biener <rguenther@suse.de>
28466 PR tree-optimization/90328
28467 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28468 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28469 is valid in the loop nest before using it.
28470 (initialize_data_dependence_relation): Adjust.
28471 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28472 loop as loop-nest to dr_may_alias_p.
28474 2019-05-06 Richard Biener <rguenther@suse.de>
28476 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28478 2019-05-06 Richard Biener <rguenther@suse.de>
28480 PR tree-optimization/90316
28481 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28482 compute target on demand.
28483 (get_continuation_for_phi): Remove code walking stmts to
28484 get to a target virtual operand which could end up being
28487 2019-05-06 Martin Liska <mliska@suse.cz>
28490 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28491 when -mabi is selected to a non-default version.
28493 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28494 Martin Liska <mliska@suse.cz>
28496 * Makefile.in: Add lto-dump.texi.
28497 * cgraph.h: Add new functions get_visibility_string and
28498 get_symtab_type_string.
28499 * doc/gcc.texi: Include lto-dump section.
28500 * doc/lto-dump.texi: New file.
28501 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28502 (parse_dump_option): Factor out this function.
28503 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28504 (parse_dump_option): Export the function.
28505 * symtab.c (symtab_node::get_visibility_string): New function.
28506 (symtab_node::get_symtab_type_string): Likewise.
28508 2019-05-06 Martin Liska <mliska@suse.cz>
28510 * config/i386/i386-builtins.c: New file.
28511 * config/i386/i386-builtins.h: New file.
28512 * config/i386/i386-expand.c: New file.
28513 * config/i386/i386-expand.h: New file.
28514 * config/i386/i386-features.c: New file.
28515 * config/i386/i386-features.h: New file.
28516 * config/i386/i386-options.c: New file.
28517 * config/i386/i386-options.h: New file.
28518 * config.gcc: Add new files into extra_objs and
28520 * config/i386/i386.c: Split content of the file
28521 into newly introduced files.
28522 * config/i386/i386.h: Declare common variables
28524 * config/i386/t-i386: Define dependencies for new files.
28526 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28529 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28530 Restrict 'all' variant to 32-bit configurations.
28531 (unaligned_loadhiu): Likewise.
28532 (unaligned_storehi): Likewise.
28533 (unaligned_storesi): Likewise.
28534 (unaligned_loadhis): Disable when compiling for thumb1.
28536 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28538 PR tree-optimization/90269
28539 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28542 2019-05-03 Martin Liska <mliska@suse.cz>
28544 * hash-map.h: Add is_empty function.
28545 * hash-set.h: Likewise.
28546 * hash-table.h: Likewise.
28547 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28548 elements () == 0 (and similar usages).
28549 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28550 * gimplify.c (gimplify_bind_expr): Likewise.
28551 (gimplify_switch_expr): Likewise.
28552 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28553 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28554 * postreload-gcse.c (dump_hash_table): Likewise.
28555 (gcse_after_reload_main): Likewise.
28556 * predict.c (combine_predictions_for_bb): Likewise.
28557 * tree-parloops.c (reduction_phi): Likewise.
28558 (separate_decls_in_region): Likewise.
28559 (transform_to_exit_first_loop): Likewise.
28560 (gen_parallel_loop): Likewise.
28561 (gather_scalar_reductions): Likewise.
28562 (try_create_reduction_list): Likewise.
28563 * var-tracking.c (dump_vars): Likewise.
28564 (emit_notes_for_changes): Likewise.
28565 (vt_emit_notes): Likewise.
28567 2019-05-03 Richard Biener <rguenther@suse.de>
28569 PR tree-optimization/90316
28570 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28573 2019-05-03 Richard Biener <rguenther@suse.de>
28575 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28576 peeling for gaps by loading only lower halves of vectors
28578 (vectorizable_load): Likewise.
28580 2019-05-03 Richard Biener <rguenther@suse.de>
28582 PR middle-end/89518
28583 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28585 2019-05-03 Richard Biener <rguenther@suse.de>
28587 PR middle-end/87314
28588 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28589 Handle STRING_CST vs DECL or STRING_CST.
28591 2019-05-03 Richard Biener <rguenther@suse.de>
28593 PR tree-optimization/88963
28594 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28595 vector loads feeding only BIT_FIELD_REFs to component
28596 loads. Rewrite stores fed by CONSTRUCTORs to component
28599 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28601 * opts.h (finish_options): Remove lang_mask argument.
28602 (print_help, help_option_argument): Declare.
28603 * opts.c (print_help): Remove forward declaration, no longer static.
28604 (finish_options): Remove lang_mask argument, don't call print_help
28606 * opts-global.c (decode_options): Adjust finish_option caller, call
28609 PR tree-optimization/90303
28610 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28611 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28613 2019-05-03 Richard Biener <rguenther@suse.de>
28615 PR tree-optimization/89698
28616 * gimple-fold.c (canonicalize_constructor_val): Early out
28617 for constants, handle unfolded INTEGER_CSTs as they appear in
28618 C++ virtual table ctors.
28620 2019-05-03 Richard Biener <rguenther@suse.de>
28622 * passes.c (execute_function_todo): Remove dead code.
28624 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28626 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28627 the internal register number, for any "real" register.
28629 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28631 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28632 correct numbers for TFHAR, TFIAR, TEXASR.
28634 2019-05-02 Richard Biener <rguenther@suse.de>
28636 PR tree-optimization/89653
28637 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28638 update-address-taken before the pass.
28639 * passes.def (pass_tree_loop_init): Put comment before it.
28641 2019-05-02 Richard Biener <rguenther@suse.de>
28643 PR tree-optimization/89509
28644 * tree-ssa-structalias.c (compute_dependence_clique): Look
28645 at the first subvar when determining whether it is restrict.
28647 2019-05-02 Richard Biener <rguenther@suse.de>
28649 PR tree-optimization/90273
28650 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28651 useless debug stmts.
28653 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28655 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28657 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28659 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28660 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28661 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28662 (vectorizable_reduction): Use the functions above to vectorize in a
28663 fully masked loop codes that don't have a conditional internal
28666 2019-05-02 Martin Liska <mliska@suse.cz>
28668 * cgraphclones.c: Call valid_attribute_p with 1 for
28670 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28671 it's for target attribute.
28672 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28673 Add new boolean argument.
28674 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28676 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28677 to ix86_valid_target_attribute_inner_p.
28678 (ix86_valid_target_attribute_p): Pass flags argument to
28679 ix86_valid_target_attribute_inner_p.
28680 (get_builtin_code_for_version): Use 0 as it's target attribute.
28682 2019-05-02 Martin Liska <mliska@suse.cz>
28684 * gcc.c (process_command): Add dummy file only
28686 * opts-global.c (decode_options): Pass lang_mask.
28687 * opts.c (print_help): New function.
28688 (finish_options): Print --help if help_option_argument
28690 (common_handle_option): Factor out content of OPT__help_
28692 * opts.h (finish_options): Add new argument.
28694 2019-05-02 Martin Liska <mliska@suse.cz>
28697 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28698 With -minline-all-stringops use inline expansion using 4B loop.
28699 * doc/invoke.texi: Document the change of
28700 -minline-all-stringops.
28702 2019-05-01 Jeff Law <law@redhat.com>
28704 PR tree-optimization/88797
28705 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28706 PHI feeds a conditional on the RHS of an assignment.
28708 2019-04-30 Andrew Waterman <andrew@sifive.com>
28709 Jim Wilson <jimw@sifive.com>
28711 * config/riscv/constraints.md (L): New.
28712 * config/riscv/predicates.md (lui_operand): New.
28713 (sfb_alu_operand): New.
28714 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28715 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28716 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28717 * config/riscv/risc.md (type): Add sfb_alu.
28718 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28719 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28720 (branch_zero<mode>): Delete.
28721 (mov<mode>cc): New.
28722 (mov<GPR:mode><X:mode>cc): Likewise.
28723 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28725 2019-04-30 Nathan Sidwell <nathan@acm.org>
28727 * tree.h (MARK_TS_EXP): New.
28729 2019-04-30 Martin Liska <mliska@suse.cz>
28731 * opts.c (enable_warning_as_error): Provide hints
28732 for unknown options.
28734 2019-04-30 Martin Liska <mliska@suse.cz>
28737 * doc/invoke.texi: Add missing dash for gas-locview-support
28738 and gno-as-locview-support.
28740 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28743 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28744 whitespace at the start of target attribute string.
28746 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28749 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28750 Define __ARM_FEATURE_ATOMICS.
28752 2019-04-30 Martin Liska <mliska@suse.cz>
28754 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28755 into built_in_function enum. Remove code for endp == 2 and
28756 use BUILT_IN_* constants.
28757 (gimple_fold_builtin): Call the function with fcode.
28759 2019-04-30 Martin Liska <mliska@suse.cz>
28761 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28762 DECL_FUNCTION_CODE into ix86_builtins enum before
28763 the switch statement.
28765 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28767 PR tree-optimization/89475
28768 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28771 2019-04-30 Martin Liska <mliska@suse.cz>
28773 PR translation/90274
28774 * opts.c (print_filtered_help): Wrap string in _(...).
28776 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28778 PR tree-optimization/90240
28780 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28782 PR tree-optimization/90078
28783 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28784 checks for infinite_cost overflow.
28786 2019-04-29 Jeff Law <law@redhat.com>
28788 * passes.def: Move -Wrestrict pass after copy propagation.
28790 2019-04-29 Maya Rashish <coypu@sdf.org>
28792 * config.gcc (default_gnu_indirect_function): Default to yes
28793 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28794 sparc*-*-netbsd*, x86_64-*-netbsd*.
28796 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28798 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28799 where cond2 is NE_EXPR.
28800 (is_value_included_in): Update comment.
28802 2019-04-29 Richard Biener <rguenther@suse.de>
28804 PR tree-optimization/90278
28805 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28806 EH on comparison simplification.
28808 2019-04-29 Jason Merrill <jason@redhat.com>
28810 PR c++/82081 - tail call optimization breaks noexcept
28811 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28812 nothrow function to a might-throw function into a tail call.
28814 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28816 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28817 (DDR_INNER_LOOP): Likewise.
28818 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28819 (initialize_data_dependence_relation): Likewise.
28820 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28822 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28824 PR rtl-optimization/90257
28825 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28829 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28833 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28836 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28839 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28841 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28843 2019-04-29 Richard Biener <rguenther@suse.de>
28845 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28848 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28850 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28851 varasm.h, and netbsd-protos.h.
28853 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28856 * config/i386/i386-protos.h (ix86_data_alignment): Change
28857 the second argument type to unsigned int.
28858 * config/i386/i386.c (ix86_data_alignment): Change "align"
28859 argument type to unsigned int.
28861 2019-04-27 Martin Liska <mliska@suse.cz>
28863 PR middle-end/90258
28864 * opt-suggestions.c (option_proposer::build_option_suggestions):
28865 When get_valid_option_values returns empty values, add the
28866 misspelling candidate.
28868 2019-04-26 Jim Wilson <jimw@sifive.com>
28870 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28872 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28873 Pass orig_mode to riscv_build_integer.
28874 (riscv_split_integer): Pass mode to riscv_move_integer.
28875 (riscv_legitimize_const_move): Likewise.
28876 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28877 promoted_mode. Replace force_reg call with code to load constant into
28878 promoted reg and then subreg it for the store.
28879 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28880 riscv_move_integer.
28882 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28884 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28887 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28889 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28890 commentary about the encoding of precision.
28892 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28894 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28895 * config/i386/t-freebsd64: New file.
28896 * config.gcc: Add the t-freebsd64 for multilib support.
28898 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28900 * doc/extend.texi (vector_size): Add missing comma after @xref.
28902 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28904 * BASE-VER: Set to 10.0.0.
28906 2019-04-25 Richard Biener <rguenther@suse.de>
28908 PR middle-end/89765
28909 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28910 VIEW_CONVERT_EXPR into one operating on an rvalue.
28912 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28915 * config/i386/i386.c (feature_priority): Moved to file scope.
28916 (processor_features): Likewise.
28917 (processor_model): Likewise.
28918 (_arch_names_table): Likewise.
28919 (arch_names_table): Likewise.
28920 (_feature_list): Removed.
28921 (feature_list): Likewise.
28922 (_isa_names_table): Moved to file scope. Add priority.
28923 (isa_names_table): Likewise.
28924 (get_builtin_code_for_version): Replace feature_list with
28925 isa_names_table. Update error message for P_ZERO priority.
28927 2019-04-25 Richard Biener <rguenther@suse.de>
28929 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28930 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28932 2019-04-24 Jeff Law <law@redhat.com>
28934 PR tree-optimization/90037
28935 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28936 * passes.def: Replace all instance of phi-only cprop with the
28937 lattice propagator. Move propagation pass from after erroneous
28938 path isolation to before erroneous path isolation.
28939 * tree-ssa-phionlycprop.c: Remove.
28941 2019-04-24 Richard Biener <rguenther@suse.de>
28943 PR middle-end/90213
28944 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28945 by size and BITS_PER_UNIT on poly-wide-ints.
28947 2019-04-25 Richard Biener <rguenther@suse.de>
28949 PR middle-end/90194
28950 * match.pd: Add pattern to simplify view-conversion of an
28953 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28955 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28956 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28957 for Go on 32 bit AIX.
28958 * config/rs6000/aix72.h: Likewise.
28960 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28963 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28964 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28966 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28969 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28970 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28971 for restored hard frame pointer.
28972 (s390_sched_dependencies_evaluation): Implement new target hook.
28973 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28975 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28977 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28978 * config/arc/arc.c (arc_init): Cleanup warning message.
28979 (arc_override_options): Likewise.
28981 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28984 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28985 a register if both if_true and if_false are MEMs.
28987 PR tree-optimization/90208
28988 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28989 after labels of new_bb, not before them.
28991 PR tree-optimization/90211
28992 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28993 which are not SSA_NAMEs.
28995 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28997 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28999 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29001 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29003 PR rtl-optimization/87979
29004 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29007 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29009 PR rtl-optimization/84032
29010 * modulo-sched.c (ps_insn_find_column): Change condition so that
29011 branch will always be the last insn in a row inside partial
29014 2019-04-23 Richard Biener <rguenther@suse.de>
29017 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29018 dest_single_pred_p argument.
29019 (remove_forwarder_block): Adjust.
29020 (remove_forwarder_block_with_phi): Likewise.
29022 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29023 Bernd Edlinger <bernd.edlinger@hotmail.de>
29024 Jakub Jelinek <jakub@redhat.com>
29027 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29028 if used with general-regs-only.
29029 (arm_conditional_register_usage): Don't add non-general regs if
29031 (arm_valid_target_attribute_rec): Handle general-regs-only.
29032 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29034 (TARGET_HARD_FLOAT_SUB): Define.
29035 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29036 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29037 (TARGET_REALLY_IWMMXT2): Likewise.
29038 * config/arm/arm.opt: Add -mgeneral-regs-only.
29039 * doc/extend.texi: Document ARM general-regs-only target.
29040 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29042 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29044 PR tree-optimization/90078
29045 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29046 checks for infinite_cost overflow.
29048 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29050 PR tree-optimization/90021
29051 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29052 and check univariate against it.
29053 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29054 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29056 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29060 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29063 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29066 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29068 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29070 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29072 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29073 names using operand format, rather than hard-wired.
29074 (speculation_barrier): Likewise.
29076 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29078 PR tree-optimization/88055
29079 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29080 (gen_one_condition): Use it if !HONOR_NANS.
29082 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29084 PR middle-end/90139
29085 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29086 assign_temp instead of gen_reg_rtx.
29088 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29090 PR translation/90118
29091 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29092 Add missing space before %<.
29094 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29096 PR rtl-optimization/87871
29097 * ira-lives.c (make_object_dead): Don't add conflicts to
29098 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29100 2019-04-18 Martin Sebor <msebor@redhat.com>
29102 PR middle-end/89797
29103 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29104 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29105 assuming type size fits in SHWI.
29107 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29110 * ipa-inline.c (flatten_function): New parameter UPDATE.
29111 (ipa_inline, early_inliner): Use it.
29113 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29115 * fold-const.c (int_const_binop): Return early on failure.
29117 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29119 PR middle-end/85164
29120 * combine.c (force_int_to_mode): Cast the argument rather than
29121 the result of known_alignment.
29122 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29124 2019-04-18 Richard Biener <rguenther@suse.de>
29127 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29129 (remove_forwarder_block): ... here.
29130 (remove_forwarder_block_with_phi): Also move debug stmts here.
29132 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29134 PR translation/79183
29135 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29136 inform where appropriate.
29138 2019-04-18 Richard Biener <rguenther@suse.de>
29140 * tree.c (get_qualified_type): Put found type variants at the
29141 head of the variant list.
29143 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29145 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29147 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29150 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29151 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29152 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29153 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29154 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29156 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29158 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29159 even for allocno's with no conflicts.
29160 (print_conflicts): Print an extra newline.
29162 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29164 * auto-inc-dec.c (attempt_change): Set the alignment of the
29165 temporary memory to that of the original.
29167 2019-04-17 Joao Moreira <jmoreira@suse.de>
29169 * targhooks.c (default_print_patchable_function_entry): Emit
29170 __patchable_function_entries section with writable flags to allow
29171 relocation resolution.
29173 2019-04-17 Jonny Grant <jg@jguk.org>
29175 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29177 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29179 PR middle-end/90095
29180 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29181 on lowpart SUBREGs.
29183 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29185 * config/arc/arc.c (arc_init): Format diagnostic string.
29186 (arc_override_options): Likewise.
29187 (check_if_valid_regno_const): Likewise.
29188 (arc_reorg): Likewise.
29190 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29193 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29195 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29197 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29198 (*movdi_update1): Use Pmode.
29199 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29200 (movdi_<mode>_update_stack): Rename to ...
29201 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29203 (*movsi_update1): Use Pmode.
29204 (*movsi_update2): Use Pmode.
29205 (movsi_update): Rename to ...
29206 (movsi_<mode>_update): ... this. Use Pmode.
29207 (movsi_update_stack): Fix condition.
29208 (*movhi_update1): Use Pmode. Fix argument to
29209 avoiding_indexed_address_p.
29210 (*movhi_update2): Ditto.
29211 (*movhi_update3): Ditto.
29212 (*movhi_update4): Ditto.
29213 (*movqi_update1): Ditto.
29214 (*movqi_update2): Ditto.
29215 (*movqi_update3): Ditto.
29216 (*movsf_update1, *movdf_update1): Merge, rename to...
29217 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29218 avoiding_indexed_address_p. Add "size" attribute.
29219 (*movsf_update2, *movdf_update2): Merge, rename to...
29220 (*mov<mode>_update2): This. Ditto.
29221 (*movsf_update3): Use Pmode. Fix argument to
29222 avoiding_indexed_address_p.
29223 (*movsf_update4): Ditto.
29224 (allocate_stack): Simplify condition. Adjust pattern names.
29226 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29229 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29230 whitespace at the start of target attribute string.
29232 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29235 * config/rs6000/power9.md: Add store forwarding bypass.
29237 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29240 * valtrack.c (dead_debug_insert_temp): Reset debug references
29241 to the return value of a call being removed.
29243 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29245 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29246 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29247 implement target hook.
29248 (arc_memory_move_cost): New function.
29249 (TARGET_REGISTER_MOVE_COST): Define.
29250 (TARGET_MEMORY_MOVE_COST): Likewise.
29251 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29252 (MEMORY_MOVE_COST): Likewise.
29254 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29256 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29257 (sibcall_value_insn): Likewise.
29258 * config/arc/constraints.md (Rs5): Remove.
29260 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29262 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29263 for last two fake registers.
29264 (arc_conditional_register_usage): Make sure fake frame and arg
29265 pointer regs are in general regs class.
29266 (FRAME_POINTER_MASK): Remove.
29267 (RETURN_ADDR_MASK): Remove.
29268 (arc_must_save_register): Use hard frame regnum.
29269 (frame_restore_reg): Use hard_frame_pointer_rtx.
29270 (arc_save_callee_saves): Likewise.
29271 (arc_restore_callee_saves): Likewise.
29272 (arc_save_callee_enter): Likewise.
29273 (arc_restore_callee_leave): Likewise.
29274 (arc_save_callee_milli): Likewise.
29275 (arc_eh_return_address_location): Likewise.
29276 (arc_check_multi): Use hard frame regnum.
29277 (arc_can_eliminate): Likewise.
29278 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29279 for register allocator.
29280 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29281 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29282 (FRAME_POINTER_REGNUM): Change it to a fake register.
29283 (HARD_FRAME_POINTER_REGNUM): Defined.
29284 (ARG_POINTER_REGNUM): Change it to a new fake register.
29285 (ELIMINABLE_REGS): Update.
29286 (REGISTER_NAMES): Update names.
29287 * config/arc/arc.md (LP_START): Remove.
29288 (LP_END): Likewise.
29289 (shift_si3_loop): Update pattern.
29291 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29293 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29294 to avoid delay slot scheduling.
29295 (arc_must_save_register): Don't save SP.
29296 * config/arc/arc.md (stack_tie): Remove.
29297 (UNSPEC_ARC_STKTIE): Likewise.
29299 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29300 Shiva Chen <shiva0217@gmail.com>
29302 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29303 code gen with large shift amount.
29305 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29307 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29310 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29313 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29314 print -m64/-mx32/-m32 if it is true.
29315 (ix86_debug_options, ix86_function_specific_print): Pass true as
29316 ADD_ABI_P to ix86_target_string.
29317 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29318 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29319 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29321 PR rtl-optimization/90082
29322 * dce.c (can_delete_call): New function.
29323 (deletable_insn_p, mark_insn): Use it.
29325 PR tree-optimization/90090
29326 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29328 (is_division_by_square): Likewise. Formatting fix.
29330 2019-04-16 Richard Biener <rguenther@suse.de>
29332 PR tree-optimization/56049
29333 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29334 equality check if alias-set zero will prevail.
29336 2019-04-15 Jeff Law <law@redhat.com>
29338 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29339 size and alignment as unsigned.
29341 2019-04-15 Richard Biener <rguenther@suse.de>
29344 * tree-loop-distribution.c (destroy_loop): Preserve correct
29347 2019-04-15 Richard Biener <rguenther@suse.de>
29349 PR tree-optimization/90071
29350 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29351 abnormal operands from def stmts.
29353 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29355 PR rtl-optimization/89794
29356 * combine.c (count_auto_inc): New function.
29357 (try_combine): Count how many auto_inc expressions there were in the
29358 original instructions. Ensure we have the same number in the new
29359 instructions. Remove the code that tried to ensure auto_inc side
29360 effects on i1 and i0 are not lost.
29362 2019-04-15 Richard Biener <rguenther@suse.de>
29365 * tree.h (auto_var_p): Declare.
29366 * tree.c (auto_var_p): New function, split out from ...
29367 (auto_var_in_fn_p): ... here.
29368 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29370 (new_var_info): Initialize it.
29371 (set_uids_in_ptset): Also set the shadow variable uid if required.
29372 (ipa_pta_execute): Postprocess points-to solutions assigning
29373 shadow variable uids for locals that may reach their containing
29374 function recursively.
29375 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29376 assert but instead check whether the points-to solution is
29379 2019-04-15 Martin Jambor <mjambor@suse.cz>
29382 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29385 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29387 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29389 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29390 Kito Cheng <kito.cheng@gmail.com>
29391 Shiva Chen <shiva0217@gmail.com>
29393 * config/nds32/nds32-md-auxiliary.c
29394 (nds32_legitimize_pic_address): Use new PIC pattern.
29395 (nds32_legitimize_tls_address): Use new TLS pattern.
29396 (nds32_output_symrel): New.
29397 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29398 (nds32_alloc_relax_group_id): Ditto.
29399 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29400 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29402 (nds32_group_tls_insn): Ditto.
29403 (nds32_group_float_insns): Ditto.
29404 * config/nds32/nds32.md (tls_le): New.
29407 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29409 * configure: Add nds32 target for dwarf2 debug_line checking.
29410 * configure.ac: Regenerated.
29412 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29415 * ipa-devirt.c (skip_in_fields_list_p): New.
29416 (odr_types_equivalent_p): Use it.
29418 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29421 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29422 instead of strncmp when checking for thumb and arm. Formatting fixes.
29424 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29426 * doc/install.texi: Document --with-target-system-zlib.
29428 2019-04-12 Martin Sebor <msebor@redhat.com>
29434 * targhooks.c (default_vector_alignment): Avoid assuming
29435 argument fits in SHWI.
29436 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29437 a shift expression.
29438 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29440 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29442 PR rtl-optimization/89965
29443 * dce.c: Include rtl-iter.h.
29444 (struct check_argument_load_data): New type.
29445 (check_argument_load): New function.
29446 (find_call_stack_args): Check for loads from stack slots still tracked
29447 in sp_bytes and punt if any is found.
29449 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29451 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29453 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29454 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29456 2019-04-12 Martin Liska <mliska@suse.cz>
29458 PR middle-end/89970
29459 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29461 (separate_attrs): Handle multiple 'default's.
29462 (expand_target_clones): Rework error handling code.
29464 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29467 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29468 mode of vector rather than mode of destination for move instruction.
29469 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29470 Use QI inner mode with V16QI vector mode.
29472 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29475 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29476 "invalid %%t operand" in output_operand_lossage message.
29478 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29480 * config/s390/predicates.md (permute_pattern_operand): New
29482 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29483 operand for the permute pattern.
29484 ("*vec_perm<mode>"): New insn definition.
29485 ("bswap<mode>"): Generate the permute pattern operand in the
29486 expander and perform the operand reloads for pre arch13 level
29488 ("*bswap<mode>_emu"): Rename to ...
29489 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29490 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29491 Add the USE operand for the permute pattern.
29492 ("*vec_set_bswap_vec<mode>"): Likewise.
29494 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29497 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29498 and gcc_unreachable if it fails, just call tree_to_uhwi which
29499 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29500 Start warning message with a lower-case letter. Formatting fixes.
29502 PR rtl-optimization/90026
29503 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29504 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29505 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29506 in cfglayout mode, use emit_barrier_after_bb.
29508 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29510 PR rtl-optimization/87763
29511 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29514 2019-04-11 Tom de Vries <tdevries@suse.de>
29516 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29517 max macro using statement expression.
29519 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29521 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29522 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29523 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29524 read_only_private_data_section using xcoff_private_rodata_section_name.
29525 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29527 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29530 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29532 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29534 PR rtl-optimization/89965
29535 * dce.c (sp_based_mem_offset): New function.
29536 (find_call_stack_args): Use sp_based_mem_offset.
29538 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29540 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29542 2019-04-11 Richard Biener <rguenther@suse.de>
29544 PR tree-optimization/90020
29545 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29546 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29547 * tree-ssa-pre.c (compute_avail): Use it to not put
29548 possibly trapping references after a call that might not
29549 return into EXP_GEN.
29550 * gcse.c (compute_hash_table_work): Do not elide
29551 marking a block containing a call if the call might not
29554 2019-04-11 Richard Biener <rguenther@suse.de>
29556 PR tree-optimization/90018
29557 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29558 Test both SLP and interleaving variants.
29560 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29562 * config/s390/8561.md: New file.
29563 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29564 Add arch13 cpu model.
29565 * config/s390/s390-opts.h (enum processor_type): Likewise.
29566 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29567 (s390_get_unit_mask): Likewise.
29568 (s390_is_fpd): Likewise.
29569 (s390_is_fxd): Likewise.
29570 * config/s390/s390.h (s390_tune_attr): Likewise.
29571 * config/s390/s390.md: Include arch13 pipeline description.
29572 * config/s390/s390.opt: Add arch13.
29574 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29576 PR rtl-optimization/87763
29577 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29579 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29581 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29583 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29584 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29585 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29586 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29588 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29590 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29591 "Although" in -fipa-icf documentation.
29593 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29594 of using multiple -g options.
29596 2019-04-10 Martin Liska <mliska@suse.cz>
29598 PR gcov-profile/89959
29599 * doc/gcov.texi: Make documentation of -x option
29602 2019-04-10 Richard Biener <rguenther@suse.de>
29604 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29606 (DR_GROUP_SAME_DR_STMT): Remove.
29607 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29608 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29609 replace with assert.
29610 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29611 (vect_record_grouped_load_vectors): Remove unreachable code.
29613 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29616 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29617 obsolete reference to N.
29619 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29621 PR middle-end/90025
29622 * expr.c (store_expr): Set properly size on the MEM passed to
29626 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29627 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29628 translation is needed, and when translation is needed, only append
29629 ... if the string length is hostsz or more bytes long. Avoid using
29632 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29635 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29636 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29638 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29639 differences directly.
29640 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29642 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29644 PR translation/90011
29645 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29647 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29649 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29650 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29651 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29652 trailing space from -gsplit-dwarf diagnostics.
29654 PR tree-optimization/89998
29655 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29656 instead of integer_type_node if possible, don't add ranges if return
29657 type is not compatible with int.
29658 * gimple-fold.c (gimple_fold_builtin_sprintf,
29659 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29662 2019-04-09 Martin Liska <mliska@suse.cz>
29664 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29665 * doc/install.texi: Document the new config.
29667 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29669 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29670 use gimple_expr_type for load and store calls. Skip over the
29671 condition argument in a conditional internal function.
29672 Protect use of TREE_INT_CST_LOW.
29674 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29677 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29678 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29679 trailing period from it too.
29681 2019-04-08 wu yuan <wuyuan5@huawei.com>
29683 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29684 * config/aarch64/aarch64.md: Add "tsv110.md".
29685 * config/aarch64/tsv110.md: New file.
29687 2019-04-08 Richard Biener <rguenther@suse.de>
29689 PR tree-optimization/90006
29690 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29693 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29696 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29698 (fma_root_node): Likewise.
29699 (func_fma_steering): Likewise.
29701 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29703 PR rtl-optimization/89865
29704 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29706 PR rtl-optimization/89865
29707 * config/i386/i386.md
29708 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29709 numbers not to clash with the additional operands[4].
29710 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29711 with extra register copy in the middle.
29713 2019-04-08 Martin Liska <mliska@suse.cz>
29715 PR gcov-profile/89961
29716 * doc/gcov.texi: Document data_file.
29717 * gcov.c (generate_results): Add data_info into JSON output.
29719 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29721 PR tree-optimization/89725
29722 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29723 loop's chrec as invariant symbol.
29724 * tree-chrec.h (chrec_contains_symbols): New parameter.
29725 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29726 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29727 function of loops not in DDR's loop_nest.
29728 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29730 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29733 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29736 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29739 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29740 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29742 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29744 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29745 targetm.fixed_condition_code_regs.
29747 2019-04-05 Richard Biener <rguenther@suse.de>
29751 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29752 debug bind stmts but reset them if they are not valid at the
29755 2019-04-05 Martin Liska <mliska@suse.cz>
29757 PR translation/89936
29758 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29759 order to wrap keywords or arguments.
29760 * collect2.c (main): Likewise.
29761 (scan_prog_file): Likewise.
29762 (scan_libraries): Likewise.
29763 * common/config/riscv/riscv-common.c
29764 (riscv_subset_list::parsing_subset_version): Likewise.
29765 (riscv_subset_list::parse_std_ext): Likewise.
29766 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29768 * config/arm/arm.c (arm_option_override): Likewise.
29769 * config/cris/cris.c (cris_print_operand): Likewise.
29770 * config/darwin-c.c (darwin_pragma_options): Likewise.
29771 (darwin_pragma_unused): Likewise.
29772 (darwin_pragma_ms_struct): Likewise.
29773 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29774 * config/i386/i386.c (print_reg): Likewise.
29775 (ix86_print_operand): Likewise.
29776 * config/i386/xm-djgpp.h: Likewise.
29777 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29778 * config/m32c/m32c.c (m32c_option_override): Likewise.
29779 * config/msp430/msp430.c (msp430_option_override): Likewise.
29780 * config/nds32/nds32.c (nds32_option_override): Likewise.
29781 * config/nvptx/mkoffload.c (main): Likewise.
29782 * config/rx/rx.c (rx_print_operand): Likewise.
29783 (valid_psw_flag): Likewise.
29784 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29785 (vms_pragma_nomember_alignment): Likewise.
29786 (vms_pragma_extern_model): Likewise.
29787 * lto-wrapper.c (compile_offload_image): Likewise.
29788 * omp-offload.c (oacc_parse_default_dims): Likewise.
29789 * symtab.c (symtab_node::verify_base): Likewise.
29790 * tlink.c (recompile_files): Likewise.
29791 (start_tweaking): Likewise.
29792 * tree-profile.c (parse_profile_filter): Likewise.
29794 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29796 PR tree-optimization/89956
29797 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29798 multiple negates of the same value.
29800 2019-04-04 Martin Sebor <msebor@redhat.com>
29802 PR middle-end/89957
29803 PR middle-end/89911
29804 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29805 have the same precision since the function crashes otherwise.
29806 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29807 has non-zero arguments.
29809 2019-04-04 Martin Sebor <msebor@redhat.com>
29811 PR middle-end/89934
29812 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29813 out if the number of arguments is less than expected.
29815 2019-04-04 Jeff Law <law@redhat.com>
29817 PR rtl-optimization/89399
29818 * ree.c (combine_set_extension): Use single_set rather than
29819 digging into PATTERN for items on the candidate list.
29820 (combine_reaching_defs): Likewise.
29822 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29824 PR rtl-optimization/46590
29825 * loop-invariant.c (find_defs): Move df_remove_problem and
29826 df_process_deferred_rescans to move_invariants.
29827 Move df_live_add_problem and df_live_set_all_dirty calls
29828 to move_invariants.
29829 (move_invariants): Likewise.
29830 (move_loop_invariants): Likewise, making the df_live calls
29831 conditional on -O. Remove the problem again if we added it
29834 2019-04-03 qing zhao <qing.zhao@oracle.com>
29836 PR tree-optimization/89730
29837 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29838 -flive-patching=inline-only-static.
29839 (can_inline_edge_by_limits_p): Add the checking for
29840 -flive-patching=inline-only-static and grant always_inline
29841 even when -flive-patching=inline-only-static is specified.
29843 2019-04-03 Jeff Law <law@redhat.com>
29845 PR rtl-optimization/81025
29846 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29848 2019-04-03 Richard Biener <rguenther@suse.de>
29850 PR tree-optimization/84101
29851 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29852 regs.h for hard_regno_nregs.
29853 (cfun_returns): New helper.
29854 (vect_model_store_cost): When vectorizing a store to a decl
29855 we return and the function ABI returns in a multi-reg location
29856 account for the possible spilling that will happen.
29858 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29860 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29861 displacement addresses for vector mode operands.
29863 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29865 * config/arc/arc.c (GMASK_LEN): Define.
29866 (arc_restore_callee_saves): Restore first blink when
29869 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29871 * doc/extend.texi: Add deprecated comment on sign-return-address
29872 function attribute and add mbranch-protection.
29873 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29875 2019-04-03 Richard Biener <rguenther@suse.de>
29878 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29879 the all target phony.
29881 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29885 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29886 Return false for variable DImode shifts.
29887 (dimode_scalar_chain::compute_convert_gain): Do not handle
29888 register count operand in variable DImode shifts.
29889 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29890 count argument of a variable shift instruction to a vector register.
29891 (dimode_scalar_chain::convert_reg): Remove support to convert
29892 count argument of a variable shift instruction.
29894 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29896 PR rtl-optimization/84206
29897 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29898 iterating over loop headers.
29900 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29902 PR rtl-optimization/85876
29903 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29904 beyond the original fence.
29906 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29908 * config.gcc: Mark spu* targets as deprecated/obsolete.
29910 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29912 * config/s390/s390-builtin-types.def: New builtin function type
29913 definitions. Remove unused types.
29914 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29915 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29916 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29917 overloaded builtins.
29918 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29919 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29920 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29921 (vec_double, vec_signed, vec_unsigned): Define to use the new
29922 overloaded builtins.
29923 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29926 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29928 * config/s390/s390-builtin-types.def: New builtin function type
29930 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29931 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29932 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29933 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29934 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29935 constant definitions.
29936 * config/s390/vecintrin.h (vec_search_string_cc)
29937 (vec_search_string_until_zero_cc): New builtin name definitions.
29938 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29940 ("vec_vstrs<mode>"): New insn definition.
29942 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29944 * config/s390/s390-builtin-types.def: Add new builtin function
29946 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29947 New overloaded builtins.
29948 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29950 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29951 (UNSPEC_VEC_SLDBYTE): ... this.
29952 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29953 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29955 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29956 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29957 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29959 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29961 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29962 New insn definition.
29963 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29964 * config/s390/vector.md (V_HW_HSD): ... here.
29966 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29968 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29969 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29970 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29971 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29972 New insn definitions.
29974 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29976 * config/s390/s390-builtin-types.def: Add new builtin function type.
29977 * config/s390/s390-builtins.def: Add overloaded builtin
29978 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29979 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29980 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29981 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29982 ("eltswap<mode>"): New expander.
29983 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29986 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29988 * config/s390/s390-builtin-types.def: Add new builtin function types.
29989 * config/s390/s390-builtins.def: Add overloaded builtin
29990 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29992 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29993 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29994 ("bswap<mode>"): New expander.
29995 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29997 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29999 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30000 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30001 vector builtin version number in __VEC__.
30003 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30005 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30007 (SFSI): New mode attribute.
30008 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30009 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30011 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30012 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30013 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30014 ("floatsi<mode>2"): Add wcefb instruction.
30016 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30018 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30019 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30021 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30022 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30023 support 32 bit fp-int conversions. Rename to ...
30024 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30025 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30026 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30027 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30030 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30032 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30033 if-then-else constructs if we can use the select instruction.
30034 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30036 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30038 * config/s390/s390.md ("*popcountdi_arch13_cc")
30039 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30041 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30042 Append _z196 to make it ...
30043 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30044 ("popcounthi2_z196"): ... this.
30045 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30046 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30048 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30050 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30051 certain compares for arch13 in order to make use of the condition
30052 code result produced by the new instructions.
30053 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30054 nxrk, and nxgrk instruction patterns.
30055 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30056 (inv_no): Add new code iterator together with some attributes.
30057 ("*andc_split_<mode>"): Disable splitter for arch13.
30058 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30059 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30060 ("*<ANDOR:bitops_name>c<GPR:mode>")
30061 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30062 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30063 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30064 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30066 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30068 * common/config/s390/s390-common.c (processor_flags_table): New
30070 * config.gcc: Support arch13 with the --with-arch= configure flag.
30071 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30072 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30073 * config/s390/s390.c (s390_get_sched_attrmask)
30074 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30075 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30076 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30077 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30078 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30080 * config/s390/s390.opt: Support arch13 as processor type in
30081 command line options.
30083 2019-04-02 Martin Liska <mliska@suse.cz>
30085 PR translation/89912
30086 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30087 Fix param description of graphite-max-arrays-per-scop.
30089 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30091 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30092 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30093 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30095 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30097 PR rtl-optimization/85412
30098 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30099 sel_sched_region_1, not after.
30101 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30103 PR rtl-optimization/86928
30104 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30105 compute_live if necessary.
30106 (sel_redirect_edge_and_branch): Likewise.
30108 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30110 PR rtl-optimization/89865
30111 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30112 register if it is a part of small class.
30114 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30116 PR rtl-optimization/87273
30117 * sel-sched-ir.c (merge_fences): Remove assert.
30119 2019-04-01 Richard Biener <rguenther@suse.de>
30121 PR tree-optimization/46590
30122 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30123 (dom_walker::m_reachability): Add in place of...
30124 (dom_walker::m_skip_unreachable_blocks): ...this.
30125 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30126 Move complex initialization ...
30127 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30128 lazily and initialize edge flags on each invocation.
30129 (dom_walker::bb_reachable): Use m_reachability.
30131 2019-04-01 Martin Liska <mliska@suse.cz>
30134 * opt-suggestions.c (option_proposer::build_option_suggestions):
30135 Add variant without any argument in order to provide better
30138 2019-04-01 Richard Biener <rguenther@suse.de>
30141 * gimple.c: Include langhooks.h.
30142 (gimple_get_alias_set): Treat enumeral types as the underlying
30145 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30146 Eric Botcazou <ebotcazou@adacore.com>
30148 PR rtl-optimization/89862
30149 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30150 that operates on the full registers for WORD_REGISTER_OPERATIONS
30153 2019-03-29 Jim Wilson <jimw@sifive.com>
30155 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30156 Clear MASK_RVC and then set if C subset supported.
30158 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30161 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30162 non-addressable complit into its initializer if it is volatile.
30164 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30166 * opts-common.c (integral_argument): Set errno properly in one case.
30168 2019-03-29 Martin Liska <mliska@suse.cz>
30170 * doc/invoke.texi: Remove -Wchkp from documentation.
30172 2019-03-29 Martin Liska <mliska@suse.cz>
30174 * dbgcnt.c (print_limit_reach): New function.
30177 2019-03-29 Martin Liska <mliska@suse.cz>
30179 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30180 (dbg_cnt_process_opt): Parse first tokens aas
30181 dbg_cnt_process_single_pair is also using strtok.
30183 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30185 PR rtl-optimization/87485
30186 * function.c (expand_function_end): Move stack_protect_epilogue
30187 before loading of return value into hard register(s).
30189 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30191 PR middle-end/89621
30192 * tree-inline.h (struct copy_body_data): Add
30193 dont_remap_vla_if_no_change flag.
30194 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30195 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30196 and remap_type_2 returns false.
30197 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30198 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30199 only from where it is copied to nested contexts.
30201 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30204 * config/i386/i386.md (RMW operation with LEA peephole):
30205 Use LEAMODE mode attribute instead of SWI mode iterator for
30208 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30211 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30212 Also process XEXP (src, 0) of a shift insn.
30214 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30216 PR middle-end/89725
30217 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30218 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30220 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30222 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30224 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30225 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30226 immediately after first one with df_analyze in between, but rather
30227 process all bbs, queueing ones that need second pass in a worklist,
30228 df_analyze, process queued debug insn changes and if second pass is
30229 needed, process bbs from worklist, df_analyze, process queued debug
30232 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30233 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30234 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30236 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30239 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30242 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30245 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30246 function for 32-bit MS_ABI.
30247 (function_value_ms_32): New function.
30249 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30251 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30252 (movdi): Call gen_movdi_symbol_save_scc.
30253 (gen_movdi_symbol_save_scc): New insn and split.
30255 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30257 PR rtl-optimization/89313
30258 * function.c (matching_constraint_num): New static function.
30259 (match_asm_constraints_1): Use it. Fixup white space and comment.
30260 Don't replace inputs with non-matching constraints which conflict
30261 with early clobber outputs.
30263 2019-03-27 Jeff Law <law@redhat.com>
30265 PR rtl-optimization/87761
30266 PR rtl-optimization/89826
30267 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30269 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30270 note problem to get REG_DEAD/REG_UNUSED notes updated.
30272 2019-03-27 Richard Biener <rguenther@suse.de>
30274 PR tree-optimization/89463
30275 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30276 queue edges to remove.
30277 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30278 dead stmts. Delay edge removal until PHIs are removed to
30279 make debug-stmt creation not confused by seemingly degenerate
30282 2019-03-27 Alan Modra <amodra@gmail.com>
30284 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30286 * config/rs6000/darwin.h: Likewise.
30287 * config/rs6000/rs6000.c: Likewise.
30289 2019-03-27 Alan Modra <amodra@gmail.com>
30291 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30292 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30294 2019-03-26 Andrew Waterman <andrew@sifive.com>
30295 Jim Wilson <jimw@sifive.com>
30297 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30298 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30299 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30300 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30301 (generic_alu): Add auipc to type list.
30302 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30303 (riscv_microarchitecture): Declare.
30304 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30305 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30307 (riscv_microarchitecture): New.
30308 (sifive_7_tune_info): New.
30309 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30310 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30312 (riscv_store_data_bypass_p): New.
30313 (riscv_option_override): Set riscv_microarchitecture from
30314 cpu->microarchitecture.
30315 * config/riscv/riscv.md: Include sifive-7.md.
30318 (auipc<mode>): Change type to auipc.
30319 (restore_stack_nonlocal): New.
30320 * config/riscv/sifive-7.md: New.
30321 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30323 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30326 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30327 Also process XEXP (src, 0) of a shift insn.
30329 2019-03-26 Richard Biener <rguenther@suse.de>
30331 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30332 (copy_debug_stmt): Likewise.
30333 (expand_call_inline): Likewise.
30334 (copy_bb): Avoid redundant lookup & set of gimple_block.
30335 * gimple-low.c (lower_gimple_return): Likewise.
30336 (lower_builtin_setjmp): Likewise.
30338 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30340 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30341 is constant 0, turn into static const data member initialized to false.
30342 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30343 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30345 2019-03-26 Jason Merrill <jason@redhat.com>
30346 Jakub Jelinek <jakub@redhat.com>
30348 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30350 (mem_alloc_description::release_object_overhead): Fix comment typos.
30351 * hash-table.h (hash_table::~hash_table): Call
30352 release_instance_overhead only if m_entries is non-NULL, otherwise
30353 call unregister_descriptor.
30355 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30357 PR tree-optimization/81740
30358 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30359 In case of outer loop vectorization, check for backward dependence
30360 at the inner loop if outer loop dependence is reversed.
30362 2019-03-26 Alan Modra <amodra@gmail.com>
30364 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30365 rs6000_vector_mem init. Correct wI and wJ comment.
30367 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30369 PR rtl-optimization/88347
30370 PR rtl-optimization/88423
30371 * sched-deps.c (sched_analyze_insn): Take into account that for
30372 tablejumps the barrier appears after a label and a jump_table_data.
30374 2019-03-25 Martin Sebor <msebor@redhat.com>
30377 * c-common.c (check_user_alignment): Rename local. Correct maximum
30378 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30379 convert it to UHWI when it fits.
30381 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30384 * dwarf2out.c (premark_used_variables): New function.
30385 (prune_unused_types_walk): Do not mark not premarked external
30387 (prune_unused_types): Call premark_used_variables.
30389 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30391 PR rtl-optimization/89676
30392 * lra-constraints.c (curr_insn_transform): Do match reload for
30393 early clobbers when the match was successful only for different
30396 2019-03-25 Martin Sebor <msebor@redhat.com>
30398 * doc/extend.texi (Common Type Attributes): Document vector_size.
30399 (Common Variable Attributes): Mention size constraint. Correct
30401 (Vector Extensions): Use @dfn when defining bas type. Clarify
30402 base type and size constraints.
30404 2019-03-25 Richard Biener <rguenther@suse.de>
30406 PR tree-optimization/89789
30407 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30408 changes from non-undefined back to undefined.
30410 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30412 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30413 heap string and a gc string, but since this variable is unknown to
30414 ggc the gc string might get reused and corrupted. Fixed by always
30415 using a heap string.
30417 2019-03-25 Richard Biener <rguenther@suse.de>
30419 PR tree-optimization/89779
30420 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30421 to remove IV defs, delay actual removal.
30422 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30423 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30424 very end, properly also reset loop control IV information.
30426 2019-03-25 Richard Biener <rguenther@suse.de>
30428 PR tree-optimization/89802
30429 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30430 move EH data to folded stmt.
30432 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30434 * config/s390/s390-builtin-types.def: Remove few unused types and
30435 fix sort order for others.
30437 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30439 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30440 expected and found types with -mdebug during builtin matching.
30442 2019-03-25 Richard Biener <rguenther@suse.de>
30444 PR middle-end/89790
30445 * fold-const.c (operand_equal_p): Revert last change with
30448 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30450 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30451 notes for the result of the __tls_get_addr calls.
30452 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30454 2019-03-24 Jeff Law <law@redhat.com>
30456 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30458 PR rtl-optimization/87761
30459 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30460 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30462 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30463 rescans. Reprocess blocks as needed, calling df_analyze before
30464 reprocessing. Always call df_analyze before fixing up debug bind
30467 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30469 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30472 2019-03-22 Andrew Pinski <apinski@marvell.com>
30474 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30475 attrribute for uxtw.
30477 2019-03-26 Jeff Law <law@redhat.com>
30479 PR rtl-optimization/87761
30480 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30481 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30482 (mips_split_move): Accept new INSN argument. Try to forward SRC
30483 into the next instruction.
30484 (mips_split_move_insn): Pass INSN through to mips_split_move.
30486 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30488 PR rtl-optimization/89676
30489 * lra-constraints.c (curr_insn_transform): Do match reload for
30490 early clobbers even if the match was successful.
30492 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30495 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30497 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30499 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30501 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30503 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30504 <avx512>_fmsub_<mode>_mask3<round_name>,
30505 <avx512>_fnmadd_<mode>_mask3<round_name>,
30506 <avx512>_fnmsub_<mode>_mask3<round_name>,
30507 avx512f_vmfmadd_<mode>_mask3<round_name>,
30508 avx512f_vmfmsub_<mode>_mask3<round_name>,
30509 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30510 instead of register_operand and %v instead of v for match_operand 1.
30511 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30512 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30513 <round_nimm_predicate> instead of register_operand and %v instead of v
30514 for match_operand 1.
30516 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30517 <avx512>_fmadd_<mode>_mask3<round_name>,
30518 <avx512>_fmsub_<mode>_mask<round_name>,
30519 <avx512>_fmsub_<mode>_mask3<round_name>,
30520 <avx512>_fnmadd_<mode>_mask<round_name>,
30521 <avx512>_fnmadd_<mode>_mask3<round_name>,
30522 <avx512>_fnmsub_<mode>_mask<round_name>,
30523 <avx512>_fnmsub_<mode>_mask3<round_name>,
30524 <avx512>_fmaddsub_<mode>_mask<round_name>,
30525 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30526 <avx512>_fmsubadd_<mode>_mask<round_name>,
30527 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30528 <round_nimm_predicate> instead of nonimmediate_operand.
30529 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30530 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30531 Use register_operand instead of <round_nimm_predicate> for the
30532 operand that needs to match output.
30533 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30534 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30535 Likewise. Formatting fixes.
30538 * config/i386/i386.c (enum ix86_builtins): Remove
30539 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30540 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30541 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30542 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30543 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30544 __builtin_ia32_vfmsubss3_mask3): New builtins.
30545 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30546 avx512f_vmfmadd_<mode>_mask3<round_name>,
30547 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30548 *avx512f_vmfmsub_<mode>_mask<round_name>,
30549 avx512f_vmfmsub_<mode>_mask3<round_name>,
30550 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30551 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30552 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30553 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30554 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30555 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30556 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30557 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30558 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30559 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30560 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30561 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30562 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30563 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30564 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30565 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30566 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30567 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30568 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30569 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30570 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30571 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30572 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30573 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30574 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30575 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30576 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30577 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30579 2019-03-21 Martin Sebor <msebor@redhat.com>
30581 PR tree-optimization/89350
30582 * builtins.c (compute_objsize): Also ignore offsets whose upper
30584 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30585 (builtin_memref::builtin_memref): Initialize new member.
30586 Allow EXPR to be null.
30587 (builtin_memref::extend_offset_range): Replace local with a member.
30588 Avoid assuming pointer offsets are unsigned.
30589 (builtin_memref::set_base_and_offset): Determine base object
30590 before computing offset range.
30591 (builtin_access::builtin_access): Handle memset.
30592 (builtin_access::generic_overlap): Replace local with a member.
30593 (builtin_access::strcat_overlap): Same.
30594 (builtin_access::overlap): Same.
30595 (maybe_diag_overlap): Same.
30596 (maybe_diag_access_bounds): Same.
30597 (wrestrict_dom_walker::check_call): Handle memset.
30598 (check_bounds_or_overlap): Same.
30600 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30601 Jakub Jelinek <jakub@redhat.com>
30604 * tree.c (fld_type_variant, fld_incomplete_type_of,
30605 fld_process_array_type): Call fld->pset.add and don't call
30606 add_tree_to_fld_list if it returns true.
30607 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30608 non-marked types from TYPE_NEXT_VARIANT list.
30609 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30611 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30613 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30614 to false, if true, don't alloc_entries during construction, but defer
30615 it to the first method that needs m_entries allocated.
30616 (hash_table::hash_table, hash_table::~hash_table,
30617 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30618 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30619 hash_table::clear_slot, hash_table::traverse_noresize,
30620 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30621 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30623 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30624 NO_INSERT instead of find_with_hash.
30625 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30626 hash_set::m_table): Add Lazy to template params of hash_table.
30627 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30628 * attribs.c (test_attribute_exclusions): Likewise.
30629 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30630 hash_set. Add tests for hash_set with Lazy = true.
30632 2019-03-21 Richard Biener <rguenther@suse.de>
30634 PR tree-optimization/89779
30635 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30636 checks with respect to released SSA names now having error_mark_node
30638 * fold-const.c (operand_equal_p): Likewise.
30640 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30643 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30645 (s390_optimize_register_info): Use global_not_special_regno_p to
30646 check for global regs.
30648 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30651 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30652 update this_alternative nor this_alternative_set.
30654 2019-03-19 Jim Wilson <jimw@sifive.com>
30657 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30658 align, size, offset. Use them to handle a BLKmode reference. Update
30660 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30662 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30664 PR rtl-optimization/89768
30665 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30666 instead of GEN_INT.
30667 (unroll_loop_runtime_iterations): Likewise.
30669 2019-03-19 Martin Sebor <msebor@redhat.com>
30671 PR tree-optimization/89644
30672 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30673 rather than endptr as an indicator of nul-termination.
30675 PR tree-optimization/89644
30676 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30677 arrays in determining sequence sizes in strncpy and stpncpy.
30679 2019-03-19 Martin Liska <mliska@suse.cz>
30681 PR middle-end/89737
30682 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30683 unlikely_edges if there's an edge that belongs to both these sets.
30685 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30688 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30689 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30690 go via a stack temporary.
30692 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30695 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30696 instead of gen_rtx_SUBREG.
30697 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30699 2019-03-19 Richard Biener <rguenther@suse.de>
30702 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30704 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30708 * tree.c (free_lang_data_in_decl): Do not free context of C++
30711 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30714 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30715 subs for the first alternative except when operands[3] is 1.
30718 * gimplify.c (gimplify_asm_expr): For output argument with
30719 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30722 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30724 PR rtl-optimization/89753
30725 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30726 explicit unrolling factor even more robust.
30728 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30731 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30732 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30733 signed zeros, do another copysign after the compensation.
30735 2019-03-18 Martin Sebor <msebor@redhat.com>
30737 PR tree-optimization/89720
30738 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30739 more conservatively, the same as anti-range.
30741 2019-03-18 Richard Biener <rguenther@suse.de>
30743 PR middle-end/88945
30744 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30745 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30746 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30747 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30749 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30751 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30752 Extend queue to 1024 entries.
30753 Add "consumed" field.
30754 (gomp_print_output): Remove print_index parameter.
30755 Add final parameter.
30756 Change limit to unsigned.
30757 Use consumed field to implement circular buffer.
30758 Detect interrupted print in final pass.
30759 Flush output at the end.
30760 (run): Update gomp_print_output usage.
30761 (main): Initialize kernargs->output_data.consumed.
30763 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30765 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30766 calculation of the minimum number of scalar iterations for
30767 fully-predicated loops.
30769 2019-03-18 Martin Jambor <mjambor@suse.cz>
30771 PR tree-optimization/89546
30772 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30773 any propagation to its children took place.
30775 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30778 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30779 parameter, and make use of it.
30780 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30782 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30784 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30785 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30786 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30787 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30788 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30789 match what the ops is doing.
30790 (push_multi_fp_blink): Likewise.
30791 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30792 compiling for size and elf target.
30793 (arc_save_callee_enter): Adjust note to match what enter/leave
30796 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30798 * config/arc/arc.md (tst_movb): Fix constraint.
30800 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30802 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30804 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30806 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30807 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30808 reg_alloc_order references.
30809 (size_alloc_order): Define.
30810 (arc_adjust_reg_alloc_order): New function.
30811 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30813 (ADJUST_REG_ALLOC_ORDER): Define.
30814 (HONOR_REG_ALLOC_ORDER): Likewise.
30816 2019-03-18 Richard Biener <rguenther@suse.de>
30819 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30820 loads and stores a bit more.
30822 2019-03-18 Richard Biener <rguenther@suse.de>
30825 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30826 load pessimization to stores as well.
30828 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30830 PR middle-end/86979
30831 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30832 successor, use NULL as its av set.
30834 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30836 PR rtl-optimization/89721
30837 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30839 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30842 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30843 When handling vec_extract, use modular arithmetic to allow
30844 constant selectors greater than vector length.
30845 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30846 V1TImode vectors to have constant selector values greater than 0.
30847 Use modular arithmetic to compute vector index.
30848 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30849 index for in-memory vectors. Correct code generation for
30850 in-register vectors.
30851 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30854 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30858 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30861 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30864 * tree.c (inchash::add_expr): Strip any location wrappers.
30865 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30866 after hash verification.
30869 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30870 SIGN_EXTEND and ZERO_EXTEND.
30872 2019-03-14 Jason Merrill <jason@redhat.com>
30873 Jakub Jelinek <jakub@redhat.com>
30875 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30876 than if is_empty (*slot).
30877 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30878 existing elt and for elt removal.
30879 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30880 of already removed elt.
30882 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30885 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30886 REG_EH_REGION note.
30888 2019-03-14 Martin Liska <mliska@suse.cz>
30891 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30893 2019-03-14 Richard Biener <rguenther@suse.de>
30896 * config/i386/i386.c (make_resolver_func): Properly set
30897 DECL_CONTEXT on the RESULT_DECL.
30898 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30900 2019-03-14 Richard Biener <rguenther@suse.de>
30902 * gimple-pretty-print.c: Include cfgloop.h.
30903 (dump_gimple_phi): Adjust.
30904 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30905 (pp_cfg_jump): Adjust.
30906 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30907 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30908 (lower_phi_internal_fn): Remove.
30909 (verify_gimple_call): Remove IFN_PHI special-casing.
30910 (dump_function_to_file): Dump IL state.
30911 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30912 done to deal with PHI nodes being present in non-SSA state.
30914 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30917 * multiple_target.c (create_dispatcher_calls): Change
30918 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30919 In the node->iterate_referring loop, push *ref rather than ref, call
30920 ref->remove_reference () and always pass 0 to iterate_referring.
30922 PR rtl-optimization/89679
30923 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30924 would contain a paradoxical SUBREG.
30926 2019-03-14 Richard Biener <rguenther@suse.de>
30928 PR tree-optimization/89710
30929 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30932 2019-03-14 Martin Liska <mliska@suse.cz>
30934 * coverage.c (coverage_begin_function): Stream also
30936 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30937 documentation about function declaration location.
30938 * gcov-dump.c (tag_function): Print whole range
30939 of function declaration.
30940 * gcov.c (struct function_info): Add end_column field.
30941 (function_info::function_info): Initialize it.
30942 (output_json_intermediate_file): Output {start,end}_column
30944 (read_graph_file): Read end_column.
30946 2019-03-14 Richard Biener <rguenther@suse.de>
30948 PR middle-end/89698
30949 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30950 that the access types are similar.
30952 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30954 PR tree-optimization/89703
30955 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30956 aren't compatible also with builtin_decl_explicit. Check pure
30957 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30958 and BUILT_IN_STPNCPY{,_CHK}.
30960 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30963 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30964 addr32 prefix to VSIB address for X32.
30965 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30967 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30968 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30969 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30970 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30971 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30972 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30973 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30974 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30975 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30976 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30977 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30978 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30979 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30980 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30981 (*avx512f_scatterdi<mode>): Likewise.
30983 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30986 * lra-constraints.c (inherit_in_ebb): Update
30987 potential_reload_hard_regs along with live_hard_regs.
30989 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30992 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30994 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30996 2019-03-13 Martin Sebor <msebor@redhat.com>
30998 PR tree-optimization/89662
30999 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31002 2019-03-13 Richard Biener <rguenther@suse.de>
31004 PR middle-end/89677
31005 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31006 throw FP expressions at tree-affine.
31008 2019-03-14 Richard Biener <rguenther@suse.de>
31010 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31011 dump negative integer constants using _Literal (type) -num.
31013 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31015 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31016 nonlocal_value member.
31018 PR middle-end/88588
31019 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31020 (ipa_simd_modify_function_body): Handle PHIs.
31022 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31024 * config/s390/s390.c (s390_option_override_internal): Use more
31025 aggressive inlining parameters.
31027 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31029 * config/s390/3906.md: New file.
31030 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31031 (LONGRUNNING_THRESHOLD): Remove.
31032 (MAX_SCHED_MIX_SCORE): Decrease.
31033 (MAX_SCHED_MIX_DISTANCE): Decrease.
31034 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31035 (struct s390_sched_state): New struct to hold scheduling state.
31036 (S390_SCHED_STATE_NORMAL): Remove.
31037 (S390_SCHED_STATE_CRACKED): Remove.
31038 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31039 (s390_get_sched_attrmask): Use new attribute.
31040 (s390_get_unit_mask): Use new units.
31041 (s390_is_fpd): New function.
31042 (s390_is_fxd): New function.
31043 (s390_is_longrunning): New function.
31044 (s390_sched_score): Use new functions.
31045 (s390_sched_reorder): Likewise.
31046 (s390_sched_variable_issue): Rework and use new functions.
31047 (s390_sched_init): Use new functions.
31048 * config/s390/s390.h (s390_tune_attr): Add z14.
31049 * config/s390/s390.md: Add z14.
31051 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31053 * config/s390/2964.md: Update pipeline description.
31054 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31055 (LONGRUNNING_THRESHOLD): Remove.
31056 (LATENCY_FACTOR): Remove.
31057 (s390_get_unit_mask): Add unit.
31058 (s390_sched_score): Use fxd/fpd.
31059 (s390_sched_variable_issue): Use fxd/fpd.
31061 2019-03-12 Martin Liska <mliska@suse.cz>
31063 * config/i386/i386.c: Reword an error message.
31065 2019-03-12 Martin Jambor <mjambor@suse.cz>
31067 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31068 terminate with newline.
31070 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31073 * config/s390/s390.md (tabort): Use %wd instead of
31074 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31075 letters and periods.
31076 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31077 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31080 PR middle-end/89663
31081 * builtins.c (expand_builtin_int_roundingfn,
31082 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31083 gcc_unreachable if validate_arglist fails.
31085 2019-03-12 Richard Biener <rguenther@suse.de>
31087 PR tree-optimization/89664
31088 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31089 free the occurance tree after the early out.
31091 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31093 PR middle-end/89655
31095 * vr-values.c (vr_values::update_value_range): If
31096 old_vr->varying_p (), don't update it, make new_vr also VARYING
31099 2019-03-11 Martin Liska <mliska@suse.cz>
31101 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31102 Fix double string quoting.
31104 2019-03-11 Martin Liska <mliska@suse.cz>
31106 * collect-utils.c (collect_wait): Wrap apostrophes
31107 in gcc internal format with %'.
31108 * collect2.c (main): Likewise.
31109 (scan_prog_file): Likewise.
31110 (scan_libraries): Likewise.
31111 * config/i386/i386.c (ix86_expand_call): Likewise.
31112 (ix86_handle_interrupt_attribute): Likewise.
31113 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31114 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31115 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31116 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31117 * symtab.c (symtab_node::verify_base): Likewise.
31118 * tree-cfg.c (verify_gimple_label): Likewise.
31119 * tree.c (verify_type_variant): Likewise.
31121 2019-03-11 Martin Liska <mliska@suse.cz>
31123 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31124 in a string format message and fix GNU coding style.
31125 (expand_builtin_set_thread_pointer): Likewise.
31126 * common/config/aarch64/aarch64-common.c
31127 (aarch64_rewrite_selected_cpu): Likewise.
31128 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31129 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31130 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31131 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31132 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31133 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31134 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31135 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31136 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31137 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31139 * common/config/riscv/riscv-common.c
31140 (riscv_subset_list::parsing_subset_version): Likewise.
31141 (riscv_subset_list::parse_std_ext): Likewise.
31142 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31143 (riscv_subset_list::parse): Likewise.
31144 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31145 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31146 (aarch64_override_options_internal): Likewise.
31147 (aarch64_validate_mcpu): Likewise.
31148 (aarch64_validate_march): Likewise.
31149 (aarch64_validate_mtune): Likewise.
31150 (aarch64_override_options): Likewise.
31151 * config/alpha/alpha.c (alpha_option_override): Likewise.
31152 * config/arc/arc.c (arc_init): Likewise.
31153 (parse_mrgf_banked_regs_option): Likewise.
31154 (arc_override_options): Likewise.
31155 (arc_expand_builtin_aligned): Likewise.
31156 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31157 (arm_expand_builtin): Likewise.
31158 * config/arm/arm.c (arm_option_check_internal): Likewise.
31159 (arm_configure_build_target): Likewise.
31160 (arm_option_override): Likewise.
31161 (arm_options_perform_arch_sanity_checks): Likewise.
31162 (arm_handle_cmse_nonsecure_entry): Likewise.
31163 (arm_handle_cmse_nonsecure_call): Likewise.
31164 (arm_tls_referenced_p): Likewise.
31165 (thumb1_expand_prologue): Likewise.
31166 * config/avr/avr.c (avr_option_override): Likewise.
31167 * config/bfin/bfin.c (bfin_option_override): Likewise.
31168 * config/c6x/c6x.c (c6x_option_override): Likewise.
31169 * config/cr16/cr16.c (cr16_override_options): Likewise.
31170 * config/cris/cris.c (cris_option_override): Likewise.
31171 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31172 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31173 * config/darwin.c (darwin_override_options): Likewise.
31174 * config/frv/frv.c (frv_expand_builtin): Likewise.
31175 * config/h8300/h8300.c (h8300_option_override): Likewise.
31176 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31177 (ix86_option_override_internal): Likewise.
31178 (warn_once_call_ms2sysv_xlogues): Likewise.
31179 (ix86_expand_prologue): Likewise.
31180 (split_stack_prologue_scratch_regno): Likewise.
31181 (ix86_warn_parameter_passing_abi): Likewise.
31182 * config/ia64/ia64.c (fix_range): Likewise.
31183 * config/m68k/m68k.c (m68k_option_override): Likewise.
31184 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31185 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31186 (mips_set_compression_mode): Likewise.
31187 * config/mmix/mmix.c (mmix_option_override): Likewise.
31188 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31189 * config/msp430/msp430.c (msp430_option_override): Likewise.
31190 * config/nds32/nds32.c (nds32_option_override): Likewise.
31191 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31192 (nios2_option_override): Likewise.
31193 (nios2_expand_custom_builtin): Likewise.
31194 * config/nvptx/mkoffload.c (main): Likewise.
31195 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31196 * config/pa/pa.c (fix_range): Likewise.
31197 (pa_option_override): Likewise.
31198 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31199 (riscv_option_override): Likewise.
31200 * config/rl78/rl78.c (rl78_option_override): Likewise.
31201 * config/rs6000/aix61.h: Likewise.
31202 * config/rs6000/aix71.h: Likewise.
31203 * config/rs6000/aix72.h: Likewise.
31204 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31205 * config/rs6000/freebsd64.h: Likewise.
31206 * config/rs6000/linux64.h: Likewise.
31207 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31208 (rs6000_expand_zeroop_builtin): Likewise.
31209 (rs6000_expand_mtfsb_builtin): Likewise.
31210 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31211 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31212 (rs6000_invalid_builtin): Likewise.
31213 (rs6000_expand_split_stack_prologue): Likewise.
31214 * config/rs6000/rtems.h: Likewise.
31215 * config/rx/rx.c (valid_psw_flag): Likewise.
31216 (rx_expand_builtin): Likewise.
31217 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31218 * config/s390/s390.c (s390_expand_builtin): Likewise.
31219 (s390_function_profiler): Likewise.
31220 (s390_option_override_internal): Likewise.
31221 (s390_option_override): Likewise.
31222 * config/sh/sh.c (sh_option_override): Likewise.
31223 (sh_builtin_saveregs): Likewise.
31224 (sh_fix_range): Likewise.
31225 * config/sh/vxworks.h: Likewise.
31226 * config/sparc/sparc.c (sparc_option_override): Likewise.
31227 * config/spu/spu.c (spu_option_override): Likewise.
31228 (fix_range): Likewise.
31229 * config/visium/visium.c (visium_option_override): Likewise.
31230 (visium_handle_interrupt_attr): Likewise.
31231 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31232 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31233 (dbg_cnt_process_opt): Likewise.
31234 * dwarf2out.c (output_dwarf_version): Likewise.
31235 * except.c (expand_eh_return): Likewise.
31236 * gcc.c (defined): Likewise.
31237 (driver_handle_option): Likewise.
31238 (process_command): Likewise.
31239 (compare_files): Likewise.
31240 (driver::prepare_infiles): Likewise.
31241 (driver::do_spec_on_infiles): Likewise.
31242 (driver::maybe_run_linker): Likewise.
31243 * omp-offload.c (oacc_parse_default_dims): Likewise.
31244 * opts-global.c (handle_common_deferred_options): Likewise.
31245 * opts.c (parse_sanitizer_options): Likewise.
31246 (common_handle_option): Likewise.
31247 (enable_warning_as_error): Likewise.
31248 * passes.c (enable_disable_pass): Likewise.
31249 * plugin.c (parse_plugin_arg_opt): Likewise.
31250 (default_plugin_dir_name): Likewise.
31251 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31252 (default_pch_valid_p): Likewise.
31253 * toplev.c (init_asm_output): Likewise.
31254 (process_options): Likewise.
31255 (toplev::run_self_tests): Likewise.
31256 * tree-cfg.c (verify_gimple_call): Likewise.
31257 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31258 (tree_inlinable_function_p): Likewise.
31259 * var-tracking.c (vt_find_locations): Likewise.
31261 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31263 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31264 only on the else branch.
31266 2019-03-11 Martin Liska <mliska@suse.cz>
31268 * gcov.c (output_intermediate_json_line): Print function
31270 (output_json_intermediate_file): Add new argument.
31271 * doc/gcov.texi: Document the change.
31273 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31275 PR rtl-optimization/89588
31276 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31277 explicit unrolling factor more robust.
31279 2019-03-11 Richard Biener <rguenther@suse.de>
31281 PR tree-optimization/89649
31282 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31283 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31284 on the prolog and epilog loops.
31285 (vect_loop_versioning): Return copy of loop.
31286 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31287 on the non-vectorized version of the loop.
31289 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31292 * config/i386/sse.md (*vec_extractv2di_0_sse):
31293 Add (=r,x) alternative and corresponding splitter.
31295 2019-03-10 Martin Jambor <mjambor@suse.cz>
31297 PR tree-optimization/85762
31298 PR tree-optimization/87008
31299 PR tree-optimization/85459
31300 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31301 it points to if there is a type changing MEM_REF. Adjust all callers.
31302 (build_accesses_from_assign): Disable total scalarization if
31303 contains_vce_or_bfcref_p returns true through the new parameter, for
31306 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31309 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31310 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31313 * common.opt (fdiagnostics-show-labels,
31314 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31315 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31316 gas-locview-support, ginline-points, ginternal-reset-location-views):
31317 Terminate description text with a dot.
31318 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31319 * config/mcore/mcore.opt (m210, m340): Likewise.
31320 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31321 mnops=): Start description text with a capital letter.
31322 * config/arc/arc.opt (msize-level=): Likewise.
31323 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31324 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31325 mnewlib): Likewise.
31326 * config/ft32/ft32.opt (msim): Likewise.
31327 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31328 (mnodiv, mnopm): Terminate description text with a dot.
31329 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31331 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31333 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31336 PR rtl-optimization/89634
31337 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31338 are modified in BB_END (e->src) instruction.
31340 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31343 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31344 messages more amenable to translation, and improve wording.
31346 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31348 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31349 ud- and du-chains between phases.
31351 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31354 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31355 instead of POLY_INT_CST.
31357 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31359 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31362 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31367 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31368 (_mm_storeu_si64): Ditto.
31370 2019-03-08 Martin Liska <mliska@suse.cz>
31373 * config/i386/i386.c (ix86_option_override_internal): Disable
31374 jump tables when retpolines are used.
31376 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31379 * ipa-split.c (execute_split_functions): Do not split
31380 'noinline' or 'section' function.
31382 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31385 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31386 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31387 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31390 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31391 from diagnostics. Formatting fixes.
31394 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31395 warn_odr diagnostics.
31398 * lra-constraints.c (process_alt_operands): Avoid one space before
31399 " at the end of line and another after " on another line in a string
31401 * attribs.c (handle_dll_attribute): Likewise.
31402 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31404 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31405 warning_at or inform messages in G_() if there is no ?:.
31407 PR tree-optimization/89550
31408 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31409 returned true. Formatting fixes.
31410 (expand_builtin_strnlen): Formatting fixes.
31411 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31412 if warning_at returned true.
31413 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31415 2019-03-08 Richard Biener <rguenther@suse.de>
31417 PR middle-end/89578
31418 * cfgloop.h (struct loop): Add owned_clique field.
31419 * cfgloopmanip.c (copy_loop_info): Copy it.
31420 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31422 * tree-inline.c (copy_loops): Remap owned_clique.
31423 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31424 * lto-streamer-out.c (output_cfg): Likewise.
31426 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31429 * config/darwin.c: Include intl.h.
31430 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31431 composing the message out of two separate parts.
31433 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31436 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31437 doesn't start with a capital letter and doesn't end with a dot.
31438 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31439 with a capital letter.
31440 (ix86_mangle_function_version_assembler_name): Likewise.
31441 (ix86_generate_version_dispatcher_body): Likewise.
31442 (fold_builtin_cpu): Likewise.
31443 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31444 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31445 translators, wrap full type name in %qs.
31447 PR translation/79999
31448 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31449 depend clause with source (or sink) modifier.
31450 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31453 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31454 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31455 (avx512f_load<mode>_mask): New define_expand.
31456 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31457 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31458 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31459 __builtin_ia32_movess_mask): New builtins.
31460 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31461 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31462 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31463 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31465 2019-03-07 Martin Jambor <mjambor@suse.cz>
31468 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31469 for extern inline functions.
31471 2019-03-07 Martin Jambor <mjambor@suse.cz>
31474 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31475 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31476 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31477 have multiple callees. At the end check if declarations match as
31478 opposed to cgraph_nodes.
31480 2019-03-07 Martin Liska <mliska@suse.cz>
31482 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31483 which is equivalent to searching for this in clones chain.
31484 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31485 names with a neighbour and special case first node in a chain.
31487 2019-01-25 Jason Merrill <jason@redhat.com>
31489 PR c++/80916 - spurious "static but not defined" warning.
31490 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31491 for an internal symbol with DECL_EXTERNAL.
31493 2019-04-07 Richard Biener <rguenther@suse.de>
31495 PR middle-end/89618
31496 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31497 * tree-inline.c (copy_loops): Simplify.
31499 2019-03-07 Martin Liska <mliska@suse.cz>
31501 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31503 2019-03-07 Richard Biener <rguenther@suse.de>
31505 PR tree-optimization/89595
31506 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31507 stmt iterator as reference, take boolean output parameter to
31508 indicate whether the stmt was removed and thus the iterator
31510 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31511 stmts created by folding.
31513 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31516 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31519 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31521 PR rtl-optimization/88845
31522 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31524 * lra.c (remove_scratches_1): New function.
31525 (remove_scratches): Use it.
31526 (lra_emit_move): Likewise.
31528 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31530 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31531 unaligned_access variable.
31532 * config/arc/arc.c (arc_override_options): Set unaligned access
31533 default on for HS CPUs.
31534 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31536 2019-03-06 Martin Liska <mliska@suse.cz>
31538 PR gcov-profile/89577
31539 * doc/gcov.texi: Prefer to use --coverage.
31540 * doc/sourcebuild.texi: Likewise.
31542 2019-03-02 Jason Merrill <jason@redhat.com>
31544 PR c++/86485 - -Wmaybe-unused with empty class ?:
31545 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31547 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31550 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31553 PR middle-end/89590
31554 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31555 exactly one argument.
31557 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31558 Richard Sandiford <richard.sandiford@arm.com>
31560 PR tree-optimization/89570
31561 * match.pd (vec_cond into cond_op simplification): Don't use
31562 get_conditional_internal_fn, use as_internal_fn (cond_op).
31564 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31567 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31568 to decide when to split off a non-zero offset from a symbol.
31569 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31570 in function symbols.
31572 2019-03-05 Richard Biener <rguenther@suse.de>
31574 PR tree-optimization/89594
31575 * tree-if-conv.c (pass_if_conversion::execute): Handle
31576 case where .LOOP_VECTORIZED_FUNCTION was removed.
31578 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31581 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31582 instead alloca it only when needed with the needed size.
31584 PR tree-optimization/89570
31585 * match.pd (vec_cond into cond_op simplification): Guard with
31586 vectorized_internal_fn_supported_p test and #if GIMPLE.
31588 PR tree-optimization/89566
31589 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31590 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31591 Punt if get_user_idx_format succeeds, but idx_format argument is
31592 not provided or doesn't have pointer type, or if idx_args is above
31593 number of provided arguments.
31595 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31597 PR tree-optimization/89437
31598 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31600 2019-03-04 Richard Biener <rguenther@suse.de>
31602 PR middle-end/89572
31603 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31606 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31608 PR tree-optimization/89487
31609 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31610 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31611 (distribute_loop): Don't do runtime alias check if there is non-
31612 addressable data reference.
31613 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31614 is a register variable.
31616 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31619 * config/arm/arm.md (cmpsi2_addneg): Use
31620 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31621 If operands[2] is 0 or INT_MIN, force use of subs.
31622 (*compare_scc splitter): Use gen_int_mode.
31623 (*negscc): Likewise.
31624 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31626 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31627 Monk Chiang <sh.chiang04@gmail.com>
31629 * common/config/riscv/riscv-common.c: Include sstream.
31630 (riscv_subset_list::to_string): New.
31631 (riscv_arch_str): Likewise.
31632 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31633 * config.in: Regen.
31634 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31635 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31636 (riscv_emit_attribute): New.
31637 (riscv_file_start): Emit attribute if needed.
31638 (riscv_option_override): Init riscv_emit_attribute_p.
31639 * config/riscv/riscv.opt (mriscv-attribute): New option.
31640 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31641 * configure: Regen.
31642 * doc/install.texi: Document --with-riscv-attribute.
31643 * doc/invoke.texi: Document -mriscv-attribute.
31645 * common/config/riscv/riscv-common.c:
31646 Include config/riscv/riscv-protos.h.
31647 (INCLUDE_STRING): Defined.
31648 (RISCV_DONT_CARE_VERSION): Defined.
31649 (riscv_subset_t): Declare.
31650 (riscv_subset_t::riscv_subset_t): New.
31651 (riscv_subset_list): Declare.
31652 (riscv_subset_list::riscv_subset_list): New.
31653 (riscv_subset_list::~riscv_subset_list): Likewise.
31654 (riscv_subset_list::parsing_subset_version): Likewise.
31655 (riscv_subset_list::parse_std_ext): Likewise.
31656 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31657 (riscv_subset_list::add): Likewise.
31658 (riscv_subset_list::lookup): Likewise.
31659 (riscv_subset_list::xlen): Likewise.
31660 (riscv_subset_list::parse): Likewise.
31661 (riscv_supported_std_ext): Likewise.
31662 (current_subset_list): Likewise.
31663 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31666 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31668 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31669 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31670 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31672 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31674 PR rtl-optimization/85899
31675 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31676 fallthru edges leading to the exit block.
31678 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31681 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31682 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31684 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31686 PR tree-optimization/89535
31687 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31688 for each operand. Calculate the fallback choice for mask operands
31689 and pass it to vect_get_vec_def_for_operand.
31691 2019-03-01 Richard Biener <rguenther@suse.de>
31693 PR middle-end/89541
31694 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31695 get virtual operands.
31696 (get_expr_operands): Handle CONST_DECL like other decls.
31698 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31700 PR middle-end/89503
31701 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31702 on DECL_P and EXPR_P.
31704 2019-03-01 Richard Biener <rguenther@suse.de>
31706 PR middle-end/89497
31707 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31708 argument, defaulted to zero.
31709 * passes.c (execute_function_todo): Pass down SSA update flags
31710 to cleanup_tree_cfg.
31711 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31712 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31714 (cleanup_tree_cfg): Get and pass down SSA update flags.
31716 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31719 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31720 early_lto_debug argument.
31722 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31724 PR tree-optimization/89536
31725 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31726 only whether bit #0 of the value is 0 instead of the entire value.
31728 2019-02-28 Marek Polacek <polacek@redhat.com>
31730 PR c++/87068 - missing diagnostic with fallthrough statement.
31731 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31732 at the end of a seq, save its location to walk_stmt_info.
31733 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31736 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31739 * tree.c (find_atomic_core_type): Move ahead in file.
31740 (check_base_type): Correctly compare alignments of atomic types.
31742 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31745 * config/i386/i386.c (get_builtin_code_for_version): Identify
31746 Westmere from PCLMUL, instead of AES.
31748 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31751 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31752 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31755 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31758 * config/aarch64/aarch64-option-extensions.def: Document it.
31759 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31762 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31765 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31766 builtins if they don't have a single scalar floating point argument.
31769 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31771 PR rtl-optimization/89490
31772 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31773 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31774 block section is not mergeable.
31776 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31779 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31780 old define_insn to ...
31781 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31782 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31783 Rename old define_insn to ...
31784 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31785 (thumb2_casesi_internal_pic): New define_expand. Rename old
31787 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31788 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31789 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31791 2019-02-27 Richard Biener <rguenther@suse.de>
31794 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31796 2019-02-27 Richard Biener <rguenther@suse.de>
31798 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31801 2019-02-27 Richard Biener <rguenther@suse.de>
31804 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31805 parameter, prefix section name with .gnu.debuglto_ if true.
31806 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31807 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31809 2019-02-27 Richard Biener <rguenther@suse.de>
31812 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31813 rather than on use_debug_types, doing what output_die does.
31814 (value_format): Likewise.
31816 2019-02-27 Martin Jambor <mjambor@suse.cz>
31817 Martin Sebor <msebor@redhat.com>
31819 * doc/invoke.texi (Warning Options): Reword description of
31820 -Wno-absolute-value.
31822 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31824 PR tree-optimization/89280
31825 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31826 builtin_setjmp_setup_bb): New functions.
31827 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31828 When visiting __builtin_setjmp_setup block, queue in special
31829 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31830 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31831 from visited after the loop if they don't have any visited successor
31834 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31836 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31838 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31840 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31843 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31844 with types other than sizetype/ssizetype.
31846 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31848 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31849 (enum sparc_processor_type): ...this.
31850 (enum sparc_code_model_type): New enumeration type.
31851 (enum sparc_memory_model_type): Tweak comments.
31852 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31854 (mcmodel): Use sparc_code_model enumeration and variable.
31855 (sparc_code_model): New enumeration.
31856 (mdebug): Add Undocumented marker.
31857 * config/sparc/sparc.h (enum cmodel): Delete.
31858 (sparc_cmodel): Likewise.
31859 (TARGET_CM_MEDLOW): Adjust to above renaming.
31860 (TARGET_CM_MEDMID): Likewise.
31861 (TARGET_CM_MEDANY): Likewise.
31862 (TARGET_CM_EMBMEDANY): Likewise.
31863 * config/sparc/sparc.c (sparc_cmodel): Delete.
31864 (sparc_option_override): Remove string/value mapping support for the
31865 code model. Move code and memory model support to after the handling
31866 of target flags. Do private machine setup last.
31867 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31868 (sparc_legitimize_reload_address): Likewise.
31869 (sparc_output_mi_thunk): Likewise.
31870 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31872 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31874 PR tree-optimization/89500
31875 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31876 (handle_builtin_strlen): Remove noncst_bound variable. Always
31877 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31878 cst if the first cst bytes starting at x are known to be non-zero,
31879 even if the string is not zero terminated. Don't try to modify
31880 *si for strnlen. Update strlen_to_stridx only for strlen or if
31881 we can prove strnlen returns the same value as strlen would.
31883 2019-02-26 Martin Liska <mliska@suse.cz>
31885 * alloc-pool.h (struct pool_usage): Remove extra
31887 * bitmap.h (struct bitmap_usage): Likewise.
31888 * ggc-common.c (struct ggc_usage): Likewise.
31889 * mem-stats.h (struct mem_usage): Likewise.
31890 (mem_alloc_description::dump): Print dash lines
31891 here and repeat header at the end of a table report.
31892 It's then more readable.
31893 * tree-phinodes.c (phinodes_print_statistics): Make
31894 horizontal alignment.
31895 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31896 * vec.c (struct vec_usage): Remove extra print_dash_line.
31897 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31899 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31901 * doc/extend.texi (__builtin_object_size):
31902 Use @pxref instead of @xref inside parenthesis.
31903 (__builtin_has_attribute): Add missing comma after @xref.
31904 (__builtin_object_size): Ditto.
31905 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31907 2019-02-26 Jeff Law <law@redhat.com>
31909 PR rtl-optimization/87761
31910 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31911 detect obviously dead insns and delete them.
31913 2019-02-26 Richard Biener <rguenther@suse.de>
31915 PR tree-optimization/89505
31916 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31917 to handle restrict pointed-to vars with multiple subvars
31920 2019-02-26 Richard Biener <rguenther@suse.de>
31922 PR tree-optimization/89489
31923 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31925 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31927 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31928 and move around comment.
31929 <BIT_AND_EXPR>: Likewise.
31930 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31932 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31935 * config/i386/i386.c (remove_partial_avx_dependency): Call
31936 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31937 after changing possibly many instructions to use that pseudo. Fix up
31938 insertion of v4sf_const0 setter at the start of bb.
31940 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31943 * doc/extend.texi (Variadic Pointer Args): New section.
31945 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31946 Martin Sebor <msebor@gmail.com>
31948 * common.opt (Wattribute-alias): Likewise.
31949 * doc/invoke.texi (Option Summary): List general form of
31950 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31951 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31952 Add cross-references.
31953 (-Wattribute-alias): Rewrite and correct default. Mention
31954 considered attributes (same as for -Wmissing-attributes).
31956 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31958 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31959 (_mm_cvtpd_ps): Likewise.
31960 (_mm_cvttpd_epi32): Likewise.
31963 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31964 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31967 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31969 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31972 * common/config/aarch64/aarch64-common.c
31973 (struct aarch64_option_extension): Add is_synthetic.
31974 (all_extensions): Use it.
31975 (TARGET_OPTION_INIT_STRUCT): Define hook.
31976 (struct gcc_targetm_common): Moved to end.
31977 (all_extensions_by_on): New.
31978 (opt_ext_cmp, typedef opt_ext): New.
31979 (aarch64_option_init_struct): New.
31980 (aarch64_contains_opt): New.
31981 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31982 * config/aarch64/aarch64-option-extensions.def
31983 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31984 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31985 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31986 Set is_synthetic to false.
31987 (crypto): Set is_synthetic to true.
31988 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31991 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31993 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31994 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31995 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31996 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31997 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31998 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31999 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32000 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32002 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32003 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32004 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32005 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32006 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32007 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32008 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32009 vfmlsl_laneq_high_f16): ... To this.
32010 * config/arm/neon.md: Update comments.
32012 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32014 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32015 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32016 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32017 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32018 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32019 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32020 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32021 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32023 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32024 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32025 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32026 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32027 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32028 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32029 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32030 vfmlslq_laneq_high_f16): ... To this.
32032 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32034 PR rtl-optimization/86096
32035 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32036 comparing mw_order values.
32038 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32041 * config/arm/arm.md (*subsi3_carryin_const): Use
32042 arm_neg_immediate_operand predicate instead of
32043 arm_not_immediate_operand, "L" constraint instead of "K" and
32044 print it using %n2 instead of %B2.
32045 (*subsi3_carryin_const0): New define_insn.
32046 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32047 instead of arm_not_operand and "I" constraint instead of "K" and
32048 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32049 another match_operand and in the condition check that it is negation
32051 (*subsi3_carryin_compare_const0): New define_ins.
32052 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32053 *subsi3_carryin_const.
32054 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32055 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32058 * config/arm.vfp.md (*negdf2_vfp): Use
32059 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32060 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32062 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32064 PR rtl-optimization/89445
32065 * simplify-rtx.c (simplify_ternary_operation): Don't use
32066 simplify_merge_mask on operands that may trap.
32067 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32068 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32069 second operand is CONST_VECTOR, check if any element could be zero.
32070 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32071 their operands can trap.
32073 2019-02-23 Martin Sebor <msebor@redhat.com>
32075 * gimple-ssa-sprintf.c (target_strtol): Rename...
32076 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32077 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32078 check for range error.
32080 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32083 * opts-common.c (prune_options): Also prune joined switches
32084 with Negative and RejectNegative.
32085 * config/i386/i386.opt (march=): Add Negative(march=).
32086 (mtune=): Add Negative(mtune=).
32087 * doc/options.texi: Document Negative used together with Joined
32088 and RejectNegative.
32090 2019-02-22 Martin Sebor <msebor@redhat.com>
32092 * doc/extend.texi (Other Builtins): Add
32093 __builtin_is_constant_evaluated.
32095 2019-02-22 Richard Biener <rguenther@suse.de>
32097 PR tree-optimization/87609
32098 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32100 2019-02-22 Jeff Law <law@redhat.com>
32102 PR rtl-optimization/87761
32103 * config/mips/mips.md: Add new combiner pattern to recognize
32104 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32106 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32109 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32110 destination register in peepholes generating patterns for ADDS/SUBS.
32111 (add<mode>3_compare0,
32112 *addsi3_compare0_uxtw, add<mode>3_compareC,
32113 add<mode>3_compareV_imm, add<mode>3_compareV,
32114 *adds_<optab><ALLX:mode>_<GPI:mode>,
32115 *subs_<optab><ALLX:mode>_<GPI:mode>,
32116 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32117 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32118 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32119 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32120 sub<mode>3_compare1): Allow stack pointer for source register.
32121 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32123 2019-02-22 Martin Sebor <msebor@redhat.com>
32125 PR tree-optimization/88993
32126 PR tree-optimization/88853
32127 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32129 (sprintf_dom_walker::call_info::is_string_func): New helper.
32130 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32131 for formatted string functions.
32132 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32134 2019-02-22 Martin Sebor <msebor@redhat.com>
32137 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32138 unreachable subexpressions.
32140 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32141 Hongtao Liu <hongtao.liu@intel.com>
32142 Sunil K Pandey <sunil.k.pandey@intel.com>
32145 * config/i386/i386-passes.def: Add
32146 pass_remove_partial_avx_dependency.
32147 * config/i386/i386-protos.h
32148 (make_pass_remove_partial_avx_dependency): New.
32149 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32151 (pass_data_remove_partial_avx_dependency): New.
32152 (pass_remove_partial_avx_dependency): Likewise.
32153 (make_pass_remove_partial_avx_dependency): Likewise.
32154 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32155 (*extendsfdf2): Add avx_partial_xmm_update.
32156 (truncdfsf2): Likewise.
32157 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32158 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32160 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32162 PR middle-end/85598
32163 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32166 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32169 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32170 (PTA_SKYLAKE): Add PTA_AES.
32171 (PTA_GOLDMONT): Likewise.
32173 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32175 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32176 instruction if enabled.
32177 (aarch64_override_options): Remove reference to return address key.
32179 2019-02-22 Richard Biener <rguenther@suse.de>
32181 PR tree-optimization/89440
32182 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32183 not necessary assert.
32185 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32188 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32189 (oacc_replace_fn_attrib_attr): ... this new function.
32190 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32191 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32193 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32195 * config/arm/arm-cpus.in (ares): Rename to...
32196 (neoverse-n1): ... This. Add ares as alias.
32197 * config/arm/arm-tables.opt: Regenerate.
32198 * config/arm/arm-tune.md: Likewise.
32199 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32201 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32203 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32204 * config/aarch64/aarch64-tune.md: Regenerate.
32205 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32207 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32209 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32210 (neoversen1_tunings): ... This.
32211 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32212 (neoverse-n1): New CPU.
32213 * config/aarch64/aarch64-tune.md: Regenerate.
32214 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32216 2019-02-22 Richard Biener <rguenther@suse.de>
32218 PR middle-end/87609
32219 * cfghooks.h (dependence_hash): New typedef.
32220 (struct copy_bb_data): New type.
32221 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32222 (duplicate_block): Likewise.
32223 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32224 (copy_bbs): Create and pass down copy_bb_data.
32225 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32226 (rtl_duplicate_bb): Likewise.
32227 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32228 remap dependence info.
32230 2019-02-22 Richard Biener <rguenther@suse.de>
32232 PR tree-optimization/87609
32233 * tree-core.h (tree_base): Document special clique values.
32234 * tree-inline.c (remap_dependence_clique): Do not use the
32235 special clique value of one.
32236 (maybe_set_dependence_info): Use clique one.
32237 (clear_dependence_clique): New callback.
32238 (compute_dependence_clique): Clear clique one from all refs
32239 before assigning it (again).
32241 2019-02-21 Martin Sebor <msebor@redhat.com>
32243 * doc/extend.texi (__clear_cache): Correct signature.
32245 2019-02-21 Ian Lance Taylor <iant@golang.org>
32248 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32249 than output_constant_def.
32250 (add_constant_to_table): New static function.
32251 (output_constant_def): Call add_constant_to_table.
32252 (tree_output_constant_def): Likewise.
32254 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32257 * builtins.c (fold_builtin_arith_overflow): If first two args are
32258 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32261 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32264 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32265 error for -mindirect-branch/-mfunction-return with incompatible
32268 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32271 * constraints.md (q): Remove.
32272 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32275 2019-02-21 Martin Jambor <mjambor@suse.cz>
32278 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32279 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32280 (omp_adjust_for_condition): ...here. Added necessary parameters.
32281 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32282 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32283 proper values to new parameters of omp_adjust_for_condition.
32285 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32287 PR middle-end/89412
32288 * expr.c (expand_assignment): If result is a MEM, use change_address
32289 instead of simplify_gen_subreg.
32291 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32292 David Malcolm <dmalcolm@redhat.com>
32294 PR middle-end/89091
32295 * fold-const.c (decode_field_reference): Return NULL_TREE if
32296 lang_hooks.types.type_for_size returns NULL. Check it before
32297 overwriting *exp_. Use return NULL_TREE instead of return 0.
32299 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32301 PR middle-end/88074
32302 PR middle-end/89415
32303 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32306 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32309 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32310 TARGET_SSE in addition to TARGET_SSE_MATH.
32312 (ix86_excess_precision): Ditto.
32313 (ix86_float_exceptions_rounding_supported_p): Ditto.
32314 (use_rsqrt_p): Ditto.
32315 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32317 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32320 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32321 linenum_arith_t when determining if two adjacent line spans are
32322 close enough to merge.
32323 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32324 lines within each line_span.
32326 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32329 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32330 paradoxical SUBREGS.
32332 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32335 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32336 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32337 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32340 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32342 * config/gcn/gcn.c (print_operand): Fix typo.
32344 2019-02-19 Richard Biener <rguenther@suse.de>
32346 PR middle-end/88074
32347 * toplev.c (do_compile): Initialize mpfr's exponent range
32348 based on available float modes.
32350 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32352 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32353 as long as the epilogue isn't completed.
32355 2019-02-18 Martin Sebor <msebor@redhat.com>
32357 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32358 __has_cpp_attribute, and __has_include.
32360 2019-02-18 Martin Sebor <msebor@redhat.com>
32362 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32364 2019-02-18 Martin Sebor <msebor@redhat.com>
32366 PR middle-end/89294
32367 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32369 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32371 2019-02-18 Richard Biener <rguenther@suse.de>
32373 PR tree-optimization/89296
32374 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32375 of no-warning flag to cases that might emit the bogus warning.
32377 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32380 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32382 * config/arm/vfp.md (*movdi_vfp): Likewise.
32383 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32384 "q" constraint for operands[0].
32387 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32388 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32389 pattern in a temporary buffer.
32390 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32391 than 64-operands[2].
32394 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32395 s390_indirect_branch_settings): Define unconditionally.
32396 (s390_set_current_function): Likewise, but guard the whole body except
32397 the s390_indirect_branch_settings call with
32398 #if S390_USE_TARGET_ATTRIBUTE.
32399 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32401 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32402 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32403 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32404 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32405 HOST_WIDE_INT_1U instead of 1ULL.
32406 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32407 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32408 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32409 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32411 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32414 2019-02-18 Martin Jambor <mjambor@suse.cz>
32416 PR tree-optimization/89209
32417 * tree-sra.c (create_access_replacement): New optional parameter
32418 reg_tree. Use it as a type if non-NULL and access type is not of
32420 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32421 to create_access_replacement.
32422 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32423 Check lacc is non-NULL before attempting to re-create it on the RHS.
32425 2019-02-18 Martin Liska <mliska@suse.cz>
32428 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32430 (symbol_table::free_edge): Recycle m_summary_id.
32431 * cgraph.h (get_summary_id): New.
32432 (symbol_table::release_symbol): Set m_summary_id to -1
32434 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32435 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32436 function_summary to fast_function_summary.
32437 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32438 * ipa-pure-const.c (class funct_state_summary_t):
32439 Switch from function_summary to fast_function_summary.
32440 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32441 (class ipa_ref_opt_summary_t): Switch from function_summary
32442 to fast_function_summary.
32443 * symbol-summary.h (class function_summary_base): New class
32444 that is created from base of former function_summary.
32445 (function_summary_base::unregister_hooks): New.
32446 (class function_summary): Inherit from function_summary_base.
32447 (class call_summary_base): New class
32448 that is created from base of former call_summary.
32449 (class call_summary): Inherit from call_summary_base.
32450 (struct is_same): New.
32451 (class fast_function_summary): New summary class.
32452 (class fast_call_summary): New summary class.
32453 * vec.h (vec_safe_grow_cleared): New function.
32455 2019-02-18 Martin Liska <mliska@suse.cz>
32457 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32458 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32459 * doc/tm.texi: Document new target hook.
32460 * doc/tm.texi.in: Likewise.
32461 * target.def: Add new target macro.
32462 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32465 2019-02-17 Alan Modra <amodra@gmail.com>
32468 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32469 output reg on add insn.
32470 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32472 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32475 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32476 (PMULHRSW): Likewise.
32477 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32479 (ssse3_pmulhrswv4hi3): New expander.
32481 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32483 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32484 MMX. Add isa attribute.
32486 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32488 PR rtl-optimization/66152
32489 * builtins.h (c_readstr): Declare.
32490 * builtins.c (c_readstr): Remove forward declaration. Add
32491 null_terminated_p argument, if false, read all bytes from the
32492 string instead of stopping after '\0'.
32493 * expr.c (string_cst_read_str): New function.
32494 (store_expr): Use string_cst_read_str instead of
32495 builtin_strncpy_read_str. Try to store by pieces the whole
32496 exp_len first, and only if that fails, split it up into
32497 store by pieces followed by clear_storage. Formatting fix.
32499 * config/i386/i386.md (*movqi_internal): Remove static from
32500 buf variable. Use output_asm_insn (buf, operands); return "";
32501 instead of return buf;.
32502 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32503 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32504 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32506 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32508 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32509 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32510 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32511 (CC1_SPEC): Likewise.
32512 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32514 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32516 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32517 the base address on 64-bit strict-alignment platforms.
32519 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32521 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32523 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32525 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32527 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32529 PR rtl-optimization/88308
32530 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32531 on copied instruction.
32533 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32535 * final.c (insn_current_reference_address): Replace test on JUMP_P
32536 with test on jump_to_label_p.
32537 * config/visium/visium-passes.def: New file.
32538 * config/visium/t-visium (PASSES_EXTRA): Define.
32539 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32540 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32541 (TRAMPOLINE_ALIGNMENT): Define.
32542 * config/visium/visium.c (visium_option_override): Do not register
32543 the machine-specific reorg pass here.
32544 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32546 (output_branch): Adjust threshold for long branch instruction.
32547 * config/visium/visium.md (cpu): Move around.
32548 (length): Adjust for the GR6.
32550 2019-02-15 Richard Biener <rguenther@suse.de>
32551 Jakub Jelinek <jakub@redhat.com>
32553 PR tree-optimization/89278
32554 * tree-loop-distribution.c: Include tree-eh.h.
32555 (generate_memset_builtin, generate_memcpy_builtin): Call
32556 rewrite_to_non_trapping_overflow on builtin->size before passing it
32557 to force_gimple_operand_gsi.
32559 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32562 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32564 * opth-gen.awk: Likewise.
32566 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32568 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32569 Enable MMX, SSE and SSE2 by default.
32570 * config/i386/i386.c (ix86_option_override_internal): Do not
32571 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32573 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32575 PR rtl-optimization/89354
32576 * combine.c (make_extraction): Punt if extraction_mode is narrower
32579 2019-02-14 Maya Rashish <coypu@sdf.org>
32581 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32582 * config/netbsd-d.c: New file.
32583 * config/t-netbsd: Add netbsd-d.o
32585 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32587 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32588 affects_type_identity to true for aarch64_vector_pcs.
32589 (aarch64_comp_type_attributes): New function.
32590 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32592 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32595 * config/arm/iterators.md (ANY64): Add V4HF.
32597 2019-02-14 Martin Liska <mliska@suse.cz>
32599 PR rtl-optimization/89242
32600 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32601 process a transformation.
32603 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32605 PR tree-optimization/89314
32606 * fold-const.c (fold_binary_loc): Cast strlen argument to
32607 const char * before dereferencing it. Formatting fixes.
32609 PR middle-end/89284
32610 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32612 2019-02-13 Ian Lance Taylor <iant@golang.org>
32614 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32615 and set current index for other optimizations.
32617 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32619 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32620 nonimmediate_operand as operand 2 predicate.
32621 (vec_set<VF2_512_256:mode>_0): Ditto.
32622 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32623 (*vec_concatv2si): Remove alternative 2.
32624 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32625 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32626 (vec_concatv2di): Split alternatives 4,5,6 to ...
32627 (*vec_concatv2di_0) ... new pattern.
32629 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32632 * config/arm/arm.c (ldm_stm_operation_p) Set
32633 addr_reg_in_reglist correctly for first register.
32634 (load_multiple_sequence): Remove dead base check.
32635 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32637 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32640 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32641 Expose as @aarch64_pred_mov.
32642 * config/aarch64/aarch64.c (aarch64_classify_address):
32643 Use expand_insn which legitimizes operands.
32645 2019-02-13 Martin Liska <mliska@suse.cz>
32647 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32648 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32649 and pointer_offset fields.
32650 (initialize_argument_information): Remove usage of dead
32652 * cgraph.h (struct cgraph_thunk_info): Remove
32653 add_pointer_bounds_args.
32654 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32656 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32658 * config/i386/i386.c (ix86_function_arg_advance): Remove
32660 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32661 (def_builtin): Remove usage of dead fields.
32662 (ix86_add_new_builtins): Likewise.
32663 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32664 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32665 (sem_function::init): Likewise.
32666 (sem_variable::merge): Likewise.
32667 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32668 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32669 * lto-cgraph.c (lto_output_node): Likewise.
32670 (lto_output_varpool_node): Likewise.
32671 (input_node): Likewise.
32672 (input_varpool_node): Likewise.
32673 * lto-streamer-out.c (lto_output): Likewise.
32674 * tree-inline.c (expand_call_inline): Remove usage of
32676 * tree-inline.h (struct copy_body_data): Likewise.
32677 * varpool.c (varpool_node::dump): Likewise.
32679 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32681 PR middle-end/89303
32682 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32683 into pt->vars_contains_escaped_heap instead of setting
32684 pt->vars_contains_escaped_heap to it.
32686 PR middle-end/89281
32687 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32688 INTVAL (size), compare it to GET_MODE_MASK instead of
32689 1 << GET_MODE_BITSIZE.
32692 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32693 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32696 2019-02-13 Martin Liska <mliska@suse.cz>
32699 * cfgrtl.c (remove_barriers_from_footer): New function.
32700 (try_redirect_by_replacing_jump): Use it.
32701 (cfg_layout_redirect_edge_and_branch): Likewise.
32703 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32705 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32706 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32707 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32708 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32709 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32710 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32712 * config/rs6000/rs6000.c (builtin_function_type)
32713 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32714 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32715 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32716 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32717 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32719 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32721 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32722 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32724 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32727 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32728 268678 and revision 268657.
32729 (*movti_internal): Likewise.
32731 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32734 * config/s390/s390.c (s390_decompose_address): Update comment.
32735 (s390_check_qrst_address): Reject invalid address forms after
32738 2019-02-12 Martin Liska <mliska@suse.cz>
32741 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32742 we need default values of funct_state for a function that
32745 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32747 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32748 the object to pick the size of stores on strict-alignment platforms.
32750 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32751 (*movdi_insn_sp32): Likewise.
32752 (*movdi_insn_sp64): Likewise.
32754 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32757 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32758 types that needs constructiong.
32759 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32761 2019-02-12 Richard Biener <rguenther@suse.de>
32763 PR tree-optimization/89253
32764 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32765 duplicate the loop.
32767 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32770 * input.c (selftest::test_line_offset_overflow): New selftest.
32771 (selftest::input_c_tests): Call it.
32773 2019-02-11 Martin Sebor <msebor@redhat.com>
32775 PR tree-optimization/88771
32776 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32777 when -Wstringop-overflow is set.
32778 (builtin_memref::builtin_memref): Adjust excessive upper bound
32779 only when lower bound is not excessive.
32780 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32781 -Wstringop-ovefflow.
32782 (maybe_diag_offset_bounds): Rename...
32783 (maybe_diag_access_bounds): ...to this.
32784 (check_bounds_or_overlap): Adjust for name change above.
32786 2019-02-11 Martin Sebor <msebor@redhat.com>
32789 * builtins.c (max_object_size): Move from here...
32790 * builtins.h (max_object_size): ...and here...
32791 * tree.c (max_object_size): ...to here...
32792 * tree.h (max_object_size): ...and here.
32794 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32796 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32797 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32798 for correct semantics.
32800 2019-02-11 Alan Modra <amodra@gmail.com>
32802 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32803 -mlongcall and -mpltseq.
32804 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32805 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32806 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32807 * config/rs6000/sysv4.opt (mpltseq): New option.
32808 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32809 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32810 support is lacking. Don't allow -mpltseq with -mbss-plt.
32811 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32812 -mpltseq given for ELFv1.
32813 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32814 Only use UNSPEC_PLTSEQ for inline PLT calls.
32815 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32816 use UNSPEC_PLTSEQ for inline PLT calls.
32817 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32818 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32819 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32820 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32821 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32822 (pltseq_mtctr_<mode>): Likewise.
32824 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32826 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32828 * configure: Regenerate.
32830 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32833 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32836 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32838 * function.c (assign_parm_setup_block): Use the stored
32839 size, not the passed size, when allocating stack-space,
32840 also for a parameter with alignment larger than
32841 MAX_SUPPORTED_STACK_ALIGNMENT.
32843 2019-02-11 Martin Liska <mliska@suse.cz>
32846 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32847 * ipa-inline.c (inline_small_functions): Likewise.
32848 * ipa-pure-const.c (propagate_pure_const): Likewise.
32849 (propagate_nothrow): Likewise.
32850 * ipa-reference.c (propagate): Likewise.
32851 * ipa-utils.c (struct searchc_env): Remove unused field.
32852 (searchc): Always search across AVAIL_INTERPOSABLE.
32853 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32854 the only called IPA pure const can properly not propagate
32855 across interposable boundary.
32856 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32858 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32860 * config/nds32/nds32.md (call_internal, call_value_internal,
32861 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32863 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32865 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32868 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32870 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32873 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32875 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32877 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32879 PR tree-optimization/89268
32880 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32881 if preds is non-NULL.
32883 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32886 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32889 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32891 * config/nds32/nds32.md (trap): New pattern.
32893 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32895 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32898 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32900 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32903 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32905 * ipa-visibility.c (localize_node): Also do not localize
32906 LDPR_PREVAILING_DEF_IRONLY_EXP.
32908 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32911 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32912 instead of type_with_linkage.
32914 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32917 * params.def (uninlined-function-insns, uninlined-function-time,
32918 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32919 bound so we don't get overflows.
32921 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32923 * config/rs6000/rs6000-string.c (expand_compare_loop,
32924 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32927 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32929 PR middle-end/89246
32930 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32931 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32932 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32934 2019-02-09 Alan Modra <amodra@gmail.com>
32937 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32938 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32941 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32943 PR middle-end/88560
32944 * lra-constraints.c (process_alt_operands): Don't increase reject
32945 for memory when offset memory is required.
32947 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32949 * config/s390/vector.md: Implement vector copysign.
32951 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32953 * expr.c (expand_constructor): Correct indentations.
32955 2019-02-08 Richard Biener <rguenther@suse.de>
32957 PR tree-optimization/89247
32958 * tree-if-conv.c: Include tree-cfgcleanup.h.
32959 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32960 (tree_if_conversion): Pass through predicate vector.
32961 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32962 inline, see if any if-converted loops we refrece in
32963 LOOP_VECTORIZED calls vanished and fixup.
32964 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32966 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32968 * config/s390/constraints.md (jdd): New constraint.
32970 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32973 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32974 upper 16 vector registers without TARGET_AVX512VL.
32975 (*movti_internal): Likewise.
32977 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32979 PR rtl-optimization/89234
32980 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32981 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32982 (copy_reg_eh_region_note_backward): Likewise.
32984 2019-02-08 Richard Biener <rguenther@suse.de>
32986 PR middle-end/89223
32987 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32988 doesn't fit in HWI.
32989 (analyze_subscript_affine_affine): Handle failure from
32990 initialize_matrix_A.
32992 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32994 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32997 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32999 PR tree-optimization/86637
33000 PR tree-optimization/89235
33001 * tree-vect-loop.c (optimize_mask_stores): Add an
33002 auto_purge_vect_location sentinel to ensure that vect_location is
33004 * tree-vectorizer.c
33005 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33006 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33007 to ensure that vect_location is purged on exit.
33008 (pass_slp_vectorize::execute): Likewise, replacing the manual
33010 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33012 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33014 * config/aarch64/iterators.md (max_opp): New code_attr.
33015 (USMAX): New code iterator.
33016 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33017 (aarch64_smax): Likewise.
33018 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33019 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33022 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33025 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33026 for TARGET_AVX512VL.
33027 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33029 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33031 * config/s390/s390-builtin-types.def: Add new types.
33032 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33033 (s390_vec_xlw4): Make the memory operand into a const pointer.
33034 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33036 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33037 a new vector type with the alignment of the scalar memory operand.
33039 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33040 Jakub Jelinek <jakub@redhat.com>
33043 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33044 arm_count_ldrdstrd_insns): New declarations.
33045 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33047 (valid_operands_ldrd_strd): New function.
33048 (arm_count_ldrdstrd_insns): New function.
33049 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33050 sets instead of single DImode set and define new insns to match this.
33052 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33054 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33055 Make it a C initializer.
33057 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33060 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33062 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33064 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33065 Use neon_dot<q> for type.
33066 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33068 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33070 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33071 Use neon_dot<q> for type.
33072 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33073 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33075 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33077 PR rtl-optimization/89225
33078 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33081 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33083 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33084 after restoring registers saved to allocate the frame on Windows.
33086 2019-02-06 Richard Biener <rguenther@suse.de>
33088 PR tree-optimization/89182
33089 * graphite.h (cached_scalar_evolution_in_region): Declare.
33090 * graphite.c (struct seir_cache_key): New.
33091 (struct sese_scev_hash): Likewise.
33092 (seir_cache): New global.
33093 (cached_scalar_evolution_in_region): New function.
33094 (graphite_transform_loops): Allocate and release seir_cache.
33095 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33096 cached_scalar_evolution_in_region.
33097 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33099 (scop_detection::graphite_can_represent_expr: Use
33100 cached_scalar_evolution_in_region.
33101 (scop_detection::stmt_simple_for_scop_p): Likewise.
33102 (find_params_in_bb): Likewise.
33103 (gather_bbs::before_dom_children): Likewise.
33104 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33105 (add_loop_constraints): Likewise.
33107 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33109 PR middle-end/89210
33110 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33111 operand to new_unary_operation only if both element types are integral
33112 and it isn't a widening conversion. Return NULL_TREE if
33113 new_unary_operation failed.
33115 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33118 * config/s390/s390.md: Remove load and test FP splitter.
33120 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33123 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33124 expand_compare_loop, expand_block_compare_gpr,
33125 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33126 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33127 #include "profile-count.h" and "predict.h" for types and functions
33128 needed to work with REG_BR_PROB notes.
33130 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33133 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33134 for the long branch case.
33136 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33139 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33140 can throw, non-call exceptions are enabled and we can't delete
33141 dead exceptions or alter cfg. Set must_clean if
33142 delete_insn_and_edges returns true, don't set it blindly for calls.
33143 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33145 PR rtl-optimization/89195
33146 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33147 of the original MEM.
33149 2019-02-05 Martin Liska <mliska@suse.cz>
33151 PR gcov-profile/89000
33152 * gcov.c (function_summary): Remove argument.
33153 (file_summary): New function.
33154 (print_usage): Replace tabs with spaces.
33155 (generate_results): Use new function file_summary.
33157 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33160 * optabs.c (prepare_cmp_insn): Pass x and y to
33161 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33163 2019-02-05 Richard Biener <rguenther@suse.de>
33165 PR middle-end/89150
33166 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33167 (struct bitmap_element): Drop chain_prev so we properly recurse on
33168 the prev member, supporting tree views.
33169 (struct bitmap_head): GTY skip the obstack member.
33171 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33174 * doc/extend.texi (Vector Extensions): Add an example of using vector
33175 types together with x86 intrinsics.
33177 2019-02-04 Alan Modra <amodra@gmail.com>
33179 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33180 str[] size to 160, and comment.
33182 2019-02-04 Alan Modra <amodra@gmail.com>
33184 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33185 (rs6000_pltseq_template): Guard output of TLS markers with
33186 TARGET_TLS_MARKERS.
33187 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33188 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33189 to use inline PLT sequences.
33190 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33191 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33192 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33194 2019-02-04 Martin Liska <mliska@suse.cz>
33197 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33198 out when ipa_fn_summaries does not contain entry for callee.
33200 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33202 * config/sparc/sparc.h: Remove superfluous blank lines.
33203 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33204 (got_register_rtx): ...this.
33205 (sparc_got): Adjust to above renaming.
33206 (sparc_tls_got): Likewise.
33207 (sparc_delegitimize_address): Likewise.
33208 (sparc_output_mi_thunk): Likewise.
33209 (sparc_init_pic_reg): Likewise.
33210 (save_local_or_in_reg_p): Fix test on the GOT register.
33211 (USE_HIDDEN_LINKONCE): Move around.
33212 (get_pc_thunk_name): Likewise.
33213 (gen_load_pcrel_sym): Likewise.
33214 (load_got_register): Likewise.
33216 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33218 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33219 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33221 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33223 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33224 into consideration.
33226 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33228 * config.gcc (with_nds32_lib, glibc):
33229 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33230 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33231 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33233 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33236 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33237 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33238 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33239 (*rcpsf2_sse): Ditto.
33240 (*rsqrtsf2_sse): Ditto.
33241 (sse4_1_round<mode<2): Ditto.
33243 2019-02-03 Richard Biener <rguenther@suse.de>
33246 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33249 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33251 PR middle-end/87887
33252 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33253 Punt with warning on aggregate return or argument types. Ignore
33254 type/mode checking for uniform arguments.
33256 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33258 * combine.c (try_combine): Do not print "Can't combine" messages unless
33259 printing failed combination attempts.
33261 2019-02-01 Martin Jambor <mjambor@suse.cz>
33264 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33265 segment and global segment variables before making them static.
33267 2019-02-01 Martin Jambor <mjambor@suse.cz>
33269 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33270 missed optimization dump with dump_enabled_p.
33272 2019-02-01 Richard Biener <rguenther@suse.de>
33274 PR middle-end/88597
33275 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33276 the instantiate cache.
33277 (instantiate_scev_binary): Elide second operand procesing
33278 if equal to the first.
33279 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33280 (chrec_contains_undetermined): Likewise.
33281 (tree_contains_chrecs): Likewise.
33283 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33285 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33287 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33289 PR tree-optimization/89143
33290 * wide-int-range.h (wide_int_range_absu): Declare.
33291 * wide-int-range.cc (wide_int_range_absu): New function.
33292 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33294 PR tree-optimization/88107
33295 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33296 instead of assertion that eh_region_outermost is non-NULL, if it
33297 is NULL, set *ALL to true and return NULL.
33298 (move_sese_region_to_fn): Adjust caller, if all is set, call
33299 duplicate_eh_regions with NULL region.
33301 2019-02-01 Richard Biener <rguenth@suse.de>
33303 PR rtl-optimization/88593
33304 * mode-switching.c (optimize_mode_switching): Free dominators before
33305 calling cleanup_cfg.
33307 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33309 PR tree-optimization/88932
33310 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33312 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33314 PR middle-end/89137
33315 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33316 bogus clang warning.
33318 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33321 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33322 alternative to avoid partial SSE register stall for TARGET_AVX.
33323 (truncdfsf2): Ditto.
33324 (sse4_1_round<mode>2): Ditto.
33326 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33328 PR tree-optimization/89008
33329 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33330 process anything of the form X * 0.
33332 2019-01-31 Richard Biener <rguenther@suse.de>
33334 PR tree-optimization/89135
33335 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33336 with abnormal preds.
33338 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33341 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33342 always_inline callees into no_sanitize_address callers.
33344 2019-01-31 Richard Biener <rguenther@suse.de>
33346 PR rtl-optimization/89115
33347 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33349 2019-01-30 Martin Sebor <msebor@redhat.com>
33352 * doc/extend.texi (cast to a union): Correct and expand.
33354 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33356 PR rtl-optimization/87246
33357 * lra-constraints.c (simplify_operand_subreg): Reload memory
33358 in subreg if the address became invalid.
33360 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33363 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33364 Disable for little-endian.
33366 2019-01-30 Richard Biener <rguenther@suse.de>
33368 PR rtl-optimization/89115
33369 * opts.c (default_options_optimization): Reduce
33370 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33371 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33374 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33376 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33377 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33378 type of vector element when vec_extract is implemented by direct
33381 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33383 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33385 2019-01-30 Richard Biener <rguenther@suse.de>
33387 PR tree-optimization/89111
33388 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33389 canonicalization to appropriately sized access types.
33391 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33394 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33395 for arguments to functions that are TU-local and shouldn't be
33396 referenced by assembly.
33398 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33400 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33403 2019-01-29 Martin Sebor <msebor@redhat.com>
33406 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33408 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33412 * omp-simd-clone.c (simd_clone_clauses_extract)
33413 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33414 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33416 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33418 * config.gcc: Force .init_array for ARC.
33420 2019-01-29 Richard Biener <rguenther@suse.de>
33423 * dwarf2out.c (collect_skeleton_dies): New helper.
33424 (copy_decls_for_unworthy_types): Call it.
33425 (build_abbrev_table): Assert we do not try to replace
33426 DW_AT_signature refs with local refs.
33428 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33430 PR middle-end/89002
33431 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33432 for lastprivate/linear IV, push gimplify context around gimplify_assign
33433 and, if it needed any temporaries, pop it into a gimple bind around the
33436 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33438 * common.opt (-Wattribute-alias): Remove "no-" from name.
33439 Make -Wattribute-alias command line option and
33440 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33442 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33445 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33446 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33448 (bmi2): Add missing @opindex.
33449 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33450 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33451 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33452 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33453 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33454 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33455 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33456 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33457 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33458 xsavec, xsaveopt and xsaves options.
33460 2019-01-28 Richard Biener <rguenther@suse.de>
33463 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33466 2019-01-28 Richard Biener <rguenther@suse.de>
33468 PR tree-optimization/88739
33469 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33470 BIT_FIELD_REFs only are applied to mode-precision operands
33471 when they are integral.
33472 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33473 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33474 BIT_FIELD_REFs of non-mode-precision integral operands.
33476 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33479 * config/i386/sse.md
33480 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33481 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33482 first constants in pairs are multiples of 2. Formatting fixes.
33483 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33484 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33485 first constants in each quadruple are multiples of 4. Formatting fixes.
33487 2019-01-26 Martin Jambor <mjambor@suse.cz>
33490 * tree-inline.c: Include tree-cfgcleanup.h.
33491 (delete_unreachable_blocks_update_callgraph): Move...
33492 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33493 ...here, make externally visible, make second argument bool, adjust
33495 * tree-cfgcleanup.c: Include cgraph.h.
33496 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33498 * ipa-prop.c: Include tree-cfgcleanup.h.
33499 (ipcp_transform_function): Call
33500 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33502 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33504 PR rtl-optimization/88846
33505 * ira.c (process_set_for_memref_referenced_p): New.
33506 (memref_referenced_p): Add new param. Use
33507 process_set_for_memref_referenced_p. Add new switch cases.
33508 (memref_used_between_p): Pass new arg to memref_referenced_p.
33510 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33513 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33514 argument ABI_BREAK. Set to true if the calculated alignment has
33515 changed in gcc-9. Check bit-fields for their base type alignment.
33516 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33517 (aarch64_function_arg_boundary): Likewise.
33518 (aarch64_gimplify_va_arg_expr): Likewise.
33520 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33522 PR middle-end/89037
33523 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33524 instead of accessing TREE_INT_CST_ELT directly.
33526 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33528 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33529 fenv_exceptions description.
33531 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33533 PR rtl-optimization/87763
33534 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33535 Allow SUBREG when matching CC_NZmode compare.
33537 2019-01-25 Richard Biener <rguenther@suse.de>
33539 PR tree-optimization/89049
33540 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33541 Look at the pattern stmt to determine if the stmt is vectorized.
33543 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33545 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33546 (pred_mov<mode>): Handle all-register forms using both a new
33547 alternative and a split.
33549 2019-01-25 Richard Biener <rguenther@suse.de>
33551 PR tree-optimization/86865
33552 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33553 Reject non-do-while loops.
33555 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33557 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33558 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33559 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33560 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33561 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33562 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33563 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33564 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33565 vlogical_operand, gpc_reg_operand, int_reg_operand,
33566 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33567 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33568 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33569 (save_world_operation, restore_world_operation, lmw_operation,
33570 stmw_operation): Use MEM_P and REG_P.
33571 (tie_operand): Use MEM_P.
33572 (vrsave_operation, crsave_operation): Use REG_P.
33573 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33574 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33575 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33576 (call_operand): Use HARD_REGISTER_P.
33577 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33579 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33580 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33581 quad_aligned_load_p, replace_swapped_aligned_store,
33582 recombine_lvx_pattern, replace_swapped_aligned_load,
33583 recombine_stvx_pattern): Use MEM_P.
33584 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33585 Use MEM_P and SYMBOL_REF_P.
33586 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33587 (insn_is_swappable_p): Use REG_P and MEM_P.
33588 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33589 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33591 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33592 Use CONST_DOUBLE_P.
33593 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33595 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33596 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33597 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33598 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33600 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33601 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33602 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33603 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33604 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33605 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33606 rs6000_split_logical_di): Use CONST_INT_P.
33607 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33608 REG_P and SYMBOL_REF_P.
33609 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33610 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33611 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33612 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33613 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33614 (small_data_operand, print_operand_address): Use CONST_INT_P and
33616 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33617 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33618 Use HARD_REGISTER_NUM_P.
33619 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33620 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33621 SUBREG_P and SYMBOL_REF_P.
33622 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33623 and HARD_REGISTER_NUM_P.
33624 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33626 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33627 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33629 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33630 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33631 find_addr_reg): Use REG_P.
33632 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33633 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33634 (offsettable_ok_by_alignment, constant_pool_expr_p,
33635 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33636 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33637 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33638 rs6000_assemble_integer, create_TOC_reference,
33639 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33640 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33641 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33642 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33643 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33644 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33645 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33646 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33647 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33648 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33649 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33650 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33651 and cbranch<mode>4): Use CONST_INT_P.
33652 (multiple define_splits): Use REG_P and SUBREG_P.
33653 (define_expands call, call_value): Use MEM_P.
33654 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33655 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33656 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33657 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33658 and HARD_REGISTER_NUM_P.
33659 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33661 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33663 PR rtl-optimization/88948
33664 * rtl.h (prepare_copy_insn): New prototype.
33665 * gcse.c (prepare_copy_insn): New function, split out from
33666 process_insert_insn.
33667 (process_insert_insn): Use prepare_copy_insn.
33668 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33669 instead of gen_move_insn.
33671 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33674 * config/i386/i386.c (ix86_pic_register_p): Return true for
33675 UNSPEC_SET_GOT too.
33677 PR tree-optimization/88964
33678 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33679 punt if HONOR_SNANS (chrec).
33681 PR middle-end/89015
33682 * tree-nested.c (convert_nonlocal_reference_stmt,
33683 convert_local_reference_stmt, convert_tramp_reference_stmt,
33684 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33685 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33686 or GIMPLE_OMP_TASK.
33688 PR tree-optimization/89027
33689 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33690 for "omp simd array" variables.
33692 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33695 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33696 force the alignment of m_val.
33698 2019-01-24 Richard Biener <rguenther@suse.de>
33701 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33702 When in "legacy" debug mode make sure to reset self-origins.
33704 2019-01-24 Martin Liska <mliska@suse.cz>
33706 PR gcov-profile/88994
33707 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33708 result will be always smaller or equal to the original.
33709 * gcov.c (mangle_name): Fix else branch where we should
33710 also copy to PTR and shift the pointer.
33712 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33714 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33715 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33717 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33719 * common/config/i386/i386-common.c
33720 (OPTION_MASK_ISA_ENQCMD_SET,
33721 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33722 (ix86_handle_option): Handle -menqcmd.
33723 * config.gcc (enqcmdintrin.h): New header file.
33724 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33725 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33727 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33729 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33730 __builtin_ia32_enqcmds): New builtins.
33731 * config/i386/i386-c.c (__ENQCMD__): New macro.
33732 * config/i386/i386-option.c (ix86_target_string): Add
33734 (ix86_valid_target_attribute_inner_p): Likewise.
33735 * config/i386/i386-expand.c
33736 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33737 IX86_BUILTIN_ENQCMDS.
33738 * config/i386/i386.h (TARGET_ENQCMD): New.
33739 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33740 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33741 (movdir64b_<mode>): Parameterize to enable share expansion code
33742 with ENQCMD in function ix86_expand_builtin.
33743 * config/i386/i386.opt: Add -menqcmd.
33744 * config/i386/immintrin.h: Include enqcmdintrin.h.
33745 * config/i386/enqcmdintrin.h: New intrinsic file.
33746 * doc/invoke.texi: Add -menqcmd.
33748 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33749 Steve Ellcey <sellcey@marvell.com>
33752 * recog.c (address_operand): Return false on wrong mode for address.
33753 (constrain_operands): Check for mode with 'p' constraint.
33755 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33758 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33759 Disparage MMX alternative.
33760 (sse2_cvtpd2pi): Ditto.
33761 (sse2_cvttpd2pi): Ditto.
33763 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33766 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33767 use-after-free of the result of
33768 aarch64_get_extension_string_for_isa_flags.
33770 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33773 * doc/extend.texi: Document break and continue behavior in
33774 statement expressions.
33776 2019-01-23 Richard Biener <rguenther@suse.de>
33778 PR tree-optimization/89008
33779 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33780 not leave another stray operand.
33782 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33784 * BASE-VER: Bump to 9.0.1.
33786 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33788 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33789 thunk that returns by reference, use the type of the return object
33790 of the thunk instead of that of the alias to build the dereference.
33792 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33794 * config/arc/atomic.md: Add operand to DMB instruction.
33796 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33798 PR tree-optimization/88964
33799 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33800 build_zero_cst instead of build_int_cst. Return false for loop
33801 invariants which honor signed zeros.
33803 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33805 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33807 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33810 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33811 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33812 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33814 PR middle-end/88968
33815 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33816 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33819 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33820 Disable for little endian.
33822 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33825 * config/arm/arm.c (arm_needs_double_word_align): Check
33826 DECL_BIT_FIELD_TYPE.
33828 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33829 H.J. Lu <hongjiu.lu@intel.com>
33832 * config/i386/i386-builtin.def: Add mask2 to all builtin
33833 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33835 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33836 (BDESC_FIRST): Likewise.
33837 (define_builtin): Add an argument for mask2. Updated to handle
33838 both ix86_isa_flags and ix86_isa_flags2.
33839 (define_builtin_const): Likewise.
33840 (define_builtin_pure): Likewise.
33841 (define_builtin2): Deleted.
33842 (define_builtin_const2): Likewise.
33843 (builtin_description): Add a member, mask2.
33844 (bdesc_*): Add mask2 to builtin initializations.
33845 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33846 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33848 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33850 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33853 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33856 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33859 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33860 alignment is dominated by a bitfield with 64-bit aligned base type.
33861 (arm_function_arg): Emit a warning if the alignment has changed since
33862 earlier GCC releases.
33863 (arm_function_arg_boundary): Likewise.
33864 (arm_setup_incoming_varargs): Likewise.
33866 2019-01-22 Richard Biener <rguenther@suse.de>
33868 PR tree-optimization/88862
33869 * graphite-scop-detection.c
33870 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33872 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33874 * doc/extend.tex (AMD GCN Function Attributes): New section.
33875 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33876 * doc/invoke.texi (AMD GCN Options): New section.
33877 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33879 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33881 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33882 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33884 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33886 PR tree-optimization/88044
33887 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33888 is false in the first iteration, but !every_iteration, return false
33889 instead of true with niter->niter zero.
33891 PR rtl-optimization/88904
33892 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33893 any nonequal registers before processing BB_END (b).
33896 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33898 (expand_binop_directly, expand_doubleword_clz,
33899 expand_doubleword_popcount, expand_ctz, expand_ffs,
33900 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33902 PR rtl-optimization/49429
33904 PR rtl-optimization/86334
33906 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33907 addressable from here...
33908 (emit_block_op_via_libcall): ... to here.
33910 2019-01-22 Richard Biener <rguenther@suse.de>
33912 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33913 auto_vec for cost vector to fix memleak.
33914 (vectorize_fold_left_reduction): Properly gather SLP defs.
33915 (vectorizable_comparison): Do not swap operands to properly
33918 2019-01-22 Alan Modra <amodra@gmail.com>
33921 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33922 stays a reg. Allow a const_int.
33923 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33924 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33925 (IS_NOMARK_TLSGETADDR): Define.
33926 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33927 (rs6000_output_tlsargs): New function.
33928 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33929 __tls_get_addr call takes an arg.
33930 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33931 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33933 (call_value_nonlocal_sysv): ..or here, delete split.
33934 (tls_gdld_nomark): Delete.
33935 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33936 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33937 (call_value_nonlocal_sysv): Likewise.
33938 (call_value_nonlocal_sysv_secure): Likewise.
33939 (call_value_nonlocal_aix): Likewise.
33940 (call_value_indirect_aix): Likewise.
33941 (call_value_indirect_elfv2): Likewise.
33942 (call_value_local32, call_value_local64): Disable for no-mark tls.
33943 (call_value_local_aix): Likewise.
33945 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33948 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33949 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33951 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33953 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33954 string contents as hash_map keys.
33956 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33959 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33960 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33961 instead of TYPE_ALIGN.
33962 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33963 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33964 pointer from TYPE_STUB_DECL.
33966 2019-01-21 Richard Biener <rguenther@suse.de>
33968 PR tree-optimization/88934
33969 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33970 at the possibly non-constant operand.
33971 (vect_get_constant_vectors): Adjust.
33973 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33976 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33977 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33978 instead of _X86INTRIN_H_INCLUDED.
33979 * onfig/i386/clwbintrin.h: Likewise.
33980 * config/i386/pkuintrin.h: Likewise.
33981 * config/i386/prfchwintrin.h: Likewise.
33982 * config/i386/rdseedintrin.h: Likewise.
33983 * config/i386/wbnoinvdintrin.h: Likewise.
33984 * config/i386/xsavecintrin.h: Likewise.
33985 * config/i386/xsavesintrin.h: Likewise.
33986 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33987 * config/i386/xsaveintrin.h: Likewise.
33988 * config/i386/xsaveoptintrin.h: Likewise.
33989 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33990 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33991 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33992 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33993 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33994 * config/i386/immintrin.h: Here.
33996 2019-01-20 Martin Jambor <mjambor@suse.cz>
33999 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34000 with aa_walk_budget.
34001 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34002 aa_walk_budget_p parameter.
34003 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34004 walk. Updated all callers.
34005 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34006 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34008 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34009 parameter info. Extract info from fbi. Pass fbi to recursive calls
34010 and to unmodified_parm.
34011 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34012 info, updated call to will_be_nonconstant_expr_predicate.
34013 (param_change_prob): New parameter fbi, limit AA walking.
34014 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34015 calls to various above functions.
34016 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34017 parameter. Use it to limit AA walking.
34018 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34019 fbi, limit AA walk.
34020 (detect_type_change): New parameter fbi, pass it on to
34021 detect_type_change_from_memory_writes.
34022 (detect_type_change_ssa): Likewise.
34023 (aa_overwalked): Removed.
34024 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34025 accordingly, adjust to the neew AA limiting scheme.
34026 (parm_ref_data_preserved_p): Likewise.
34027 (ipa_compute_jump_functions_for_edge): Adjust call to
34029 (ipa_analyze_call_uses): Likewise.
34030 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34031 (ipa_analyze_node): Initialize aa_walk_budget.
34032 (ipcp_transform_function): Likewise.
34033 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34034 to get_dynamic_type.
34036 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34038 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34039 outside of #if CHECKING_P code.
34041 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34043 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34044 New function, split out from...
34045 (loop_versioning::analyze_stride): ...here.
34046 (loop_versioning::find_per_loop_multiplication): Use gassign.
34047 (loop_versioning::analyze_term_using_scevs): Return a success code.
34048 (loop_versioning::analyze_arbitrary_term): New function.
34049 (loop_versioning::analyze_address_fragment): Use
34050 analyze_arbitrary_term if all else fails.
34052 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34055 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34058 2019-01-18 Richard Biener <rguenther@suse.de>
34060 PR tree-optimization/88903
34061 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34062 scalar stmts a SLP shift amount is composed of when detecting
34065 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34068 * config/arm/arm-cpus.in (mp): New feature.
34069 (sec): New feature.
34070 (fgroup ARMv7ve): Add mp and sec features.
34071 (arch armv7-a): Add options to allow mp and sec extensions.
34072 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34073 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34074 extenstions to the base architecture.
34075 (cpu cortex-a8): Add sec extension to the base architecture.
34076 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34077 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34078 variants down to the base v7-a varaint.
34079 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34080 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34081 of permitted extensions for -march=armv7-a and for
34082 -mcpu=generic-armv7-a.
34084 2019-01-18 Martin Liska <mliska@suse.cz>
34086 * params.def: Fix comment.
34087 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34089 (gimple_gen_ic_func_profiler): Likewise.
34091 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34093 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34094 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34095 and put in error checks for stack protector guard options.
34096 (aarch64_stack_protect_guard): New.
34097 (TARGET_STACK_PROTECT_GUARD): Define.
34098 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34099 (reg_stack_protect_address<mode>): New.
34100 (stack_protect_set): Adjust for SSP_GLOBAL.
34101 (stack_protect_test): Likewise.
34102 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34103 (-mstack-protector-guard): Likewise.
34104 (-mstack-protector-guard-offset): Likewise.
34106 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34108 PR tree-optimization/86214
34109 * tree-inline.h (struct copy_body_data): Add
34110 add_clobbers_to_eh_landing_pads member.
34111 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34112 (copy_edges_for_bb): Call it if EH edge destination is <
34113 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34114 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34115 if flag_stack_reuse != SR_NONE and clear it afterwards.
34117 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34120 * doc/install.texi (with-multilib-list): Document for aarch64.
34122 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34125 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34126 (("..."))) with ("...").
34128 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34130 * doc/extend.texi (Built-in Functions for Memory Model Aware
34131 Atomic Operations): Document atomic fetch and nand.
34133 2019-01-18 Martin Liska <mliska@suse.cz>
34134 Richard Biener <rguenther@suse.de>
34136 PR middle-end/88587
34137 * cgraph.h (create_version_clone_with_body): Add new argument
34139 * cgraphclones.c (cgraph_node::create_version_clone): Add
34140 DECL_ATTRIBUTES to a newly created decl. And call
34141 valid_attribute_p so that proper cl_target_optimization_node
34142 is set for the newly created declaration.
34143 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34145 (expand_target_clones): Do not call valid_attribute_p, it must
34147 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34150 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34153 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34154 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34155 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34157 2019-01-17 Martin Sebor <msebor@redhat.com>
34159 PR middle-end/88273
34160 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34161 Handle anti-ranges the same as no range at all.
34163 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34165 * config/aarch64/aarch64.c (cgraph.h): New include.
34166 (intl.h): New include.
34167 (supported_simd_type): New function.
34168 (currently_supported_simd_type): Ditto.
34169 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34170 (aarch64_simd_clone_adjust): Ditto.
34171 (aarch64_simd_clone_usable): Ditto.
34172 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34173 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34174 (TARGET_SIMD_CLONE_USABLE): Ditto.
34175 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34176 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34179 2019-01-17 Martin Sebor <msebor@redhat.com>
34181 PR tree-optimization/88800
34182 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34183 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34184 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34185 redundant argument. Add new argument and issue diagnostics under
34186 its control. Detect out-of-bounds access even with warnings
34188 (check_bounds_or_overlap): Change return type. Add argument.
34189 (wrestrict_dom_walker::check_call): Adjust.
34190 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34191 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34192 check_bounds_or_overlap's return value.
34193 (handle_builtin_stxncpy): Same.
34194 (handle_builtin_strcat): Same.
34196 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34197 Kwok Cheung Yeung <kcy@codesourcery.com>
34198 Julian Brown <julian@codesourcery.com>
34199 Tom de Vries <tom@codesourcery.com>
34201 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34203 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34205 * doc/sourcebuild.texi: Document dg-require-effective-target
34206 llvm_binutils and offload_gcn.
34208 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34209 Kwok Cheung Yeung <kcy@codesourcery.com>
34210 Julian Brown <julian@codesourcery.com>
34211 Tom de Vries <tom@codesourcery.com>
34213 * doc/sourcebuild.texi: Document dg-required-effective-target
34216 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34217 Kwok Cheung Yeung <kcy@codesourcery.com>
34218 Julian Brown <julian@codesourcery.com>
34219 Tom de Vries <tom@codesourcery.com>
34220 Jan Hubicka <hubicka@ucw.cz>
34221 Martin Jambor <mjambor@suse.cz>
34223 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34224 * configure.ac: Check for dlopen.
34225 * configure: Regenerate.
34227 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34228 Kwok Cheung Yeung <kcy@codesourcery.com>
34229 Julian Brown <julian@codesourcery.com>
34230 Tom de Vries <tom@codesourcery.com>
34231 Jan Hubicka <hubicka@ucw.cz>
34232 Martin Jambor <mjambor@suse.cz>
34234 * common/config/gcn/gcn-common.c: New file.
34235 * config/gcn/driver-gcn.c: New file.
34236 * config/gcn/gcn-builtins.def: New file.
34237 * config/gcn/gcn-hsa.h: New file.
34238 * config/gcn/gcn-modes.def: New file.
34239 * config/gcn/gcn-opts.h: New file.
34240 * config/gcn/gcn-passes.def: New file.
34241 * config/gcn/gcn-protos.h: New file.
34242 * config/gcn/gcn-run.c: New file.
34243 * config/gcn/gcn-tree.c: New file.
34244 * config/gcn/gcn.c: New file.
34245 * config/gcn/gcn.h: New file.
34246 * config/gcn/gcn.opt: New file.
34247 * config/gcn/t-gcn-hsa: New file.
34249 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34250 Kwok Cheung Yeung <kcy@codesourcery.com>
34251 Julian Brown <julian@codesourcery.com>
34252 Tom de Vries <tom@codesourcery.com>
34253 Jan Hubicka <hubicka@ucw.cz>
34254 Martin Jambor <mjambor@suse.cz>
34256 * config/gcn/constraints.md: New file.
34257 * config/gcn/gcn-valu.md: New file.
34258 * config/gcn/gcn.md: New file.
34259 * config/gcn/predicates.md: New file.
34261 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34263 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34264 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34265 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34266 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34268 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34271 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34272 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34273 it and document registers.
34275 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34277 * config/aarch64/aarch64.c (ares_tunings): Define.
34278 * config/aarch64/aarch64-cores.def (ares): Use the above.
34280 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34284 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34286 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34287 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34288 (_mm512_maskz_fixupimm_round_pd): Ditto.
34289 (_mm512_fixupimm_round_ps): Ditto.
34290 (_mm512_maskz_fixupimm_round_ps): Ditto.
34291 (_mm_fixupimm_round_sd): Ditto.
34292 (_mm_maskz_fixupimm_round_sd): Ditto.
34293 (_mm_fixupimm_round_ss): Ditto.
34294 (_mm_maskz_fixupimm_round_ss): Ditto.
34295 (_mm512_fixupimm_pd): Ditto.
34296 (_mm512_maskz_fixupimm_pd): Ditto.
34297 (_mm512_fixupimm_ps): Ditto.
34298 (_mm512_maskz_fixupimm_ps): Ditto.
34299 (_mm_fixupimm_sd): Ditto.
34300 (_mm_maskz_fixupimm_sd): Ditto.
34301 (_mm_fixupimm_ss): Ditto.
34302 (_mm_maskz_fixupimm_ss): Ditto.
34303 (_mm512_mask_fixupimm_round_pd): Update builtin.
34304 (_mm512_mask_fixupimm_round_ps): Ditto.
34305 (_mm_mask_fixupimm_round_sd): Ditto.
34306 (_mm_mask_fixupimm_round_ss): Ditto.
34307 (_mm512_mask_fixupimm_pd): Ditto.
34308 (_mm512_mask_fixupimm_ps): Ditto.
34309 (_mm_mask_fixupimm_sd): Ditto.
34310 (_mm_mask_fixupimm_ss): Ditto.
34311 * config/i386/avx512vlintrin.h:
34312 (_mm256_fixupimm_pd): Update parameters and builtin.
34313 (_mm256_maskz_fixupimm_pd): Ditto.
34314 (_mm256_fixupimm_ps): Ditto.
34315 (_mm256_maskz_fixupimm_ps): Ditto.
34316 (_mm_fixupimm_pd): Ditto.
34317 (_mm_maskz_fixupimm_pd): Ditto.
34318 (_mm_fixupimm_ps): Ditto.
34319 (_mm_maskz_fixupimm_ps): Ditto.
34320 (_mm256_mask_fixupimm_pd): Update builtin.
34321 (_mm256_mask_fixupimm_ps): Ditto.
34322 (_mm_mask_fixupimm_pd): Ditto.
34323 (_mm_mask_fixupimm_ps): Ditto.
34324 * config/i386/i386-builtin-types.def: Add new types and remove
34326 * config/i386/i386-builtin.def: Update builtin definitions.
34327 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34328 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34329 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34330 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34331 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34332 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34333 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34334 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34335 * config/i386/subst.md:
34336 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34337 (round_saeonly_sd_mask_op4): Ditto.
34338 (round_saeonly_expand_operand5): Ditto.
34339 (round_saeonly_expand): Update.
34341 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34345 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34347 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34348 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34349 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34350 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34351 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34352 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34353 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34355 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34359 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34362 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34363 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34364 instead of UNSPEC_FIXUPIMM.
34366 2019-01-17 Richard Biener <rguenther@suse.de>
34369 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34370 and friends for the LTO part of debug info.
34372 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34374 PR tree-optimization/86214
34375 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34378 PR rtl-optimization/88870
34379 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34380 throw if we can't alter the cfg or delete dead exceptions.
34381 (mark_insn): Don't call find_call_stack_args for such calls.
34383 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34385 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34386 prototypes for vec_st.
34387 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34388 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34389 mainly on signed/unsigned long long and double.
34391 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34394 * combine.c (delete_noop_moves): Convert to "bool" return,
34395 returning true if any edges are eliminated.
34396 (combine_instructions): Also return true if delete_noop_moves
34399 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34401 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34402 correct max nunits for endian swap.
34403 (aarch64_expand_fcmla_builtin): Correct subreg code.
34404 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34405 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34408 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34410 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34411 Handle split indirect COMPLEX_TYPE arguments.
34413 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34416 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34417 bit is set by add and compare.
34418 (CC_ADC): New CC_MODE.
34419 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34420 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34421 comparison. Add detection for CC_ADCmode.
34422 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34424 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34425 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34426 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34427 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34428 to eliminate the need for zero-extending the operands.
34429 (add<mode>3_compareC_imm): Delete. Merge into ...
34430 (add<mode>3_compareC): ... this. Restructure the comparison to
34431 eliminate the need for zero-extending the operands.
34432 (add<mode>3_carryin): Use LTU for the overflow detection.
34433 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34434 Reexpress comparison for overflow.
34435 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34436 (add<mode>3_carryinC): Likewise.
34437 (add<mode>3_carryinV): Use LTU for carry between partials.
34438 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34439 handling of CC_Cmode and add CC_ADCmode.
34440 (aarch64_borrow_operation): Likewise.
34442 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34444 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34445 Remove patternmode.
34446 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34447 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34448 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34449 Remove endianness conversion.
34451 2019-01-16 Martin Liska <mliska@suse.cz>
34453 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34455 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34457 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34458 (path_prefix_reset): Move up in the source file.
34459 (find_fortran_preinclude_file): Make complex search for the
34460 fortran header files.
34462 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34464 * godump.c (go_output_typedef): When outputting a typedef, refer
34465 to the underlying type by its name and not its structure.
34467 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34470 * tree.c (build_function_type): Assert that arg_types is not
34473 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34475 PR inline-asm/52813
34476 * doc/extend.texi: Document that listing the stack pointer in the
34477 clobber list of an asm is a deprecated feature.
34478 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34479 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34480 warning instead of an error for clobbers of the stack pointer.
34481 Add a note explaining why.
34483 2019-01-15 Richard Biener <rguenther@suse.de>
34486 * dwarf2out.c (gen_member_die): Do not generate inheritance
34489 2019-01-15 Richard Biener <rguenther@suse.de>
34491 PR tree-optimization/88855
34492 * tree-if-conv.c (combine_blocks): Collect
34493 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34495 2019-01-15 Tom de Vries <tdevries@suse.de>
34498 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34499 lhs == NULL_TREE for gang-level reduction.
34501 2019-01-15 Richard Biener <rguenther@suse.de>
34502 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34505 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34506 return true if SSA_NAME is already marked in visited bitmap.
34507 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34509 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34511 PR tree-optimization/88775
34512 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34513 equal == 0 equality pointer comparisons some more if compared in
34514 integral types and either one points to an automatic var and the
34515 other to a global, or we can prove at least one points to the middle
34516 or both point to start or both point to end.
34518 2019-01-14 Andi Kleen <ak@linux.intel.com>
34520 * Makefile.in: Lower autofdo sampling rate by 10x.
34521 * Makefile.tpl: Dito.
34523 2019-01-14 Tom Honermann <tom@honermann.net>
34525 * defaults.h: Define CHAR8_TYPE.
34527 2019-01-14 Martin Sebor <msebor@redhat.com>
34530 * doc/extend.texi (Darwin Format Checks): Clarify.
34532 2019-01-14 Richard Biener <rguenther@suse.de>
34534 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34535 whether we are in (simplify ...) or (match ...) context.
34537 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34539 PR rtl-optimization/88796
34540 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34541 * cfgexpand.c (stack_protect_prologue): Initialize
34542 crtl->stack_protect_guard_decl.
34543 * function.c (stack_protect_epilogue): Use it instead of calling
34544 targetm.stack_protect_guard again.
34545 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34546 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34547 crtl->stack_protect_guard_decl.
34548 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34549 on the returned MEM_EXPR.
34551 2019-01-12 Tom de Vries <tdevries@suse.de>
34553 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34554 vector length using -fopenacc-dim.
34556 2019-01-12 Tom de Vries <tdevries@suse.de>
34558 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34559 lengths into account.
34561 2019-01-12 Svante Signell <svante.signell@gmail.com>
34563 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34564 (TARGET_CAN_SPLIT_STACK): Define.
34565 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34567 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34569 * params.def (inline-unit-growth): Set to 40.
34571 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34573 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34575 2019-01-12 Tom de Vries <tdevries@suse.de>
34577 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34578 region calling vector-partitionable routine, set default_vector_length
34581 2019-01-12 Tom de Vries <tdevries@suse.de>
34583 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34584 variable default_vector_length.
34586 2019-01-12 Tom de Vries <tdevries@suse.de>
34588 PR middle-end/88703
34589 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34590 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34593 2019-01-12 Tom de Vries <tdevries@suse.de>
34595 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34596 (nvptx_goacc_validate_dims): Add used parameter.
34597 * doc/tm.texi: Regenerate.
34598 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34599 argument to call to targetm.goacc.validate_dims.
34600 (default_goacc_validate_dims): Add used
34602 * target.def (validate_dims): Add used parameter in DEFHOOK.
34603 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34605 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34607 PR middle-end/85956
34609 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34611 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34612 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34613 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34614 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34616 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34618 PR rtl-optimization/87305
34620 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34621 for little endian pseudos used as paradoxical subreg.
34623 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34625 PR tree-optimization/88693
34626 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34627 for STRING_CSTs that don't contain any NUL characters in the first
34628 TREE_STRING_LENGTH bytes.
34630 2019-01-11 Alan Modra <amodra@gmail.com>
34634 * genattrtab.c (min_fn): Don't translate values.
34635 (min_attr_value): Return INT_MAX when the value can't be calculated.
34636 Return minimum among any values that can be calculated.
34637 (max_attr_value): Adjust.
34639 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34641 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34643 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34645 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34646 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34647 (aarch64_return_call_with_max_clobbers): New function.
34648 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34649 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34651 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34652 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34653 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34654 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34655 * cselib.c (cselib_process_insn): Add argument to
34656 targetm.hard_regno_call_part_clobbered call.
34657 * ira-conflicts.c (ira_build_conflicts): Ditto.
34658 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34659 * lra-constraints.c (inherit_reload_reg): Ditto.
34660 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34661 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34662 argument. Call targetm.return_call_with_max_clobbers.
34663 Add argument to targetm.hard_regno_call_part_clobbered call.
34664 (calls_have_same_clobbers_p): New function.
34665 (process_bb_lives): Add call_insn and last_call_insn variables.
34666 Pass call_insn to check_pseudos_live_through_calls.
34667 Modify if stmt to check targetm.return_call_with_max_clobbers.
34668 Update setting of flush variable.
34669 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34671 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34672 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34673 targetm.hard_regno_call_part_clobbered call.
34674 * reginfo.c (choose_hard_reg_mode): Ditto.
34675 * regrename.c (check_new_reg_p): Ditto.
34676 * reload.c (find_equiv_reg): Ditto.
34677 * reload1.c (emit_reload_insns): Ditto.
34678 * sched-deps.c (deps_analyze_insn): Ditto.
34679 * sel-sched.c (init_regs_for_mode): Ditto.
34680 (mark_unavailable_hard_regs): Ditto.
34681 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34682 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34683 (return_call_with_max_clobbers): New target function.
34684 * doc/tm.texi: Regenerate.
34685 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34686 * hooks.c (hook_bool_uint_mode_false): Change to
34687 hook_bool_insn_uint_mode_false.
34688 * hooks.h (hook_bool_uint_mode_false): Ditto.
34690 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34692 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34693 (aarch64_remove_extra_call_preserved_regs): New function.
34694 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34695 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34696 * doc/tm.texi: Regenerate.
34697 * final.c (get_call_reg_set_usage): Call new hook.
34698 * target.def (remove_extra_call_preserved_regs): New hook.
34699 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34700 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34702 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34705 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34706 inside of pass_combine_1 dump rather than pass_profile_1.
34708 2019-01-11 Tom de Vries <tdevries@suse.de>
34710 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34711 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34712 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34713 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34716 2019-01-11 Tom de Vries <tdevries@suse.de>
34718 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34720 2019-01-11 Jan Beulich <jbeulich@suse.com>
34722 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34723 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34724 sse2_cvtsi2sd): Add {l}.
34725 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34728 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34731 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34733 (*float<floatunssuffix>v2div2sf2): New define_insn.
34734 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34735 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34736 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34737 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34738 match_operands with "const0_operand" "C".
34740 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34742 * config/aarch64/aarch64-builtins.c
34743 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34744 (aarch64_init_simd_builtins): ...Here
34746 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34748 PR rtl-optimization/87305
34750 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34751 allocation for big endian pseudos used as paradoxical subregs and
34752 spill them if it is wrong.
34753 * lra-constraints.c (lra_constraints): Add a comment.
34755 2019-01-10 Richard Biener <rguenther@suse.de>
34757 PR tree-optimization/88792
34758 * tree-ssa-pre.c (get_representative_for): Do not return a
34761 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34763 PR middle-end/84877
34765 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34766 (assign_parm_setup_block): Do the argument slot realignment here
34769 2019-01-10 Stefan Agner <stefan@agner.ch>
34772 * config/arm/arm.c (arm_option_override_internal): Force
34773 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34775 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34778 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34781 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34783 * config/arm/arm-builtins.c
34784 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34785 (MAC_LANE_PAIR_QUALIFIERS): New.
34786 (arm_expand_builtin_args): Use it.
34787 (arm_expand_builtin_1): Likewise.
34788 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34789 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34790 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34791 * config/arm/arm_neon.h:
34792 (vcadd_rot90_f16): New.
34793 (vcaddq_rot90_f16): New.
34794 (vcadd_rot270_f16): New.
34795 (vcaddq_rot270_f16): New.
34798 (vcmla_lane_f16): New.
34799 (vcmla_laneq_f16): New.
34800 (vcmlaq_lane_f16): New.
34801 (vcmlaq_laneq_f16): New.
34802 (vcmla_rot90_f16): New.
34803 (vcmlaq_rot90_f16): New.
34804 (vcmla_rot90_lane_f16): New.
34805 (vcmla_rot90_laneq_f16): New.
34806 (vcmlaq_rot90_lane_f16): New.
34807 (vcmlaq_rot90_laneq_f16): New.
34808 (vcmla_rot180_f16): New.
34809 (vcmlaq_rot180_f16): New.
34810 (vcmla_rot180_lane_f16): New.
34811 (vcmla_rot180_laneq_f16): New.
34812 (vcmlaq_rot180_lane_f16): New.
34813 (vcmlaq_rot180_laneq_f16): New.
34814 (vcmla_rot270_f16): New.
34815 (vcmlaq_rot270_f16): New.
34816 (vcmla_rot270_lane_f16): New.
34817 (vcmla_rot270_laneq_f16): New.
34818 (vcmlaq_rot270_lane_f16): New.
34819 (vcmlaq_rot270_laneq_f16): New.
34820 (vcadd_rot90_f32): New.
34821 (vcaddq_rot90_f32): New.
34822 (vcadd_rot270_f32): New.
34823 (vcaddq_rot270_f32): New.
34826 (vcmla_lane_f32): New.
34827 (vcmla_laneq_f32): New.
34828 (vcmlaq_lane_f32): New.
34829 (vcmlaq_laneq_f32): New.
34830 (vcmla_rot90_f32): New.
34831 (vcmlaq_rot90_f32): New.
34832 (vcmla_rot90_lane_f32): New.
34833 (vcmla_rot90_laneq_f32): New.
34834 (vcmlaq_rot90_lane_f32): New.
34835 (vcmlaq_rot90_laneq_f32): New.
34836 (vcmla_rot180_f32): New.
34837 (vcmlaq_rot180_f32): New.
34838 (vcmla_rot180_lane_f32): New.
34839 (vcmla_rot180_laneq_f32): New.
34840 (vcmlaq_rot180_lane_f32): New.
34841 (vcmlaq_rot180_laneq_f32): New.
34842 (vcmla_rot270_f32): New.
34843 (vcmlaq_rot270_f32): New.
34844 (vcmla_rot270_lane_f32): New.
34845 (vcmla_rot270_laneq_f32): New.
34846 (vcmlaq_rot270_lane_f32): New.
34847 (vcmlaq_rot270_laneq_f32): New.
34848 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34849 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34850 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34851 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34852 vcmlaq_lane270): New.
34853 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34854 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34855 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34856 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34857 (arm_option_reconfigure_globals): Use them.
34858 * config/arm/iterators.md (VDF, VQ_HSF): New.
34859 (VCADD, VCMLA): New.
34860 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34861 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34863 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34864 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34866 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34868 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34869 Add qualifier_lane_pair_index.
34870 (emit-rtl.h): Include.
34871 (TYPES_QUADOP_LANE_PAIR): New.
34872 (aarch64_simd_expand_args): Use it.
34873 (aarch64_simd_expand_builtin): Likewise.
34874 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34876 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34877 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34878 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34879 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34880 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34881 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34882 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34883 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34884 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34885 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34886 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34887 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34888 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34889 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34890 Add __ARM_FEATURE_COMPLEX.
34891 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34892 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34893 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34894 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34895 fcmlaq_lane270): New.
34896 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34897 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34898 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34899 * config/aarch64/arm_neon.h:
34900 (vcadd_rot90_f16): New.
34901 (vcaddq_rot90_f16): New.
34902 (vcadd_rot270_f16): New.
34903 (vcaddq_rot270_f16): New.
34906 (vcmla_lane_f16): New.
34907 (vcmla_laneq_f16): New.
34908 (vcmlaq_lane_f16): New.
34909 (vcmlaq_rot90_lane_f16): New.
34910 (vcmla_rot90_laneq_f16): New.
34911 (vcmla_rot90_lane_f16): New.
34912 (vcmlaq_rot90_f16): New.
34913 (vcmla_rot90_f16): New.
34914 (vcmlaq_laneq_f16): New.
34915 (vcmla_rot180_laneq_f16): New.
34916 (vcmla_rot180_lane_f16): New.
34917 (vcmlaq_rot180_f16): New.
34918 (vcmla_rot180_f16): New.
34919 (vcmlaq_rot90_laneq_f16): New.
34920 (vcmlaq_rot270_laneq_f16): New.
34921 (vcmlaq_rot270_lane_f16): New.
34922 (vcmla_rot270_laneq_f16): New.
34923 (vcmlaq_rot270_f16): New.
34924 (vcmla_rot270_f16): New.
34925 (vcmlaq_rot180_laneq_f16): New.
34926 (vcmlaq_rot180_lane_f16): New.
34927 (vcmla_rot270_lane_f16): New.
34928 (vcadd_rot90_f32): New.
34929 (vcaddq_rot90_f32): New.
34930 (vcaddq_rot90_f64): New.
34931 (vcadd_rot270_f32): New.
34932 (vcaddq_rot270_f32): New.
34933 (vcaddq_rot270_f64): New.
34937 (vcmla_lane_f32): New.
34938 (vcmla_laneq_f32): New.
34939 (vcmlaq_lane_f32): New.
34940 (vcmlaq_laneq_f32): New.
34941 (vcmla_rot90_f32): New.
34942 (vcmlaq_rot90_f32): New.
34943 (vcmlaq_rot90_f64): New.
34944 (vcmla_rot90_lane_f32): New.
34945 (vcmla_rot90_laneq_f32): New.
34946 (vcmlaq_rot90_lane_f32): New.
34947 (vcmlaq_rot90_laneq_f32): New.
34948 (vcmla_rot180_f32): New.
34949 (vcmlaq_rot180_f32): New.
34950 (vcmlaq_rot180_f64): New.
34951 (vcmla_rot180_lane_f32): New.
34952 (vcmla_rot180_laneq_f32): New.
34953 (vcmlaq_rot180_lane_f32): New.
34954 (vcmlaq_rot180_laneq_f32): New.
34955 (vcmla_rot270_f32): New.
34956 (vcmlaq_rot270_f32): New.
34957 (vcmlaq_rot270_f64): New.
34958 (vcmla_rot270_lane_f32): New.
34959 (vcmla_rot270_laneq_f32): New.
34960 (vcmlaq_rot270_lane_f32): New.
34961 (vcmlaq_rot270_laneq_f32): New.
34962 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34963 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34964 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34965 (FCADD, FCMLA): New.
34967 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34969 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34973 * config/pa/pa.c: Change "can not" to "cannot".
34974 * gimple-ssa-evrp-analyze.c: Likewise.
34975 * ipa-icf.c: Likewise.
34976 * ipa-polymorphic-call.c: Likewise.
34977 * ipa-pure-const.c: Likewise.
34978 * lra-constraints.c: Likewise.
34979 * lra-remat.c: Likewise.
34980 * reload1.c: Likewise.
34981 * reorg.c: Likewise.
34982 * tree-ssa-uninit.c: Likewise.
34984 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34988 * Makefile.in: Mechanically replace "can not" with "cannot".
34989 * alias.c: Likewise.
34990 * builtins.c: Likewise.
34991 * calls.c: Likewise.
34992 * cgraph.c: Likewise.
34993 * cgraph.h: Likewise.
34994 * cgraphclones.c: Likewise.
34995 * cgraphunit.c: Likewise.
34996 * combine-stack-adj.c: Likewise.
34997 * combine.c: Likewise.
34998 * common/config/i386/i386-common.c: Likewise.
34999 * config/aarch64/aarch64.c: Likewise.
35000 * config/alpha/sync.md: Likewise.
35001 * config/arc/arc.c: Likewise.
35002 * config/arc/predicates.md: Likewise.
35003 * config/arm/arm-c.c: Likewise.
35004 * config/arm/arm.c: Likewise.
35005 * config/arm/arm.h: Likewise.
35006 * config/arm/arm.md: Likewise.
35007 * config/arm/cortex-r4f.md: Likewise.
35008 * config/csky/csky.c: Likewise.
35009 * config/csky/csky.h: Likewise.
35010 * config/darwin-f.c: Likewise.
35011 * config/epiphany/epiphany.md: Likewise.
35012 * config/i386/i386.c: Likewise.
35013 * config/i386/sol2.h: Likewise.
35014 * config/m68k/m68k.c: Likewise.
35015 * config/mcore/mcore.h: Likewise.
35016 * config/microblaze/microblaze.md: Likewise.
35017 * config/mips/20kc.md: Likewise.
35018 * config/mips/sb1.md: Likewise.
35019 * config/nds32/nds32.c: Likewise.
35020 * config/nds32/predicates.md: Likewise.
35021 * config/pa/pa.c: Likewise.
35022 * config/rs6000/e300c2c3.md: Likewise.
35023 * config/rs6000/rs6000.c: Likewise.
35024 * config/s390/s390.h: Likewise.
35025 * config/sh/sh.c: Likewise.
35026 * config/sh/sh.md: Likewise.
35027 * config/spu/vmx2spu.h: Likewise.
35028 * cprop.c: Likewise.
35029 * dbxout.c: Likewise.
35030 * df-scan.c: Likewise.
35031 * doc/cfg.texi: Likewise.
35032 * doc/extend.texi: Likewise.
35033 * doc/fragments.texi: Likewise.
35034 * doc/gty.texi: Likewise.
35035 * doc/invoke.texi: Likewise.
35036 * doc/lto.texi: Likewise.
35037 * doc/md.texi: Likewise.
35038 * doc/objc.texi: Likewise.
35039 * doc/rtl.texi: Likewise.
35040 * doc/tm.texi: Likewise.
35042 * emit-rtl.c: Likewise.
35043 * emit-rtl.h: Likewise.
35044 * except.c: Likewise.
35045 * expmed.c: Likewise.
35046 * expr.c: Likewise.
35047 * fold-const.c: Likewise.
35048 * genautomata.c: Likewise.
35049 * gimple-fold.c: Likewise.
35050 * hard-reg-set.h: Likewise.
35051 * ifcvt.c: Likewise.
35052 * ipa-comdats.c: Likewise.
35053 * ipa-cp.c: Likewise.
35054 * ipa-devirt.c: Likewise.
35055 * ipa-fnsummary.c: Likewise.
35056 * ipa-icf.c: Likewise.
35057 * ipa-inline-transform.c: Likewise.
35058 * ipa-inline.c: Likewise.
35059 * ipa-polymorphic-call.c: Likewise.
35060 * ipa-profile.c: Likewise.
35061 * ipa-prop.c: Likewise.
35062 * ipa-pure-const.c: Likewise.
35063 * ipa-reference.c: Likewise.
35064 * ipa-split.c: Likewise.
35065 * ipa-visibility.c: Likewise.
35067 * ira-build.c: Likewise.
35068 * ira-color.c: Likewise.
35069 * ira-conflicts.c: Likewise.
35070 * ira-costs.c: Likewise.
35071 * ira-int.h: Likewise.
35072 * ira-lives.c: Likewise.
35075 * loop-invariant.c: Likewise.
35076 * loop-unroll.c: Likewise.
35077 * lower-subreg.c: Likewise.
35078 * lra-assigns.c: Likewise.
35079 * lra-constraints.c: Likewise.
35080 * lra-eliminations.c: Likewise.
35081 * lra-lives.c: Likewise.
35082 * lra-remat.c: Likewise.
35083 * lra-spills.c: Likewise.
35085 * lto-cgraph.c: Likewise.
35086 * lto-streamer-out.c: Likewise.
35087 * postreload-gcse.c: Likewise.
35088 * predict.c: Likewise.
35089 * profile-count.h: Likewise.
35090 * profile.c: Likewise.
35091 * recog.c: Likewise.
35093 * reload.c: Likewise.
35094 * reload1.c: Likewise.
35095 * reorg.c: Likewise.
35096 * resource.c: Likewise.
35097 * rtl.def: Likewise.
35099 * rtlanal.c: Likewise.
35100 * sched-deps.c: Likewise.
35101 * sched-ebb.c: Likewise.
35102 * sched-rgn.c: Likewise.
35103 * sel-sched-ir.c: Likewise.
35104 * sel-sched.c: Likewise.
35105 * shrink-wrap.c: Likewise.
35106 * simplify-rtx.c: Likewise.
35107 * symtab.c: Likewise.
35108 * target.def: Likewise.
35109 * toplev.c: Likewise.
35110 * tree-call-cdce.c: Likewise.
35111 * tree-cfg.c: Likewise.
35112 * tree-complex.c: Likewise.
35113 * tree-core.h: Likewise.
35114 * tree-eh.c: Likewise.
35115 * tree-inline.c: Likewise.
35116 * tree-loop-distribution.c: Likewise.
35117 * tree-nrv.c: Likewise.
35118 * tree-profile.c: Likewise.
35119 * tree-sra.c: Likewise.
35120 * tree-ssa-alias.c: Likewise.
35121 * tree-ssa-dce.c: Likewise.
35122 * tree-ssa-dom.c: Likewise.
35123 * tree-ssa-forwprop.c: Likewise.
35124 * tree-ssa-loop-im.c: Likewise.
35125 * tree-ssa-loop-ivcanon.c: Likewise.
35126 * tree-ssa-loop-ivopts.c: Likewise.
35127 * tree-ssa-loop-niter.c: Likewise.
35128 * tree-ssa-phionlycprop.c: Likewise.
35129 * tree-ssa-phiopt.c: Likewise.
35130 * tree-ssa-propagate.c: Likewise.
35131 * tree-ssa-threadedge.c: Likewise.
35132 * tree-ssa-threadupdate.c: Likewise.
35133 * tree-ssa-uninit.c: Likewise.
35134 * tree-ssanames.c: Likewise.
35135 * tree-streamer-out.c: Likewise.
35136 * tree.c: Likewise.
35137 * tree.h: Likewise.
35138 * vr-values.c: Likewise.
35140 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35142 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35143 (ix86_split_xorsign): Ditto.
35144 * config/i386/i386.c (ix86_expand_xorsign): New function.
35145 (ix86_split_xorsign): Ditto.
35146 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35147 (xorsign<mode>3): New expander.
35148 (xorsign<mode>3_1): New insn_and_split pattern.
35149 * config/i386/sse.md (xorsign<mode>3): New expander.
35151 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35153 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35154 (*tablejump_sp64): Likewise.
35155 (*tablejump<P:mode>): ...this.
35156 (*call_address_sp32): Merge into...
35157 (*call_address_sp64): Likewise.
35158 (*call_address<P:mode>): ...this.
35159 (*call_symbolic_sp32): Merge into...
35160 (*call_symbolic_sp64): Likewise.
35161 (*call_symbolic<P:mode>): ...this.
35162 (call_value): Remove constraint and add predicate.
35163 (*call_value_address_sp32): Merge into...
35164 (*call_value_address_sp64): Likewise.
35165 (*call_value_address<P:mode>): ...this.
35166 (*call_value_symbolic_sp32): Merge into...
35167 (*call_value_symbolic_sp64): Likewise.
35168 (*call_value_symbolic<P:mode>): ...this.
35169 (*sibcall_symbolic_sp32): Merge into...
35170 (*sibcall_symbolic_sp64): Likewise.
35171 (*sibcall_symbolic<P:mode>): ...this.
35172 (sibcall_value): Remove constraint and add predicate.
35173 (*sibcall_value_symbolic_sp32): Merge into...
35174 (*sibcall_value_symbolic_sp64): Likewise.
35175 (*sibcall_value_symbolic<P:mode>): ...this.
35176 (window_save): Minor tweak.
35177 (*branch_sp32): Merge into...
35178 (*branch_sp64): Likewise.
35179 (*branch<P:mode>): ...this.
35181 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35182 James Clarke <jrtc27@jrtc27.com>
35185 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35186 consistently in TLS address generation and adjust code to the renaming
35187 of patterns. Mark calls to __tls_get_addr as const.
35188 * config/sparc/sparc.md (tgd_hi22): Turn into...
35189 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35190 (tgd_lo10): Turn into...
35191 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35192 (tgd_add32): Merge into...
35193 (tgd_add64): Likewise.
35194 (tgd_add<P:mode>): ...this and use Pmode throughout.
35195 (tldm_hi22): Turn into...
35196 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35197 (tldm_lo10): Turn into...
35198 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35199 (tldm_add32): Merge into...
35200 (tldm_add64): Likewise.
35201 (tldm_add<P:mode>): ...this and use Pmode throughout.
35202 (tldm_call32): Merge into...
35203 (tldm_call64): Likewise.
35204 (tldm_call<P:mode>): ...this and use Pmode throughout.
35205 (tldo_hix22): Turn into...
35206 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35207 (tldo_lox10): Turn into...
35208 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35209 (tldo_add32): Merge into...
35210 (tldo_add64): Likewise.
35211 (tldo_add<P:mode>): ...this and use Pmode throughout.
35212 (tie_hi22): Turn into...
35213 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35214 (tie_lo10): Turn into...
35215 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35216 (tie_ld64): Use DImode throughout.
35217 (tie_add32): Merge into...
35218 (tie_add64): Likewise.
35219 (tie_add<P:mode>): ...this and use Pmode throughout.
35220 (tle_hix22_sp32): Merge into...
35221 (tle_hix22_sp64): Likewise.
35222 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35223 (tle_lox22_sp32): Merge into...
35224 (tle_lox22_sp64): Likewise.
35225 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35226 (*tldo_ldub_sp32): Merge into...
35227 (*tldo_ldub_sp64): Likewise.
35228 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35229 (*tldo_ldub1_sp32): Merge into...
35230 (*tldo_ldub1_sp64): Likewise.
35231 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35232 (*tldo_ldub2_sp32): Merge into...
35233 (*tldo_ldub2_sp64): Likewise.
35234 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35235 (*tldo_ldsb1_sp32): Merge into...
35236 (*tldo_ldsb1_sp64): Likewise.
35237 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35238 (*tldo_ldsb2_sp32): Merge into...
35239 (*tldo_ldsb2_sp64): Likewise.
35240 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35241 (*tldo_ldub3_sp64): Use DImode throughout.
35242 (*tldo_ldsb3_sp64): Likewise.
35243 (*tldo_lduh_sp32): Merge into...
35244 (*tldo_lduh_sp64): Likewise.
35245 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35246 (*tldo_lduh1_sp32): Merge into...
35247 (*tldo_lduh1_sp64): Likewise.
35248 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35249 (*tldo_ldsh1_sp32): Merge into...
35250 (*tldo_ldsh1_sp64): Likewise.
35251 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35252 (*tldo_lduh2_sp64): Use DImode throughout.
35253 (*tldo_ldsh2_sp64): Likewise.
35254 (*tldo_lduw_sp32): Merge into...
35255 (*tldo_lduw_sp64): Likewise.
35256 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35257 (*tldo_lduw1_sp64): Use DImode throughout.
35258 (*tldo_ldsw1_sp64): Likewise.
35259 (*tldo_ldx_sp64): Likewise.
35260 (*tldo_stb_sp32): Merge into...
35261 (*tldo_stb_sp64): Likewise.
35262 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35263 (*tldo_sth_sp32): Merge into...
35264 (*tldo_sth_sp64): Likewise.
35265 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35266 (*tldo_stw_sp32): Merge into...
35267 (*tldo_stw_sp64): Likewise.
35268 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35269 (*tldo_stx_sp64): Use DImode throughout.
35271 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35273 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35274 check configure option to set BTI and Return Address Signing.
35275 * configure.ac: Add --enable-standard-branch-protection and
35276 --disable-standard-branch-protection.
35277 * configure: Regenerated.
35278 * doc/install.texi: Document the same.
35280 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35281 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35283 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35284 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35285 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35287 * config/aarch64/aarch64-bti-insert.c: New file.
35288 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35290 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35292 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35293 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35294 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35295 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35297 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35299 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35300 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35301 Disable bti for -mbranch-protection=none.
35302 (aarch64_handle_standard_branch_protection): Enable bti for
35303 -mbranch-protection=standard.
35304 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35305 -mbranch-protection.
35306 (aarch64_bti_enabled): Check if bti is enabled.
35307 * config/aarch64/aarch64.opt: Declare target variable.
35308 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35310 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35312 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35313 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35314 (aarch64_expand_epilogue): Likewise.
35315 (aarch64_output_mi_thunk): Likewise.
35316 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35317 TAILCALL_ADDR_REGS to x16 and x17.
35318 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35320 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35322 * config/aarch64/aarch64-option-extensions.def: Define
35323 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35324 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35325 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35326 (AARCH64_FL_PREDRES): New.
35327 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35328 AARCH64_FL_PREDRES by default.
35329 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35331 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35333 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35335 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35336 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35337 * doc/invoke.texi: Document ARMv8.5-A.
35339 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35341 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35342 (xorsign<mode>3): Likewise.
35344 2019-01-09 Jelinek <jakub@redhat.com>
35346 PR middle-end/88758
35347 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35348 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35350 PR rtl-optimization/88331
35351 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35352 not currently_expanding_to_rtl.
35354 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35356 * doc/invoke.texi (-Os): Remove trailing spaces.
35357 (-finline-functions): Remove reference to -O2.
35359 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35361 PR rtl-optimization/79593
35362 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35364 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35365 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35367 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35370 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35374 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35375 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35377 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35380 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35381 ix86_avx_u128_mode_entry.
35383 2019-01-08 Martin Liska <mliska@suse.cz>
35385 PR tree-optimization/88753
35386 * tree-switch-conversion.c (switch_conversion::build_one_array):
35387 Come up with local variable constructor. Convert first to
35388 type of constructor values.
35390 2019-01-08 Richard Biener <rguenther@suse.de>
35392 PR tree-optimization/86554
35393 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35394 rpo_avail): Move earlier.
35395 (visit_nary_op): When value-numbering to expressions
35396 with different overflow behavior make sure there's an
35397 available expression on the path.
35399 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35401 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35402 aarch64_parse_branch_protection,
35403 struct aarch64_branch_protect_type,
35404 aarch64_handle_no_branch_protection,
35405 aarch64_handle_standard_branch_protection,
35406 aarch64_validate_mbranch_protection,
35407 aarch64_handle_pac_ret_protection,
35408 aarch64_handle_attr_branch_protection,
35409 accepted_branch_protection_string,
35410 aarch64_pac_ret_subtypes,
35411 aarch64_branch_protect_types,
35412 aarch64_handle_pac_ret_leaf): Define.
35413 (aarch64_override_options_after_change_1, aarch64_override_options):
35414 Add check for accepted_branch_protection_string.
35415 (aarch64_option_save): Save accepted_branch_protection_string.
35416 (aarch64_option_restore): Save accepted_branch_protection_string.
35417 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35418 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35419 msign-return-address.
35420 * doc/invoke.texi: Add mbranch-protection.
35422 2019-01-08 Alan Modra <amodra@gmail.com>
35425 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35426 Delete "unknownp" parameter. Adjust callers. Handle
35427 CONST_INT, PLUS, MINUS, and MULT.
35428 (attr_value_aligned): Renamed from or_attr_value.
35429 (min_attr_value): Return INT_MIN for unhandled rtl case..
35430 (min_fn): ..and translate to INT_MAX here.
35431 (write_length_unit_log): Modify to cope without "unknown".
35432 (write_attr_value): Handle IF_THEN_ELSE.
35434 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35436 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35437 optimization for masked stores.
35439 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35441 PR middle-end/88567
35442 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35443 output vector directly to duplicate_and_interleave instead of
35444 going through a temporary. Postpone insertion of ctor_seq to
35445 the end of the loop.
35447 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35450 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35451 unsigned_p. Handle signed and unsigned overflow correction as
35453 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35455 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35457 (add<mode>3_compareV_imm): Make this callable for expanding.
35458 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35459 aarch64_plus_operand for operand 2.
35460 (subv<GPI:mode>_insn): New insn pattern.
35461 (subv<GPI:mode>_imm): Likewise.
35462 (negv<GPI:mode>3): New expand pattern.
35463 (negv<GPI:mode>_insn): New insn pattern.
35464 (negv<GPI:mode>_cmp_only): Likewise.
35465 (cmpv<GPI:mode>_insn): Likewise.
35466 (subvti4): Use register_operand for operand 1. Update call to
35467 aarch64_expand_subvti.
35468 (usubvti4): Likewise.
35469 (negvti3): New expand pattern.
35470 (negdi_carryout): New insn pattern.
35471 (negvdi_carryinV): New insn pattern.
35472 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35473 version the named version.
35474 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35476 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35478 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35480 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35481 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35482 (sub<mode>3_carryinCV): Delete.
35483 (sub<GPI:mode>3_carryinV): New expand pattern.
35484 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35486 2019-01-07 Richard Biener <rguenther@suse.de>
35488 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35489 of tree_operand_hash.
35491 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35493 PR tree-optimization/88598
35494 * tree.h (single_nonzero_element): Declare.
35495 * tree.c (single_nonzero_element): New function.
35496 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35497 if I is the only nonzero element of CST.
35499 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35501 PR tree-optimization/88598
35502 * tree.h (initializer_each_zero_or_onep): Declare.
35503 * tree.c (initializer_each_zero_or_onep): New function.
35504 (signed_or_unsigned_type_for): Handle float types too.
35505 (unsigned_type_for, signed_type_for): Update comments accordingly.
35506 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35507 x & { 0 or -1, 0 or -1, ... }.
35509 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35511 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35512 with x86_64-pc-linux-gnu.
35514 2019-01-07 Tom de Vries <tdevries@suse.de>
35517 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35519 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35522 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35524 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35525 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35526 TARGET_AVX512F as condition.
35529 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35530 const_not_ok_for_debug_p target hook.
35531 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35532 on UNSPEC and subexpressions thereof if all subexpressions of the
35533 UNSPEC are CONSTANT_P.
35535 PR tree-optimization/88676
35536 * tree-ssa-phiopt.c (two_value_replacement): New function.
35537 (tree_ssa_phiopt_worker): Call it.
35540 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35541 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35544 * tree-vect-generic.c: Include insn-config.h and recog.h.
35545 (expand_vector_piecewise): Add defaulted ret_type argument,
35546 if non-NULL, use that in preference to type for the result type.
35547 (expand_vector_parallel): Formatting fix.
35548 (do_vec_conversion, do_vec_narrowing_conversion,
35549 expand_vector_conversion): New functions.
35550 (expand_vector_operations_1): Call expand_vector_conversion
35551 for VEC_CONVERT ifn calls.
35552 * internal-fn.def (VEC_CONVERT): New internal function.
35553 * internal-fn.c (expand_VEC_CONVERT): New function.
35554 * fold-const-call.c (fold_const_vec_convert): New function.
35555 (fold_const_call): Use it for CFN_VEC_CONVERT.
35556 * doc/extend.texi (__builtin_convertvector): Document.
35558 2019-01-07 Tom de Vries <tdevries@suse.de>
35560 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35561 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35562 vector_red_partition, vector_red_sym): New global variables.
35563 (nvptx_option_override): Initialize vector_red_sym.
35564 (nvptx_declare_function_name): Restore red_partition register.
35565 (nvptx_file_end): Emit code to declare the vector reduction variables.
35566 (nvptx_output_red_partition): New function.
35567 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35568 large vector reductions.
35569 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35570 (nvptx_init_builtins): Add VECTOR_ADDR.
35571 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35572 Handle nvptx_expand_shared_addr.
35573 (nvptx_get_shared_red_addr): Add vector argument and handle large
35575 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35577 (nvptx_goacc_reduction_init): Likewise.
35578 (nvptx_goacc_reduction_fini): Likewise.
35579 (nvptx_goacc_reduction_teardown): Likewise.
35580 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35581 init,fini,teardown}.
35582 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35583 (nvptx_set_current_function): Init vector_red_partition.
35584 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35585 (nvptx_red_partition): New insn.
35586 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35588 2019-01-07 Tom de Vries <tdevries@suse.de>
35591 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35594 2019-01-07 Tom de Vries <tdevries@suse.de>
35596 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35597 (nvptx_option_override): Init oacc_bcast_partition.
35598 (nvptx_init_oacc_workers): New function.
35599 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35600 (nvptx_needs_shared_bcast): New function.
35601 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35602 to propagate state.
35603 (nvptx_shared_propagate): Initialize vector bcast partition and
35604 synchronization state.
35605 (nvptx_single): Generalize to enable vectors to use shared-memory
35606 to propagate state.
35607 (nvptx_process_pars): Likewise.
35608 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35609 * config/nvptx/nvptx.h (struct machine_function): Add
35610 bcast_partition and sync_bar members.
35612 2019-01-07 Tom de Vries <tdevries@suse.de>
35614 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35615 (nvptx_apply_dim_limits): New function.
35616 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35619 2019-01-07 Tom de Vries <tdevries@suse.de>
35621 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35622 as late as possible.
35624 2019-01-07 Tom de Vries <tdevries@suse.de>
35626 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35627 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35628 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35629 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35630 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35632 2019-01-07 Tom de Vries <tdevries@suse.de>
35634 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35636 2019-01-07 Tom de Vries <tdevries@suse.de>
35638 * omp-offload.c (oacc_get_min_dim): New function.
35639 * omp-offload.h (oacc_get_min_dim): Declare.
35641 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35644 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35645 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35647 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35651 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35653 * ipa-inline.c (edge_badness): Use inlined_time instead of
35654 inline_summaries->get.
35656 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35658 * opts.c (enable_fdo_optimizations): Enable
35659 version-loops-for-strides, loop-interchange, unrol-and-jam
35660 and tree-loop-distribution.
35661 * invoke.texi: Document newly enabled options.
35663 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35665 * doc/invoke.texi (max-inline-insns-small): New parameters.
35666 * ipa-inline.c (want_early_inline_function_p): simplify.
35667 (want_inline_small_function_p): Fix pasto from previous patch;
35668 use max-inline-insns-small bound.
35669 * params.def (max-inline-insns-small): New param.
35670 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35671 variables correctly.
35673 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35675 * doc/invoke.texi: Document max-inline-insns-size,
35676 uninlined-function-insns, uninlined-function-time,
35677 uninlined-thunk-insns and uninlined-thunk-time.
35678 * params.def: Add max-inline-insns-size,
35679 uninlined-function-insns, uninlined-function-time,
35680 uninlined-thunk-insns and uninlined-thunk-time.
35681 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35683 * ipa-inline.c (can_inline_edge_by_limits_p,
35684 want_inline_small_function_p): Use new parameters.
35686 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35688 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35690 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35692 PR middle-end/82564
35694 * expr.c (expand_assignment): For calls returning VLA structures
35695 if to_rtx is not a MEM, force it into a stack temporary.
35698 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35699 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35700 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35701 subexpressions of both operands.
35702 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35703 subrtxes are CONSTANT_P.
35704 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35705 2018-11-09 changes.
35707 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35709 * params.def (hot-bb-count-ws-permille): Set to 990.
35711 2019-01-04 Martin Sebor <msebor@redhat.com>
35714 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35717 2019-01-04 Martin Sebor <msebor@redhat.com>
35720 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35722 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35724 * gdbinit.in: Turn off pagination for the skip commands, restore
35725 it to previous state afterwards.
35727 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35730 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35731 of GET_MODE (opN) as modes of the libcall arguments.
35733 2019-01-04 Jan Beulich <jbeulich@suse.com>
35735 * config/i386/sse.md
35736 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35737 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35738 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35739 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35740 avx512f_vmcmp<mode>3<round_saeonly_name>,
35741 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35742 avx512f_maskcmp<mode>3,
35743 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35744 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35745 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35746 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35747 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35748 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35749 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35750 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35751 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35752 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35753 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35754 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35755 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35756 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35757 avx512cd_maskb_vec_dup<mode>,
35758 avx512cd_maskw_vec_dup<mode>,
35759 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35760 avx512dq_vmfpclass<mode>,
35761 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35764 2019-01-03 Martin Sebor <msebor@redhat.com>
35766 PR tree-optimization/88659
35767 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35769 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35771 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35772 unaligned vsx and avoid lxvd2x/stxvd2x.
35773 (gen_lvx_v4si_move): New function.
35775 2019-01-03 Tom de Vries <tdevries@suse.de>
35777 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35778 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35780 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35782 2019-01-03 Tom de Vries <tdevries@suse.de>
35784 * config/nvptx/nvptx.c (struct offload_attrs): New.
35785 (populate_offload_attrs): New function. Factor mask extraction out of
35786 nvptx_reorg. Add extraction of dimensions.
35787 (nvptx_reorg): Use populate_offload_attrs.
35789 2019-01-03 Tom de Vries <tdevries@suse.de>
35791 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35792 cases for oacc_min_dims_p and routine_p. Add asserts for
35793 oacc_default_dims_p and offload_region_p.
35795 2019-01-03 Tom de Vries <tdevries@suse.de>
35797 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35798 factored out of ...
35799 (nvptx_goacc_validate_dims): ... here.
35801 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35803 PR tree-optimization/85574
35804 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35806 (struct ssa_equip_hash_traits): Declare.
35807 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35809 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35812 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35813 change it to qualified_type.
35815 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35817 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35818 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35820 2019-01-02 Martin Sebor <msebor@redhat.com>
35821 Jeff Law <law@redhat.com>
35823 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35824 (get_range_strlen_tree): Update appropriately.
35826 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35828 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35829 rather than set_range_info.
35830 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35831 maybe_set_strlen_range. Handle potentially boundary crossing
35832 cases more conservatively.
35833 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35834 Call set_strlen_range.
35835 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35837 PR middle-end/88663
35838 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35839 need the flexp argument.
35840 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35841 from calls to get_range_strlen. Update comments. Just update
35842 VAL for an unterminated const char array and let the reset of the
35843 code handle it normally. No longer try to set *flexp. Adjust
35845 (get_range_strlen): Update for the new get_range_strlen API.
35846 (get_maxval_strlen): Similarly.
35847 (gimple_fold_builtin_strlen): Handle update meaning of return value
35848 from get_range_strlen.
35849 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35850 get_range_strlen API.
35852 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35855 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35856 false at WPA time when body was removed.
35858 2019-01-02 Martin Liska <mliska@suse.cz>
35860 PR tree-optimization/88650
35861 * predict.c (set_even_probabilities): Calculate probability
35862 remainer only when really used.
35864 2019-01-02 Richard Biener <rguenther@suse.de>
35866 PR middle-end/88651
35867 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35868 widest_ints when mangling max_stmt_execution results.
35870 2019-01-02 Richard Biener <rguenther@suse.de>
35872 PR tree-optimization/88621
35873 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35874 bitfields when canoncalizing.
35876 2019-01-02 Richard Biener <rguenther@suse.de>
35879 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35880 cost of cheap SSE instruction.
35882 2019-01-02 Richard Biener <rguenther@suse.de>
35885 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35886 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35888 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35889 set after UIDs before splitting them.
35891 2019-01-01 Martin Sebor <msebor@redhat.com>
35892 Jeff Law <law@redhat.com>
35894 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35895 length is optimistic. If it is, then arrange to compute the
35896 conservative length as well.
35898 * gimple-fold.h (get_range_strlen): Update prototype.
35899 * builtins.c (check_access): Update call to get_range_strlen to use
35900 c_strlen_data pointer. Change various variable accesses to instead
35901 pull data from the c_strlen_data structure.
35902 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35903 * calls.c (maybe_warn_nonstring_arg): Likewise.
35904 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35905 minimum length if maximum lengh is unknown.
35906 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35907 that used c_strlen, it's no longer needed. Restructure slightly.
35908 (format_string): Set unlikely range appropriately.
35909 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35911 (get_range_strlen): Accept c_strlen_data pointer for external
35912 call sites as well. Pass through to call to internal get_range_strlen.
35913 Adjust minlen, maxlen and maxbound as needed.
35914 (get_maxval_strlen): Update comments.
35915 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35916 to use c_strlen_data pointer. Change variable accesses to instead
35917 use c_strlen_data data members.
35919 * gimple-fold.c (get_range_strlen): Update prototype.
35920 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35921 local variables. Use pdata to return information to caller.
35922 Update calls to get_range_strlen. Update pdata->maxbound.
35923 (get_range_strlen -- static version): Similarly.
35924 (get_range_strlen -- extern version): Update for internal
35925 get_range_strlen API change. Convert to external data format.
35926 (get_maxval_strlen): Similarly.
35928 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35930 * coverage.c (get_coverage_counts): Use current_function_decl.
35931 * profile.c (read_thunk_profile): New function.
35932 (branch_prob): Add THUNK parameter.
35933 * tree-profile.c (tree_profiling): Handle thunks.
35934 * value-prof.c (init_node_map): Handle thunks.
35935 * value-prof.h (branch_prob): Upate prototype.
35936 (read_thunk_profile): Declare.
35938 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35940 Update copyright years.
35942 * gcc.c (process_command): Update copyright notice dates.
35943 * gcov-dump.c (print_version): Ditto.
35944 * gcov.c (print_version): Ditto.
35945 * gcov-tool.c (print_version): Ditto.
35946 * gengtype.c (create_file): Ditto.
35947 * doc/cpp.texi: Bump @copying's copyright year.
35948 * doc/cppinternals.texi: Ditto.
35949 * doc/gcc.texi: Ditto.
35950 * doc/gccint.texi: Ditto.
35951 * doc/gcov.texi: Ditto.
35952 * doc/install.texi: Ditto.
35953 * doc/invoke.texi: Ditto.
35955 Copyright (C) 2019 Free Software Foundation, Inc.
35957 Copying and distribution of this file, with or without modification,
35958 are permitted in any medium without royalty provided the copyright
35959 notice and this notice are preserved.