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] fix vectorizer dump print


In response to http://gcc.gnu.org/ml/gcc/2007-12/msg00459.html, this patch:

- removes the confusing printing "not vectorized: vectorization may not be
profitable" from REPORT_UNVECTORIZED_LOOPS
- instead print "vectorization may not be profitable" under a new verbosity
level REPORT_COST
- change (hopefully all) other cost-model printings to be printed under
REPORT_COST

Bootstrapped with vectorization enabled on powerp64-linux, and passed full
regression testing.
Also bootstrapped on i686-linux and passed full regression testing.
To be committed to mainline.

dorit

        * tree-vectorizer.h (verbosity_levels): Add new verbosity level
        REPORT_COST.
        * tree-vect-transform.c (vect_estimate_min_profitable_iters):
Change
        verbosity level to REPORT_COST.
        (vect_model_reduction_cost): Likewise.
        (vect_model_induction_cost): Likewise.
        (vect_model_simple_cost): likewise.
        (vect_model_store_cost): likewise..
        (vect_model_load_cost): likewise...
        (conservative_cost_threshold): Likewise. Remove print.

        * gcc.dg/tree-ssa/gen-vect-2.c: Change verbosity level to 4.:
        * gcc.dg/tree-ssa/gen-vect-32.c: Likewise
        * gcc.dg/tree-ssa/gen-vect-25.c: Likewise
        * gcc.dg/tree-ssa/gen-vect-26.c: Likewise
        * gcc.dg/tree-ssa/gen-vect-28.c: Likewise

(See attached file: printfix.txt)

Attachment: printfix.txt
Description: Text document


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