Sam Elliott
fee242aed4
[RISCV] Fix ICE in isDesirableToCommuteWithShift
...
Summary:
Ana Pazos reported a bug where we were not checking that an APInt would
fit into 64-bits before calling `getSExtValue()`. This caused asserts when
compiling large constants, such as i128s, as happens when compiling compiler-rt.
This patch adds a testcase and makes the callback less error-prone.
Reviewers: apazos, asb, luismarques
Reviewed By: luismarques
Subscribers: hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66081
llvm-svn: 368572
2019-08-12 13:51:00 +00:00
..
2019-08-12 13:51:00 +00:00
2019-05-23 12:43:13 +00:00
2019-05-23 12:43:13 +00:00
2019-08-06 00:24:00 +00:00
2019-05-23 12:43:13 +00:00
2019-05-23 12:43:13 +00:00
2019-05-16 13:56:23 +00:00
2019-08-08 20:25:23 +00:00
2019-05-23 12:43:13 +00:00
2019-07-16 04:56:43 +00:00
2019-05-23 12:43:13 +00:00
2019-05-16 13:56:23 +00:00
2019-05-16 13:56:23 +00:00
2019-05-16 13:56:23 +00:00
2019-03-30 17:59:30 +00:00
2019-03-30 17:59:30 +00:00
2019-03-30 17:59:30 +00:00
2019-03-30 17:59:30 +00:00
2019-03-30 17:59:30 +00:00
2019-08-06 00:24:00 +00:00
2019-06-18 14:29:45 +00:00
2019-04-05 08:40:57 +00:00
2019-04-01 09:54:14 +00:00
2019-03-30 09:15:47 +00:00
2019-04-01 09:54:14 +00:00
2019-03-30 09:15:47 +00:00
2019-03-30 09:15:47 +00:00
2019-04-01 09:54:14 +00:00
2019-07-17 14:04:48 +00:00
2019-07-08 09:16:47 +00:00
2019-07-19 02:03:34 +00:00
2019-06-07 12:20:14 +00:00
2019-04-01 09:54:14 +00:00
2019-04-01 09:54:14 +00:00
2019-04-01 09:54:14 +00:00
2019-06-12 03:04:22 +00:00
2019-05-23 12:43:13 +00:00
2019-05-23 12:43:13 +00:00
2019-03-26 12:55:00 +00:00
2019-06-21 13:36:09 +00:00
2019-07-16 04:56:43 +00:00
2019-05-15 02:35:32 +00:00
2019-08-08 14:59:16 +00:00
2019-07-31 09:07:21 +00:00
2019-08-08 14:59:16 +00:00
2019-08-08 14:59:16 +00:00
2019-08-08 14:59:16 +00:00
2019-08-08 14:59:16 +00:00
2019-05-22 16:16:15 +00:00
2019-08-03 05:52:47 +00:00
2019-07-08 05:00:26 +00:00
2019-05-16 13:56:23 +00:00
2019-05-16 13:56:23 +00:00
2019-05-23 12:43:13 +00:00
2019-05-23 12:43:13 +00:00
2019-03-22 11:21:40 +00:00
2019-07-16 04:56:43 +00:00
2019-06-11 12:57:47 +00:00
2019-07-05 12:35:21 +00:00
2019-08-08 20:25:23 +00:00
2019-05-23 12:43:13 +00:00
2019-03-22 11:21:40 +00:00
2019-08-06 00:24:00 +00:00
2019-05-23 12:43:13 +00:00
2019-08-06 00:24:00 +00:00
2019-08-06 00:24:00 +00:00
2019-08-06 00:24:00 +00:00
2019-04-11 04:59:13 +00:00
2019-04-11 04:59:13 +00:00
2019-04-11 04:59:13 +00:00
2019-04-11 04:59:13 +00:00
2019-05-23 12:43:13 +00:00
2019-08-06 00:24:00 +00:00
2019-06-19 03:18:48 +00:00
2019-03-26 15:41:45 +00:00
2019-05-23 12:43:13 +00:00
2019-04-16 14:38:32 +00:00
2019-06-17 10:54:12 +00:00
2019-08-08 14:40:54 +00:00
2019-08-08 14:40:54 +00:00
2019-05-23 12:43:13 +00:00
2019-03-30 17:59:30 +00:00
2019-06-19 08:40:59 +00:00
2019-05-16 13:56:23 +00:00
2019-08-06 00:24:00 +00:00
2019-05-23 12:43:13 +00:00