diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-08-05 16:46:48 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-08-05 16:46:48 +0000 |
commit | 779724a5913b4e6a7ccccc0b8b415a772144a067 (patch) | |
tree | 1409cb8368cb4219160ec5c673f1c7bd93e5c214 /gcc/tree-vectorizer.c | |
parent | 09eff11aa4a1df86a5f6c5ac8e035e8de0039dba (diff) | |
download | gcc-779724a5913b4e6a7ccccc0b8b415a772144a067.zip gcc-779724a5913b4e6a7ccccc0b8b415a772144a067.tar.gz gcc-779724a5913b4e6a7ccccc0b8b415a772144a067.tar.bz2 |
Add a gimple_move_vops helper function
I needed to add another instance of this idiom, so thought it'd
be worth having a helper function.
2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* gimple.h (gimple_move_vops): Declare.
* gimple.c (gimple_move_vops): New function
* gimple-fold.c (replace_call_with_call_and_fold)
(gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
(gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
(gimple_fold_call): Use it.
* ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
* tree-call-cdce.c (use_internal_fn): Likewise.
* tree-if-conv.c (predicate_load_or_store): Likewise.
* tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
* tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
* tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
(update_call_from_tree): Likewise.
* tree-vect-stmts.c (vectorizable_load): Likewise.
* tree-vectorizer.c (adjust_simduid_builtins): Likewise.
From-SVN: r274117
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r-- | gcc/tree-vectorizer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 173e6b5..dc18152 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -289,10 +289,7 @@ adjust_simduid_builtins (hash_table<simduid_to_vf> *htab) : BUILT_IN_GOMP_ORDERED_END); gimple *g = gimple_build_call (builtin_decl_explicit (bcode), 0); - tree vdef = gimple_vdef (stmt); - gimple_set_vdef (g, vdef); - SSA_NAME_DEF_STMT (vdef) = g; - gimple_set_vuse (g, gimple_vuse (stmt)); + gimple_move_vops (g, stmt); gsi_replace (&i, g, true); continue; } |