Re: RFC: vectorizer cost model

2007-03-08 Thread Ayal Zaks
> > > "Linthicum, Tony" <[EMAIL PROTECTED]> writes: ... > > > * What is the best way to access target level cost information? > > > > I'm sure you know that the loop code does this by generating RTL and > > asking for the cost of it (computation_cost in tree-ssa-loop-ivopts.c). > > Which should

Re: RFC: vectorizer cost model

2007-02-20 Thread Joern Rennecke
> 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. I think that this should be considwered quite common. We should base the weights of the costs of the two blocks on branch

Re: RFC: vectorizer cost model

2007-02-16 Thread Zdenek Dvorak
Hello, > "Linthicum, Tony" <[EMAIL PROTECTED]> writes: > > > * Would using a tree-level API like estimate_num_insns be superior > > to using a simple cost of 1 per statment? > > For this sort of calculation, I would guess not. I would imagine that > on most processors the cost of a single

Re: RFC: vectorizer cost model

2007-02-16 Thread Ian Lance Taylor
"Linthicum, Tony" <[EMAIL PROTECTED]> writes: > * Would using a tree-level API like estimate_num_insns be superior > to using a simple cost of 1 per statment? For this sort of calculation, I would guess not. I would imagine that on most processors the cost of a single vector instruction is