This patch replaces current fold function with the common constant fold funtion in order to cover the situation of constant splat.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D124236
[mlir][Arithmetic] Use common constant fold function in RemSI and RemUI to cover splat. ClosedPublic Authored by jacquesguan on Apr 22 2022, 1:19 AM.
Details Summary This patch replaces current fold function with the common constant fold funtion in order to cover the situation of constant splat.
Diff Detail
Event Timelineftynse added inline comments. This revision is now accepted and ready to land.Apr 22 2022, 1:30 AM This revision was landed with ongoing or failed builds.Apr 22 2022, 2:20 AM Closed by commit rG9b32886e7e70: [mlir][Arithmetic] Use common constant fold function in RemSI and RemUI to… (authored by jacquesguan). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 424411 mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
mlir/test/Dialect/Arithmetic/canonicalize.mlir
|
Nit: I'd keep the explicit b.isNullValue() instead of !b.