Advertisement
prat3492

Untitled

Sep 22nd, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.95 KB | None | 0 0
  1.      /* Cost model #1 - honor --param vect-max-peeling-for-alignment.  */
  2.  
  3.       if (do_peeling)
  4.         {
  5.           unsigned max_allowed_peel
  6.             = PARAM_VALUE (PARAM_VECT_MAX_PEELING_FOR_ALIGNMENT);
  7.           if (max_allowed_peel != (unsigned)-1)
  8.             {
  9.               unsigned max_peel = npeel;
  10.               if (max_peel == 0)
  11.                 {
  12.                   gimple *dr_stmt = DR_STMT (dr0);
  13.                   stmt_vec_info vinfo = vinfo_for_stmt (dr_stmt);
  14.                   tree vtype = STMT_VINFO_VECTYPE (vinfo);
  15.                   max_peel = TYPE_VECTOR_SUBPARTS (vtype) - 1;
  16.                 }
  17.               if (max_peel > max_allowed_peel)
  18.                 {
  19.                   do_peeling = false;
  20.                   if (dump_enabled_p ())
  21.                     dump_printf_loc (MSG_NOTE, vect_location,
  22.                         "Disable peeling, max peels reached: %d\n", max_peel);
  23.                 }
  24.             }
  25.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement