diff options
author | Martin Jambor <mjambor@suse.cz> | 2017-07-31 14:52:19 +0000 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2017-07-31 14:52:19 +0000 |
commit | 7e05bab54f745defb749670b8c84eaf513c0b214 (patch) | |
tree | 49524df297e69390449c3ef5037b2360d14c7b1a /gcc/gimple-fold.c | |
parent | 77b800ca8b1cca32db99261ade36bf5f0eafaff8 (diff) |
Merged trunk revision 250739 into the hsa branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/hsa@250744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index a00c2c88713..d82d0606cbe 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -571,7 +571,7 @@ gimplify_and_update_call_from_tree (gimple_stmt_iterator *si_p, tree expr) /* Replace the call at *GSI with the gimple value VAL. */ -static void +void replace_call_with_value (gimple_stmt_iterator *gsi, tree val) { gimple *stmt = gsi_stmt (*gsi); @@ -607,9 +607,10 @@ replace_call_with_call_and_fold (gimple_stmt_iterator *gsi, gimple *repl) && TREE_CODE (gimple_vdef (stmt)) == SSA_NAME) { gimple_set_vdef (repl, gimple_vdef (stmt)); - gimple_set_vuse (repl, gimple_vuse (stmt)); SSA_NAME_DEF_STMT (gimple_vdef (repl)) = repl; } + if (gimple_vuse (stmt)) + gimple_set_vuse (repl, gimple_vuse (stmt)); gsi_replace (gsi, repl, false); fold_stmt (gsi); } @@ -4244,7 +4245,7 @@ maybe_canonicalize_mem_ref_addr (tree *t) TREE_TYPE (*t), TREE_OPERAND (TREE_OPERAND (*t, 0), 0), TYPE_SIZE (TREE_TYPE (*t)), - wide_int_to_tree (sizetype, idx)); + wide_int_to_tree (bitsizetype, idx)); res = true; } } |