Skip to content

Commit 5bb201a

Browse files
authored
Merge branch 'halide:main' into main
2 parents 53e765c + 95991c9 commit 5bb201a

6 files changed

Lines changed: 301 additions & 79 deletions

File tree

src/Func.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3190,7 +3190,7 @@ Func define_base_case(const Internal::Function &func, const vector<Expr> &a, con
31903190
// Reuse names of existing pure args
31913191
for (size_t i = 0; i < a.size(); i++) {
31923192
if (const Variable *v = a[i].as<Variable>()) {
3193-
if (!v->param.defined()) {
3193+
if (!v->param.defined() && !v->reduction_domain.defined()) {
31943194
pure_args[i] = Var(v->name);
31953195
}
31963196
} else {

0 commit comments

Comments
 (0)