Files
clang-p2996/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp
Matthias Braun 740ee00a4c PPCBranchCoalescing: Fix invalid branch weights (#67211)
Re-normalize branch-weights after removing a block successor to avoid
branch-weights not adding up to 100%. This changes MIR for the
`test/CodeGen/PowerPC/branch_coalesce.ll` test like this:

```diff
-  successors: %bb.6(0x40000000); %bb.6(50.00%)
+  successors: %bb.6(0x80000000); %bb.6(100.00%)
```

This doesn't affect codegen on its own but fixing this helps with
fluctuations I have with some of my upcoming changes.
2023-09-25 10:41:04 -07:00

30 KiB