[Test] Add two tests showing unprofitable case of Guard Widening
authorMax Kazantsev <mkazantsev@azul.com>
Tue, 28 Mar 2023 07:29:09 +0000 (14:29 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Tue, 28 Mar 2023 07:30:42 +0000 (14:30 +0700)
commita7dcf39f096a98cd1694d98f6f6b46eaade34a0b
treeb29fb0a73277fdf2ef7b72b3b72602dfba77152d
parent417fe52e6fb44c727eb4a63b6eb49377b692bdd8
[Test] Add two tests showing unprofitable case of Guard Widening

Guard Widening is ignorant about blocks frequency. As result, it may
end up widening conditions from cold/effectively dead code into some
much hotter place, harming average performance.
llvm/test/Transforms/GuardWidening/profile-based-profitability-intrinsics.ll [new file with mode: 0644]
llvm/test/Transforms/GuardWidening/profile-based-profitability_explicit.ll [new file with mode: 0644]