Skip to content

Commit

Permalink
[ARITH] Fix lowering of floormod(x, y) != 0 (apache#4127)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrechanik-h authored and Animesh Jain committed Oct 17, 2019
1 parent f23d194 commit 20dc6a2
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 20dc6a2

Please sign in to comment.