OSDN Git Service

* tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 2011 12:09:57 +0000 (12:09 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 2011 12:09:57 +0000 (12:09 +0000)
commitb57a47d0966219cd1647e3439f77cd48d6151bb2
treebb564b74a958ecf273bb7159475fb0ca7741bf8a
parentd19c56df5b0c1d715190be70ac33b3161a3a046a
* tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
Handle vectorization of SLP calls.
(vect_analyze_stmt): Adjust caller, add call to it for SLP too.
(vect_transform_stmt): Adjust vectorizable_call caller, remove
assertion.
* tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
with op_idx 3.
(vect_build_slp_tree): Allow CALL_EXPR.

* lib/target-supports.exp (check_effective_target_vect_call_sqrtf,
check_effective_target_vect_call_copysignf,
check_effective_target_vect_call_lrint): New procedures.
* gcc.dg/vect/vect.exp: Run fast-math-bb-slp* tests using
$VECT_SLP_CFLAGS with -ffast-math.
* gcc.dg/vect/fast-math-vect-call-1.c: New test.
* gcc.dg/vect/fast-math-vect-call-2.c: New test.
* gcc.dg/vect/fast-math-bb-slp-call-1.c: New test.
* gcc.dg/vect/fast-math-bb-slp-call-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181157 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect.exp
gcc/testsuite/lib/target-supports.exp
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c