1. 13 Apr, 2012 1 commit
  2. 12 Apr, 2012 14 commits
    • re PR target/52828 (powerpc -m32 -Os writes register saves below stack) · e8e029df
      	PR target/52828
      	* config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
      	tie regs on destination of sets.  Delete forward declaration.
      	(rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
      	(rs6000_emit_prologue): Likewise.
      	(rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
      	and gen_stack_tie.
      	(is_mem_ref): Use tie_operand to recognise stack ties.
      	* config/rs6000/predicates.md (tie_operand): New.
      	* config/rs6000/rs6000.md (restore_stack_block): Generate new
      	stack tie rtl.
      	(restore_stack_nonlocal): Likewise.
      	(stack_tie): Update.
      	(frame_tie): Delete.
      
      From-SVN: r186397
      Alan Modra committed
    • tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to… · 1ede5f2c
      tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to HOST_WIDE_INT_PRINT_DEC in format strings.
      
      2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
      	HOST_WIDE_INT_PRINT_DEC in format strings.
      
      From-SVN: r186393
      Bill Schmidt committed
    • Fix PR52822 (stable_partition move-assigns object to itself) by scanning for... · 2fc9b37d
      Fix PR52822 (stable_partition move-assigns object to itself) by
      scanning for the first value that doesn't match the predicate before
      starting to rearrange values.
      
      2012-04-03   Jeffrey Yasskin  <jyasskin@google.com>
      
      	PR libstdc++/52822
      	* include/bits/stl_algo.h (__find_if_not): Expose in
      	C++98 mode.
      	(__find_if_not_n): Like __find_if_not, but works on and updates a
      	counted range instead of a bounded range.
      	(stable_partition): Guarantee !__pred(*__first) in call to
      	__stable_partition_adaptive() or __inplace_stable_partition().
      	(__stable_partition_adaptive): Use new precondition to avoid
      	moving/copying objects onto themselves.  Guarantee new
      	precondition to recursive calls.
      	(__inplace_stable_partition): Use new precondition to simplify
      	base case, remove __last parameter.  Guarantee new precondition to
      	recursive calls.
      	* testsuite/25_algorithms/stable_partition/moveable.cc (test02):
      	Test a sequence that starts with a value matching the predicate.
      	* testsuite/25_algorithms/stable_partition/pr52822.cc:
      	Test vectors, which have a destructive self-move-assignment.
      
      From-SVN: r186391
      Jeffrey Yasskin committed
    • Makefile.am (check_DEJAGNUnormal0): Run prettyprinters.exp. · a2547fd0
      * testsuite/Makefile.am (check_DEJAGNUnormal0): Run
      prettyprinters.exp.
      * testsuite/Makefile.in: Regenerated.
      
      From-SVN: r186389
      Andreas Schwab committed
    • re PR target/52932 (AVX2 intrinsic _mm256_permutevar8x32_ps has wrong parameter type) · 2ff5ea2d
      	PR target/52932
      	* config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
      	argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
      	* config/i386/sse.md (UNSPEC_VPERMVAR): New.
      	(UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
      	(avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
      	(avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
      	avx2_permvarv8si using VI4F_256 mode iterator.
      	* config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
      	Update builtin type to V8SF_FTYPE_V8SF_V8SI.
      	(ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
      	gen_avx2_permvarv8sf.
      	(expand_vec_perm_pshufb): Ditto.
      
      testsuite/ChangeLog:
      
      	PR target/52932
      	* gcc.target/i386/avx2-vpermps-1.c (avx2_test): Use __m256i type for
      	second function argument.
      	* gcc.target/i386/avx2-vpermps-2.c (init_permps): Update declaration.
      	(calc_permps): Update declaration.  Calculate result correctly.
      	(avx2_test): Change src2 type to union256i_d.
      	* gcc.target/i386/avx2-vpermd-2.c (calc_permd): Calculate result
      	correctly.
      
      From-SVN: r186388
      Uros Bizjak committed
    • re PR target/52775 (Change default for using FCFID instruction) · c3f8384f
      [gcc]
      2012-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/52775
      	* config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
      	the list of options to enable the FCFID instruction.
      	(TARGET_EXTRA_BUILTINS): Adjust comment.
      
      [gcc/testsuite]
      2012-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/52775
      	* gcc.target/powerpc/pr52775.c: New file.
      
      From-SVN: r186387
      Michael Meissner committed
    • re PR tree-optimization/18589 (could optimize FP multiplies better) · a6f8851e
      gcc:
      
      2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR tree-optimization/18589
      	* tree-ssa-reassoc.c (reassociate_stats): Add two fields.
      	(operand_entry): Add count field.
      	(add_repeat_to_ops_vec): New function.
      	(completely_remove_stmt): Likewise.
      	(remove_def_if_absorbed_call): Likewise.
      	(remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
      	(acceptable_pow_call): New function.
      	(linearize_expr_tree): Look for builtin pow/powi calls and add operand
      	entries with repeat counts when found.
      	(repeat_factor_d): New struct and associated typedefs.
      	(repeat_factor_vec): New static vector variable.
      	(compare_repeat_factors): New function.
      	(get_reassoc_pow_ssa_name): Likewise.
      	(attempt_builtin_powi): Likewise.
      	(reassociate_bb): Call attempt_builtin_powi.
      	(fini_reassoc): Two new calls to statistics_counter_event.
      
      gcc/testsuite:
      
      2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR tree-optimization/18589
      	* gcc.dg/tree-ssa/pr18589-1.c: New test.
      	* gcc.dg/tree-ssa/pr18589-2.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-3.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-4.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-5.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-6.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-7.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-8.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-9.c: Likewise.
      	* gcc.dg/tree-ssa/pr18589-10.c: Likewise.
      
      From-SVN: r186384
      Bill Schmidt committed
    • Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency. · 452aa9c5
      2012-04-12  Richard Guenther  <rguenther@suse.de>
      
      	* Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
      	* cgraph.h (tree_rest_of_compilation): Remove.
      	* cgraph.c (cgraph_add_new_function): Move ...
      	* cgraphunit.c (cgraph_add_new_function): ... here.
      	(tree_rest_of_compilation): Make static.
      	(cgraph_expand_function): Do not set cgraph_function_flags_ready.
      	* tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
      	gate_all_early_local_passes, execute_all_early_local_passes,
      	pass_early_local_passes, gate_all_early_optimizations,
      	pass_all_early_optimizations): Move ...
      	* passes.c (gate_all_optimizations, pass_all_optimizations,
      	gate_all_early_local_passes, execute_all_early_local_passes,
      	pass_early_local_passes, gate_all_early_optimizations,
      	pass_all_early_optimizations): ... here.
      	* tree-optimize.c (execute_free_datastructures): Remove.
      	* tree-flow.h (execute_free_datastructures): Remove.
      	* tree-optimize.c (execute_init_datastructures,
      	pass_init_datastructures): Move ...
      	* tree-ssa.c (execute_init_datastructures,
      	pass_init_datastructures): ... here.
      	* cfgexpand.c (gimple_expand_cfg): Inline-expand call to
      	execute_free_datastructures.
      
      From-SVN: r186381
      Richard Guenther committed
    • dbgcnt.def (ira_move): New counter. · acf41a74
      	* dbgcnt.def (ira_move): New counter.
      	* ira-int.h (ira_create_new_reg): Declare function.
      	(first_moveable_pseudo, last_moveable_pseudo): Declare variables.
      	* ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
      	no longer static.  All callers changed.
      	* ira.c: Include "dbgcnt.h".
      	(rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
      	move_unallocated_pseudos): New static functions.
      	(first_moveable_pseudo, last_moveable_pseudo): New global variables.
      	(pseudo_replaced_reg, pseudo_move_insn): New static variables.
      	(ira): Call find_moveable_pseudos and move_unallocated_pseudos.
      	* ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
      	to the pseudos generated in find_moveable_pseudos.
      	* Makefile.in (ira.o): Add $(DBGCNT_H).
      
      From-SVN: r186378
      Bernd Schmidt committed
    • re PR libstdc++/52942 (using std::ref with a std::unordered_map fails to compile) · b9b09214
      2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/52942
      	* include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
      	In C++11 mode do not derive from std::unary_function.
      	* include/ext/functional (identity, select1st, select2nd): Adjust.
      	* testsuite/23_containers/unordered_map/requirements/52942.cc: New.
      	* testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.
      
      From-SVN: r186375
      Paolo Carlini committed
    • re PR tree-optimization/52943 (likely wrong code bug caused by predictive commoning) · 5f1fab58
      2012-04-12  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/52943
      	* tree-chrec.h (chrec_is_positive): Remove.
      	* tree-scalar-evolution.c (chrec_is_positive): Move ...
      	* tree-data-ref.c (chrec_is_positive): ... here.  Make static.
      	Return false for a constant zero instead of negative.
      	(analyze_siv_subscript_cst_affine): Handle zero difference
      	in the initial condition explicitely.
      
      	* gcc.dg/torture/pr52943.c: New testcase.
      
      From-SVN: r186374
      Richard Guenther committed
    • tree-parloops.c (parallelize_loops): Also consult the upper bound for the number of iterations. · e5b332cd
      2012-04-12  Richard Guenther  <rguenther@suse.de>
      
      	* tree-parloops.c (parallelize_loops): Also consult the upper
      	bound for the number of iterations.
      	* tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
      	(loop_prefetch_arrays): Likewise.
      
      From-SVN: r186373
      Richard Guenther committed
    • cfgloop.h (estimated_loop_iterations_int): Ditch 'conservative' parameter. · 652c4c71
      2012-04-12  Richard Guenther  <rguenther@suse.de>
      
      	* cfgloop.h (estimated_loop_iterations_int): Ditch
      	'conservative' parameter.
      	(max_stmt_executions_int): Likewise.
      	(estimated_loop_iterations): Likewise.
      	(max_stmt_executions): Likewise.
      	(max_loop_iterations): Declare.
      	(max_loop_iterations_int): Likewise.
      	(estimated_stmt_executions): Likewise.
      	(estimated_stmt_executions_int): Likewise.
      	* tree-ssa-loop-niter.c (estimated_loop_iterations):
      	Split parts to ...
      	(max_loop_iterations): ... this.
      	(estimated_loop_iterations_int): Split parts to ...
      	(max_loop_iterations_int): ... this.
      	(max_stmt_executions_int): Split parts to ...
      	(estimated_stmt_executions_int): ... this.
      	(max_stmt_executions): Split parts to ...
      	(estimated_stmt_executions): ... this.
      	* graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
      	* predict.c (predict_loops): Likewise.
      	* tree-data-ref.c (max_stmt_executions_tree): Likewise.
      	(analyze_siv_subscript_cst_affine): Likewise.
      	(compute_overlap_steps_for_affine_1_2): Likewise.
      	(analyze_subscript_affine_affine): Likewise.
      	(init_omega_for_ddr_1): Likewise.
      	* tree-parloops.c (parallelize_loops): Likewise.
      	* tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
      	(may_eliminate_iv): Likewise.
      	* tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
      	(loop_prefetch_arrays): Likewise.
      	* tree-vrp.c (adjust_range_with_scev): Likewise.
      
      From-SVN: r186372
      Richard Guenther committed
    • Daily bump. · 0c924efa
      From-SVN: r186371
      GCC Administrator committed
  3. 11 Apr, 2012 25 commits