aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Platform.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2021-03-01 12:19:20 -0800
committerMircea Trofin <mtrofin@google.com>2021-05-06 12:24:33 -0700
commit97ab068034161fb35e5c9a7b293bf1e569cf077b (patch)
tree6d656fc7072de5e9420e8129b8319707949ecbdb /llvm/lib/TextAPI/Platform.cpp
parent191ffda3f70b1a66794cbc8ce4e77b206041a18e (diff)
downloadllvm-97ab068034161fb35e5c9a7b293bf1e569cf077b.zip
llvm-97ab068034161fb35e5c9a7b293bf1e569cf077b.tar.gz
llvm-97ab068034161fb35e5c9a7b293bf1e569cf077b.tar.bz2
[NPM] Do not run function simplification pipeline unnecessarily
The CGSCC pass manager interplay with the FunctionAnalysisManagerCGSCCProxy is 'special' in the sense that the former will rerun the latter if there are changes to a SCC structure; that being said, some of the functions in the SCC may be unchanged. In that case, the function simplification pipeline will be re-run, which impacts compile time[1]. This patch allows the function simplification pipeline be skipped if it was already run and the function was not modified since. The behavior is currently disabled by default. This is because, currently, the rerunning of the function simplification pipeline on an unchanged function may still result in changes. The patch simplifies investigating and fixing those cases where repeated function pass runs do actually positively impact code quality, while offering an easy workaround for those impacted negatively by compile time regressions, and not impacting mainline scenarios. [1] A [[ http://llvm-compile-time-tracker.com/compare.php?from=eb37d3546cd0c6e67798496634c45e501f7806f1&to=ac722d1190dc7bbdd17e977ef7ec95e69eefc91e&stat=instructions | compile time tracker ]] run with the option enabled. Differential Revision: https://reviews.llvm.org/D98103
Diffstat (limited to 'llvm/lib/TextAPI/Platform.cpp')
0 files changed, 0 insertions, 0 deletions