[llvm] [llvm] Ensure that soft float targets don't use float/vector code for memops. (PR #107022)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 10:11:48 PDT 2024


================
@@ -8846,9 +8846,14 @@ static bool findGISelOptimalMemOpLowering(std::vector<LLT> &MemOps,
   if (Op.isMemcpyWithFixedDstAlign() && Op.getSrcAlign() < Op.getDstAlign())
     return false;
 
-  LLT Ty = TLI.getOptimalMemOpLLT(Op, FuncAttributes);
-
-  if (Ty == LLT()) {
+  bool WantIntScalar = TLI.useSoftFloat() ||
+                       FuncAttributes.hasFnAttr(Attribute::NoImplicitFloat);
----------------
arsenm wrote:

Yes. Can put the query into a helper somewhere for the implementations to use? 

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


More information about the llvm-commits mailing list