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 | f7710af4ba78aa7a0cc9c226f334d8f2b6ab31bf (patch) | |
tree | 8506b5b10170b300a4d4c52082405ca2be4f5d33 | |
parent | 67352b3ce7110541475ed7fb335ee95954f0523a (diff) | |
download | external_llvm-f7710af4ba78aa7a0cc9c226f334d8f2b6ab31bf.zip external_llvm-f7710af4ba78aa7a0cc9c226f334d8f2b6ab31bf.tar.gz external_llvm-f7710af4ba78aa7a0cc9c226f334d8f2b6ab31bf.tar.bz2 |
Other parts of the SelectionDAG framework assume that targets use their pointer type for vector indices. Make the vector unrolling code respect that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130733 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c2711c8..dd33205 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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; |