Remove unnecessary temporary in tree-if-conv.c
commit8b220cfa3a6a75cfe9838993f779439f825515d2
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Jan 2018 18:01:14 +0000 (13 18:01 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Jan 2018 18:01:14 +0000 (13 18:01 +0000)
tree32652296bf8e2489939d82fd7f2ac997b96b6d9e
parent6cc181b3129d27407ed4013dcb1c54df2a314a77
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  <richard.sandiford@linaro.org>

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
gcc/ChangeLog
gcc/tree-if-conv.c