Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove two unused functions #8501

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/Bounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1857,20 +1857,6 @@ Interval bounds_of_expr_in_scope_with_indent(const Expr &expr, const Scope<Inter
return b.interval;
}

Region region_union(const Region &a, const Region &b) {
internal_assert(a.size() == b.size()) << "Mismatched dimensionality in region union\n";
Region result;
for (size_t i = 0; i < a.size(); i++) {
Expr min = Min::make(a[i].min, b[i].min);
Expr max_a = a[i].min + a[i].extent;
Expr max_b = b[i].min + b[i].extent;
Expr max_plus_one = Max::make(max_a, max_b);
Expr extent = max_plus_one - min;
result.emplace_back(simplify(min), simplify(extent));
}
return result;
}

} // namespace

Interval bounds_of_expr_in_scope(const Expr &expr, const Scope<Interval> &scope, const FuncValueBounds &fb, bool const_bound) {
Expand Down
23 changes: 0 additions & 23 deletions src/SplitTuples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,6 @@ class FindCallValueIndices : public IRVisitor {
}
};

// Visitor and helper function to test if a piece of IR uses an extern image.
class UsesExternImage : public IRVisitor {
using IRVisitor::visit;

void visit(const Call *c) override {
if (c->call_type == Call::Image) {
result = true;
} else {
IRVisitor::visit(c);
}
}

public:
UsesExternImage() = default;
bool result = false;
};

inline bool uses_extern_image(const Stmt &s) {
steven-johnson marked this conversation as resolved.
Show resolved Hide resolved
UsesExternImage uses;
s.accept(&uses);
return uses.result;
}

class SplitTuples : public IRMutator {
using IRMutator::visit;

Expand Down