[llvm-dev] getScalarizationOverhead()

Jonas Paulsson via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 20 04:11:47 PST 2017


Hi,

I wonder why getScalarizationOverhead() does not take into account the 
number of operands of the instruction? This should influence the number 
of extracts needed, so instead of

Scalarization cost = NumEls * (insert + extract)

it would be better to do

Scalarization cost = NumEls * (insert + (extract * numOperands))


/ Jonas



More information about the llvm-dev mailing list