[all-commits] [llvm/llvm-project] b8d665: [CodeLayout] Do not flip branch condition when usi...
Ellis Hoag via All-commits
all-commits at lists.llvm.org
Tue Nov 12 09:50:52 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b8d6659bff25458693c99a7c53372afcf6d66d7d
https://github.com/llvm/llvm-project/commit/b8d6659bff25458693c99a7c53372afcf6d66d7d
Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
Date: 2024-11-12 (Tue, 12 Nov 2024)
Changed paths:
M llvm/lib/CodeGen/MachineBlockPlacement.cpp
A llvm/test/CodeGen/AArch64/block-placement-optimize-branches.ll
M llvm/test/CodeGen/X86/conditional-tailcall.ll
Log Message:
-----------
[CodeLayout] Do not flip branch condition when using optsize (#114607)
* Do not use profile data when flipping a branch condition when
optimizing for size. This should improving outlining and ICF due to more
uniform instruction sequences.
* Refactor `optimizeBranches()` to use early `continue`s
* Use the correct debug location for `insertBranch()`
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list