This is the mail archive of the gcc@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]

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


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