[PM] Port LoopInfo to the new pass manager, adding both a LoopAnalysis
authorChandler Carruth <chandlerc@gmail.com>
Tue, 20 Jan 2015 10:58:50 +0000 (10:58 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 20 Jan 2015 10:58:50 +0000 (10:58 +0000)
commita37512049cdc8adc0e6fa034095c8afe514ef24d
tree84707091880dc3ffe8a3a68dd3c2d74cfb7b55eb
parent1540633fdb2cd4531150bf9323d4bef4c8154701
[PM] Port LoopInfo to the new pass manager, adding both a LoopAnalysis
pass and a LoopPrinterPass with the expected associated wiring.

I've added a RUN line to the only test case (!!!) we have that actually
prints loops. Everything seems to be working.

This is somewhat exciting as this is the first analysis using another
analysis to go in for the new pass manager. =D I also believe it is the
last analysis necessary for porting instcombine, but of course I may yet
discover more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226560 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopInfo.h
lib/Analysis/LoopInfo.cpp
test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll
tools/opt/PassRegistry.def
tools/opt/Passes.cpp