Matthew Simpson
92ce0230b5
[SLP] Fix sign-extends for type-shrinking
...
This patch ensures the correct minimum bit width during type-shrinking.
Previously when type-shrinking, we always sign-extended values back to their
original width. However, if we are going to sign-extend, and the sign bit is
unknown, we have to increase the minimum bit width by one bit so the
sign-extend will fill the upper bits correctly. If the sign bit is known to be
zero, we can perform a zero-extend instead. This should fix PR31243.
Reference: https://llvm.org/bugs/show_bug.cgi?id=31243
Differential Revision: https://reviews.llvm.org/D27466
llvm-svn: 289470
2016-12-12 21:11:04 +00:00
..
2015-03-13 18:20:45 +00:00
2015-02-27 21:17:42 +00:00
2016-12-08 11:57:51 +00:00
2015-03-13 18:20:45 +00:00
2015-09-30 21:05:43 +00:00
2015-04-16 23:24:18 +00:00
2016-06-11 19:23:02 +00:00
2016-06-20 23:08:21 +00:00
2016-11-16 00:55:50 +00:00
2016-05-06 22:22:18 +00:00
2015-02-27 21:17:42 +00:00
2015-11-06 20:17:51 +00:00
2015-04-16 23:24:18 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-03-13 18:20:45 +00:00
2016-12-11 20:07:15 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 21:17:42 +00:00
2015-04-16 23:24:18 +00:00
2015-07-08 23:40:55 +00:00
2016-11-08 14:10:28 +00:00
2016-07-20 10:41:28 +00:00
2016-08-04 10:51:41 +00:00
2015-02-27 21:17:42 +00:00
2016-04-15 15:57:41 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 19:29:02 +00:00
2016-10-01 16:54:01 +00:00
2016-11-18 02:25:34 +00:00
2015-02-27 21:17:42 +00:00
2016-07-08 17:19:13 +00:00
2016-12-06 13:29:55 +00:00
2016-10-01 19:35:59 +00:00
2016-06-22 14:07:46 +00:00
2016-04-29 07:09:51 +00:00
2016-06-08 21:55:16 +00:00
2016-06-15 08:43:40 +00:00
2015-02-27 21:17:42 +00:00
2016-11-29 08:21:14 +00:00
2016-11-23 20:10:32 +00:00
2015-02-27 21:17:42 +00:00
2015-04-16 23:24:18 +00:00
2016-12-08 11:57:51 +00:00
2016-04-28 16:11:45 +00:00
2015-02-27 21:17:42 +00:00
2016-11-27 03:35:31 +00:00
2014-06-09 22:42:55 +00:00
2015-02-27 21:17:42 +00:00
2015-07-08 23:40:55 +00:00
2015-02-27 21:17:42 +00:00
2016-12-12 21:11:04 +00:00
2015-04-16 23:24:18 +00:00
2015-02-27 21:17:42 +00:00
2014-04-09 14:20:47 +00:00
2015-02-27 21:17:42 +00:00
2015-03-13 18:20:45 +00:00
2015-02-27 21:17:42 +00:00
2016-02-26 19:40:34 +00:00
2015-02-27 21:17:42 +00:00
2015-06-17 20:52:32 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-04-16 23:24:18 +00:00
2015-02-27 21:17:42 +00:00
2013-11-26 22:24:25 +00:00
2015-07-08 23:40:55 +00:00
2015-07-30 17:40:39 +00:00
2016-04-01 17:28:15 +00:00
2016-11-16 00:55:50 +00:00
2015-02-27 21:17:42 +00:00
2016-11-27 03:35:31 +00:00
2016-12-01 18:42:42 +00:00
2015-02-27 21:17:42 +00:00
2015-03-13 18:20:45 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-09-30 17:28:19 +00:00
2016-10-07 09:39:22 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2016-12-06 13:29:55 +00:00
2016-09-18 20:25:41 +00:00
2015-06-19 17:40:15 +00:00
2016-10-10 14:28:06 +00:00
2015-02-27 21:17:42 +00:00
2014-05-04 17:10:15 +00:00
2016-07-06 08:11:23 +00:00