2016-05-03 Richard Biener <rguenther@suse.de> * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter default true. (gimplify_arg): Likewise. * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter, re-writing the result to a decl if required. (internal_get_tmp_var): Add allow_ssa parameter and override into_ssa with it. (get_formal_tmp_var): Adjust. (get_initialized_tmp_var): Add allow_ssa parameter. (gimplify_arg): Add allow_ssa parameter and avoid generating SSA names for the result false. (gimplify_call_expr): If the call may return twice do not gimplify parameters into SSA. (prepare_gimple_addressable): Do not allow an SSA name as temporary. (gimplify_modify_expr): Adjust assert. For noreturn calls with a SSA name LHS adjust its def. (gimplify_save_expr): Do not allow an SSA name as save-expr result. (gimplify_one_sizepos): Do not allow an SSA name as a sizepos. (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA. (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands. (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP. (optimize_target_teams): Do not allow SSA names for clause operands. (gimplify_expr): Likewise for where we mark the result addressable. * passes.def (pass_init_datastructures): Remove. * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names. (rewrite_stmt): Likewise. * tree-inline.c (initialize_cfun): Properly transfer SSA state. (replace_locals_op): Replace SSA names. (copy_gimple_seq_and_replace_locals): Init src_cfun. * gimple-low.c (lower_builtin_setjmp): Deal with SSA. * cgraph.c (release_function_body): Free CFG annotations only when we have a CFG. Simplify. * gimple-fold.c (gimplify_and_update_call_from_tree): Use force_gimple_operand instead of get_initialized_tmp_var. * tree-pass.h (make_pass_init_datastructures): Remove. * tree-ssa.c (execute_init_datastructures): Remove. (pass_data_init_datastructures): Likewise. (class pass_init_datastructures): Likewise. (make_pass_init_datastructures): Likewise. * omp-low.c (create_omp_child_function): Init SSA data structures. (grid_expand_target_grid_body): Likewise. * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA name before adding it to names_to_release. (remove_bb): Always release SSA defs. * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR before dereferencing it. * cgraphunit.c (init_lowered_empty_function): Always int SSA data structures. * tree-ssanames.c (release_defs): Remove assert that we are in SSA form. * trans-mem.c (diagnose_tm_1): Handle SSA name function. c-family/ * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not allow call args to gimplify to SSA names. * gcc.dg/pr30172-1.c: Adjust. * gcc.dg/pr63743.c: Likewise. * gcc.dg/tm/pr51696.c: Likewise. * c-c++-common/tm/safe-1.c: Likewise. * gcc.dg/tree-prof/val-prof-3.c: Likewise. * gcc.dg/plugin/self-assign-test-1.c: XFAIL case that needs CSE. * g++.dg/plugin/self-assign-test-1.C: Likewise. * g++.dg/plugin/self-assign-test-2.C: Likewise. From-SVN: r235817
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
20091013.c | Loading commit data... | |
20091221.c | Loading commit data... | |
20100125.c | Loading commit data... | |
20100519.c | Loading commit data... | |
20100524-2.c | Loading commit data... | |
20100603.c | Loading commit data... | |
20100609.c | Loading commit data... | |
20100610.c | Loading commit data... | |
20100615-2.c | Loading commit data... | |
20100615.c | Loading commit data... | |
20110216.c | Loading commit data... | |
alias-1.c | Loading commit data... | |
alias-2.c | Loading commit data... | |
asm-1.c | Loading commit data... | |
clone-1.c | Loading commit data... | |
data-1.c | Loading commit data... | |
data-2.c | Loading commit data... | |
debug-1.c | Loading commit data... | |
indirect-1.c | Loading commit data... | |
indirect-2.c | Loading commit data... | |
instrumented-mask.c | Loading commit data... | |
ipa-1.c | Loading commit data... | |
ipa-2.c | Loading commit data... | |
ipa-3.c | Loading commit data... | |
irrevocable-1.c | Loading commit data... | |
irrevocable-2.c | Loading commit data... | |
irrevocable-3.c | Loading commit data... | |
irrevocable-4.c | Loading commit data... | |
irrevocable-5.c | Loading commit data... | |
irrevocable-6.c | Loading commit data... | |
irrevocable-7.c | Loading commit data... | |
lto-1.c | Loading commit data... | |
memopt-1.c | Loading commit data... | |
memopt-10.c | Loading commit data... | |
memopt-11.c | Loading commit data... | |
memopt-12.c | Loading commit data... | |
memopt-13.c | Loading commit data... | |
memopt-15.c | Loading commit data... | |
memopt-16.c | Loading commit data... | |
memopt-2.c | Loading commit data... | |
memopt-3.c | Loading commit data... | |
memopt-4.c | Loading commit data... | |
memopt-5.c | Loading commit data... | |
memopt-6.c | Loading commit data... | |
memopt-7.c | Loading commit data... | |
memopt-8.c | Loading commit data... | |
memopt-9.c | Loading commit data... | |
memset-2.c | Loading commit data... | |
memset.c | Loading commit data... | |
nested-1.c | Loading commit data... | |
nested-2.c | Loading commit data... | |
opt-1.c | Loading commit data... | |
opt-2.c | Loading commit data... | |
pr45985.c | Loading commit data... | |
pr46567-2.c | Loading commit data... | |
pr46567.c | Loading commit data... | |
pr46654.c | Loading commit data... | |
pr47520.c | Loading commit data... | |
pr47690.c | Loading commit data... | |
pr47905.c | Loading commit data... | |
pr51472.c | Loading commit data... | |
pr51696.c | Loading commit data... | |
pr52141.c | Loading commit data... | |
pr52142.c | Loading commit data... | |
pr52173-1.c | Loading commit data... | |
pr52173-2.c | Loading commit data... | |
pr53008.c | Loading commit data... | |
pr53850.c | Loading commit data... | |
pr55401.c | Loading commit data... | |
pr56108.c | Loading commit data... | |
pr60908.c | Loading commit data... | |
pr64391.c | Loading commit data... | |
props-1.c | Loading commit data... | |
props-2.c | Loading commit data... | |
props-3.c | Loading commit data... | |
props-4.c | Loading commit data... | |
pub-safety-1.c | Loading commit data... | |
reg-promotion.c | Loading commit data... | |
tm.exp | Loading commit data... | |
unsafe.c | Loading commit data... | |
unused.c | Loading commit data... | |
vector-1.c | Loading commit data... | |
wrap-2.c | Loading commit data... | |
wrap-3.c | Loading commit data... | |
wrap-4.c | Loading commit data... |