[PATCH] D158086: [RISCV] Check floating point vector instruction with SEW=64 is valid when vsetvl insertion

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 11:50:28 PDT 2023


reames added a comment.

I would suggest an initial patch which simply disabled the problematic logic for zve64f.  Adding the additional inference state can be a separate follow on.  In particularly, you currently don't have test coverage for the optimization bits.



================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:1534
   MRI = &MF.getRegInfo();
+  hasVInstructionsF64 = ST.hasVInstructionsF64();
 
----------------
Instead of using a global, please just check the property of the subtarget as the call sites.  Much easier to read.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158086



More information about the llvm-commits mailing list