Correctly position the early return statement in conditional code motion.

PiperOrigin-RevId: 332583805
Change-Id: I58a5b22e446da422bff055c5cffbaca52f213e42
This commit is contained in:
Yunxing Dai 2020-09-18 22:32:21 -07:00 committed by TensorFlower Gardener
parent da8558533d
commit 24a77523d1

View File

@ -975,8 +975,8 @@ class GroupConnectedBoundaries {
if (pos != new_boundaries_.end()) {
new_boundaries_.erase(pos);
}
return true;
}
return true;
} else {
VLOG(2) << "Skip incompatible multi-dependent boundary: "
<< next_boundary.ToString() << ":" << next_boundary_count