[patch] PR tree-optimization/26359 (creating memtags during vectorization)

Dorit Nuzman DORIT@il.ibm.com
Tue Feb 21 21:41:00 GMT 2006


Pass dce-loop is removing the entire body of the loop in the attached
testcase, after the loop has been vectorized, because
is_hidden_global_store returns false for the vectorized store stmt. This is
because the new memtag we create for the new vector pointer that is used in
the vectorized store is not marked as global. This patch fixes that, and
also sets other fields in the new memtag (inspired by the function
create_sft). Is this ok?

Bootstrapped and tested on the vectorizer testcases on powerpc-linux.

ok for mainline?

thanks,
dorit

:ADDPATCH SSA:

Changelog:
        PR tree-optimization/26359
        * tree-ssa-alias.c (new_type_alias): Set fields for new tag.

testsuite/Changelog:
        PR tree-optimizations/26359
        * gcc.dg/vect/vect.exp: Compile tests prefixed with
"dump-tree-dceloop"
        with -fdump-tree-dceloop-details.
        * gcc.dg/vect/dump-tree-dceloop-pr26359.c: New test.

(See attached file: pr26359.patch.txt)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr26359.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060221/4bf1432d/attachment.txt>


More information about the Gcc-patches mailing list