diff options
author | Max Kazantsev <mkazantsev@azul.com> | 2023-01-09 16:04:00 +0700 |
---|---|---|
committer | Max Kazantsev <mkazantsev@azul.com> | 2023-01-09 16:14:58 +0700 |
commit | 957952dbf2f34ed552e8e1f8c35eed17eee2ea38 (patch) | |
tree | eb2523a9d54433d603674af85cb97f17566d08c8 /llvm/lib/Support/SourceMgr.cpp | |
parent | de3f0f7fa0c7b902dde840913db7e773a02c4173 (diff) | |
download | llvm-957952dbf2f34ed552e8e1f8c35eed17eee2ea38.zip llvm-957952dbf2f34ed552e8e1f8c35eed17eee2ea38.tar.gz llvm-957952dbf2f34ed552e8e1f8c35eed17eee2ea38.tar.bz2 |
[JumpThreading] Preserve profile metadata during select unfolding
Jump threading can replace select and unconditional branch with
conditional branch, but when doing so loses profile information.
This destructive transform can eventually lead to a performance
degradation due to folding of branches in
shouldFoldCondBranchesToCommonDestination as branch probabilities
are no longer known.
Patch by Roman Paukner!
Differential Revision: https://reviews.llvm.org/D138132
Reviewed By: mkazantsev
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions