[PATCH] D121139: [AArch64] TBL uses zero for out of range elements.

Sam Tebbs via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 02:29:16 PST 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/AArch64ISelLowering.cpp:9775
   SDValue Shuffle;
-  if (V2.getNode()->isUndef()) {
+  // If the V2 source if undef or zero then we can use a tbl1, as tbl1 will fill
+  // out of range values with 0s.
----------------
if -> is


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121139/new/

https://reviews.llvm.org/D121139



More information about the llvm-commits mailing list