aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <mkazantsev@azul.com>2023-01-16 18:53:34 +0700
committerMax Kazantsev <mkazantsev@azul.com>2023-01-16 19:04:23 +0700
commit82cee24e3d15798c6f7f5b9879723d7f758d8fa0 (patch)
tree8c4085ecf3f1a5d23e3b762ffb6d17ab65bee265 /llvm/lib/Object/ELFObjectFile.cpp
parent45ab848f5329747ee6f33254e92650749c426cb1 (diff)
downloadllvm-82cee24e3d15798c6f7f5b9879723d7f758d8fa0.zip
llvm-82cee24e3d15798c6f7f5b9879723d7f758d8fa0.tar.gz
llvm-82cee24e3d15798c6f7f5b9879723d7f758d8fa0.tar.bz2
[JumpThreading] Preserve profile metadata during select unfolding, take 2
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. The first version was reverted due to assert caused by i32 overflow, fixed in this version. Patch by Roman Paukner! Differential Revision: https://reviews.llvm.org/D138132 Reviewed By: mkazantsev
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions