diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-16 23:05:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-16 23:05:19 +0000 |
commit | 7ececaad83163be9c877a91a9cb201b07ae5a9b3 (patch) | |
tree | 5437cef70307b0c4a0241c82f3c45d303469377e /llvm/lib/CodeGen | |
parent | c11fcceec50903653e77fe36799348d1e95bbe26 (diff) | |
download | bcm5719-llvm-7ececaad83163be9c877a91a9cb201b07ae5a9b3.tar.gz bcm5719-llvm-7ececaad83163be9c877a91a9cb201b07ae5a9b3.zip |
Fix a problem fully scalarizing values.
llvm-svn: 26811
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 2f760f65690..0e2b7c183c2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -293,7 +293,10 @@ unsigned FunctionLoweringInfo::CreateRegForValue(const Value *V) { NumElts >>= 1; NumVectorRegs <<= 1; } - VT = getVectorType(EltTy, NumElts); + if (NumElts == 1) + VT = EltTy; + else + VT = getVectorType(EltTy, NumElts); } // The common case is that we will only create one register for this |