[PATCH] D148647: [RISCV] Fix interleave crash on unary interleaves
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 20 00:09:59 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:3297
+ int NumEltsPerOp = NumElts / 2;
+
+ int MaskRange;
----------------
I think you maybe you want
I think maybe you can do something like
```
int HalfNumElts = NumElts / 2;
return (((EvenSrc % NumElts) + HalfNumElts) <= NumElts) &&
(((OddSrc % NumElts) + HalfNumElts) <= NumElts);
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148647/new/
https://reviews.llvm.org/D148647
More information about the llvm-commits
mailing list