Skip to content

Commit

Permalink
Clean up unused variable.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 611857007
  • Loading branch information
tensorflower-gardener committed Mar 1, 2024
1 parent 43c9598 commit b0540ef
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,11 @@ void ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOps(
bool should_add_op = true;
while (should_add_op) {
should_add_op = false;
Operation* defining_op = nullptr;
SmallVector<Operation*> all_descendants;
for (Value v : operands) {
if (defined_values.contains(v)) continue;
if (ShouldAddOpToSubgraph(v.getDefiningOp(), reverse_subgraph,
ops_to_add, all_descendants)) {
defining_op = v.getDefiningOp();
should_add_op = true;
break;
}
Expand Down

0 comments on commit b0540ef

Please sign in to comment.