[patch] fix vectorizer dump print

Dorit Nuzman DORIT@il.ibm.com
Mon Dec 17 20:55:00 GMT 2007


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)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: printfix.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071217/c871d61b/attachment.txt>


More information about the Gcc-patches mailing list