llvm-6502/lib
Adam Nemet dd469afe15 New Loop Distribution pass
Summary:
This implements the initial version as was proposed earlier this year
(http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-January/080462.html).
Since then Loop Access Analysis was split out from the Loop Vectorizer
and was made into a separate analysis pass.  Loop Distribution becomes
the second user of this analysis.

The pass is off by default and can be enabled
with -enable-loop-distribution.  There is currently no notion of
profitability; if there is a loop with dependence cycles, the pass will
try to split them off from other memory operations into a separate loop.

I decided to remove the control-dependence calculation from this first
version.  This and the issues with the PDT are actively discussed so it
probably makes sense to treat it separately.  Right now I just mark all
terminator instruction required which keeps identical CFGs for each
distributed loop.  This seems to be working pretty well for 456.hmmer
where even though there is an empty if-then block in the distributed
loop initially, it gets completely removed.

The pass keeps DominatorTree and LoopInfo updated.  I've tested this
with -loop-distribute-verify with the testsuite where we distribute ~90
loops.  SimplifyLoop is violated in some cases and I have a FIXME
covering this.

Reviewers: hfinkel, nadav, aschwaighofer

Reviewed By: aschwaighofer

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8831

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237358 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-14 12:05:18 +00:00
..
Analysis Add llvm::all_of which wraps std::all_of. 2015-05-13 22:19:13 +00:00
AsmParser [opaque pointer type] Use the value type of the GlobalVariable rather than accessing it through the pointee's type 2015-05-13 22:55:01 +00:00
Bitcode
CodeGen [CodeGen] Use standard -not gnueabi- naming for f16 libcalls on Darwin. 2015-05-14 01:00:51 +00:00
DebugInfo
ExecutionEngine
Fuzzer [lib/Fuzzer] enable -use_counters=1 by default 2015-05-13 18:31:46 +00:00
IR [opaque pointer type] Use GlobalVariable::getValueType rather than accessing it through the GV's pointee type 2015-05-13 22:54:54 +00:00
IRReader
LineEditor
Linker
LTO
MC Don't omit the constant when computing a cross-section relative relocation. 2015-05-14 01:10:41 +00:00
Object
Option
Passes
ProfileData InstrProf: Treat functions with a coverage map but no profile as unreached 2015-05-13 22:03:04 +00:00
Support YAML: Implement block scalar parsing. 2015-05-13 23:10:51 +00:00
TableGen TableGen: Avoid undefined behaviour by doing this shift in int64 2015-05-14 06:47:02 +00:00
Target [mips] [IAS] Warn when LA is used with a 64-bit symbol. 2015-05-14 10:53:40 +00:00
Transforms New Loop Distribution pass 2015-05-14 12:05:18 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile