forked from OSchip/llvm-project
[mlir][NFC] Use .empty() instead of .size()
This commit is contained in:
parent
0af628152a
commit
6e9be9f7c1
|
@ -591,7 +591,7 @@ static bool hasNoInterveningEffect(Operation *start, T memOp) {
|
|||
|
||||
SmallPtrSet<Block *, 4> done;
|
||||
// Traverse the CFG until hitting `to`.
|
||||
while (todoBlocks.size()) {
|
||||
while (!todoBlocks.empty()) {
|
||||
Block *blk = todoBlocks.pop_back_val();
|
||||
if (done.count(blk))
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue