| 61 | } |
| 62 | |
| 63 | void HloReachabilityMap::Replace(const HloInstruction* original, |
| 64 | const HloInstruction* replacement) { |
| 65 | if (GetKey(original) == GetKey(replacement)) { |
| 66 | return; |
| 67 | } |
| 68 | indices_[GetKey(replacement)] = GetIndex(original); |
| 69 | indices_.erase(GetKey(original)); |
| 70 | } |
| 71 | |
| 72 | void HloReachabilityMap::SetReachable(const HloInstruction* a, |
| 73 | const HloInstruction* b) { |