diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-10 21:04:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-10 21:04:53 +0000 |
commit | 8f78e3c87d462e71ddcd3d4f53446b902cc5c593 (patch) | |
tree | 7ed6a1e1d1ad282a95b3dfa67f9aa20b8a016ccf | |
parent | 2101d9c4af4da04939db988c9fe07262b247faa4 (diff) | |
download | external_llvm-8f78e3c87d462e71ddcd3d4f53446b902cc5c593.zip external_llvm-8f78e3c87d462e71ddcd3d4f53446b902cc5c593.tar.gz external_llvm-8f78e3c87d462e71ddcd3d4f53446b902cc5c593.tar.bz2 |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 3be6b43..82bf478 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); } |