Skip to content

Commit bc54310

Browse files
sgrechanik-htqchen
authored andcommitted
[ARITH] Fix lowering of floormod(x, y) != 0 (#4127)
1 parent a0bd378 commit bc54310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pass/lower_intrin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class IntrinInjecter : public arith::IRMutatorWithAnalyzer {
193193
using namespace arith;
194194
PVar<Expr> x, y;
195195
if ((floormod(x, y) != 0).Match(e)) {
196-
return Mutate((truncmod(x, y) == 0).Eval());
196+
return Mutate((truncmod(x, y) != 0).Eval());
197197
}
198198
return IRMutatorWithAnalyzer::Mutate_(op, e);
199199
}

0 commit comments

Comments
 (0)