[all-commits] [llvm/llvm-project] e724e4: [mlir][Transforms][NFC] Dialect conversion: Cache ...

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Sep 13 10:55:39 PDT 2024


  Branch: refs/heads/users/matthias-springer/mat_cache
  Home:   https://github.com/llvm/llvm-project
  Commit: e724e4491effdfad44d0c1331acd83b8aa75a33b
      https://github.com/llvm/llvm-project/commit/e724e4491effdfad44d0c1331acd83b8aa75a33b
  Author: Matthias Springer <mspringer at nvidia.com>
  Date:   2024-09-13 (Fri, 13 Sep 2024)

  Changed paths:
    M mlir/lib/Transforms/Utils/DialectConversion.cpp

  Log Message:
  -----------
  [mlir][Transforms][NFC] Dialect conversion: Cache `UnresolvedMaterializationRewrite`

The dialect conversion already maintains a set of unresolved materializations (`UnrealizedConversionCastOp`). Turn that set into a map that maps from ops to `UnresolvedMaterializationRewrite *`. This improves efficiency a bit, because an iteration over `ConversionPatternRewriterImpl::rewrites` can be avoided.

Also delete some dead code.



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