[PATCH] D157294: [RISCV] Lower unary zvbb ops for fixed vectors

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 09:53:17 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:5111
     MVT VT = Op.getSimpleValueType();
+    if (VT.isFixedLengthVector() && Subtarget.hasStdExtZvbb())
+      return lowerToScalableOp(Op, DAG);
----------------
The `Subtarget.hasStdExtZvbb()` check could be an assert.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157294



More information about the llvm-commits mailing list