[llvm] [RISCV][GISel] Instruction select for vector G_ADD, G_SUB (PR #74114)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 10:54:49 PST 2023


================
@@ -785,6 +785,22 @@ const TargetRegisterClass *RISCVInstructionSelector::getRegClassForTypeOnBank(
   }
 
   // TODO: Non-GPR register classes.
+
+  if (RB.getID() == RISCV::VRBRegBankID) {
+    if (Ty.getSizeInBits().getKnownMinValue() <= 64) {
----------------
topperc wrote:

Drop curly braces around single lines.

https://github.com/llvm/llvm-project/pull/74114


More information about the llvm-commits mailing list