Go to file
Chandler Carruth 410eaeb064 [PM] Rewrite the loop pass manager to use a worklist and augmented run
arguments much like the CGSCC pass manager.

This is a major redesign following the pattern establish for the CGSCC layer to
support updates to the set of loops during the traversal of the loop nest and
to support invalidation of analyses.

An additional significant burden in the loop PM is that so many passes require
access to a large number of function analyses. Manually ensuring these are
cached, available, and preserved has been a long-standing burden in LLVM even
with the help of the automatic scheduling in the old pass manager. And it made
the new pass manager extremely unweildy. With this design, we can package the
common analyses up while in a function pass and make them immediately available
to all the loop passes. While in some cases this is unnecessary, I think the
simplicity afforded is worth it.

This does not (yet) address loop simplified form or LCSSA form, but those are
the next things on my radar and I have a clear plan for them.

While the patch is very large, most of it is either mechanically updating loop
passes to the new API or the new testing for the loop PM. The code for it is
reasonably compact.

I have not yet updated all of the loop passes to correctly leverage the update
mechanisms demonstrated in the unittests. I'll do that in follow-up patches
along with improved FileCheck tests for those passes that ensure things work in
more realistic scenarios. In many cases, there isn't much we can do with these
until the loop simplified form and LCSSA form are in place.

Differential Revision: https://reviews.llvm.org/D28292

llvm-svn: 291651
2017-01-11 06:23:21 +00:00
clang [Modules] Support #import when entering files with modules 2017-01-11 02:14:51 +00:00
clang-tools-extra [include-fixer] Load symbol index asynchronously. 2017-01-09 15:18:28 +00:00
compiler-rt Follow-up for r291277: Add a return to silence GCC's "control reaches end of non-void function" warning. 2017-01-11 01:12:53 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Fix build since r286752. 2016-11-14 16:06:33 +00:00
libcxx [CMake][libcxx] Do not rely on the existence of c++abi or unwind targets 2017-01-11 00:56:10 +00:00
libcxxabi [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available 2017-01-09 23:31:05 +00:00
libunwind [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available 2017-01-09 23:27:04 +00:00
lld [CodeView/PDB] Rename a bunch of files. 2017-01-11 00:35:43 +00:00
lldb XFAIL TestRegisterVariables on gcc-4.8-x86_64 2017-01-10 14:39:26 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [PM] Rewrite the loop pass manager to use a worklist and augmented run 2017-01-11 06:23:21 +00:00
openmp [CMake] Make openmp build under runtimes/ 2017-01-04 18:11:37 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Teach Polly's standalone build to work now that we include the gmock 2017-01-11 01:07:37 +00:00