diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-10-12 17:47:23 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-10-12 17:47:23 +0000 |
commit | c1daae895d278c0be7af25e1029ece8f2a3fa30c (patch) | |
tree | f0f8dc1cea530e97542fdd342301db0f2b956346 /lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | |
parent | 598641b4ca4bd311308009a82e0432f916f3d00b (diff) |
added support for implict operands in machine instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp')
-rw-r--r-- | lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index b9fd0ffbe8..40ebf1e6bd 100644 --- a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp @@ -66,6 +66,22 @@ void MethodLiveVarInfo::constructBBs() if(DEBUG_LV) LVBB->printAllSets(); } + + // Since the PO iterator does not discover unreachable blocks, + // go over the random iterator and init those blocks as well. + // However, LV info is not correct for those blocks (they are not + // analyzed) + + Method::const_iterator BBRI = Meth->begin(); // random iterator for BBs + + for( ; BBRI != Meth->end(); ++BBRI, ++POId) { + + if( ! BB2BBLVMap[ *BBRI ] ) + BB2BBLVMap[ *BBRI ] = new BBLiveVar( *BBRI, POId ); + + } + + } |