We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc06e7c commit ce9d196Copy full SHA for ce9d196
src/relax/transform/fuse_tir.cc
@@ -467,7 +467,10 @@ class FusedTIRConstructor : public ExprVisitor {
467
// (i.e., already listed in the buffer map. This would result
468
// in duplicates in the buffer map otherwise)
469
if (auto it = buffer_to_idx.find(buffers[i]); it != buffer_to_idx.end()) {
470
- inplace_indices_.insert((*it).second);
+ auto idx = (*it).second;
471
+ CHECK(!inplace_indices_.count(idx))
472
+ << "In-place index " << idx << " used twice! An argument must be aliased.";
473
+ inplace_indices_.insert(idx);
474
continue;
475
}
476
0 commit comments