Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit a874780

Browse files
Sven VerdoolaegeTheodoros Theodoridis
authored andcommitted
findReductions: drop unused isReductionInit
This was missing from 33a3bb6 (halide2isl: do not require init statement for reduction detection, Sun May 27 12:04:46 2018 +0200).
1 parent 82ee224 commit a874780

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tc/core/halide2isl.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,14 +482,6 @@ std::vector<Reduction> findReductions(const Stmt& s) {
482482
class FindReductions : public IRVisitor {
483483
using IRVisitor::visit;
484484

485-
bool isReductionInit(const Provide* op) {
486-
if (const Call* call = op->values[0].as<Call>()) {
487-
return call->is_intrinsic(tc2halide::kReductionInit);
488-
} else {
489-
return false;
490-
}
491-
}
492-
493485
bool isReductionUpdate(const Provide* op) {
494486
if (const Call* call = op->values[0].as<Call>()) {
495487
return call->is_intrinsic(tc2halide::kReductionUpdate);

0 commit comments

Comments
 (0)