llvm-6502/lib
Chandler Carruth 1c8db50a9a Port the SSAUpdater-based promotion logic from the old SROA pass to the
new one, and add support for running the new pass in that mode and in
that slot of the pass manager. With this the new pass can completely
replace the old one within the pipeline.

The strategy for enabling or disabling the SSAUpdater logic is to do it
by making the requirement of the domtree analysis optional. By default,
it is required and we get the standard mem2reg approach. This is usually
the desired strategy when run in stand-alone situations. Within the
CGSCC pass manager, we disable requiring of the domtree analysis and
consequentially trigger fallback to the SSAUpdater promotion.

In theory this would allow the pass to re-use a domtree if one happened
to be available even when run in a mode that doesn't require it. In
practice, it lets us have a single pass rather than two which was
simpler for me to wrap my head around.

There is a hidden flag to force the use of the SSAUpdater code path for
the purpose of testing. The primary testing strategy is just to run the
existing tests through that path. One notable difference is that it has
custom code to handle lifetime markers, and one of the tests has been
enhanced to exercise that code.

This has survived a bootstrap and the test suite without serious
correctness issues, however my run of the test suite produced *very*
alarming performance numbers. I don't entirely understand or trust them
though, so more investigation is on-going.

To aid my understanding of the performance impact of the new SROA now
that it runs throughout the optimization pipeline, I'm enabling it by
default in this commit, and will disable it again once the LNT bots have
picked up one iteration with it. I want to get those bots (which are
much more stable) to evaluate the impact of the change before I jump to
any conclusions.

NOTE: Several Clang tests will fail because they run -O3 and check the
result's order of output. They'll go back to passing once I disable it
again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163965 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-15 11:43:14 +00:00
..
Analysis Release build: guard dump functions with 2012-09-12 05:06:18 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser [ms-inline asm] Enumerate the InlineAsm dialects and rename the nsdialect to 2012-09-05 19:00:49 +00:00
Bitcode Dont cast away const needlessly. Found by gcc48 -Wcast-qual. 2012-09-06 15:42:13 +00:00
CodeGen TargetSchedModel interface. To be implemented... 2012-09-14 20:26:46 +00:00
DebugInfo Stop casting away const qualifier needlessly. 2012-09-05 22:26:57 +00:00
ExecutionEngine Better const handling for RuntimeDyld and MCJIT. 2012-09-13 21:50:06 +00:00
Linker
MC TargetSchedModel interface. To be implemented... 2012-09-14 20:26:46 +00:00
Object
Support Fix Doxygen issues: 2012-09-14 14:57:36 +00:00
TableGen Re-work bit/bits value resolving in tblgen 2012-09-06 23:32:48 +00:00
Target Remove aligned/unaligned load/store fragments defined in MipsInstrInfo.td and 2012-09-15 01:52:08 +00:00
Transforms Port the SSAUpdater-based promotion logic from the old SROA pass to the 2012-09-15 11:43:14 +00:00
VMCore Define an official slot for the new !tbaa.struct metadata tag. 2012-09-13 17:56:17 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile