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 76d6f47 commit e3692efCopy full SHA for e3692ef
src/transform/annotate_warp_group_reg_alloc.cc
@@ -64,7 +64,7 @@ class SetMaxNRegInjector : public StmtExprMutator {
64
static PrimFunc Inject(PrimFunc f) {
65
auto T = SetMaxNRegInjector();
66
T.nreg_ = SetMaxNRegCollector::Collect(f);
67
- if (T.nreg_.size() == 0) {
+ if (T.nreg_.empty()) {
68
return f;
69
}
70
f.CopyOnWrite()->body = T(f->body);
0 commit comments