[PATCH] D129585: [BOLT] Replace uses of layout with basic block list

Fabian Parzefall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 12:31:12 PDT 2022


FPar created this revision.
FPar added reviewers: Amir, maksfb, rafauler, yota9.
Herald added a subscriber: ayermolo.
Herald added a project: All.
FPar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As we are moving towards support for multiple fragments, loops that
iterate over all basic blocks of a function, but do not depend on the
order of basic blocks in the final layout, should iterate over binary
functions directly, rather than the layout.

Eventually, all loops using the layout list should either iterate over
the function, or be aware of multiple layouts. This patch replaces
references to binary function's block layout with the binary function
itself where only little code changes are necessary.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129585

Files:
  bolt/include/bolt/Core/BinaryFunction.h
  bolt/lib/Core/BinaryFunction.cpp
  bolt/lib/Passes/ADRRelaxationPass.cpp
  bolt/lib/Passes/Aligner.cpp
  bolt/lib/Passes/BinaryPasses.cpp
  bolt/lib/Passes/CacheMetrics.cpp
  bolt/lib/Passes/IndirectCallPromotion.cpp
  bolt/lib/Passes/Inliner.cpp
  bolt/lib/Passes/PLTCall.cpp
  bolt/lib/Passes/ShrinkWrapping.cpp
  bolt/lib/Passes/SplitFunctions.cpp
  bolt/lib/Passes/ThreeWayBranch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129585.444048.patch
Type: text/x-patch
Size: 19982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220712/237fb864/attachment.bin>


More information about the llvm-commits mailing list