[all-commits] [llvm/llvm-project] 0f0628: [MLIR][Mem2Reg] Change API to always retry promoti...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Mon May 13 07:21:47 PDT 2024


  Branch: refs/heads/users/dinistro/sroa-retry-without-rewalking
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f0628b295931ee6e0e2cb210071a3ba09cb58c3
      https://github.com/llvm/llvm-project/commit/0f0628b295931ee6e0e2cb210071a3ba09cb58c3
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M mlir/include/mlir/Transforms/Mem2Reg.h
    M mlir/lib/Transforms/Mem2Reg.cpp

  Log Message:
  -----------
  [MLIR][Mem2Reg] Change API to always retry promotion after changes

This commit modifies the Mem2Reg's API to always attempt a full
promotion on all the passed in "allocators". This ensures that the pass
does not require unnecessary walks over the regions and improves caching
benefits.


  Commit: b7326dfdc64c6c7941964b61ffdebec5110084ab
      https://github.com/llvm/llvm-project/commit/b7326dfdc64c6c7941964b61ffdebec5110084ab
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M mlir/include/mlir/Interfaces/MemorySlotInterfaces.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMMemorySlot.cpp
    M mlir/lib/Dialect/MemRef/IR/MemRefMemorySlot.cpp
    M mlir/lib/Transforms/Mem2Reg.cpp
    A mlir/test/Transforms/mem2reg.mlir
    M mlir/test/lib/Dialect/Test/TestOpDefs.cpp
    M mlir/test/lib/Dialect/Test/TestOps.h
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  extend with fix for multi slot allocators


  Commit: ea65d22239afbc469cd0ac3735f8dbb36b5daf16
      https://github.com/llvm/llvm-project/commit/ea65d22239afbc469cd0ac3735f8dbb36b5daf16
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-05-10 (Fri, 10 May 2024)

  Changed paths:
    M mlir/include/mlir/Interfaces/MemorySlotInterfaces.td
    M mlir/lib/Transforms/Mem2Reg.cpp
    M mlir/test/Transforms/mem2reg.mlir
    M mlir/test/lib/Dialect/Test/TestOpDefs.cpp

  Log Message:
  -----------
  more review comments & better test


  Commit: 3b14b6ef34e299af84f1de054003aa371664617c
      https://github.com/llvm/llvm-project/commit/3b14b6ef34e299af84f1de054003aa371664617c
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-05-10 (Fri, 10 May 2024)

  Changed paths:
    M mlir/test/Transforms/mem2reg.mlir

  Log Message:
  -----------
  fix test


  Commit: 47d58b00cb6565406a67e971fd43fcf23458eec9
      https://github.com/llvm/llvm-project/commit/47d58b00cb6565406a67e971fd43fcf23458eec9
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-05-13 (Mon, 13 May 2024)

  Changed paths:
    M mlir/include/mlir/Interfaces/MemorySlotInterfaces.td
    M mlir/include/mlir/Transforms/SROA.h
    M mlir/lib/Dialect/LLVMIR/IR/LLVMMemorySlot.cpp
    M mlir/lib/Dialect/MemRef/IR/MemRefMemorySlot.cpp
    M mlir/lib/Transforms/SROA.cpp
    M mlir/test/lib/Dialect/Test/TestOpDefs.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  [MLIR][SROA] Reuse allocators to avoid rewalking the IR

This commit extends the SROA interfaces to ensure the impementations can
communicate newly created allocators to the algorithm. This ensures that
the SROA implementation does no longer require re-walking the IR to find
new allocators.


Compare: https://github.com/llvm/llvm-project/compare/0f0628b29593%5E...47d58b00cb65

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