> Am 18.07.2025 um 20:06 schrieb Robin Dapp <rdapp....@gmail.com>:
> 
> 
>> 
>> Can the risc-v people try to sort out this up to a point
>> where I can just s/STMT_VINFO_TYPE/SLP_TREE_TYPE there?
> 
> I think for us this mainly (only?) concerns the dynamic LMUL heuristic.
> Currently we go through all vectorized instructions of the loop's blocks,
> lookup the stmt_vec_info and then get its type.  That's for determining
> the vector register pressure and catching some corner cases.

There is currently no way to mimic this, the original idea would have been that 
you record the per stmt info during add_stmt cost hook time and then process 
that data at finish_cost time.

With SLP you could in theory walk the SLP graph via the instances vector of the 
vinfo.  But I’m not sure what exactly you compute at the moment and how that 
even makes sense with SLP in mind.  You can of course compute register pressure 
of the original scalar code, but that doesn’t seem like what you are doing.

Richard 

> 
> I'll look into it.
> 
> --
> Regards
> Robin
> 

Reply via email to