Roman Lebedev
3c5960b14a
[InstCombine] Recommit: Shift amount reassociation: shl-trunc-shl pattern
...
This was initially committed in r368059 but got reverted in r368084
because there was a faulty logic in how the shift amounts type mismatch
was being handled (it simply wasn't).
I've added an explicit bailout before we SimplifyAddInst() - i don't think
it's designed in general to handle differently-typed values, even though
the actual problem only comes from ConstantExpr's.
I have also changed the common type deduction, to not just blindly
look past zext, but try to do that so that in the end types match.
Differential Revision: https://reviews.llvm.org/D65380
llvm-svn: 368141
2019-08-07 09:41:50 +00:00
..
2019-07-16 15:28:29 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-08-03 14:28:34 +00:00
2019-06-17 09:51:07 +00:00
2019-04-17 04:52:47 +00:00
2019-04-29 16:14:00 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-05-29 16:59:48 +00:00
2019-04-17 04:52:47 +00:00
2019-07-10 16:32:20 +00:00
2019-06-17 09:51:07 +00:00
2019-07-09 10:56:18 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-08-03 14:28:34 +00:00
2019-06-24 20:13:13 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-07-28 06:09:56 +00:00
2019-07-28 06:09:56 +00:00
2019-07-31 12:06:51 +00:00
2019-08-06 16:41:30 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-06-26 12:13:13 +00:00
2019-07-08 14:46:07 +00:00
2019-04-17 04:52:47 +00:00
2019-08-05 23:22:05 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-05-15 02:35:32 +00:00
2019-04-17 04:52:47 +00:00
2019-08-03 14:28:34 +00:00
2019-04-17 04:52:47 +00:00
2019-04-18 19:17:14 +00:00
2019-07-31 09:27:54 +00:00
2019-04-17 04:52:47 +00:00
2019-06-28 19:57:31 +00:00
2019-07-30 08:14:28 +00:00
2019-07-10 16:32:20 +00:00
2019-04-17 04:52:47 +00:00
2019-07-31 21:15:21 +00:00
2019-06-17 14:13:29 +00:00
2019-08-07 00:03:37 +00:00
2019-07-28 06:09:56 +00:00
2019-08-07 09:41:50 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-08-03 02:54:54 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-06-14 09:19:41 +00:00
2019-08-03 14:28:34 +00:00
2019-04-17 04:52:47 +00:00
2019-08-03 14:28:34 +00:00
2019-08-02 04:03:37 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-07-07 22:12:01 +00:00
2019-07-30 15:58:43 +00:00
2019-07-08 15:57:56 +00:00
2019-04-17 04:52:47 +00:00
2019-05-26 23:38:25 +00:00
2019-06-12 13:50:47 +00:00
2019-07-09 01:27:45 +00:00
2019-06-17 10:05:18 +00:00
2019-04-17 04:52:47 +00:00
2019-06-19 10:50:47 +00:00
2019-04-17 04:52:47 +00:00
2019-06-19 16:02:54 +00:00
2019-04-17 04:52:47 +00:00
2019-08-02 09:32:52 +00:00
2019-04-17 04:52:47 +00:00
2019-07-15 21:16:29 +00:00
2019-08-06 06:08:48 +00:00
2019-06-12 14:05:58 +00:00
2019-05-29 20:47:59 +00:00
2019-05-23 17:03:43 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-06-03 17:54:15 +00:00
2019-07-22 18:47:03 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-07-28 06:09:56 +00:00
2019-08-03 14:28:34 +00:00
2019-05-23 12:35:26 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-06-28 21:39:08 +00:00
2019-07-28 06:09:56 +00:00
2019-04-17 04:52:47 +00:00
2019-07-01 22:43:39 +00:00
2019-07-23 12:42:41 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-08-01 23:30:32 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-07-24 00:16:23 +00:00
2019-05-16 03:39:09 +00:00
2019-08-02 23:43:53 +00:00
2019-06-24 12:07:11 +00:00
2019-07-31 18:22:22 +00:00
2019-06-17 09:51:07 +00:00
2019-07-10 10:25:22 +00:00
2019-08-01 18:37:34 +00:00
2019-04-17 04:52:47 +00:00
2019-08-06 23:00:43 +00:00
2019-05-29 13:14:39 +00:00
2019-05-14 16:51:18 +00:00
2019-06-18 21:41:13 +00:00
2019-06-17 09:51:07 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-05-24 08:59:17 +00:00
2019-04-17 04:52:47 +00:00
2019-04-17 04:52:47 +00:00
2019-07-29 17:22:40 +00:00
2019-07-25 15:35:10 +00:00
2019-08-03 14:28:34 +00:00