This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Don't allow constants of different types in scalar statements packed into
the same SLP group.
For example,
for i
ptr->a = 0;
ptr->b = 1;
ptr->c = NULL;
ptr->d = NULL;
should not get SLPed. Otherwise, vector that contains constants of
different types is created: {0, 1, 0B, 0B} in the above example.
Bootstrapped and tested on ppc-linux and i386-linux.
Committed to autovect branch.
Ira
ChangeLog:
* tree-vect-analyze.c (vect_get_and_check_slp_defs): Add new
argument.
Check that constant operands are of the same type.
(vect_build_slp_tree): Update arguments of
vect_get_and_check_slp_defs.
(See attached file: consts.txt)Attachment:
consts.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |