]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/gimple.c
Add a gimple_move_vops helper function
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 5 Aug 2019 16:46:48 +0000 (16:46 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 5 Aug 2019 16:46:48 +0000 (16:46 +0000)
commit779724a5913b4e6a7ccccc0b8b415a772144a067
tree1409cb8368cb4219160ec5c673f1c7bd93e5c214
parent09eff11aa4a1df86a5f6c5ac8e035e8de0039dba
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
12 files changed:
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple.c
gcc/gimple.h
gcc/ipa-param-manipulation.c
gcc/tree-call-cdce.c
gcc/tree-if-conv.c
gcc/tree-ssa-ccp.c
gcc/tree-ssa-math-opts.c
gcc/tree-ssa-propagate.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.c