[PATCH] D138132: [JumpThreading] Preserve profile metadata during select unfolding

Roman Paukner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 05:28:00 PST 2023


rp updated this revision to Diff 487763.
rp added a comment.

1. using getBranchProbability instead of BranchProbability ctor to avoid overflow
2. branch_weights changed to i64, values are UINT_MAX/4 and 3*UINT_MAX/4
3. added REQUIRES: asserts
4. regenerated checks with --check-globals


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138132/new/

https://reviews.llvm.org/D138132

Files:
  llvm/lib/Transforms/Scalar/JumpThreading.cpp
  llvm/test/Transforms/JumpThreading/select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138132.487763.patch
Type: text/x-patch
Size: 5674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230110/9f7eaff4/attachment.bin>


More information about the llvm-commits mailing list