llvm/lib/Transforms
Chandler Carruth 9d4f87e9be [PM] Refactor the InstCombiner interface to use an external worklist.
Because in its primary function pass the combiner is run repeatedly over
the same function until doing so produces no changes, it is essentially
to not re-allocate the worklist. However, as a utility, the more common
pattern would be to put a limited set of instructions in the worklist
rather than the entire function body. That is also the more likely
pattern when used by the new pass manager.

The result is a very light weight combiner that does the visiting with
a separable worklist. This can then be wrapped up in a helper function
for users that want a combiner utility, or as I have here it can be
wrapped up in a pass which manages the iterations used when combining an
entire function's instructions.

Hopefully this removes some of the worst of the interface warts that
became apparant with the last patch here. However, there is clearly more
work. I've again left some FIXMEs for the most egregious. The ones that
stick out to me are the exposure of the worklist and IR builder as
public members, and the use of pointers rather than references. However,
fixing these is likely to be much more mechanical and less interesting
so I didn't want to touch them in this patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226655 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-21 11:38:17 +00:00
..
Hello [CMake] Add LLVM_LINK_COMPONENTS to loadable modules, LLVMHello and BugpointPasses, on Win32. 2014-07-13 13:36:48 +00:00
InstCombine [PM] Refactor the InstCombiner interface to use an external worklist. 2015-01-21 11:38:17 +00:00
Instrumentation [msan] Optimize -msan-check-constant-shadow. 2015-01-20 15:21:35 +00:00
IPO [PM] Lift the analyses into the interface for 2015-01-19 03:03:39 +00:00
ObjCARC IR: Split Metadata from Value 2014-12-09 18:38:53 +00:00
Scalar Reapply: Teach SROA how to update debug info for fragmented variables. 2015-01-20 19:42:22 +00:00
Utils [PM] Replace an abuse of inheritance to override a single function with 2015-01-21 02:11:59 +00:00
Vectorize Fix Operandreorder logic in SLPVectorizer to generate longer vectorizable chain. 2015-01-20 06:11:00 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile