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

Matthias Springer via All-commits all-commits at lists.llvm.org
Thu Sep 12 03:48:27 PDT 2024


  Branch: refs/heads/users/matthias-springer/mat_cache
  Home:   https://github.com/llvm/llvm-project
  Commit: a9c69d1733662b3299bd3f4d41982422640dc034
      https://github.com/llvm/llvm-project/commit/a9c69d1733662b3299bd3f4d41982422640dc034
  Author: Matthias Springer <mspringer at nvidia.com>
  Date:   2024-09-12 (Thu, 12 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