Skip to content

Commit

Permalink
Quick fix for crash that is occurring in SVE2 tests. (#8020)
Browse files Browse the repository at this point in the history
Broken out into separate PR for ease of review and isolated
test/tracking.
  • Loading branch information
Zalman Stern authored Jan 4, 2024
1 parent d2da007 commit b661c8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/correctness/simd_op_check.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ class SimdOpCheckTest {
void visit(const Internal::Call *op) override {
if (op->call_type == Internal::Call::Halide) {
Internal::Function f(op->func);
if (f.has_update_definition()) {
if (f.has_update_definition() &&
f.update(0).schedule().rvars().size() > 0) {
inline_reduction = f;
result = true;
}
Expand Down

0 comments on commit b661c8d

Please sign in to comment.