cbalint13 opened a new pull request, #18782:
URL: https://github.com/apache/tvm/pull/18782
I tiny fix shown up by gcc 16
```
tvm-0.24.0-build/tvm/src/s_tir/transform/lower_cross_thread_reduction.cc:
In function ‘tvm::tir::Stmt tvm::s_tir::TransformReductionBlock(const
tvm::tir::SBlockRealizeNode*, const
tvm::ffi::Optional<tvm::ffi::Array<tvm::tir::Buffer> >&, const
tvm::ffi::Array<tvm::tir::Buffer>&, const tvm::ffi::Array<tvm::tir::Buffer>&,
const tvm::ffi::Array<tvm::PrimExpr>&, const tvm::tir::CommReducer&, const
tvm::ffi::Array<tvm::PrimExpr>&, const std::vector<const tvm::tir::ForNode*>&)’:
tvm-0.24.0-build/tvm/src/s_tir/transform/lower_cross_thread_reduction.cc:356:24:
warning: moving
‘new_block.tvm::ffi::ObjectPtr<tvm::tir::SBlockNode>::operator->()->tvm::tir::SBlockNode::reads’
of type ‘tvm::ffi::Array<tvm::tir::BufferRegion>’ to itself [-Wself-move]
356 | new_block->reads = std::move(new_block->reads);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
```
$ rpm -q gcc-c++
gcc-c++-16.0.1-0.7.fc45.x86_64
```
---
This is an old leftover from here:
https://github.com/apach/tvm/commit/421ff76e3e02e0d97018623fc1a42f202fe202bc#diff-ee18021834f82219782c8bbad32b35f73671e6ee498cf3187738c8104611649fL285
```
- new_block->reads =
RemoveBufferFromBufferRegions(std::move(new_block->reads), wb_buffer);
+ new_block->reads = std::move(new_block->reads);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]