Closed weiya711 closed 3 years ago
Not a bug, there is a difference in how the iteration algebra is defined.
struct rightIncAlgebra {
IterationAlgebra operator()(const std::vector<IndexExpr>& regions) {
return Union(Intersect(regions[0], regions[1]), regions[1]);
}
};
When running a right inclusive iteration algebra for the power(a, b) with a 1-value compression user-defined function, the generated code is incorrect. The given power function is:
The generated code (below) does not properly emit the definition of
jA
.