[DAGCombiner] Use APInt directly in (shl (ext (shl x, c1)), c2) combine
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 13 Sep 2016 17:15:28 +0000 (17:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 13 Sep 2016 17:15:28 +0000 (17:15 +0000)
commitbd28a85d14aedd38fd9b1bd5fba45efbccc5a5cf
tree564f2ac8492cab9b9b5478899d5d3398142668e0
parent3569eb52670f538d2d7512659f862e3faf44702a
[DAGCombiner] Use APInt directly in (shl (ext (shl x, c1)), c2) combine

Fix failure to detect out of range shift constants leading to assert in ConstantSDNode::getZExtValue()

Followup to D23007

llvm-svn: 281354
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/shift-i128.ll