From 1143eff6289192eb24e168976b56584c131dfa57 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Tue, 28 Aug 2001 22:36:35 +0000 Subject: analyze() now checks to see that we don't analyze the same method twice. Needs a mechnanism to override this check (e.g., after a transformation). llvm-svn: 391 --- llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp') diff --git a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index 91c2498e975..e47c9d2bc3c 100644 --- a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp @@ -114,7 +114,11 @@ bool MethodLiveVarInfo::doSingleBackwardPass() // performs live var anal for a method void MethodLiveVarInfo::analyze() { - + // Don't analyze the same method twice! + // Later, we need to add change notification here. + if (HasAnalyzed) + return; + if( DEBUG_LV) cout << "Analysing live variables ..." << endl; // create and initialize all the BBLiveVars of the CFG -- cgit v1.2.3