[llvm] [Mips] Fix compiler crash when returning fp128 after calling a functi… (PR #117525)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 02:24:42 PST 2025


================
@@ -93,6 +93,15 @@ void MipsCCState::PreAnalyzeCallResultForF128(
   }
 }
 
+void MipsCCState::PreAnalyzeCallReturnForF128(
+    const SmallVectorImpl<ISD::OutputArg> &Outs, const Type *RetTy) {
+  for (unsigned i = 0; i < Outs.size(); ++i) {
+    OriginalArgWasF128.push_back(
+        originalTypeIsF128(RetTy, nullptr));
+    OriginalArgWasFloat.push_back(
+        RetTy->isFloatingPointTy());
+  }
+}
----------------
nikic wrote:

Can we drop PreAnalyzeReturnForF128 now? It should be the same as PreAnalyzeCallReturnForF128 and passing MD.getFunction().getReturnType().

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


More information about the llvm-commits mailing list