[llvm] [RISCV][GISel] Use CCValAssign::getCustomReg for converting f16/f32<->GPR. (PR #105700)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 09:53:05 PDT 2024


================
@@ -246,16 +256,29 @@ struct RISCVIncomingValueHandler : public CallLowering::IncomingValueHandler {
   unsigned assignCustomValue(CallLowering::ArgInfo &Arg,
                              ArrayRef<CCValAssign> VAs,
                              std::function<void()> *Thunk) override {
+    const CCValAssign &VA = VAs[0];
+    if ((VA.getLocVT() == MVT::i64 && VA.getValVT() == MVT::f32) ||
+        (VA.getLocVT().isInteger() && VA.getValVT() == MVT::f16)) {
----------------
topperc wrote:

I'll do it as a separate patch. I don't think it belongs in this one.

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


More information about the llvm-commits mailing list