Matthias Braun
b30c9c9378
LoopUnrollRuntime: Add weights to all branches
...
Make sure every conditional branch constructed by `LoopUnrollRuntime`
code sets branch weights.
- Add new 1:127 weights for the conditional jumps checking whether the
whole (unrolled) loop should be skipped in the generated prolog or
epilog code.
- Remove `updateLatchBranchWeightsForRemainderLoop` function and just
add weights immediately when constructing the relevant branches. This
leads to simpler code and makes the code more obvious as every call
to `CreateCondBr` now has a `BranchWeights` parameter.
- Rework formula for epilogue latch weights, to assume equal
distribution of remainders and remove `assert` (as I was able to
reach this code when forcing small unroll factors on the commandline).
Differential Revision: https://reviews.llvm.org/D158642
2023-09-11 14:23:29 -07:00
..
2023-07-05 09:54:28 +02:00
2023-05-17 17:03:15 +02:00
2023-07-05 09:54:28 +02:00
2023-05-17 17:03:15 +02:00
2023-07-05 09:54:28 +02:00
2023-07-05 09:54:28 +02:00
2023-05-17 17:03:15 +02:00
2023-07-26 16:01:56 +05:30
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-04-13 10:21:24 +05:30
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-03-14 20:55:17 +07:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-07-19 10:39:59 +02:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-05-24 00:57:57 -07:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-04-13 10:21:24 +05:30
2023-09-11 14:23:29 -07:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2023-07-05 09:54:28 +02:00
2023-09-11 14:23:29 -07:00
2023-07-05 09:54:28 +02:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2023-09-11 14:23:29 -07:00
2023-07-05 09:54:28 +02:00
2023-07-05 09:54:28 +02:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2023-09-11 14:23:29 -07:00
2022-12-23 16:35:26 +01:00
2023-07-05 09:54:28 +02:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2022-12-23 16:35:26 +01:00
2023-01-20 16:08:25 +00:00