[llvm] r187201 - Revert "Add a target legalize hook for SplitVectorOperand"
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 26 06:18:16 PDT 2013
Author: rafael
Date: Fri Jul 26 08:18:16 2013
New Revision: 187201
URL: http://llvm.org/viewvc/llvm-project?rev=187201&view=rev
Log:
Revert "Add a target legalize hook for SplitVectorOperand"
This reverts commit 187198. It broke the bots.
The soft float test probably needs a -triple because of name differences.
On the hard float test I am getting a "roundss $1, %xmm0, %xmm0", instead of
"vroundss $1, %xmm0, %xmm0, %xmm0".
Removed:
llvm/trunk/test/CodeGen/NVPTX/vector-stores.ll
llvm/trunk/test/CodeGen/X86/floor-soft-float.ll
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp?rev=187201&r1=187200&r2=187201&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp Fri Jul 26 08:18:16 2013
@@ -1031,10 +1031,6 @@ bool DAGTypeLegalizer::SplitVectorOperan
dbgs() << "\n");
SDValue Res = SDValue();
- // See if the target wants to custom split this node.
- if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false))
- return false;
-
if (Res.getNode() == 0) {
switch (N->getOpcode()) {
default:
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=187201&r1=187200&r2=187201&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Jul 26 08:18:16 2013
@@ -996,7 +996,7 @@ void X86TargetLowering::resetOperationAc
setLoadExtAction(ISD::EXTLOAD, MVT::v2f32, Legal);
}
- if (!TM.Options.UseSoftFloat && Subtarget->hasSSE41()) {
+ if (Subtarget->hasSSE41()) {
setOperationAction(ISD::FFLOOR, MVT::f32, Legal);
setOperationAction(ISD::FCEIL, MVT::f32, Legal);
setOperationAction(ISD::FTRUNC, MVT::f32, Legal);
Removed: llvm/trunk/test/CodeGen/NVPTX/vector-stores.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/NVPTX/vector-stores.ll?rev=187200&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/NVPTX/vector-stores.ll (original)
+++ llvm/trunk/test/CodeGen/NVPTX/vector-stores.ll (removed)
@@ -1,30 +0,0 @@
-; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
-
-; CHECK: .visible .func foo1
-; CHECK: st.v2.f32
-define void @foo1(<2 x float> %val, <2 x float>* %ptr) {
- store <2 x float> %val, <2 x float>* %ptr
- ret void
-}
-
-; CHECK: .visible .func foo2
-; CHECK: st.v4.f32
-define void @foo2(<4 x float> %val, <4 x float>* %ptr) {
- store <4 x float> %val, <4 x float>* %ptr
- ret void
-}
-
-; CHECK: .visible .func foo3
-; CHECK: st.v2.u32
-define void @foo3(<2 x i32> %val, <2 x i32>* %ptr) {
- store <2 x i32> %val, <2 x i32>* %ptr
- ret void
-}
-
-; CHECK: .visible .func foo4
-; CHECK: st.v4.u32
-define void @foo4(<4 x i32> %val, <4 x i32>* %ptr) {
- store <4 x i32> %val, <4 x i32>* %ptr
- ret void
-}
-
Removed: llvm/trunk/test/CodeGen/X86/floor-soft-float.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/floor-soft-float.ll?rev=187200&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/floor-soft-float.ll (original)
+++ llvm/trunk/test/CodeGen/X86/floor-soft-float.ll (removed)
@@ -1,11 +0,0 @@
-; RUN: llc < %s -march=x86-64 -mattr=+sse41 -soft-float=0 | FileCheck %s --check-prefix=CHECK-HARD-FLOAT
-; RUN: llc < %s -march=x86-64 -mattr=+sse41 -soft-float=1 | FileCheck %s --check-prefix=CHECK-SOFT-FLOAT
-
-declare float @llvm.floor.f32(float)
-
-; CHECK-SOFT-FLOAT: callq _floorf
-; CHECK-HARD-FLOAT: vroundss $1, %xmm0, %xmm0, %xmm0
-define float @myfloor(float %a) {
- %val = tail call float @llvm.floor.f32(float %a)
- ret float %val
-}
More information about the llvm-commits
mailing list