summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InductionVars.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-20 22:44:38 +0000
committerChris Lattner <sabre@nondot.org>2001-06-20 22:44:38 +0000
commitf86e38e452e4dd33e93e75417aee537e73352b96 (patch)
tree4802d10bbd5561be234a42510dbc5a23815ab8ef /llvm/lib/Transforms/Scalar/InductionVars.cpp
parent5035efaeda16f6fe9b2b1983243b6a127ea3b9f0 (diff)
downloadbcm5719-llvm-f86e38e452e4dd33e93e75417aee537e73352b96.tar.gz
bcm5719-llvm-f86e38e452e4dd33e93e75417aee537e73352b96.zip
Add capability to print a derived interval graph
llvm-svn: 42
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InductionVars.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InductionVars.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductionVars.cpp b/llvm/lib/Transforms/Scalar/InductionVars.cpp
index a4bb98334c2..e2f2ad90e67 100644
--- a/llvm/lib/Transforms/Scalar/InductionVars.cpp
+++ b/llvm/lib/Transforms/Scalar/InductionVars.cpp
@@ -40,5 +40,14 @@ bool DoInductionVariableCannonicalize(Method *M) {
// 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;
}
OpenPOWER on IntegriCloud