This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RFC: vectorizer cost model
- From: "Devang Patel" <devang dot patel at gmail dot com>
- To: tony dot linthicum at amd dot com
- Cc: "Dorit Nuzman" <DORIT at il dot ibm dot com>, "GCC Development" <gcc at gcc dot gnu dot org>
- Date: Tue, 20 Feb 2007 10:10:09 -0800
- Subject: RFC: vectorizer cost model
* How do we compare the costs of if-converted vectorized code to
it's scalar counterpart?
o It may be convenient to calculate scalar cost during if-conversion itself.
o It is possible that size of two sibling blocks (Block_A & Block_B)
does not match at the beginning of tree-ssa level if conversion.
As a first step, to stay on conservative side, it makes sense
consider the scalar cost of smaller block while calculating scalar cost.
Note, smaller block may not exist.
if (condition)
Block_A
else
Block B
-
Devang