[PATCH] D130436: [BOLT] Process each block only once in fixCFGForPIC

Fabian Parzefall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 23 22:53:16 PDT 2022


FPar created this revision.
FPar added reviewers: maksfb, Amir, 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.

Rather than iterating over the whole function from the start until no
internal calls are found, process each block only once and continue
processing after splitting. This version of the function also does not
seemingly invalidate iterators from within the loop.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130436

Files:
  bolt/include/bolt/Core/BinaryFunction.h
  bolt/include/bolt/Passes/ValidateInternalCalls.h
  bolt/lib/Passes/ValidateInternalCalls.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130436.447110.patch
Type: text/x-patch
Size: 5584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220724/d84f8d74/attachment.bin>


More information about the llvm-commits mailing list