diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-14 23:40:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-14 23:40:38 +0000 |
commit | 2e141d744ee1354f49a99d9da49dbd9570e4269d (patch) | |
tree | e97c47a00e229199aa0d1aed6c63f850306b1bea /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | e3040e4ae5cef5ec9289efaed4b98135150d5790 (diff) |
Fix integer cast code to handle vector types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-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 aee2f20b9d..027348c0f6 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -5196,7 +5196,7 @@ SDValue DAGCombiner::visitSTORE(SDNode *N) { // SimplifyDemandedBits, which only works if the value has a single use. if (SimplifyDemandedBits(Value, APInt::getLowBitsSet( - Value.getValueSizeInBits(), + Value.getValueType().getScalarType().getSizeInBits(), ST->getMemoryVT().getSizeInBits()))) return SDValue(N, 0); } |