Skip to content

Commit

Permalink
Change Torch lowering to use divSI
Browse files Browse the repository at this point in the history
Signed-off-by: MaheshRavishankar <[email protected]>
  • Loading branch information
MaheshRavishankar committed Jan 25, 2025
1 parent 96aaf87 commit ffca362
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ class BindSymbolicShapesPass final
case AffineExprKind::Mul:
return builder.create<arith::MulIOp>(loc, lhs, rhs);
case AffineExprKind::Mod:
return builder.create<arith::RemUIOp>(loc, lhs, rhs);
return builder.create<arith::RemSIOp>(loc, lhs, rhs);
case AffineExprKind::FloorDiv:
return builder.create<arith::DivUIOp>(loc, lhs, rhs);
return builder.create<arith::DivSIOp>(loc, lhs, rhs);
case AffineExprKind::CeilDiv:
return builder.create<arith::CeilDivUIOp>(loc, lhs, rhs);
return builder.create<arith::CeilDivSIOp>(loc, lhs, rhs);
default:
break;
}
Expand Down

0 comments on commit ffca362

Please sign in to comment.