diff options
author | Max Kazantsev <mkazantsev@azul.com> | 2023-01-16 18:53:34 +0700 |
---|---|---|
committer | Max Kazantsev <mkazantsev@azul.com> | 2023-01-16 19:04:23 +0700 |
commit | 82cee24e3d15798c6f7f5b9879723d7f758d8fa0 (patch) | |
tree | 8c4085ecf3f1a5d23e3b762ffb6d17ab65bee265 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 45ab848f5329747ee6f33254e92650749c426cb1 (diff) | |
download | llvm-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/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions