[PATCH] D48914: [PGOMemOPSize] Preserve the DominatorTree

Chijun Sima via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 3 23:42:36 PDT 2018


NutshellySima created this revision.
NutshellySima added reviewers: kuhar, davide, dmgreen.
Herald added a subscriber: llvm-commits.

PGOMemOPSize only modifies CFG in a couple of places; thus we can preserve the DominatorTree with little effort.
When optimizing SQLite with -O3, this patch can decrease 3.8% of the numbers of nodes traversed by DFS and 5.7% of the times DominatorTreeBase::recalculation is called.


Repository:
  rL LLVM

https://reviews.llvm.org/D48914

Files:
  lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  test/Other/opt-O2-pipeline.ll
  test/Other/opt-O3-pipeline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48914.154053.patch
Type: text/x-patch
Size: 6474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180704/5a49d7b4/attachment.bin>


More information about the llvm-commits mailing list