Akira Hatanaka
0fb89f87e0
Reduce the size of MCRelaxableFragment.
...
MCRelaxableFragment previously kept a copy of MCSubtargetInfo and
MCInst to enable re-encoding the MCInst later during relaxation. A copy
of MCSubtargetInfo (instead of a reference or pointer) was needed
because the feature bits could be modified by the parser.
This commit replaces the MCSubtargetInfo copy in MCRelaxableFragment
with a constant reference to MCSubtargetInfo. The copies of
MCSubtargetInfo are kept in MCContext, and the target parsers are now
responsible for asking MCContext to provide a copy whenever the feature
bits of MCSubtargetInfo have to be toggled.
With this patch, I saw a 4% reduction in peak memory usage when I
compiled verify-uselistorder.lto.bc using llc.
rdar://problem/21736951
Differential Revision: http://reviews.llvm.org/D14346
llvm-svn: 253127
2015-11-14 06:35:56 +00:00
..
2015-11-14 06:35:56 +00:00
2015-11-12 13:21:33 +00:00
2015-11-12 13:21:33 +00:00
2015-11-12 13:33:00 +00:00
2015-05-28 13:48:41 +00:00
2015-07-09 02:10:08 +00:00
2015-06-12 18:44:57 +00:00
2014-09-02 22:28:02 +00:00
2015-11-12 13:21:33 +00:00
2015-11-12 13:21:33 +00:00
2015-08-18 14:40:43 +00:00
2015-08-18 14:40:43 +00:00
2015-11-13 13:14:25 +00:00
2015-11-13 13:14:25 +00:00
2015-11-12 13:21:33 +00:00
2015-09-22 13:36:28 +00:00
2015-11-12 13:21:33 +00:00
2015-11-05 21:54:58 +00:00
2015-07-14 17:17:13 +00:00
2015-10-21 12:44:14 +00:00
2015-06-23 09:49:53 +00:00
2015-06-23 09:49:53 +00:00
2014-08-07 05:46:54 +00:00
2015-11-05 21:54:58 +00:00
2015-06-23 09:49:53 +00:00
2015-09-22 13:36:28 +00:00
2015-11-05 21:54:58 +00:00
2015-06-23 09:49:53 +00:00
2015-10-20 00:15:20 +00:00
2015-06-23 09:49:53 +00:00
2015-03-12 05:43:57 +00:00
2015-03-12 05:43:57 +00:00
2015-04-20 12:42:08 +00:00
2015-11-06 12:22:31 +00:00
2015-11-06 12:07:20 +00:00
2015-11-06 12:22:31 +00:00
2015-06-23 09:49:53 +00:00
2015-10-15 14:34:23 +00:00
2014-10-04 16:55:56 +00:00
2015-06-23 09:49:53 +00:00
2015-10-20 00:15:20 +00:00
2015-06-23 09:49:53 +00:00
2015-10-26 12:38:43 +00:00
2015-10-17 21:32:26 +00:00
2015-06-23 09:49:53 +00:00
2015-05-07 10:29:52 +00:00
2015-10-20 00:15:20 +00:00
2015-10-20 00:15:20 +00:00
2015-10-15 08:59:45 +00:00
2015-11-13 13:14:25 +00:00
2015-09-15 10:02:16 +00:00
2015-09-15 10:02:16 +00:00
2015-10-12 15:39:41 +00:00
2015-06-02 13:14:46 +00:00
2015-06-23 09:49:53 +00:00
2015-09-15 15:06:26 +00:00
2015-10-06 15:17:25 +00:00
2015-08-11 23:09:45 +00:00
2015-06-23 09:49:53 +00:00
2015-11-06 12:41:43 +00:00
2015-07-09 02:09:04 +00:00
2015-06-23 09:49:53 +00:00
2015-11-11 17:24:56 +00:00
2015-11-11 17:24:56 +00:00
2015-10-20 00:15:20 +00:00
2015-10-26 12:38:43 +00:00
2015-10-26 12:38:43 +00:00
2015-06-23 12:21:54 +00:00
2015-06-23 09:49:53 +00:00
2015-06-23 09:49:53 +00:00
2015-09-24 12:10:23 +00:00
2015-11-06 12:41:43 +00:00
2015-01-29 23:27:36 +00:00
2015-06-27 15:39:19 +00:00
2015-06-23 09:49:53 +00:00
2015-10-26 12:38:43 +00:00
2015-07-20 22:51:32 +00:00
2015-06-27 15:39:19 +00:00
2015-09-28 18:24:08 +00:00
2015-09-28 18:24:08 +00:00
2015-11-12 14:11:43 +00:00
2015-11-12 14:11:43 +00:00
2015-10-26 12:38:43 +00:00
2015-10-26 12:38:43 +00:00
2015-10-29 10:17:16 +00:00
2015-06-23 09:49:53 +00:00
2015-10-26 12:38:43 +00:00
2015-06-23 09:49:53 +00:00
2015-10-26 12:38:43 +00:00
2015-03-12 05:43:57 +00:00
2015-10-12 16:07:25 +00:00
2015-10-12 16:07:25 +00:00
2015-09-16 23:38:13 +00:00
2015-06-23 09:49:53 +00:00
2015-07-16 06:11:10 +00:00
2015-07-16 06:11:10 +00:00
2015-09-22 10:50:09 +00:00
2015-10-07 10:57:06 +00:00