Using comparisons instead avoids potential overflow.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D116096
[mlir][Support] Avoid multiplication in floorDiv / ceilDiv ClosedPublic Authored by herhut on Dec 21 2021, 1:57 AM.
Details Summary Using comparisons instead avoids potential overflow.
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 20 others. · View Herald TranscriptDec 21 2021, 1:57 AM This revision is now accepted and ready to land.Dec 21 2021, 1:59 AM Closed by commit rG8761f5ebf754: [mlir][Support] Avoid multiplication in floorDiv / ceilDiv (authored by herhut). · Explain WhyDec 21 2021, 2:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 395631 mlir/include/mlir/Support/MathExtras.h
mlir/unittests/Support/MathExtrasTest.cpp
|