diff options
author | Owen Anderson <resistor@mac.com> | 2011-05-02 22:25:45 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-05-02 22:25:45 +0000 |
commit | 66fd073974b66905b6ec743662991d6e849a76f0 (patch) | |
tree | b130e82ec35527a79ed70af075d5453cfec89d42 /llvm/lib/CodeGen | |
parent | bb35e8ba88680f62778c2868f8e54e5b91264b7a (diff) | |
download | bcm5719-llvm-66fd073974b66905b6ec743662991d6e849a76f0.tar.gz bcm5719-llvm-66fd073974b66905b6ec743662991d6e849a76f0.zip |
Other parts of the SelectionDAG framework assume that targets use their pointer type for vector indices. Make the vector unrolling code respect that.
llvm-svn: 130733
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c2711c8097d..dd33205c5de 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -6304,7 +6304,7 @@ SDValue SelectionDAG::UnrollVectorOp(SDNode *N, unsigned ResNE) { Operands[j] = getNode(ISD::EXTRACT_VECTOR_ELT, dl, OperandEltVT, Operand, - getConstant(i, MVT::i32)); + getConstant(i, TLI.getPointerTy())); } else { // A scalar operand; just use it as is. Operands[j] = Operand; |