Sanjay Patel 00dae6b22d [DAGCombiner] loosen restrictions for moving shuffles after vector binop
There are 3 changes to make this correspond to the same transform in instcombine:
1. Remove the legality check - we can't create anything less legal than we started with.
2. Ease the use restriction, so we only bail out if both operands have >1 use.
3. Ease the use restriction for binops with a repeated operand (eg, mul x, x).

As discussed in D60150, there's a scalarization opportunity that will be made
easier by allowing this transform more generally.

llvm-svn: 357580
2019-04-03 13:42:06 +00:00
..
2019-03-29 17:35:56 +00:00
2016-01-26 00:03:25 +00:00
2017-08-01 22:20:49 +00:00
2017-08-28 20:20:47 +00:00
2018-07-04 13:28:39 +00:00
2017-04-07 22:01:23 +00:00
2017-04-07 22:01:23 +00:00
2016-06-16 16:09:53 +00:00
2016-01-28 18:59:04 +00:00
2018-10-14 16:49:04 +00:00
2015-10-26 20:49:49 +00:00
2016-06-20 17:45:33 +00:00
2018-07-04 13:28:39 +00:00
2016-12-27 18:35:19 +00:00
2016-01-26 00:03:25 +00:00
2016-04-08 18:15:37 +00:00
2019-01-07 12:21:13 +00:00
2019-02-26 12:02:12 +00:00
2016-06-16 16:09:53 +00:00
2017-12-11 12:13:45 +00:00
2017-12-11 12:13:45 +00:00
2017-12-11 12:13:45 +00:00
2018-09-26 10:56:00 +00:00
2015-01-19 15:16:06 +00:00
2017-08-28 20:20:47 +00:00
2017-08-01 22:20:49 +00:00
2017-08-01 22:20:49 +00:00
2016-12-27 18:35:19 +00:00
2016-12-27 18:35:19 +00:00
2019-03-29 17:35:56 +00:00
2015-08-13 17:28:16 +00:00