Add capability to print a derived interval graph


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/InductionVars.cpp b/lib/Transforms/Scalar/InductionVars.cpp
index a4bb983..e2f2ad9 100644
--- a/lib/Transforms/Scalar/InductionVars.cpp
+++ b/lib/Transforms/Scalar/InductionVars.cpp
@@ -40,5 +40,14 @@
   // This currently just prints out information about the interval structure
   // of the method...
   for_each(Intervals.begin(), Intervals.end(), PrintIntervalInfo);
+
+  cerr << "*************Reduced Interval**************\n\n";
+
+  cfg::IntervalPartition Intervals2(Intervals, false);
+  
+  // This currently just prints out information about the interval structure
+  // of the method...
+  for_each(Intervals2.begin(), Intervals2.end(), PrintIntervalInfo);
+
   return false;
 }