Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Cost model #1 - honor --param vect-max-peeling-for-alignment. */
- if (do_peeling)
- {
- unsigned max_allowed_peel
- = PARAM_VALUE (PARAM_VECT_MAX_PEELING_FOR_ALIGNMENT);
- if (max_allowed_peel != (unsigned)-1)
- {
- unsigned max_peel = npeel;
- if (max_peel == 0)
- {
- gimple *dr_stmt = DR_STMT (dr0);
- stmt_vec_info vinfo = vinfo_for_stmt (dr_stmt);
- tree vtype = STMT_VINFO_VECTYPE (vinfo);
- max_peel = TYPE_VECTOR_SUBPARTS (vtype) - 1;
- }
- if (max_peel > max_allowed_peel)
- {
- do_peeling = false;
- if (dump_enabled_p ())
- dump_printf_loc (MSG_NOTE, vect_location,
- "Disable peeling, max peels reached: %d\n", max_peel);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement