[SLP]Improve costs in computeExtractCost() to avoid crash after D158449.

Need to consider the length of the original vector for extractelements,
not the length, matched number of the scalars. It fixes 2 issues: 1)
improves cost estimation; 2) Fixes crashes after D158449.

GitOrigin-RevId: 019aee832768b0704048905cd8ce20299e7e0b25
15 files changed