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 | 04009efe4819d2f3ceae420e330198e8a7620cfe (patch) | |
| tree | a6e92a90756512f61af4e576b951974628f221fa /llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | |
| parent | 85cc5744ba2622eaf73bad1c54affbc0ba9398e0 (diff) | |
| download | bcm5719-llvm-04009efe4819d2f3ceae420e330198e8a7620cfe.tar.gz bcm5719-llvm-04009efe4819d2f3ceae420e330198e8a7620cfe.zip | |
added support for implict operands in machine instruction
llvm-svn: 728
Diffstat (limited to 'llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index b9fd0ffbe86..40ebf1e6bd3 100644 --- a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/llvm/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 ); + + } + + } |

