Skip to content

Commit

Permalink
[ARITH] Fix lowering of floormod(x, y) != 0 (#4127)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrechanik-h authored and tqchen committed Oct 15, 2019
1 parent a0bd378 commit bc54310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pass/lower_intrin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class IntrinInjecter : public arith::IRMutatorWithAnalyzer {
using namespace arith;
PVar<Expr> x, y;
if ((floormod(x, y) != 0).Match(e)) {
return Mutate((truncmod(x, y) == 0).Eval());
return Mutate((truncmod(x, y) != 0).Eval());
}
return IRMutatorWithAnalyzer::Mutate_(op, e);
}
Expand Down

0 comments on commit bc54310

Please sign in to comment.