[PATCH] D53887: [HotColdSplitting] [WIP] Outline more than once per function

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 31 09:56:54 PDT 2018


tejohnson added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/HotColdSplitting.cpp:522
+      Function *Outlined =
+          extractColdRegion(SubRegion, DT, BFI, TTI, ORE, /*Count=*/1);
+      if (Outlined) {
----------------
The last argument should be changed from a constant 1 to a running count of outlined regions. Otherwise all outlined functions will have the same name.


https://reviews.llvm.org/D53887





More information about the llvm-commits mailing list