Use IFN_SQRT in tree-vect-patterns.c
commit901db6c41a06e62b48bb0c7cda7e91648bf98407
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2015 18:54:36 +0000 (17 18:54 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2015 18:54:36 +0000 (17 18:54 +0000)
tree03c2b90c6bf3c9064ace36e1d8a6dbb5ad9a9db2
parentbf3657377d2ba03166760edf65c3c89c39624454
Use IFN_SQRT in tree-vect-patterns.c

In practice all targets that can vectorise sqrt define the appropriate
sqrt<mode>2 optab.  The only case where this isn't immediately obvious
is the libmass support in rs6000.c, but Mike Meissner said that it shouldn't
be exercised for sqrt.

This patch therefore uses the internal function interface instead of
going via the target hook.

Tested on x86_64-linux-gnu, aarch64-linux-gnu, arm-linux-gnueabi and
powerpc64-linux-gnu.

gcc/
* tree-vect-patterns.c: Include internal-fn.h.
(vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230490 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-vect-patterns.c