Craig Topper
b1e0fcd931
[InstCombine] Cleanup some duplicated one use checks
...
Summary:
These 4 patterns have the same one use check repeated twice for each. Once without a cast and one with. But the cast has no effect on what method is called.
For the OR case I believe it is always profitable regardless of the number of uses since we'll never increase the instruction count.
For the AND case I believe it is profitable if the pair of xors has one use such that we'll get rid of it completely. Or if the C value is something freely invertible, in which case the not doesn't cost anything.
Reviewers: spatel, majnemer
Reviewed By: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D34308
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305705 91177308-0d34-0410-b5e6-96231b3b80d8
2017-06-19 16:23:49 +00:00
..
2017-03-31 23:22:19 +00:00
2017-04-11 19:07:30 +00:00
2017-05-05 08:40:24 +00:00
2017-04-10 20:18:21 +00:00
2017-05-03 02:26:10 +00:00
2017-04-13 16:44:25 +00:00
2017-06-11 20:46:05 +00:00
2017-06-08 20:40:39 +00:00
2017-04-21 15:50:16 +00:00
2017-03-09 00:03:37 +00:00
2017-06-04 08:21:58 +00:00
2017-06-02 02:18:36 +00:00
2017-04-10 20:18:21 +00:00
2017-06-16 00:18:29 +00:00
2017-06-09 23:18:11 +00:00
2017-05-03 02:26:10 +00:00
2017-04-10 20:18:21 +00:00
2017-06-14 19:29:53 +00:00
2017-05-03 12:28:54 +00:00
2017-05-03 00:18:48 +00:00
2016-12-20 02:09:43 +00:00
2017-05-25 07:15:09 +00:00
2017-06-14 13:14:38 +00:00
2017-04-27 18:39:08 +00:00
2017-03-07 22:18:48 +00:00
2017-06-16 23:14:35 +00:00
2017-04-27 00:28:03 +00:00
2017-06-08 17:27:40 +00:00
2017-06-09 06:11:59 +00:00
2017-06-08 13:20:55 +00:00
2017-06-18 03:10:26 +00:00
2017-06-12 23:01:17 +00:00
2017-06-19 16:23:49 +00:00
2017-01-24 19:55:36 +00:00
2017-05-08 23:18:46 +00:00
2017-06-06 10:17:14 +00:00
2017-06-06 21:08:00 +00:00
2017-02-04 19:44:14 +00:00
2017-06-06 14:54:01 +00:00
2017-05-23 13:36:25 +00:00
2017-06-18 03:10:26 +00:00
2017-04-12 08:07:55 +00:00
2017-04-25 18:00:08 +00:00
2017-05-03 11:47:11 +00:00
2017-01-13 00:16:23 +00:00
2017-06-16 14:43:59 +00:00
2017-01-27 01:32:26 +00:00
2017-02-27 15:44:49 +00:00
2016-11-21 22:35:34 +00:00
2017-05-04 16:24:31 +00:00
2017-02-14 21:10:40 +00:00
2017-06-19 06:24:53 +00:00
2017-05-12 15:30:58 +00:00
2017-04-29 00:12:18 +00:00
2017-06-09 03:56:15 +00:00
2017-04-05 09:24:26 +00:00
2017-04-05 09:24:26 +00:00
2017-06-07 18:32:24 +00:00
2017-04-21 23:54:12 +00:00
2017-06-16 20:50:41 +00:00
2017-04-21 22:13:55 +00:00
2017-04-10 20:18:21 +00:00
2017-01-21 02:02:56 +00:00
2017-03-23 23:21:07 +00:00
2016-12-19 08:22:17 +00:00
2017-06-19 00:24:00 +00:00
2017-05-03 02:26:10 +00:00
2017-01-04 21:24:56 +00:00
2017-06-13 20:44:08 +00:00
2017-04-18 13:29:26 +00:00
2017-06-19 16:23:46 +00:00
2017-06-12 21:26:53 +00:00
2017-06-14 13:14:38 +00:00
2017-06-08 20:11:57 +00:00
2017-03-31 06:29:49 +00:00
2017-04-10 00:33:25 +00:00
2017-03-21 21:39:51 +00:00
2017-05-25 06:33:36 +00:00
2017-04-28 21:13:09 +00:00
2017-06-09 19:31:10 +00:00
2017-06-10 19:16:09 +00:00
2017-05-10 12:30:07 +00:00
2017-06-17 20:28:13 +00:00
2017-03-21 21:39:51 +00:00
2017-04-11 13:32:11 +00:00
2017-04-24 20:25:01 +00:00
2017-06-19 15:21:18 +00:00
2017-06-08 23:01:49 +00:00
2017-06-14 21:19:52 +00:00
2017-06-02 18:24:23 +00:00