return BVPair(&bvA, &getBitVector(*itr, block));
}
-
-static void printVector(const CFGBlock *block, llvm::BitVector &bv,
- unsigned num) {
-
- #if 0
- llvm::errs() << block->getBlockID() << " :";
- for (unsigned i = 0; i < bv.size(); ++i) {
- llvm::errs() << ' ' << bv[i];
- }
- llvm::errs() << " : " << num << '\n';
- #endif
-}
-
void CFGBlockValues::mergeIntoScratch(llvm::BitVector const &source,
bool isFirst) {
if (isFirst)
if (changed)
dst = scratch;
- printVector(block, scratch, 0);
return changed;
}
*newVals.second != *vals.second;
*vals.first = *newVals.first;
*vals.second = *newVals.second;
- printVector(block, *vals.first, 1);
- printVector(block, *vals.second, 2);
return changed;
}