message: add check of the owning block on nodes to be fused
diff: @@ -173,6 +173,10 @@ public:
  bool aliasIsSafeForFusion(Node *node, Value *v, c10::optional<Rule> r) {
  bool safe = false;
  + // Returns false if the two nodes to be fused do not have the same owning block
  + if (node->owningBlock() != v->node()->owningBlock()) {
  + return safe;
  + }
  // TODO: it might be flawed because we don't have 'alias must' information
  //
  // Simple fusion, unary ops:
  @@ -263,7 +267,7 @@ public:
  auto fuseRule = isFusable(node, prev);
  // We can fuse only one path
  - if ((node->owningBlock() == prev->owningBlock()) && fuseRule && aliasIsSafeForFusion(node, v, fuseRule)) {
  + if (fuseRule && aliasIsSafeForFusion(node, v, fuseRule)) {
  pos = fuseNodes(node, v, fuseRule.value());
  changed = true;
  break;
  