r190495 - in /branches/cilkplus/gcc: cp/ChangeL...

bviyer@gcc.gnu.org bviyer@gcc.gnu.org
Fri Aug 17 23:24:00 GMT 2012


Author: bviyer
Date: Fri Aug 17 23:24:43 2012
New Revision: 190495

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190495
Log:
Added an optimization in G++ to vectorize cilk_for body.
2012-08-17  Balaji V. Iyer  <balaji.v.iyer@intel.com>

        * parser.c (cp_parser_postfix_expression): Added a check for empty
        current function decl.
        * cilk.c (cp_build_cilk_for_body): Added a check if loop variable type
        is of integer.  If so, then we remove an cast which helps vectorize the
        body.
        (compute_loop_var): Likewise.



Modified:
    branches/cilkplus/gcc/cp/ChangeLog.cilkplus
    branches/cilkplus/gcc/cp/cilk.c
    branches/cilkplus/gcc/cp/parser.c
    branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/cilk-for-not-1.cc



More information about the Gcc-cvs mailing list