[AArch64][Cost Modlel] Why the cost of vector extract cost so high?

hi,

  • So why the cost of vector extract cost is so high? or is there some cases need many instructions to implement the vector extract ?

See ⚙ D142359 [TTI][AArch64] Cost model vector INS instructions for some additional context.

@nilanjana87 is currently looking into adjusting the cost for some CPUs, but as mentioned in ⚙ D142359 [TTI][AArch64] Cost model vector INS instructions I think this requires careful testing as it can have unintended knock-on effects triggering more SLP vectorization for example, which in turn can expose other weaknesses of the cost model.

Note that this is on AArch64 only, might be good to adjust the title to make this clear.

Thanks for your comment, added AArch64 for this title