Sanjay Patel f24900b934 [DAGCombiner] allow hoisting vector bitwise logic ahead of truncates
The transform performs a bitwise logic op in a wider type followed by
truncate when both inputs are truncated from the same source type:
logic_op (truncate x), (truncate y) --> truncate (logic_op x, y)

There are a bunch of other checks that should prevent doing this when 
it might be harmful.

We already do this transform for scalars in this spot. The vector 
limitation was shared with a check for the case when the operands are 
extended. I'm not sure if that limit is needed either, but that would 
be a separate patch.

Differential Revision: https://reviews.llvm.org/D55448

llvm-svn: 349303
2018-12-16 14:57:04 +00:00
..
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-26 17:53:48 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2017-10-18 18:07:07 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:07:21 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2018-03-06 19:15:58 +00:00
2018-03-06 19:15:58 +00:00
2018-03-06 19:15:58 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-06 19:15:58 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-06 19:15:58 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2017-10-18 18:07:07 +00:00
2018-06-26 18:44:05 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-10-19 17:31:11 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2017-11-22 20:43:00 +00:00
2018-03-12 14:01:28 +00:00
2018-09-07 13:36:21 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2017-10-18 18:07:07 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-19 19:03:18 +00:00
2018-03-12 14:01:28 +00:00
2015-10-16 20:38:54 +00:00
2015-10-16 20:38:54 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2015-10-16 19:43:56 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-26 17:53:48 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-26 17:53:48 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2017-10-18 18:07:07 +00:00
2017-10-18 18:07:07 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-10-19 17:31:11 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-26 17:53:48 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2017-10-18 18:07:07 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00
2018-03-12 14:01:28 +00:00