[DAGCombiner] Add general constant vector support to (shl (add x, c1), c2) -> (add...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Oct 2016 17:12:22 +0000 (17:12 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Oct 2016 17:12:22 +0000 (17:12 +0000)
commita20aeea9986ff1d7bbc6f01ef351e602552f1720
tree79e942e8fd6471cf7b861c6c856b350b6911736a
parentf7ad5341d056a40c1308f1a3a13dd76f42d52894
[DAGCombiner] Add general constant vector support to (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2)

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

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