summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-10 21:04:53 +0000
committerDan Gohman <gohman@apple.com>2010-03-10 21:04:53 +0000
commit703b12d62fe62da6d40200932e79ae7eb7d40766 (patch)
treef738be3180c145ccb9fd80fe11faa2bbcfb50094 /llvm/lib
parentdc765e9f03a62d5303749160da655c09b9949ee9 (diff)
downloadbcm5719-llvm-703b12d62fe62da6d40200932e79ae7eb7d40766.tar.gz
bcm5719-llvm-703b12d62fe62da6d40200932e79ae7eb7d40766.zip
Fix another bitwidth calculation to handle vector types; based on a
patch by Micah Villmow for PR6572. llvm-svn: 98188
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 3be6b431167..82bf4784943 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5409,7 +5409,7 @@ SDValue DAGCombiner::visitSTORE(SDNode *N) {
if (SimplifyDemandedBits(Value,
APInt::getLowBitsSet(
Value.getValueType().getScalarType().getSizeInBits(),
- ST->getMemoryVT().getSizeInBits())))
+ ST->getMemoryVT().getScalarType().getSizeInBits())))
return SDValue(N, 0);
}
OpenPOWER on IntegriCloud