Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.268 -> 1.269 --- Log message: Fix for PR1108: http://llvm.org/PR1108 : type of insert_vector_elt index operand is PtrVT, not MVT::i32. --- Diffs of the changes: (+4 -3) DAGCombiner.cpp | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.268 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.269 --- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.268 Fri Jan 19 11:51:44 2007 +++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sat Jan 20 04:10:26 2007 @@ -3251,7 +3251,7 @@ SmallVector<SDOperand, 8> BuildVecIndices; for (unsigned i = 0; i != NumInScalars; ++i) { if (N->getOperand(i).getOpcode() == ISD::UNDEF) { - BuildVecIndices.push_back(DAG.getNode(ISD::UNDEF, MVT::i32)); + BuildVecIndices.push_back(DAG.getNode(ISD::UNDEF, TLI.getPointerTy())); continue; } @@ -3265,12 +3265,13 @@ // Otherwise, use InIdx + VecSize unsigned Idx = cast<ConstantSDNode>(Extract.getOperand(1))->getValue(); - BuildVecIndices.push_back(DAG.getConstant(Idx+NumInScalars, MVT::i32)); + BuildVecIndices.push_back(DAG.getConstant(Idx+NumInScalars, + TLI.getPointerTy())); } // Add count and size info. BuildVecIndices.push_back(NumElts); - BuildVecIndices.push_back(DAG.getValueType(MVT::i32)); + BuildVecIndices.push_back(DAG.getValueType(TLI.getPointerTy())); // Return the new VVECTOR_SHUFFLE node. SDOperand Ops[5]; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits