llvm-6502/include/llvm/Transforms/Utils
Chandler Carruth 5ea4a54551 [LPM] Fix PR18616 where the shifts to the loop pass manager to extract
LCSSA from it caused a crasher with the LoopUnroll pass.

This crasher is really nasty. We destroy LCSSA form in a suprising way.
When unrolling a loop into an outer loop, we not only need to restore
LCSSA form for the outer loop, but for all children of the outer loop.
This is somewhat obvious in retrospect, but hey!

While this seems pretty heavy-handed, it's not that bad. Fundamentally,
we only do this when we unroll a loop, which is already a heavyweight
operation. We're unrolling all of these hypothetical inner loops as
well, so their size and complexity is already on the critical path. This
is just adding another pass over them to re-canonicalize.

I have a test case from PR18616 that is great for reproducing this, but
pretty useless to check in as it relies on many 10s of nested empty
loops that get unrolled and deleted in just the right order. =/ What's
worse is that investigating this has exposed another source of failure
that is likely to be even harder to test. I'll try to come up with test
cases for these fixes, but I want to get the fixes into the tree first
as they're causing crashes in the wild.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200273 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-28 01:25:38 +00:00
..
ASanStackFrameLayout.h Fix known typos 2014-01-24 17:20:08 +00:00
BasicBlockUtils.h [asan] don't unpoison redzones on function exit in use-after-return mode. 2013-12-23 14:15:08 +00:00
BuildLibCalls.h Enable double to float shrinking optimizations for binary functions like 'fmin/fmax'. Fix radar:15283121 2013-12-16 22:42:40 +00:00
BypassSlowDivision.h
Cloning.h
CmpInstAnalysis.h Fix missing C++ mode comment 2013-12-19 05:32:44 +00:00
CodeExtractor.h
GlobalStatus.h
IntegerDivision.h Add support for software expansion of 64-bit integer division instructions. 2013-11-19 06:54:19 +00:00
Local.h
LoopUtils.h [LPM] Fix PR18616 where the shifts to the loop pass manager to extract 2014-01-28 01:25:38 +00:00
ModuleUtils.h
PromoteMemToReg.h
SimplifyIndVar.h Add support to indvars for optimizing sadd.with.overflow. 2013-12-23 23:31:49 +00:00
SimplifyLibCalls.h
SpecialCaseList.h Add forgotten header guards 2013-12-05 12:52:32 +00:00
SSAUpdater.h
SSAUpdaterImpl.h
UnifyFunctionExitNodes.h
UnrollLoop.h [LPM] Make LoopSimplify no longer a LoopPass and instead both a utility 2014-01-23 11:23:19 +00:00
ValueMapper.h