[PATCH] D120899: [RISCV] Fix vslide1up/down intrinsics overflow bug for SEW=64 on RV32

Kito Cheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 05:29:45 PST 2022


kito-cheng added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:4670
+      } else if (AVLInt >= 2 * MaxVLMAX) {
+        I32VL = DAG.getConstant(2 * MaxVLMAX, DL, XLenVT);
+      } else {
----------------
Maybe you just using vlmax (`vsetvli any_tmp_reg, x0, e32, *`) here instead of `2 * MaxVLMAX`? then you just need a vsetvli here.


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

https://reviews.llvm.org/D120899



More information about the llvm-commits mailing list