[Mlir-commits] [llvm] [mlir] [mlir][Arith] Move ceil/floor div expansion to ArithUtils. NFC (PR #231064)

Fangrui Song llvmlistbot at llvm.org
Sun Oct 11 23:57:06 PDT 2026


MaskRay wrote:

Thanks. These patterns aren't only used by MLIRArithToLLVM: the arith-expand pass (populateArithExpandOpsPatterns) and the SPIR-V test pass use them too, so moving them into ArithToLLVM would make MLIRArithTransforms depend on a conversion library. (@RoboTux suggested ArithUtils in #117305 for this reason.)

An alternative is to create another library for these patterns.

https://github.com/llvm/llvm-project/pull/231064


More information about the Mlir-commits mailing list