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

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Sep 13 11:16:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d588e49a324b3d6039c19f3108d722a8b9fcd96e
      https://github.com/llvm/llvm-project/commit/d588e49a324b3d6039c19f3108d722a8b9fcd96e
  Author: Matthias Springer <me at m-sp.org>
  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` (#108359)

The dialect conversion maintains a set of unresolved materializations
(`UnrealizedConversionCastOp`). Turn that set into a `DenseMap` 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