[Mlir-commits] [llvm] [mlir] [ADT] Add signed and unsigned mulh to APInt (PR #84719)

Atousa Duprat llvmlistbot at llvm.org
Thu Mar 14 07:08:00 PDT 2024


================
@@ -434,9 +434,7 @@ arith::MulSIExtendedOp::fold(FoldAdaptor adaptor,
     // Invoke the constant fold helper again to calculate the 'high' result.
     Attribute highAttr = constFoldBinaryOp<IntegerAttr>(
         adaptor.getOperands(), [](const APInt &a, const APInt &b) {
----------------
Atousa wrote:

> Maybe this can just be `...(adaptor.getOperands(), llvm::APIntOps::mulhs);`?

Not sure, I think it is clear as it is.

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


More information about the Mlir-commits mailing list