[DAGCombiner] Use APInt directly to detect out of range shift constants
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 Jul 2016 10:30:55 +0000 (10:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 Jul 2016 10:30:55 +0000 (10:30 +0000)
commit10bf0ff879fac0fb02f33907385e969acb9b1f24
treeff4d452d5a047e15132f3f1c828bcc8447b0977f
parent31343832e708c5db2fc7bfc562d343dcee8f156b
[DAGCombiner] Use APInt directly to detect out of range shift constants

Using getZExtValue() will assert if the value doesn't fit into uint64_t - SHL was already doing this, I've just updated ASHR/LSHR to match

As mentioned on D22726

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