summaryrefslogtreecommitdiff
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
commit8f78e3c87d462e71ddcd3d4f53446b902cc5c593 (patch)
tree7ed6a1e1d1ad282a95b3dfa67f9aa20b8a016ccf
parent2101d9c4af4da04939db988c9fe07262b247faa4 (diff)
downloadllvm-8f78e3c87d462e71ddcd3d4f53446b902cc5c593.tar.gz
llvm-8f78e3c87d462e71ddcd3d4f53446b902cc5c593.tar.bz2
llvm-8f78e3c87d462e71ddcd3d4f53446b902cc5c593.tar.xz
Fix another bitwidth calculation to handle vector types; based on a
patch by Micah Villmow for PR6572. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98188 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 3be6b43116..82bf478494 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/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);
}