[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 14:53:06 PDT 2024
MatzeB wrote:
Interesting, by this logic a simpler thing to do would probably be to ignore the whole `MachineBranchProbabilityInfo` within the `MachineBlockPlacement` pass (and you can probably make the same argument for various other passes as well that profiles work against consistency in code generation).
But I suspect this change is geared towards hit functions with just some cold basic blocks...
https://github.com/llvm/llvm-project/pull/114607
More information about the llvm-commits
mailing list