Quentin Colombet
637582eaf7
When code size is the priority (Oz, MinSize attribute), help llvm
...
turning a code like this:
if (foo)
free(foo)
into that:
free(foo)
Move a call to free from basic block FB into FB's predecessor, P,
when the path from P to FB is taken only if the argument of free is
not equal to NULL.
Some restrictions apply on P and FB to be sure that this code motion
is profitable. Namely:
1. FB must have only one predecessor P.
2. FB must contain only the call to free plus an unconditional
branch to S.
3. P's successors are FB and S.
Because of 1., we will not increase the code size when moving the call
to free from FB to P.
Because of 2., FB will be empty after the move.
Because of 2. and 3., P's branch instruction becomes useless, so as FB
(simplifycfg will do the job).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171762 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-07 18:37:41 +00:00
..
2012-12-30 01:28:40 +00:00
2012-12-30 01:28:40 +00:00
2012-12-30 01:28:40 +00:00
2012-12-04 22:15:32 +00:00
2012-11-08 20:34:25 +00:00
2012-09-18 09:31:44 +00:00
2012-09-24 17:22:43 +00:00
2012-10-26 17:17:05 +00:00
2012-12-14 20:43:49 +00:00
2012-11-26 00:24:07 +00:00
2012-09-27 10:14:43 +00:00
2012-10-04 13:36:31 +00:00
2012-11-23 14:51:42 +00:00
2012-11-18 05:39:39 +00:00
2012-10-02 15:49:34 +00:00
2012-09-27 10:14:43 +00:00
2012-09-27 10:14:43 +00:00
2012-12-12 20:58:42 +00:00
2013-01-01 13:57:25 +00:00
2012-11-13 04:16:17 +00:00
2012-11-13 04:16:17 +00:00
2012-11-26 20:37:20 +00:00
2012-12-30 01:28:40 +00:00
2012-11-22 15:36:42 +00:00
2012-09-21 16:26:41 +00:00
2012-11-13 04:16:17 +00:00
2012-11-13 04:16:17 +00:00
2012-11-13 04:16:17 +00:00
2012-11-13 04:16:17 +00:00
2012-12-18 23:10:12 +00:00
2012-10-30 12:33:18 +00:00
2012-11-26 00:25:33 +00:00
2012-12-14 22:08:26 +00:00
2012-11-29 15:45:43 +00:00
2012-11-29 15:45:43 +00:00
2012-11-29 15:45:39 +00:00
2012-12-31 18:26:42 +00:00
2012-12-30 01:28:40 +00:00
2013-01-01 13:57:25 +00:00
2012-11-26 03:10:07 +00:00
2012-11-26 02:31:59 +00:00
2013-01-07 18:37:41 +00:00
2012-11-12 14:00:45 +00:00
2012-11-11 05:11:20 +00:00
2012-09-27 21:21:21 +00:00
2012-09-27 21:21:21 +00:00
2012-11-11 05:54:34 +00:00
2012-11-11 05:54:34 +00:00
2012-11-26 23:04:53 +00:00
2012-09-27 21:21:25 +00:00
2012-09-27 21:21:25 +00:00
2012-11-11 06:22:40 +00:00
2012-11-11 06:22:40 +00:00
2012-09-27 21:21:18 +00:00
2012-09-27 21:21:18 +00:00
2012-11-11 06:49:03 +00:00
2012-11-11 06:49:03 +00:00
2012-12-06 21:24:47 +00:00
2012-12-30 01:28:40 +00:00
2012-12-31 20:45:10 +00:00
2012-11-29 15:45:33 +00:00
2012-11-13 04:16:17 +00:00
2012-11-13 04:16:17 +00:00
2012-11-14 20:18:34 +00:00
2012-11-26 20:37:20 +00:00
2012-11-27 18:52:49 +00:00
2012-11-29 19:15:17 +00:00
2012-11-21 14:46:18 +00:00
2012-10-20 08:43:52 +00:00
2012-12-12 00:29:03 +00:00
2012-12-04 00:04:54 +00:00
2012-12-30 01:28:40 +00:00
2012-11-27 15:35:58 +00:00
2012-12-30 01:28:40 +00:00
2012-12-31 08:10:58 +00:00
2012-10-31 00:20:56 +00:00
2012-10-31 00:20:51 +00:00
2012-10-31 00:20:56 +00:00
2012-10-31 00:20:56 +00:00
2012-10-13 16:45:32 +00:00
2012-10-13 16:45:32 +00:00
2012-10-13 16:45:32 +00:00
2012-10-13 16:45:37 +00:00
2012-10-13 16:45:37 +00:00
2012-10-15 03:47:37 +00:00
2012-10-15 03:47:37 +00:00
2012-10-18 18:12:40 +00:00
2012-09-27 21:21:28 +00:00
2012-10-18 18:12:40 +00:00
2012-10-18 18:12:40 +00:00
2012-11-10 15:16:48 +00:00
2012-11-10 15:16:48 +00:00
2012-10-31 03:33:06 +00:00
2012-10-31 03:33:06 +00:00
2012-10-13 16:45:32 +00:00
2012-10-13 16:45:32 +00:00
2012-10-13 16:45:32 +00:00
2012-11-11 05:11:20 +00:00
2012-10-15 03:47:37 +00:00
2012-10-31 03:33:00 +00:00
2012-09-27 21:21:31 +00:00
2012-10-31 03:33:00 +00:00
2012-10-31 03:33:00 +00:00
2012-10-31 04:29:58 +00:00
2012-10-31 04:29:58 +00:00
2012-10-13 16:45:37 +00:00
2012-10-13 16:45:37 +00:00
2012-11-08 01:33:50 +00:00
2012-11-11 03:51:48 +00:00
2012-11-11 03:51:48 +00:00
2012-10-31 14:58:26 +00:00
2012-10-11 02:05:23 +00:00
2012-11-26 03:38:52 +00:00
2012-09-27 08:33:56 +00:00
2012-09-28 09:33:53 +00:00
2012-12-30 02:33:22 +00:00
2012-11-03 11:44:17 +00:00
2012-10-15 03:47:37 +00:00
2012-12-05 00:33:16 +00:00