The patch https://reviews.llvm.org/D34032 added exploitation for vector extract with variable index instructions. Under the case of extracting word element 1, using the MFVSRWZ is a better option since it does not requite an extra gpr input and requires no extra shuffles. Also added patterns for extracting to i32 rather than i64.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Other than the inline comment, LGTM
lib/Target/PowerPC/PPCInstrVSX.td | ||
---|---|---|
1909 ↗ | (On Diff #116691) | I just realized that we test different things for Power9 and pre-Power9. This should probably be fixed on the commit. |