diff options
author | Mircea Trofin <mtrofin@google.com> | 2025-10-01 09:54:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-01 09:54:30 -0700 |
commit | 240b73e10f5c6549776cfd3847db2be14dc42776 (patch) | |
tree | 73e39e4a32f5a91907ec85c8d33e6cbec84885cc /llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp | |
parent | 8907b6d39371d439461cdd3475d5590f87821377 (diff) | |
download | llvm-240b73e10f5c6549776cfd3847db2be14dc42776.zip llvm-240b73e10f5c6549776cfd3847db2be14dc42776.tar.gz llvm-240b73e10f5c6549776cfd3847db2be14dc42776.tar.bz2 |
[SimplifyCFG][PGO] Reuse existing `setBranchWeights` (#160629)
The main difference between SimplifyCFG's `setBranchWeights` and the ProfDataUtils' is that the former doesn't propagate all-zero weights. That seems like a sensible thing to do, so updated the latter accordingly, and added a flag to control the behavior.
Also moved to ProfDataUtils the logic fitting 64-bit weights to 32-bit.
As side-effect, this fixes some profcheck failures.
Diffstat (limited to 'llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions