[all-commits] [llvm/llvm-project] e741b8: [llvm][ir] Purge MD_prof custom accessors

Christian Ulmann via All-commits all-commits at lists.llvm.org
Thu Jan 19 05:30:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e741b8c2e5200269f846bdd88ca98e44681fe8df
      https://github.com/llvm/llvm-project/commit/e741b8c2e5200269f846bdd88ca98e44681fe8df
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/CFGPrinter.h
    M llvm/include/llvm/IR/Instructions.h
    M llvm/include/llvm/IR/ProfDataUtils.h
    M llvm/lib/Analysis/BranchProbabilityInfo.cpp
    M llvm/lib/IR/Instruction.cpp
    M llvm/lib/IR/Instructions.cpp
    M llvm/lib/IR/Metadata.cpp
    M llvm/lib/IR/ProfDataUtils.cpp
    M llvm/lib/Transforms/IPO/PartialInlining.cpp
    M llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    M llvm/lib/Transforms/Scalar/LoopPredication.cpp
    M llvm/lib/Transforms/Utils/Local.cpp

  Log Message:
  -----------
  [llvm][ir] Purge MD_prof custom accessors

This commit purges direct accesses to MD_prof metadata and replaces them
with the accessors provided from the utility file wherever possible.
This commit can be seen as the first step towards switching the branch weights to 64 bits.
See post here: https://discourse.llvm.org/t/extend-md-prof-branch-weights-metadata-from-32-to-64-bits/67492

Reviewed By: davidxl, paulkirth

Differential Revision: https://reviews.llvm.org/D141393




More information about the All-commits mailing list