We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1e028 commit 0653b82Copy full SHA for 0653b82
src/Bounds.cpp
@@ -1699,10 +1699,9 @@ class Bounds : public IRVisitor {
1699
} else if (op->call_type == Call::Halide) {
1700
bounds_of_func(op->name, op->value_index, op->type);
1701
} else if (!const_bound &&
1702
- op->call_type == Call::PureIntrinsic) {
+ op->call_type == Call::PureIntrinsic && handle_const_arg_call()) {
1703
// It was some other pure intrinsic that we don't lower. If the args
1704
// are const we can just preserve it.
1705
- handle_const_arg_call();
1706
} else {
1707
// Just use the bounds of the type
1708
bounds_of_type(t);
0 commit comments