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]

[patch] Vectorizer cleanup


Hi,

This patch contains several fixes that, hopefully, improve vectorizer's
code and dump printings' readability.
It also fixes PR 39129 - "too many BBs in loop" warning was changed to
"control flow in loop".

Bootstrapped with vectorization enabled on powerpc64-suse-linux and
regtested on x86_64-suse-linux.
Committed revision 148036.

Ira

ChangeLog:

      PR tree-optimization/39129
      * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
      printed message.
      (vect_do_peeling_for_loop_bound): Use
      LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
      LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
      (vect_loop_versioning): Likewise.
      (vect_create_cond_for_alias_checks): Fix indentation.
      * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
      macros.
      (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
      (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
      * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
      "control flow in loop".
      (vect_estimate_min_profitable_iters): Use
      LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
      LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
      * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
      (vect_create_data_ref_ptr): Don't mention array dimension in
printing.
      * tree-vect-stmts.c (vectorizable_store): Replace the check that the
      statement belongs to a group of strided accesses with the exact code
      check.
      (vectorizable_load): Likewise.
      * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic
block".
      (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.

(See attached file: cleanup.txt)

Attachment: cleanup.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]