[PATCH] D62439: PGO] Handle cases of failing to split critical edges

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 17:12:17 PDT 2019


xur created this revision.
xur added a reviewer: davidxl.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Fix PR41279 where critical edges to EHPad are not split.

The fix is to not instrument those critical edge. We used to be able to know the size of counters right after MST is computed. With this, we have to pre-collect the instrument BBs to know the size, and then instrument them.


https://reviews.llvm.org/D62439

Files:
  llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  llvm/test/Transforms/PGOProfile/PR41279.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62439.201366.patch
Type: text/x-patch
Size: 8062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190525/43da4742/attachment.bin>


More information about the llvm-commits mailing list