Skip to content

Commit

Permalink
[XLA] Remove limitation that probably was just copy-pasted in collect…
Browse files Browse the repository at this point in the history
…ive-pipeliner.

PiperOrigin-RevId: 609171910
  • Loading branch information
Marcello Maggioni authored and tensorflower-gardener committed Feb 22, 2024
1 parent 4b08a92 commit ad16e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/xla/xla/service/collective_pipeliner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ std::optional<std::vector<HloInstruction*>> CollectChainsToPushBackwards(
HloInstruction* instr, int64_t loop_iter, const HloComputation* while_body,
int64_t level_to_operate_on,
const absl::flat_hash_set<const HloInstruction*>& loop_invariant_params) {
if (instr->user_count() != 1 || instr->HasControlDependencies()) {
if (instr->HasControlDependencies()) {
return std::nullopt;
}
return CollectIndependentOperandChain(instr, loop_iter,
Expand Down

0 comments on commit ad16e54

Please sign in to comment.