[PATCH] D95234: [RISCV] Define different pseudo instructions for different FPR.

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 01:46:47 PST 2021


frasercrmck added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td:4195
+            (!cast<Instruction>("PseudoVFMV_V_F_" #
+                                !cond(!eq(fvti.Scalar, f16): "F16_",
+                                      !eq(fvti.Scalar, f32): "F32_",
----------------
How come you're not using `GetScalarSuffix` in these cases too?


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td:42
 
+// We only model FPR32 for V instructions in RISCVInstrInfoV.td.
+// FP16/FP32/FP64 registers are alias each other. Convert FPR16 and FPR64
----------------
craig.topper wrote:
> Please mark this with a FIXME to cleanup. Fraser or I can take care of it as a follow up.
Yeah, no problem, I can take a look.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95234



More information about the llvm-commits mailing list