commit | c6cfdd3f717bfa1b43351c354e39c066dbd167cd | [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 | 8b0d8db13172ed290285f0832e021b4ce3ef9aea [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); }