Skip to content

Commit 0653b82

Browse files
vksnkabadams
andauthored
Fix wrong type of the bound (#8781)
Fix bound wrong type Co-authored-by: Andrew Adams <[email protected]>
1 parent 3e1e028 commit 0653b82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Bounds.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,10 +1699,9 @@ class Bounds : public IRVisitor {
16991699
} else if (op->call_type == Call::Halide) {
17001700
bounds_of_func(op->name, op->value_index, op->type);
17011701
} else if (!const_bound &&
1702-
op->call_type == Call::PureIntrinsic) {
1702+
op->call_type == Call::PureIntrinsic && handle_const_arg_call()) {
17031703
// It was some other pure intrinsic that we don't lower. If the args
17041704
// are const we can just preserve it.
1705-
handle_const_arg_call();
17061705
} else {
17071706
// Just use the bounds of the type
17081707
bounds_of_type(t);

0 commit comments

Comments
 (0)