From: Dan Gohman Date: Wed, 10 Mar 2010 21:04:53 +0000 (+0000) Subject: Fix another bitwidth calculation to handle vector types; based on a X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8f78e3c87d462e71ddcd3d4f53446b902cc5c593;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 3be6b431167..82bf4784943 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); }