aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/testing
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-09-14 16:30:54 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-09-14 16:30:54 +0000
commitca09abcb399bcb8cddbda68c75e702cc8989a6ca (patch)
tree3ba3014d56b97b588ffff4dc42c54a581319a315 /libgo/go/testing
parente8f142e28262a5048c6f40f4bfb6a612d3da55f0 (diff)
downloadgcc-ca09abcb399bcb8cddbda68c75e702cc8989a6ca.zip
gcc-ca09abcb399bcb8cddbda68c75e702cc8989a6ca.tar.gz
gcc-ca09abcb399bcb8cddbda68c75e702cc8989a6ca.tar.bz2
Add a vect_worthwhile_without_simd_p helper routine
The vectoriser sometimes considers lowering "vector" operations into N scalar word operations. This N needs to be fixed at compile time, so the condition guarding it needs to change when variable-lengh vectors are added. This patch puts the condition into a helper routine so that there's only one place to update. 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> gcc/ * tree-vectorizer.h (vect_min_worthwhile_factor): Delete. (vect_worthwhile_without_simd_p): Declare. * tree-vect-loop.c (vect_worthwhile_without_simd_p): New function. (vectorizable_reduction): Use it. * tree-vect-stmts.c (vectorizable_shift): Likewise. (vectorizable_operation): Likewise. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r252765
Diffstat (limited to 'libgo/go/testing')
0 files changed, 0 insertions, 0 deletions