The PPC vector cost model values for insert/extract element reflect older processors that lacked vector insert/extract instructions and move-to/move-from VSR instructions. Update getVectorInstrCost to give appropriate values for when the newer instructions are present.
Some comments related to testcases.
Can we have another NFC patch to rename the check-prefixes to avoid confusion.
Maybe CHECK-P7, CHECK-P8LE, CHECK-P9BE, CHECK-P9LE would be better?
Also maybe use multiple prefixes to check common ones, so that we don't need too many duplicates.
Maybe it would be better to move all insert/extract to insert_extract.ll?
And also rename this file to something like vector_unit.ll other than p9.ll?