[DAGCombiner] Add general constant vector support to (shl (sra x, c1), c1) -> (and...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Oct 2016 16:15:30 +0000 (16:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Oct 2016 16:15:30 +0000 (16:15 +0000)
commit4554e161bea9915c73f67788e1e3efd88eb92c7a
treed327de8bb3cc7f73e9774a99fc954522999c4026
parentc2e97249099db15523734c679bed0afafac04846
[DAGCombiner] Add general constant vector support to (shl (sra x, c1), c1) -> (and x, (shl -1, c1))

We already supported scalar constant / splatted constant vector - now accepts any (non opaque) constant scalar / vector

llvm-svn: 284608
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/combine-shl.ll