[AArch64] Rename UNSPEC_WHILE* to match instruction mnemonics
[gcc.git] / gcc / ChangeLog
1 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
2
3 * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
4 (UNSPEC_WHILELE): ...this.
5 (UNSPEC_WHILE_LO): Rename to...
6 (UNSPEC_WHILELO): ...this.
7 (UNSPEC_WHILE_LS): Rename to...
8 (UNSPEC_WHILELS): ...this.
9 (UNSPEC_WHILE_LT): Rename to...
10 (UNSPEC_WHILELT): ...this.
11 * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
12 (cmp_op, while_optab_cmp): Likewise.
13 * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
14 * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
15 (svwhilelt): Likewise.
16
17 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
18
19 * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
20 (unary_to_uint): Define.
21 * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
22 (unary_count): Rename to...
23 (unary_to_uint_def, unary_to_uint): ...this.
24 * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
25
26 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
27
28 * config/aarch64/aarch64-sve-builtins-functions.h
29 (code_for_mode_function): New class.
30 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
31 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
32 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
33 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
34 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
35
36 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
37
38 * config/aarch64/iterators.md (addsub): New code attribute.
39 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
40 Re-express as...
41 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
42 in the asm string and attributes. Fix indentation.
43 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
44 Re-express as...
45 (@aarch64_sve_<optab><mode>): ...this.
46 * config/aarch64/aarch64-sve-builtins.h
47 (function_expander::expand_signed_unpred_op): Delete.
48 * config/aarch64/aarch64-sve-builtins.cc
49 (function_expander::expand_signed_unpred_op): Likewise.
50 (function_expander::map_to_rtx_codes): If the optab isn't defined,
51 try using code_for_aarch64_sve instead.
52 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
53 (svqsub_impl): Likewise.
54 (svqadd, svqsub): Use rtx_code_function instead.
55
56 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
57
58 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
59 (HADDSUB, sur, addsub): Remove them.
60
61 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
62
63 * tree-nrv.c (pass_return_slot::execute): Handle all internal
64 functions the same way, rather than singling out those that
65 aren't mapped directly to optabs.
66
67 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
68
69 * target.def (compatible_vector_types_p): New target hook.
70 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
71 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
72 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
73 * doc/tm.texi: Regenerate.
74 * gimple-expr.c: Include target.h.
75 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
76 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
77 function.
78 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
79 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
80 Use the original predicate if it already has a suitable type.
81
82 2020-01-09 Martin Jambor <mjambor@suse.cz>
83
84 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
85 resolve_speculation and redirect_call_stmt_to_callee static. Change
86 return type of set_call_stmt to cgraph_edge *.
87 * auto-profile.c (afdo_indirect_call): Adjust call to
88 redirect_call_stmt_to_callee.
89 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
90 make the this pointer explicit, adjust self-recursive calls and the
91 call top make_direct. Return the resulting edge.
92 (cgraph_edge::remove): Make this pointer explicit.
93 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
94 (cgraph_edge::make_direct): Likewise, adjust call to
95 resolve_speculation.
96 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
97 call to set_call_stmt.
98 (cgraph_update_edges_for_call_stmt_node): Update call to
99 set_call_stmt and remove.
100 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
101 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
102 (cgraph_node::create_edge_including_clones): Moved "first" definition
103 of edge to the block where it was used. Adjusted calls to
104 set_call_stmt.
105 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
106 cgraph_edge::remove.
107 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
108 make_direct and redirect_call_stmt_to_callee.
109 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
110 resolve_speculation and make_direct.
111 * ipa-inline-transform.c (inline_transform): Adjust call to
112 redirect_call_stmt_to_callee.
113 (check_speculations_1):: Adjust call to resolve_speculation.
114 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
115 resolve-speculation.
116 (inline_small_functions): Adjust call to resolve_speculation.
117 (ipa_inline): Likewise.
118 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
119 make_direct.
120 * ipa-visibility.c (function_and_variable_visibility): Make iteration
121 safe with regards to edge removal, adjust calls to
122 redirect_call_stmt_to_callee.
123 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
124 and redirect_call_stmt_to_callee.
125 * multiple_target.c (create_dispatcher_calls): Adjust call to
126 redirect_call_stmt_to_callee
127 (redirect_to_specific_clone): Likewise.
128 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
129 Adjust calls to cgraph_edge::remove.
130 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
131 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
132 (expand_call_inline): Adjust call to cgraph_edge::remove.
133
134 2020-01-09 Martin Liska <mliska@suse.cz>
135
136 * params.opt: Set Optimization for
137 param_max_speculative_devirt_maydefs.
138
139 2020-01-09 Martin Sebor <msebor@redhat.com>
140
141 PR middle-end/93200
142 PR fortran/92956
143 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
144
145 2020-01-09 Martin Liska <mliska@suse.cz>
146
147 * auto-profile.c (auto_profile): Use opt_for_fn
148 for a parameter.
149 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
150 (propagate_vals_across_arith_jfunc): Likewise.
151 (hint_time_bonus): Likewise.
152 (incorporate_penalties): Likewise.
153 (good_cloning_opportunity_p): Likewise.
154 (perform_estimation_of_a_value): Likewise.
155 (estimate_local_effects): Likewise.
156 (ipcp_propagate_stage): Likewise.
157 * ipa-fnsummary.c (decompose_param_expr): Likewise.
158 (set_switch_stmt_execution_predicate): Likewise.
159 (analyze_function_body): Likewise.
160 * ipa-inline-analysis.c (offline_size): Likewise.
161 * ipa-inline.c (early_inliner): Likewise.
162 * ipa-prop.c (ipa_analyze_node): Likewise.
163 (ipcp_transform_function): Likewise.
164 * ipa-sra.c (process_scan_results): Likewise.
165 (ipa_sra_summarize_function): Likewise.
166 * params.opt: Rename ipcp-unit-growth to
167 ipa-cp-unit-growth. Add Optimization for various
168 IPA-related parameters.
169
170 2020-01-09 Richard Biener <rguenther@suse.de>
171
172 PR middle-end/93054
173 * gimplify.c (gimplify_expr): Deal with NOP definitions.
174
175 2020-01-09 Richard Biener <rguenther@suse.de>
176
177 PR tree-optimization/93040
178 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
179
180 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
181
182 * common/config/avr/avr-common.c (avr_option_optimization_table)
183 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
184
185 2020-01-09 Martin Liska <mliska@suse.cz>
186
187 * cgraphclones.c (symbol_table::materialize_all_clones):
188 Use cgraph_node::dump_name.
189
190 2020-01-09 Jakub Jelinek <jakub@redhat.com>
191
192 PR inline-asm/93202
193 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
194 output_operand_lossage instead of gcc_unreachable.
195 * doc/md.texi (riscv f constraint): Fix typo.
196
197 PR target/93141
198 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
199 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
200 CONST_SCALAR_INT_P instead of CONST_INT_P.
201 (*subv<mode>4_1): Rename to ...
202 (subv<mode>4_1): ... this.
203 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
204 define_insn_and_split patterns.
205 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
206 patterns.
207
208 2020-01-08 David Malcolm <dmalcolm@redhat.com>
209
210 * vec.c (class selftest::count_dtor): New class.
211 (selftest::test_auto_delete_vec): New test.
212 (selftest::vec_c_tests): Call it.
213 * vec.h (class auto_delete_vec): New class template.
214 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
215
216 2020-01-08 David Malcolm <dmalcolm@redhat.com>
217
218 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
219
220 2020-01-08 Jim Wilson <jimw@sifive.com>
221
222 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
223 use of TLS_MODEL_LOCAL_EXEC when not pic.
224
225 2020-01-08 David Malcolm <dmalcolm@redhat.com>
226
227 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
228 memory leak.
229
230 2020-01-08 Jakub Jelinek <jakub@redhat.com>
231
232 PR target/93187
233 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
234 *stack_protect_set_3 peephole2): Also check that the second
235 insns source is general_operand.
236
237 PR target/93174
238 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
239 predicate for output operand instead of register_operand.
240 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
241 memory destination and non-memory operands[2].
242
243 2020-01-08 Martin Liska <mliska@suse.cz>
244
245 * cgraph.c (cgraph_node::dump): Use ::dump_name or
246 ::dump_asm_name instead of (::name or ::asm_name).
247 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
248 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
249 (analyze_functions): Likewise.
250 (expand_all_functions): Likewise.
251 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
252 (propagate_bits_across_jump_function): Likewise.
253 (dump_profile_updates): Likewise.
254 (ipcp_store_bits_results): Likewise.
255 (ipcp_store_vr_results): Likewise.
256 * ipa-devirt.c (dump_targets): Likewise.
257 * ipa-fnsummary.c (analyze_function_body): Likewise.
258 * ipa-hsa.c (check_warn_node_versionable): Likewise.
259 (process_hsa_functions): Likewise.
260 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
261 (set_alias_uids): Likewise.
262 * ipa-inline-transform.c (save_inline_function_body): Likewise.
263 * ipa-inline.c (recursive_inlining): Likewise.
264 (inline_to_all_callers_1): Likewise.
265 (ipa_inline): Likewise.
266 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
267 (ipa_propagate_frequency): Likewise.
268 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
269 (remove_described_reference): Likewise.
270 * ipa-pure-const.c (worse_state): Likewise.
271 (check_retval_uses): Likewise.
272 (analyze_function): Likewise.
273 (propagate_pure_const): Likewise.
274 (propagate_nothrow): Likewise.
275 (dump_malloc_lattice): Likewise.
276 (propagate_malloc): Likewise.
277 (pass_local_pure_const::execute): Likewise.
278 * ipa-visibility.c (optimize_weakref): Likewise.
279 (function_and_variable_visibility): Likewise.
280 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
281 (ipa_discover_variable_flags): Likewise.
282 * lto-streamer-out.c (output_function): Likewise.
283 (output_constructor): Likewise.
284 * tree-inline.c (copy_bb): Likewise.
285 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
286 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
287
288 2020-01-08 Richard Biener <rguenther@suse.de>
289
290 PR middle-end/93199
291 * tree-eh.c (sink_clobbers): Update virtual operands for
292 the first and last stmt only. Add a dry-run capability.
293 (pass_lower_eh_dispatch::execute): Perform clobber sinking
294 after CFG manipulations and in RPO order to catch all
295 secondary opportunities reliably.
296
297 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
298
299 PR target/93182
300 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
301
302 2019-01-08 Richard Biener <rguenther@suse.de>
303
304 PR middle-end/93199
305 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
306 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
307 virtual operand, also updating SSA use.
308 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
309 Update stmt after resetting virtual operand.
310 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
311 * gimple-iterator.c (gsi_remove): When not removing the stmt
312 permanently do not delink immediate uses or mark the stmt modified.
313
314 2020-01-08 Martin Liska <mliska@suse.cz>
315
316 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
317 (ipa_call_context::estimate_size_and_time): Likewise.
318 (inline_analyze_function): Likewise.
319
320 2020-01-08 Martin Liska <mliska@suse.cz>
321
322 * cgraph.c (cgraph_node::dump): Use systematically
323 dump_asm_name.
324
325 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
326
327 Add -nodevicespecs option for avr.
328
329 PR target/93182
330 * config/avr/avr.opt (-nodevicespecs): New driver option.
331 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
332 "-specs=device-specs/..." if that option is not set.
333 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
334
335 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
336
337 Implement 64-bit double functions for avr.
338
339 PR target/92055
340 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
341 --with-double-comparison.
342 * doc/install.texi: Document them.
343 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
344 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
345 <WITH_DOUBLE_COMPARISON>: New built-in defines.
346 * doc/invoke.texi (AVR Built-in Macros): Document them.
347 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
348 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
349 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
350
351 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
352
353 PR target/93188
354 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
355 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
356 when only building rm-profile multilibs.
357
358 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
359
360 PR ipa/93084
361 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
362 lattice for a value to check.
363 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
364 finite propagation in self-recursive scc.
365
366 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
367
368 * ipa-inline.c (caller_growth_limits): Restore the AND.
369
370 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
371
372 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
373 (VEC_ALLREG_ALT): New iterator.
374 (VEC_ALLREG_INT_MODE): New iterator.
375 (VCMP_MODE): New iterator.
376 (VCMP_MODE_INT): New iterator.
377 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
378 (vec_cmp<u>v64qidi): New define_expand.
379 (vec_cmp<mode>di_exec): Use VCMP_MODE.
380 (vec_cmpu<mode>di_exec): New define_expand.
381 (vec_cmp<u>v64qidi_exec): New define_expand.
382 (vec_cmp<mode>di_dup): Use VCMP_MODE.
383 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
384 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
385 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
386 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
387 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
388 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
389 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
390 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
391 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
392 this.
393 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
394 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
395
396 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
397
398 * config/gcn/constraints.md (DA): Update description and match.
399 (DB): Likewise.
400 (Db): New constraint.
401 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
402 parameter.
403 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
404 Implement 'Db' mixed immediate type.
405 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
406 (addcv64si3_dup<exec_vcc>): Delete.
407 (subcv64si3<exec_vcc>): Rework constraints.
408 (addv64di3): Rework constraints.
409 (addv64di3_exec): Rework constraints.
410 (subv64di3): Rework constraints.
411 (addv64di3_dup): Delete.
412 (addv64di3_dup_exec): Delete.
413 (addv64di3_zext): Rework constraints.
414 (addv64di3_zext_exec): Rework constraints.
415 (addv64di3_zext_dup): Rework constraints.
416 (addv64di3_zext_dup_exec): Rework constraints.
417 (addv64di3_zext_dup2): Rework constraints.
418 (addv64di3_zext_dup2_exec): Rework constraints.
419 (addv64di3_sext_dup2): Rework constraints.
420 (addv64di3_sext_dup2_exec): Rework constraints.
421
422 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
423
424 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
425 existing target checks.
426
427 2020-01-07 Richard Biener <rguenther@suse.de>
428
429 * doc/install.texi: Bump minimal supported MPC version.
430
431 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
432
433 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
434 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
435 * langhooks.c: Include stor-layout.h.
436 (lhd_simulate_enum_decl): New function.
437 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
438 handle_arm_sve_h for the LTO frontend.
439 (register_vector_type): Cope with null returns from pushdecl.
440
441 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
442
443 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
444 (aarch64_sve::nvectors_if_data_type): Replace with...
445 (aarch64_sve::builtin_type_p): ...this.
446 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
447 (find_vector_type): Delete.
448 (add_sve_type_attribute): New function.
449 (lookup_sve_type_attribute): Likewise.
450 (register_builtin_types): Add an "SVE type" attribute to each type.
451 (register_tuple_type): Likewise.
452 (svbool_type_p, nvectors_if_data_type): Delete.
453 (mangle_builtin_type): Use lookup_sve_type_attribute.
454 (builtin_type_p): Likewise. Add an overload that returns the
455 number of constituent vector and predicate registers.
456 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
457 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
458 instead of aarch64_sve_argument_p.
459 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
460 (aarch64_pass_by_reference): Likewise.
461 (aarch64_function_value_1): Likewise.
462 (aarch64_return_in_memory): Likewise.
463 (aarch64_layout_arg): Likewise.
464
465 2020-01-07 Jakub Jelinek <jakub@redhat.com>
466
467 PR tree-optimization/93156
468 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
469 least significant bit is always clear.
470
471 PR tree-optimization/93118
472 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
473 simplifier with two intermediate conversions.
474
475 2020-01-07 Martin Liska <mliska@suse.cz>
476
477 * params.opt: Add Optimization for various parameters.
478
479 2020-01-07 Martin Liska <mliska@suse.cz>
480
481 PR ipa/83411
482 * doc/extend.texi: Explain cloning for target_clone
483 attribute.
484
485 2020-01-07 Martin Liska <mliska@suse.cz>
486
487 PR tree-optimization/92860
488 * common.opt: Make in Optimization option
489 as it is affected by -O0, which is an Optimization
490 option.
491 * tree-inline.c (tree_inlinable_function_p):
492 Use opt_for_fn for warn_inline.
493 (expand_call_inline): Likewise.
494
495 2020-01-07 Martin Liska <mliska@suse.cz>
496
497 PR tree-optimization/92860
498 * common.opt: Make flag_ree as optimization
499 attribute.
500
501 2020-01-07 Martin Liska <mliska@suse.cz>
502
503 PR optimization/92860
504 * params.opt: Mark param_min_crossjump_insns with Optimization
505 keyword.
506
507 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
508
509 * ipa-inline-analysis.c (estimate_growth): Fix typo.
510 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
511
512 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
513
514 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
515 helper function to return the valid addressing formats for a given
516 hard register and mode.
517 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
518
519 * config/rs6000/constraints.md (Q constraint): Update
520 documentation.
521 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
522 documentation.
523
524 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
525 Use 'Q' for doing vector extract from memory.
526 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
527 memory.
528 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
529 doing vector extract from memory.
530 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
531 extract from memory.
532
533 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
534 for the offset being 34-bits when -mcpu=future is used.
535
536 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
537
538 * config/pa/pa.md: Revert change to use ordered_comparison_operator
539 instead of cmpib_comparison_operator in cmpib patterns.
540 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
541 of cmpib_comparison_operator. Revise comment.
542
543 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
544
545 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
546 in an IFN_DIV_POW2 node to be equal.
547
548 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
549
550 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
551 (vect_check_scalar_mask): ...this.
552 (vectorizable_store, vectorizable_load): Update call accordingly.
553 (vectorizable_call): Use vect_check_scalar_mask to check the mask
554 argument in calls to conditional internal functions.
555
556 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
557
558 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
559 '0' matching inputs.
560 (subv64di3_exec): Likewise.
561
562 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
563
564 * config/mips/mips.c (vr4130_align_insns): Fix typo.
565 * doc/md.texi (movstr): Likewise.
566
567 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
568
569 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
570 clobber.
571
572 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
573
574 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
575 Depend on...
576 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
577 to a temporary file and use move-if-change to update the real
578 file where necessary.
579
580 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
581
582 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
583 rather than Upa for CPY /M.
584
585 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
586
587 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
588 immediate.
589
590 2020-01-06 Martin Liska <mliska@suse.cz>
591
592 PR tree-optimization/92860
593 * params.opt: Mark param_max_combine_insns with Optimization
594 keyword.
595
596 2020-01-05 Jakub Jelinek <jakub@redhat.com>
597
598 PR target/93141
599 * config/i386/i386.md (SWIDWI): New mode iterator.
600 (DWI, dwi): Add TImode variants.
601 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
602 <general_hilo_operand> instead of <general_operand>. Use
603 CONST_SCALAR_INT_P instead of CONST_INT_P.
604 (*addv<mode>4_1): Rename to ...
605 (addv<mode>4_1): ... this.
606 (QWI): New mode attribute.
607 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
608 define_insn_and_split patterns.
609 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
610 patterns.
611 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
612 <general_hilo_operand> instead of <general_operand>.
613 (*addcarry<mode>_1): New define_insn.
614 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
615
616 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
617
618 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
619 Use "call" instead of "set".
620
621 2020-01-03 Martin Jambor <mjambor@suse.cz>
622
623 PR ipa/92917
624 * ipa-cp.c (print_all_lattices): Skip functions without info.
625
626 2020-01-03 Jakub Jelinek <jakub@redhat.com>
627
628 PR target/93089
629 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
630 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
631 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
632 for 'e' simd clones.
633
634 PR target/93089
635 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
636 entry.
637 (mprefer-vector-width=): Add Save.
638 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
639 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
640 (ix86_debug_options, ix86_function_specific_print): Adjust
641 ix86_target_string callers.
642 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
643 (ix86_valid_target_attribute_tree): Likewise.
644 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
645 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
646 ix86_target_string caller.
647
648 PR target/93110
649 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
650 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
651 instead of gen_int_shift_amount + convert_modes.
652
653 PR rtl-optimization/93088
654 * loop-iv.c (find_single_def_src): Punt after looking through
655 128 reg copies for regs with single definitions. Move definitions
656 to first uses.
657
658 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
659
660 * config/arm/arm-c.c (arm_cpu_builtins): Define
661 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
662 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
663 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
664 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
665 * config/arm/arm-tables.opt: Regenerated.
666 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
667 arm_arch_i8mm and arm_arch_bf16 when enabled.
668 * config/arm/arm.h (TARGET_I8MM): New macro.
669 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
670 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
671 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
672 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
673 (v8_6_a_simd_variants): New.
674 (v8_*_a_simd_variants): Add i8mm and bf16.
675 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
676
677 2020-01-02 Jakub Jelinek <jakub@redhat.com>
678
679 PR ipa/93087
680 * predict.c (compute_function_frequency): Don't call
681 warn_function_cold on functions that already have cold attribute.
682
683 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
684
685 PR target/67834
686 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
687 COMDAT group function labels in .data.rel.ro.local section.
688 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
689
690 PR target/93111
691 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
692 comparison_operator in B and S integer comparisons. Likewise, use
693 ordered_comparison_operator instead of cmpib_comparison_operator in
694 cmpib patterns.
695 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
696
697 2020-01-01 Jakub Jelinek <jakub@redhat.com>
698
699 Update copyright years.
700
701 * gcc.c (process_command): Update copyright notice dates.
702 * gcov-dump.c (print_version): Ditto.
703 * gcov.c (print_version): Ditto.
704 * gcov-tool.c (print_version): Ditto.
705 * gengtype.c (create_file): Ditto.
706 * doc/cpp.texi: Bump @copying's copyright year.
707 * doc/cppinternals.texi: Ditto.
708 * doc/gcc.texi: Ditto.
709 * doc/gccint.texi: Ditto.
710 * doc/gcov.texi: Ditto.
711 * doc/install.texi: Ditto.
712 * doc/invoke.texi: Ditto.
713
714 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
715
716 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
717 summary.
718
719 2020-01-01 Jakub Jelinek <jakub@redhat.com>
720
721 PR tree-optimization/93098
722 * match.pd (popcount): For shift amounts, use integer_onep
723 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
724 tests. Make sure that precision is power of two larger than or equal
725 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
726 instead of ULL suffixed constants. Formatting fixes.
727 \f
728 Copyright (C) 2020 Free Software Foundation, Inc.
729
730 Copying and distribution of this file, with or without modification,
731 are permitted in any medium without royalty provided the copyright
732 notice and this notice are preserved.