summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/Passes.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-20 10:58:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-20 10:58:50 +0000
commitaaf0b4cd57c609b33c2c12adc5d0ca109c8e6131 (patch)
tree8958918d6c6c77ddea7a62888f32cabe1d9b075e /llvm/tools/opt/Passes.cpp
parente7427f2f86cfbc56ef434ae5ff5d7361c0d8cd71 (diff)
downloadbcm5719-llvm-aaf0b4cd57c609b33c2c12adc5d0ca109c8e6131.tar.gz
bcm5719-llvm-aaf0b4cd57c609b33c2c12adc5d0ca109c8e6131.zip
[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. llvm-svn: 226560
Diffstat (limited to 'llvm/tools/opt/Passes.cpp')
-rw-r--r--llvm/tools/opt/Passes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/opt/Passes.cpp b/llvm/tools/opt/Passes.cpp
index 1af4d52b870..ee515430554 100644
--- a/llvm/tools/opt/Passes.cpp
+++ b/llvm/tools/opt/Passes.cpp
@@ -17,6 +17,7 @@
#include "Passes.h"
#include "llvm/Analysis/CGSCCPassManager.h"
#include "llvm/Analysis/LazyCallGraph.h"
+#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/IRPrintingPasses.h"
OpenPOWER on IntegriCloud