[all-commits] [llvm/llvm-project] 45d875: Emit nuw and nsw for mul and add when lowering to ...

Peiyong Lin via All-commits all-commits at lists.llvm.org
Thu May 22 13:40:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45d8759cbed0f216786729718608a8be72a505c6
      https://github.com/llvm/llvm-project/commit/45d8759cbed0f216786729718608a8be72a505c6
  Author: Peiyong Lin <linpyong at gmail.com>
  Date:   2025-05-22 (Thu, 22 May 2025)

  Changed paths:
    M mlir/lib/Conversion/LLVMCommon/Pattern.cpp
    M mlir/test/Conversion/MemRefToLLVM/convert-dynamic-memref-ops.mlir
    M mlir/test/Conversion/MemRefToLLVM/convert-static-memref-ops.mlir

  Log Message:
  -----------
  Emit nuw and nsw for mul and add when lowering to llvm.getelementptr (#140966)

Now that the GEP no wrap flags are known when lowering to
llvm.getelementptr, we can also emit nuw and nsw for the generated
llvm.mul and llvm.add when no unsigned wrap and no signed wrap are used
respectively.

fixes: iree-org/iree#20483

Signed-off-by: Lin, Peiyong <linpyong at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list