Skip to content

Commit c3f4de0

Browse files
Remove two unused functions (#8501)
* Remove two unused functions * Update SplitTuples.cpp
1 parent 75bae8d commit c3f4de0

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

src/Bounds.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -1857,20 +1857,6 @@ Interval bounds_of_expr_in_scope_with_indent(const Expr &expr, const Scope<Inter
18571857
return b.interval;
18581858
}
18591859

1860-
Region region_union(const Region &a, const Region &b) {
1861-
internal_assert(a.size() == b.size()) << "Mismatched dimensionality in region union\n";
1862-
Region result;
1863-
for (size_t i = 0; i < a.size(); i++) {
1864-
Expr min = Min::make(a[i].min, b[i].min);
1865-
Expr max_a = a[i].min + a[i].extent;
1866-
Expr max_b = b[i].min + b[i].extent;
1867-
Expr max_plus_one = Max::make(max_a, max_b);
1868-
Expr extent = max_plus_one - min;
1869-
result.emplace_back(simplify(min), simplify(extent));
1870-
}
1871-
return result;
1872-
}
1873-
18741860
} // namespace
18751861

18761862
Interval bounds_of_expr_in_scope(const Expr &expr, const Scope<Interval> &scope, const FuncValueBounds &fb, bool const_bound) {

src/SplitTuples.cpp

-23
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,6 @@ class FindCallValueIndices : public IRVisitor {
3636
}
3737
};
3838

39-
// Visitor and helper function to test if a piece of IR uses an extern image.
40-
class UsesExternImage : public IRVisitor {
41-
using IRVisitor::visit;
42-
43-
void visit(const Call *c) override {
44-
if (c->call_type == Call::Image) {
45-
result = true;
46-
} else {
47-
IRVisitor::visit(c);
48-
}
49-
}
50-
51-
public:
52-
UsesExternImage() = default;
53-
bool result = false;
54-
};
55-
56-
inline bool uses_extern_image(const Stmt &s) {
57-
UsesExternImage uses;
58-
s.accept(&uses);
59-
return uses.result;
60-
}
61-
6239
class SplitTuples : public IRMutator {
6340
using IRMutator::visit;
6441

0 commit comments

Comments
 (0)