summaryrefslogtreecommitdiff
path: root/gcc/ipa-split.c
diff options
context:
space:
mode:
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-02 18:31:47 +0000
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-02 18:31:47 +0000
commitbc83f58704de603dcd6863a3e2f9dcc994b6c14f (patch)
treeda6f6fbaadc0e51a49a926d72b946f5ff6ad2d7e /gcc/ipa-split.c
parent87ded6872697a5b3b114b23be7b41cac398df201 (diff)
downloadgcc-bc83f58704de603dcd6863a3e2f9dcc994b6c14f.tar.gz
PR middle-end/50260
* ipa-split.c (split_function): Call add_referenced_var. * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann. (cond_if_else_store_replacement_1): Ditto. * tree-ssa-pre.c (get_representative_for): Ditto. (create_expression_by_pieces): Ditto. (insert_into_preds_of_block): Ditto. * tree-sra.c (create_access_replacement): Ditto. (get_replaced_param_substitute): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178489 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r--gcc/ipa-split.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index 4373a1b423e..d5e5c69b5d8 100644
--- a/gcc/ipa-split.c
+++ b/gcc/ipa-split.c
@@ -988,6 +988,9 @@ split_function (struct split_point *split_point)
arg = gimple_default_def (cfun, parm);
if (!arg)
{
+ /* This parm wasn't used up to now, but is going to be used,
+ hence register it. */
+ add_referenced_var (parm);
arg = make_ssa_name (parm, gimple_build_nop ());
set_default_def (parm, arg);
}