We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb9bea commit d87dc5aCopy full SHA for d87dc5a
src/FindIntrinsics.cpp
@@ -747,7 +747,7 @@ class FindIntrinsics : public IRMutator {
747
auto b_bounds = constant_integer_bounds(b);
748
const int max_shift = op->type.bits() - 1;
749
750
- if (a.defined() & b_bounds >= -max_shift && b_bounds <= max_shift) {
+ if (a.defined() && b_bounds >= -max_shift && b_bounds <= max_shift) {
751
if (!is_saturated ||
752
(shift->is_intrinsic(Call::rounding_shift_right) && can_prove(b >= 0)) ||
753
(shift->is_intrinsic(Call::rounding_shift_left) && can_prove(b <= 0))) {
0 commit comments