[llvm] [CodeLayout] Do not flip branch condition when using optsize (PR #114607)

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 15:00:29 PDT 2024


MatzeB wrote:

Actually would it make sense to have a flag/mode (during profile loading or similar) that preprocess the profile and removes all branch probability from cold blocks when optimizing for size? That would be nice in that it affects other optimizations as well and the logic would be decoupled from `MachineBlockPlacement`...

https://github.com/llvm/llvm-project/pull/114607


More information about the llvm-commits mailing list