[PATCH] D128860: [llvm][NFC] Refactor code to use ProfDataUtils

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 22 20:41:12 PDT 2022


paulkirth created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
paulkirth updated this revision to Diff 447024.
paulkirth added a comment.
paulkirth updated this revision to Diff 447034.
paulkirth added reviewers: tejohnson, phosek, bogner.
paulkirth published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

fixups after rebase in stack


paulkirth added a comment.

Fix wrong literal in expression


In this patch we replace common code patterns with the use of utility
functions for dealing with profiling metadata. There should be no change
in functionality, as the existing checks should be preserved in all
cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128860

Files:
  llvm/include/llvm/IR/Instruction.h
  llvm/lib/Analysis/BranchProbabilityInfo.cpp
  llvm/lib/IR/Metadata.cpp
  llvm/lib/Transforms/Utils/MisExpect.cpp
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128860.447034.patch
Type: text/x-patch
Size: 10163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220723/160d140d/attachment.bin>


More information about the llvm-commits mailing list