Skip to content

Commit 0794785

Browse files
committed
update
1 parent b3ad3a9 commit 0794785

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/op/atomic_add.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ AtomicAdd::AtomicAdd(Array<PrimExpr> args, BufferMap vmap) {
5555
}
5656
std::tie(node->src, node->dst) = std::tie(bf[0], bf[1]);
5757
std::tie(node->src_range, node->dst_range) = std::tie(rgs[0], rgs[1]);
58-
if (args.size() >= 3) {
59-
node->coalesced_width = Downcast<IntImm>(args[2]);
60-
}
6158
data_ = std::move(node);
6259
}
6360

@@ -483,7 +480,7 @@ Stmt AtomicAddNode::Lower(const LowerArgs &T, arith::Analyzer *analyzer) const {
483480
read_src.value(), C.indice_map[read_src.value()], args.layout_map,
484481
args.thread_bounds, C.loop_vars);
485482
} else {
486-
For remapped = loop;
483+
const For& remapped = loop;
487484
loop_layout = PlanLoopPartition(remapped, vec, args.thread_bounds);
488485
}
489486

0 commit comments

Comments
 (0)