summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-05-02 22:25:45 +0000
committerOwen Anderson <resistor@mac.com>2011-05-02 22:25:45 +0000
commit66fd073974b66905b6ec743662991d6e849a76f0 (patch)
treeb130e82ec35527a79ed70af075d5453cfec89d42 /llvm/lib/CodeGen
parentbb35e8ba88680f62778c2868f8e54e5b91264b7a (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud