[llvm] [mlir] [ADT] Add signed and unsigned mulh to APInt (PR #84719)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 04:13:52 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) {
----------------
jayfoad wrote:
Maybe this can just be `...(adaptor.getOperands(), llvm::APIntOps::mulhs);`?
https://github.com/llvm/llvm-project/pull/84719
More information about the llvm-commits
mailing list