Home
last modified time | relevance | path

Searched refs:min_position_item (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_rematerialization.cc294 Item* min_position_item = nullptr; in InsertBeforeInstructions() local
296 if (min_position_item == nullptr || in InsertBeforeInstructions()
297 item->position < min_position_item->position) { in InsertBeforeInstructions()
298 min_position_item = item; in InsertBeforeInstructions()
307 while (min_position_item->prev != nullptr && in InsertBeforeInstructions()
308 min_position_item->position == min_position_item->prev->position) { in InsertBeforeInstructions()
309 min_position_item = min_position_item->prev; in InsertBeforeInstructions()
313 while (!absl::c_linear_search(before_instructions, min_position_item)) { in InsertBeforeInstructions()
314 min_position_item = min_position_item->next; in InsertBeforeInstructions()
316 return InsertBefore(to_insert, min_position_item); in InsertBeforeInstructions()