[mlir][arith] Simplify muli emulation with mului_extended
authorJakub Kuderski <kubak@google.com>
Mon, 12 Dec 2022 15:54:20 +0000 (10:54 -0500)
committerJakub Kuderski <kubak@google.com>
Mon, 12 Dec 2022 15:58:07 +0000 (10:58 -0500)
commit3f36d2d579d8b0e8824d9dd99bfa79f456858f88
tree3f40e25826eebbb36d1d47f1d3796dd077f62837
parent4446f71ce392a13e64299d4efe9d7c2a2b768c6c
[mlir][arith] Simplify muli emulation with mului_extended

Using `arith.mului_extended` makes it much simpler to emulate wide
integer multiplication.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D139776
mlir/lib/Dialect/Arith/Transforms/EmulateWideInt.cpp
mlir/test/Dialect/Arith/emulate-wide-int-very-wide.mlir
mlir/test/Dialect/Arith/emulate-wide-int.mlir