Converts concat_vectors(Vd, trunc(smin(smax Vm, -2^n), 2^n-1) to sqxtn2(Vd, Vm). Deliberately not handling v2i64->v2i32 as the min/max nodes are not legal (same as https://reviews.llvm.org/D103263).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/CodeGen/AArch64/sqxtn2.ll | ||
---|---|---|
4 ↗ | (On Diff #395659) | Will rename the file to arm64-sqxtn2-combine.ll for consistency with the other patches. |
Comment Actions
LGTM
llvm/lib/Target/AArch64/AArch64InstrInfo.td | ||
---|---|---|
4382 | Please add a comment describing the pattern that we are matching would be good, like the patterns above (it would help with reading "magic constants" VImm7F etc.) |
Please add a comment describing the pattern that we are matching would be good, like the patterns above (it would help with reading "magic constants" VImm7F etc.)