hi,
-
Now, the default value of VectorInsertExtractBaseCost is 3, while it usual can be expressed with a mov, such as mov d0, v0.d[1] for double.
llvm-project/insert-extract.ll at f3202b9da663fb618ea4e3dc75a1352bdb2f969a · llvm/llvm-project · GitHub -
And even more, a load instruction is estimated cost 1, much smaller than the insertelement/extractelement ?
- So why the cost of vector extract cost is so high? or is there some cases need many instructions to implement the vector extract ?