commit | 2e141d744ee1354f49a99d9da49dbd9570e4269d | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Dec 14 23:40:38 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Dec 14 23:40:38 2009 +0000 |
tree | e97c47a00e229199aa0d1aed6c63f850306b1bea | |
parent | e3040e4ae5cef5ec9289efaed4b98135150d5790 [diff] [blame] |
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
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index aee2f20..027348c 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5196,7 +5196,7 @@ // 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); }