Skip to content

Commit

Permalink
minor fix on index hoisting
Browse files Browse the repository at this point in the history
  • Loading branch information
shmsong committed Sep 21, 2022
1 parent ed8b2e4 commit 4be509b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions torch/csrc/jit/codegen/cuda/lower_mem_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,11 +785,6 @@ bool isSeparableSmemSwizzledProducerIndex(
auto exact_producer_it = exact_to_producer_id_map.find(
ir_utils::caMapExactConcreteId(split->in()));

if (exact_producer_it == exact_to_producer_id_map.end()) {
// Returns early if no exact mapped id is found.
return false;
}

// Find a tile split node that this needs to assume.
while (exact_producer_it == exact_to_producer_id_map.end()) {
auto in_def = split->in()->definition();
Expand Down

0 comments on commit 4be509b

Please sign in to comment.