From: rsandifo Date: Sat, 13 Jan 2018 18:01:14 +0000 (+0000) Subject: Remove unnecessary temporary in tree-if-conv.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b220cfa3a6a75cfe9838993f779439f825515d2;p=thirdparty%2Fgcc.git Remove unnecessary temporary in tree-if-conv.c The call to ifc_temp_var in predicate_mem_writes become redundant in r230099. Before that point the mask was calculated using fold_build_*s, but now it's calculated by gimple_build and so is already a valid gimple value. As it stands, the call forces an SSA_NAME-to-SSA_NAME copy to be created, whereas SLP expects that such redundant copies have already been eliminated. 2018-01-13 Richard Sandiford gcc/ * tree-if-conv.c (predicate_mem_writes): Remove redundant call to ifc_temp_var. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256638 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d855951151a5..2edd769c5882 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-01-13 Richard Sandiford + + * tree-if-conv.c (predicate_mem_writes): Remove redundant + call to ifc_temp_var. + 2018-01-13 Richard Sandiford Alan Hayward David Sherwood diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 4f849537beef..cac3fd75d548 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -2261,7 +2261,6 @@ predicate_mem_writes (loop_p loop) } gsi_insert_seq_before (&gsi, stmts, GSI_SAME_STMT); - mask = ifc_temp_var (TREE_TYPE (mask), mask, &gsi); /* Save mask and its size for further use. */ vect_sizes.safe_push (bitsize); vect_masks.safe_push (mask);