You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ju...@apache.org on 2021/12/14 01:37:13 UTC

[tvm] branch main updated: [BugFix] Fix a wrong use of `std::move()` in cross-thread reduction lowering (#9728)

This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e70931  [BugFix] Fix a wrong use of `std::move()` in cross-thread reduction lowering (#9728)
4e70931 is described below

commit 4e70931f92bd1b1e07de561803c898b8650da785
Author: Ruihang Lai <la...@qq.com>
AuthorDate: Tue Dec 14 09:36:49 2021 +0800

    [BugFix] Fix a wrong use of `std::move()` in cross-thread reduction lowering (#9728)
    
    * [BugFix] Fix a wrong use of `std::move()` in cross-thread reduction lowering
    
    * Remove
---
 src/tir/transforms/lower_cross_thread_reduction.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tir/transforms/lower_cross_thread_reduction.cc b/src/tir/transforms/lower_cross_thread_reduction.cc
index 630c00f..fb52556 100644
--- a/src/tir/transforms/lower_cross_thread_reduction.cc
+++ b/src/tir/transforms/lower_cross_thread_reduction.cc
@@ -122,7 +122,7 @@ Buffer MakeScratchpad(String name, const DataType& dtype) {
                 /*shape=*/{Integer(1)},
                 /*strides=*/{Integer(1)},
                 /*elem_offset=*/PrimExpr{nullptr},
-                /*name=*/std::move(name),
+                /*name=*/name,
                 /*data_alignment=*/0,
                 /*offset_factor=*/0,
                 /*buffer_type=*/kDefault);