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
This commit is contained in:
Dan Gohman 2010-03-10 21:04:53 +00:00
parent 2101d9c4af
commit 8f78e3c87d

View File

@ -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);
}