David Callahan
2001723a88
[AutoFDO] Fix handling of empty profiles
...
Summary:
If a profile has no samples for a function, then the function "entry count" is set to the value 0. Several places in the code test that if the Function::getEntryCount is defined at all. Here we change to treat a 0 entry count the same as undefined.
In particular, this fixes a problem in getLayoutSuccessorProbThreshold in MachineBlockPlacement.cpp where we use a different and inferior heuristic for laying out basic blocks.
Reviewers: danielcdh, dnovillo
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D23082
llvm-svn: 277849
2016-08-05 18:38:19 +00:00
..
2016-07-28 23:58:15 +00:00
2016-07-21 04:25:06 +00:00
2016-07-18 22:12:46 +00:00
2015-12-22 23:57:37 +00:00
2016-07-21 04:31:38 +00:00
2016-07-22 17:49:40 +00:00
2016-06-26 14:10:56 +00:00
2016-05-19 21:07:12 +00:00
2016-05-11 16:38:40 +00:00
2016-07-13 03:24:41 +00:00
2016-04-18 09:17:29 +00:00
2016-06-19 17:20:27 +00:00
2016-06-26 14:10:56 +00:00
2016-04-19 00:17:55 +00:00
2016-07-21 04:25:06 +00:00
2016-07-28 23:43:38 +00:00
2016-05-14 04:58:35 +00:00
2016-07-01 02:41:21 +00:00
2016-04-18 09:17:29 +00:00
2016-07-15 17:23:20 +00:00
2015-06-15 20:30:22 +00:00
2016-07-02 13:18:38 +00:00
2016-06-17 00:11:01 +00:00
2016-08-05 18:38:19 +00:00
2016-02-08 22:49:40 +00:00
2016-06-15 23:20:15 +00:00
2014-03-06 03:50:29 +00:00
2016-05-23 13:58:04 +00:00
2016-07-15 05:02:31 +00:00
2016-07-10 23:01:32 +00:00
2016-05-11 16:38:40 +00:00
2016-07-22 20:57:23 +00:00
2016-06-17 00:11:01 +00:00
2016-04-28 19:21:30 +00:00
2016-07-15 17:23:20 +00:00
2016-07-15 17:23:20 +00:00
2016-07-31 14:41:50 +00:00
2016-01-14 21:06:47 +00:00
2016-07-11 17:36:02 +00:00
2016-08-03 18:19:43 +00:00
2015-08-03 17:26:41 +00:00
2016-06-20 21:36:38 +00:00
2016-04-25 21:09:51 +00:00
2016-01-19 17:28:00 +00:00
2016-04-22 22:24:20 +00:00
2016-04-22 22:06:11 +00:00
2016-06-17 07:15:29 +00:00
2016-04-18 09:17:29 +00:00
2016-06-03 22:54:26 +00:00
2016-04-12 18:05:10 +00:00
2015-10-08 23:49:46 +00:00
2016-06-02 20:37:52 +00:00
2016-06-26 14:10:56 +00:00
2015-06-23 09:49:53 +00:00
2015-09-24 01:00:49 +00:00
2016-07-11 01:32:20 +00:00
2016-06-26 14:10:56 +00:00
2016-03-01 18:01:28 +00:00
2016-08-04 20:30:07 +00:00