[PATCH] D126782: [AArch64] Look through bitcast when looking for extract_high subvector
Sam Tebbs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 6 04:00:30 PDT 2022
samtebbs accepted this revision.
samtebbs added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrFormats.td:6516-6517
- def : Pat<(v8i16 (IntOp (v8i8 (extract_high_v16i8 V128:$Rn)),
- (v8i8 (extract_high_v16i8 V128:$Rm)))),
+ def : Pat<(v8i16 (IntOp (v8i8 (extract_high_v16i8 (v16i8 V128:$Rn))),
+ (v8i8 (extract_high_v16i8 (v16i8 V128:$Rm))))),
(!cast<Instruction>(NAME#"v16i8") V128:$Rn, V128:$Rm)>;
----------------
Out of curiosity, what changes when being explicit about the operand's type?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126782/new/
https://reviews.llvm.org/D126782
More information about the llvm-commits
mailing list