mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Use find_first/find_next to iterate through all the set bits in a
BitVector, instead of manually testing each bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -52,11 +52,11 @@ void LiveVariables::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
|
||||
void LiveVariables::VarInfo::dump() const {
|
||||
cerr << " Alive in blocks: ";
|
||||
for (unsigned i = 0, e = AliveBlocks.size(); i != e; ++i)
|
||||
if (AliveBlocks[i]) cerr << i << ", ";
|
||||
for (int i = AliveBlocks.find_first(); i != -1; i = AliveBlocks.find_next(i))
|
||||
cerr << i << ", ";
|
||||
cerr << " Used in blocks: ";
|
||||
for (unsigned i = 0, e = UsedBlocks.size(); i != e; ++i)
|
||||
if (UsedBlocks[i]) cerr << i << ", ";
|
||||
for (int i = UsedBlocks.find_first(); i != -1; i = UsedBlocks.find_next(i))
|
||||
cerr << i << ", ";
|
||||
cerr << "\n Killed by:";
|
||||
if (Kills.empty())
|
||||
cerr << " No instructions.\n";
|
||||
|
Reference in New Issue
Block a user