diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-14 23:40:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-14 23:40:38 +0000 |
commit | cecad35728601ce5ec92dd30ab0f9727c489f0d1 (patch) | |
tree | bfa097b61b38fe7539fd0383431e8db8d44ce46f /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 28dea2a58b87bd5945d64e9ce5eee8d10a060e5f (diff) | |
download | bcm5719-llvm-cecad35728601ce5ec92dd30ab0f9727c489f0d1.tar.gz bcm5719-llvm-cecad35728601ce5ec92dd30ab0f9727c489f0d1.zip |
Fix integer cast code to handle vector types.
llvm-svn: 91362
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index aee2f20b9d0..027348c0f6d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -5196,7 +5196,7 @@ SDValue DAGCombiner::visitSTORE(SDNode *N) { // SimplifyDemandedBits, which only works if the value has a single use. if (SimplifyDemandedBits(Value, APInt::getLowBitsSet( - Value.getValueSizeInBits(), + Value.getValueType().getScalarType().getSizeInBits(), ST->getMemoryVT().getSizeInBits()))) return SDValue(N, 0); } |