[llvm-commits] [llvm] r118720 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Nate Begeman
natebegeman at mac.com
Wed Nov 10 13:35:42 PST 2010
Author: sampo
Date: Wed Nov 10 15:35:41 2010
New Revision: 118720
URL: http://llvm.org/viewvc/llvm-project?rev=118720&view=rev
Log:
Fix an issue where we tried to turn a v2f32 build_vector into a v4i32 build vector with 2 elts
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=118720&r1=118719&r2=118720&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Wed Nov 10 15:35:41 2010
@@ -3546,8 +3546,8 @@
for (unsigned i = 0; i < NumElts; ++i)
Ops.push_back(DAG.getNode(ISD::BIT_CONVERT, dl, MVT::i32,
Op.getOperand(i)));
- SDValue Val = DAG.getNode(ISD::BUILD_VECTOR, dl, MVT::v4i32, &Ops[0],
- NumElts);
+ EVT VecVT = EVT::getVectorVT(*DAG.getContext(), MVT::i32, NumElts);
+ SDValue Val = DAG.getNode(ISD::BUILD_VECTOR, dl, VecVT, &Ops[0], NumElts);
Val = LowerBUILD_VECTOR(Val, DAG, ST);
if (Val.getNode())
return DAG.getNode(ISD::BIT_CONVERT, dl, VT, Val);
More information about the llvm-commits
mailing list