Robert Lougher
dae8861924
[LiveDebugVariables] Strip all debug instructions from nodebug functions
...
A crash/assertion failure in the greedy register allocator was tracked
down to a debug instr being passed to LiveIntervals::getInstructionIndex.
Normally this should not occur as debug instructions are collected and
removed by LiveDebugVariables before RA, and reinserted afterwards.
However, when a function has no debug info, LiveDebugVariables simply
strips any debug values that are present as they're not needed (this
situation will occur when a function with debug info is inlined into a
nodebug function). The problem is, it only removes DBG_VALUE instructions,
leaving DBG_LABELs (the cause of the crash).
This patch updates the LiveDebugVariables nodebug path to remove all debug
instructions. The test case verifies that DBG_VALUE/DBG_LABEL instructions
are present, and that they are stripped.
When -experimental-debug-variable-locations is enabled, certain variable
locations are represented by DBG_INSTR_REF instead of DBG_VALUE. The test
case verifies that a DBG_INSTR_REF is emitted by the option, and that it
is also stripped.
Differential Revision: https://reviews.llvm.org/D92127
2020-11-26 14:30:18 +00:00
..
2018-03-21 21:31:25 +00:00
2020-11-25 13:34:15 -08:00
2019-05-01 05:27:20 +00:00
2019-05-01 05:27:20 +00:00
2019-12-24 15:57:33 -08:00
2020-08-18 13:43:28 -07:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2020-03-19 09:29:23 -07:00
2020-03-19 09:29:23 -07:00
2018-05-09 02:40:45 +00:00
2019-04-29 18:34:18 +00:00
2020-09-22 08:28:54 -07:00
2019-05-21 12:48:46 +00:00
2020-09-16 14:15:53 +05:30
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2020-11-09 12:19:20 -08:00
2020-09-24 14:41:49 -07:00
2018-10-30 23:28:27 +00:00
2018-05-24 23:00:21 +00:00
2018-05-09 02:40:45 +00:00
2020-11-20 14:00:46 -05:00
2020-03-19 09:29:23 -07:00
2020-01-17 12:55:40 -08:00
2019-01-15 16:18:52 +00:00
2019-01-15 16:18:52 +00:00
2019-12-09 12:52:10 +00:00
2020-02-02 09:28:45 -08:00
2019-12-24 15:57:33 -08:00
2019-12-24 15:57:33 -08:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:35:00 -08:00
2020-11-24 17:35:00 -08:00
2020-11-24 17:35:00 -08:00
2020-11-24 17:35:00 -08:00
2019-12-24 15:57:33 -08:00
2019-12-24 15:57:33 -08:00
2019-12-20 14:03:34 +00:00
2019-12-20 14:03:34 +00:00
2020-11-20 17:58:26 -05:00
2018-05-09 02:40:45 +00:00
2020-02-06 14:41:40 +00:00
2020-02-06 14:41:40 +00:00
2020-11-24 17:35:00 -08:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2020-11-20 17:58:26 -05:00
2019-05-01 05:27:20 +00:00
2018-03-29 17:16:41 +00:00
2019-06-19 00:25:39 +00:00
2018-07-26 20:56:53 +00:00
2019-12-18 16:26:42 +00:00
2019-06-19 00:25:39 +00:00
2019-11-18 15:30:10 +01:00
2019-06-19 00:25:39 +00:00
2020-05-29 13:24:33 -07:00
2019-06-19 00:25:39 +00:00
2018-05-09 02:40:45 +00:00
2020-10-30 23:29:24 -07:00
2020-03-19 13:57:30 +01:00
2020-03-19 13:57:30 +01:00
2018-05-09 02:40:45 +00:00
2019-08-29 19:03:58 +00:00
2018-05-09 02:40:45 +00:00
2020-03-19 13:57:30 +01:00
2020-03-19 13:57:30 +01:00
2020-07-14 08:52:04 +02:00
2020-03-30 14:58:14 +01:00
2020-10-04 15:48:57 -07:00
2018-05-09 02:40:45 +00:00
2020-02-25 17:10:29 +07:00
2020-09-15 12:23:31 +07:00
2020-09-15 12:23:30 +07:00
2020-06-12 12:40:02 -07:00
2019-12-24 16:27:51 -08:00
2020-03-05 17:37:09 +07:00
2020-09-15 11:30:18 +07:00
2020-06-02 17:55:30 +07:00
2018-05-09 02:40:45 +00:00
2020-11-24 17:48:11 -08:00
2018-05-09 02:40:45 +00:00
2019-12-24 16:27:51 -08:00
2020-09-15 11:30:30 +07:00
2020-09-15 11:31:00 +07:00
2020-11-24 17:48:11 -08:00
2018-08-08 16:33:22 +00:00
2020-05-22 05:36:15 -06:00
2019-12-03 09:51:43 +05:30
2020-11-24 17:48:11 -08:00
2018-09-26 04:19:23 +00:00
2020-09-15 11:30:18 +07:00
2020-01-19 00:09:46 -08:00
2020-03-19 09:29:23 -07:00
2020-10-04 15:48:57 -07:00
2020-11-24 17:48:11 -08:00
2020-05-12 10:29:18 +05:30
2020-05-12 10:29:18 +05:30
2020-09-15 12:23:31 +07:00
2020-06-17 12:57:54 +07:00
2020-11-24 17:48:11 -08:00
2020-05-12 10:29:18 +05:30
2020-05-12 10:29:18 +05:30
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2020-08-11 13:30:52 +02:00
2020-06-17 12:57:54 +07:00
2020-06-17 12:57:54 +07:00
2020-06-17 12:57:54 +07:00
2020-06-17 12:57:54 +07:00
2020-11-24 17:48:11 -08:00
2020-06-17 12:57:54 +07:00
2020-11-24 17:35:00 -08:00
2020-09-15 12:23:31 +07:00
2020-09-02 16:12:39 +07:00
2020-03-19 09:29:23 -07:00
2020-03-19 09:29:23 -07:00
2020-03-19 09:29:23 -07:00
2020-09-15 12:23:30 +07:00
2019-12-24 16:27:51 -08:00
2020-09-15 11:30:53 +07:00
2020-09-15 11:31:00 +07:00
2020-09-15 11:31:07 +07:00
2018-05-09 02:40:45 +00:00
2020-03-19 09:29:23 -07:00
2020-05-28 13:46:41 +05:30
2020-03-11 18:47:30 -07:00
2020-11-24 17:48:11 -08:00
2019-12-24 15:57:33 -08:00
2019-12-24 15:57:33 -08:00
2019-12-24 15:57:33 -08:00
2020-11-24 17:48:11 -08:00
2020-11-20 14:00:46 -05:00
2019-12-24 16:27:51 -08:00
2019-10-29 13:44:06 -07:00
2018-05-09 02:40:45 +00:00
2020-09-15 11:30:46 +07:00
2018-05-09 02:40:45 +00:00
2019-12-24 15:57:33 -08:00
2020-05-08 09:35:54 -07:00
2020-05-09 10:04:22 +07:00
2020-01-27 19:08:46 +07:00
2019-09-07 11:40:10 +00:00
2019-11-15 13:38:00 +01:00
2019-09-11 11:16:48 +00:00
2020-09-15 11:30:18 +07:00
2019-12-24 16:27:51 -08:00
2018-05-09 02:40:45 +00:00
2020-11-24 17:35:00 -08:00
2019-12-24 15:57:33 -08:00
2018-10-11 23:37:58 +00:00
2019-01-15 16:18:52 +00:00
2019-12-24 15:57:33 -08:00
2020-07-20 19:54:35 +05:30
2020-07-20 19:54:35 +05:30
2020-07-20 19:54:35 +05:30
2020-07-20 19:54:35 +05:30
2018-05-10 10:51:33 +00:00
2020-06-02 17:55:30 +07:00
2020-06-02 12:57:51 +02:00
2020-04-14 14:44:32 -07:00
2019-12-03 11:48:28 +01:00
2020-06-02 17:55:31 +07:00
2020-06-02 12:57:51 +02:00
2020-06-01 14:00:01 +01:00
2020-06-02 17:55:31 +07:00
2020-06-02 17:55:30 +07:00
2020-06-02 17:55:31 +07:00
2020-10-29 01:34:15 +05:30
2020-10-29 01:34:15 +05:30
2020-10-29 01:34:15 +05:30
2020-06-02 17:55:30 +07:00
2020-06-02 17:55:31 +07:00
2020-06-02 17:55:31 +07:00
2018-04-20 15:29:47 +00:00
2018-02-23 23:01:06 +00:00
2020-10-17 08:42:28 +05:30
2020-04-14 14:44:32 -07:00
2018-10-19 17:57:53 +00:00
2020-10-10 17:51:12 +05:30
2020-10-10 17:51:12 +05:30
2020-10-04 19:18:14 -07:00
2020-07-14 16:35:17 +07:00
2020-10-04 19:18:14 -07:00
2020-10-29 18:06:17 +05:30
2020-02-18 20:51:41 -08:00
2020-04-25 18:59:41 +07:00
2020-04-14 14:44:32 -07:00
2020-04-09 20:53:58 -07:00
2020-05-19 13:35:58 +07:00
2020-05-19 13:35:58 +07:00
2020-05-19 13:35:58 +07:00
2020-08-14 13:11:37 +07:00
2020-05-19 13:35:58 +07:00
2020-05-19 13:35:20 +07:00
2020-06-12 12:40:02 -07:00
2020-04-06 13:28:06 +07:00
2020-06-12 12:40:02 -07:00
2020-06-12 12:40:02 -07:00
2020-04-06 13:28:06 +07:00
2020-04-06 13:28:06 +07:00
2020-06-12 12:40:02 -07:00
2020-04-08 12:50:58 +07:00
2020-05-15 13:05:35 +03:00
2020-06-16 15:46:26 +03:00
2020-06-16 15:46:26 +03:00
2020-05-26 12:13:13 +03:00
2018-05-09 02:40:45 +00:00
2019-11-08 15:30:11 -08:00
2018-05-09 02:40:45 +00:00
2019-01-08 17:52:29 +00:00
2018-05-09 02:40:45 +00:00
2020-01-27 10:52:34 -08:00
2018-12-22 08:43:08 +00:00
2020-01-31 15:32:03 -08:00
2019-12-24 15:57:33 -08:00
2018-12-18 19:40:22 +00:00
2019-12-24 15:57:33 -08:00
2020-11-25 13:05:00 -05:00
2020-08-20 01:39:42 +05:30
2018-05-09 02:40:45 +00:00
2019-05-10 10:03:41 +00:00
2020-11-24 17:48:11 -08:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2020-03-19 09:29:23 -07:00
2020-03-19 09:29:23 -07:00
2018-05-04 16:10:43 +00:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2019-12-18 19:00:40 -08:00
2020-11-24 17:48:11 -08:00
2019-05-01 05:27:20 +00:00
2018-08-16 21:29:55 +00:00
2020-06-02 17:55:31 +07:00
2018-11-11 18:57:28 +00:00
2018-08-16 21:29:55 +00:00
2020-06-01 17:39:48 +07:00
2020-06-01 17:39:48 +07:00
2018-05-09 02:40:45 +00:00
2020-10-24 06:45:33 +02:00
2020-10-24 06:45:33 +02:00
2018-05-09 02:40:45 +00:00
2020-03-19 09:29:23 -07:00
2020-11-24 17:48:11 -08:00
2019-12-24 15:57:33 -08:00
2020-08-27 11:52:30 +01:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2020-03-30 15:39:22 +01:00
2018-05-09 02:40:45 +00:00
2020-10-14 14:24:08 +01:00
2020-02-28 15:35:51 +07:00
2018-05-09 02:40:45 +00:00
2020-02-18 20:51:41 -08:00
2018-05-09 02:40:45 +00:00
2018-12-20 20:46:55 +00:00
2019-11-08 15:30:11 -08:00
2020-03-19 09:29:23 -07:00
2018-05-09 02:40:45 +00:00
2020-04-03 09:19:26 +01:00
2019-12-24 16:05:15 -08:00
2019-09-11 11:16:48 +00:00
2019-09-04 11:09:05 +00:00
2019-08-29 10:53:29 +00:00
2018-11-14 21:11:53 +00:00
2020-07-22 12:45:21 +01:00
2019-10-30 08:50:46 -05:00
2020-02-06 14:41:40 +00:00
2018-10-30 23:28:27 +00:00
2020-02-11 10:20:24 +00:00
2018-06-21 07:02:46 +00:00
2020-11-26 14:30:18 +00:00
2020-08-27 11:52:29 +01:00
2020-05-11 09:43:30 +01:00
2020-03-19 13:57:30 +01:00
2019-12-24 15:57:33 -08:00
2020-01-27 10:52:34 -08:00
2020-04-06 16:36:22 -07:00
2018-07-04 13:28:39 +00:00
2018-08-23 22:35:58 +00:00
2019-12-24 15:57:33 -08:00
2018-05-09 02:40:45 +00:00
2020-03-19 09:29:23 -07:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2019-04-11 20:25:10 +00:00
2019-12-24 15:57:33 -08:00
2020-03-19 13:57:30 +01:00
2018-08-16 21:29:55 +00:00
2020-03-19 09:29:23 -07:00
2020-03-19 09:29:23 -07:00
2020-05-28 13:46:41 +05:30
2018-05-09 02:40:45 +00:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2019-12-17 09:40:36 +01:00
2020-04-06 09:59:08 -06:00
2020-09-30 10:35:25 -04:00
2020-07-07 10:10:44 -04:00
2020-11-20 17:58:26 -05:00
2020-11-24 17:48:11 -08:00
2020-09-30 10:35:25 -04:00
2020-11-20 14:00:46 -05:00
2019-12-24 15:57:33 -08:00
2019-12-24 16:27:51 -08:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2019-12-24 15:57:33 -08:00
2019-12-24 16:27:51 -08:00
2018-10-30 23:28:27 +00:00
2019-06-19 00:25:39 +00:00
2020-03-20 11:18:05 -07:00
2019-11-15 13:38:00 +01:00
2019-12-09 12:52:10 +00:00
2020-10-18 22:36:58 -07:00
2020-09-30 10:35:25 -04:00
2018-07-18 20:37:01 +00:00
2020-04-20 17:29:04 -07:00
2020-09-30 10:35:25 -04:00
2020-03-19 09:29:23 -07:00
2018-07-26 22:48:52 +00:00
2020-06-02 17:55:31 +07:00
2018-05-09 02:40:45 +00:00
2020-11-20 14:00:46 -05:00
2018-10-30 23:28:27 +00:00
2019-06-19 00:25:39 +00:00
2019-06-19 00:25:39 +00:00
2019-06-19 00:25:39 +00:00
2019-06-19 00:25:39 +00:00
2019-06-19 00:25:39 +00:00
2019-06-19 00:25:39 +00:00
2019-06-19 00:25:39 +00:00
2018-10-30 23:28:27 +00:00
2018-10-30 23:28:27 +00:00
2018-10-29 20:10:42 +00:00
2019-12-26 21:01:59 +03:00
2018-10-30 23:28:27 +00:00
2018-12-11 21:26:52 +00:00
2020-06-26 12:12:26 +07:00
2020-11-24 17:48:11 -08:00
2018-05-09 02:40:45 +00:00
2020-08-27 11:52:29 +01:00
2020-05-18 09:43:32 +01:00
2020-05-18 09:43:32 +01:00
2020-05-18 09:43:32 +01:00
2020-09-23 22:12:04 -07:00
2020-11-20 17:58:26 -05:00
2020-02-06 14:41:40 +00:00
2019-12-24 16:27:51 -08:00
2019-05-07 13:14:18 +00:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2020-11-24 17:48:11 -08:00
2020-09-15 12:23:31 +07:00
2018-09-05 10:18:36 +00:00
2020-11-20 17:58:26 -05:00
2019-09-04 14:19:49 +00:00
2020-11-20 14:00:46 -05:00
2019-12-24 15:57:33 -08:00
2018-05-09 02:40:45 +00:00
2020-11-20 14:00:46 -05:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2019-12-24 16:05:15 -08:00
2018-09-05 10:18:36 +00:00
2020-10-24 06:45:33 +02:00
2020-11-24 17:48:11 -08:00
2018-09-13 13:13:50 +00:00
2020-03-19 09:29:23 -07:00
2020-03-19 09:29:23 -07:00
2020-03-19 09:29:23 -07:00
2020-02-07 11:15:55 +05:30
2018-03-01 21:53:17 +00:00
2020-09-03 11:01:49 -07:00
2018-05-09 02:40:45 +00:00
2020-09-30 10:35:25 -04:00
2018-05-09 02:40:45 +00:00
2020-02-02 09:28:45 -08:00
2018-05-09 02:40:45 +00:00
2019-04-11 20:25:10 +00:00
2020-03-19 09:29:23 -07:00
2018-05-09 02:40:45 +00:00
2020-10-30 23:29:24 -07:00
2020-08-27 11:52:29 +01:00
2020-03-19 09:29:23 -07:00
2020-02-10 15:57:56 -06:00
2020-03-19 09:29:23 -07:00
2020-11-24 17:48:11 -08:00
2019-05-28 13:23:25 +00:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2020-04-03 12:23:51 +05:30
2019-04-11 20:25:10 +00:00
2018-05-09 02:40:45 +00:00
2018-05-09 02:40:45 +00:00
2018-08-21 23:42:08 +00:00
2020-02-06 14:41:40 +00:00
2019-12-24 16:27:51 -08:00
2020-07-20 10:39:04 +01:00
2020-06-17 11:13:13 -07:00