Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.191 -> 1.192
---
Log message:

Fix a problem fully scalarizing values.


---
Diffs of the changes:  (+4 -1)

 SelectionDAGISel.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.191 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.192
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.191    Thu Mar 16 
13:57:50 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp  Thu Mar 16 17:05:19 2006
@@ -293,7 +293,10 @@
       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



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to