Mircea Trofin
bb6497ffa6
[BPI] Reuse the AsmWriter's BB naming scheme in BranchProbabilityPrinterPass ( #73593 )
...
When using `BranchProbabilityPrinterPass`, if a BB has no name, we get pretty unusable information like `edge -> has probability...` (i.e. we have no idea what the vertices of that edge are).
This patch uses `printAsOperand`, which uses the same naming scheme as `Function::dump`, so for example during debugging sessions, the IR obtained from a function and the names used by `BranchProbabilityPrinterPass` will match.
A shortcoming is that `printAsOperand` will result in the numbering algorithm re-running for every edge and every vertex (when `BranchProbabilityPrinterPass` is run on a function). If, for the given scenario, this is a problem, we can revisit this subsequently.
Another nuance is that the entry basic block will be numbered, which may be slightly confusing when it's anonymous, but it's easily identifiable - the first edge would have it as source (and the number should be easily recognizable)
2023-12-02 13:01:48 -08:00
..
2023-08-30 18:00:23 -07:00
2023-12-02 13:01:48 -08:00
2023-12-02 13:01:48 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-07-07 14:56:21 -07:00
2023-01-09 12:03:28 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-03-30 11:05:10 -07:00
2022-07-17 17:38:35 -07:00
2023-03-30 11:05:10 -07:00
2023-12-02 13:01:48 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-12-02 13:01:48 -08:00
2023-12-02 13:01:48 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-05-01 17:10:08 +00:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 17:38:35 -07:00
2023-08-07 16:50:03 +05:30
2022-07-17 17:38:35 -07:00
2023-03-10 18:05:25 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-11-27 21:27:50 -05:00
2022-11-27 21:27:50 -05:00
2022-07-17 17:38:35 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-12-02 13:01:48 -08:00
2023-03-20 13:43:54 -07:00
2023-06-16 13:53:31 -07:00
2023-01-11 14:34:43 -08:00
2023-10-24 20:27:39 -07:00
2022-07-17 17:38:35 -07:00
2023-05-01 17:10:08 +00:00
2023-12-02 13:01:48 -08:00
2022-07-17 17:38:35 -07:00
2023-12-02 13:01:48 -08:00
2023-12-02 13:01:48 -08:00
2023-12-02 13:01:48 -08:00
2023-08-30 18:00:23 -07:00
2022-12-08 11:47:16 +01:00
2023-03-20 13:43:54 -07:00
2023-12-02 13:01:48 -08:00
2022-10-07 11:09:46 -07:00
2022-12-08 02:38:50 +03:00
2023-03-24 12:43:16 -07:00
2022-11-28 11:00:45 -08:00
2023-01-30 13:26:56 -08:00
2022-10-27 13:28:22 -07:00
2023-09-20 22:41:28 -07:00
2022-11-27 21:27:50 -05:00
2023-09-08 09:49:54 -07:00
2022-12-22 16:24:03 +01:00
2022-07-17 17:38:35 -07:00
2022-12-01 21:25:59 +01:00
2023-05-26 13:00:16 -07:00
2023-09-13 12:33:39 +01:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-08-30 18:00:23 -07:00
2023-08-30 18:00:23 -07:00
2022-07-17 17:38:35 -07:00
2023-01-03 14:23:25 +01:00
2022-07-17 17:38:35 -07:00
2023-08-30 18:00:23 -07:00
2023-06-16 13:53:31 -07:00
2023-05-19 22:21:56 +08:00
2023-10-24 20:27:39 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-11-10 21:38:13 +00:00
2023-12-02 13:01:48 -08:00
2023-09-21 12:44:24 +08:00
2022-07-17 17:38:35 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00