[PATCH] D35272: [X86/FastIsel] Fall-back to SelectionDAG when lowering soft-floats
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 12 08:26:40 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL307797: [X86/FastIsel] Fall-back to SelectionDAG when lowering soft-floats. (authored by davide).
Changed prior to commit:
https://reviews.llvm.org/D35272?vs=106085&id=106224#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35272
Files:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
llvm/trunk/test/CodeGen/X86/fastisel-softfloat.ll
Index: llvm/trunk/test/CodeGen/X86/fastisel-softfloat.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/fastisel-softfloat.ll
+++ llvm/trunk/test/CodeGen/X86/fastisel-softfloat.ll
@@ -0,0 +1,15 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc %s -o - | FileCheck %s
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define float @pr26522(float %pat) #0 {
+; CHECK-LABEL: pr26522:
+; CHECK: # BB#0:
+; CHECK-NEXT: movl %edi, %eax
+; CHECK-NEXT: retq
+ ret float %pat
+}
+
+attributes #0 = { noinline optnone "target-features"="+soft-float" }
Index: llvm/trunk/lib/Target/X86/X86FastISel.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp
@@ -3039,6 +3039,9 @@
if (!Subtarget->is64Bit())
return false;
+ if (Subtarget->useSoftFloat())
+ return false;
+
// Only handle simple cases. i.e. Up to 6 i32/i64 scalar arguments.
unsigned GPRCnt = 0;
unsigned FPRCnt = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35272.106224.patch
Type: text/x-patch
Size: 1168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/ee5d55f0/attachment.bin>
More information about the llvm-commits
mailing list