Sanjay Patel
9ca028c2d6
[DAG] enhance computeKnownBits to handle SRL/SRA with vector splat constant
...
llvm-svn: 284953
2016-10-23 23:13:31 +00:00
Simon Pilgrim
618d3aedaf
[DAGCombiner] Add general constant vector support to (srl (shl x, c), c) -> (and x, cst2)
...
We already supported scalar constant / splatted constant vector - now accepts any (non opaque) constant scalar / vector
llvm-svn: 284717
2016-10-20 11:10:21 +00:00
Simon Pilgrim
b2ca2505cc
[DAGCombine] Generalize distributeTruncateThroughAnd to work with any non-opaque constant or constant vector
...
llvm-svn: 284574
2016-10-19 08:57:37 +00:00
Simon Pilgrim
476560aac4
[X86][SSE] Added vector lshr/shl combine tests
...
This doesn't cover all combines in DAGCombiner::visitSRL/visitSHL yet, but identifies several cases where we fail to combine vectors (or non-splatted) vectors
llvm-svn: 284518
2016-10-18 19:28:12 +00:00