[all-commits] [llvm/llvm-project] 0d1490: [MLIR] Flatten fused locations when merging consta...

Benjamin Chetioui via All-commits all-commits at lists.llvm.org
Tue Dec 12 13:00:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d1490f09f23bf204b714c3c6ba5e0aaf4eeed9a
      https://github.com/llvm/llvm-project/commit/0d1490f09f23bf204b714c3c6ba5e0aaf4eeed9a
  Author: Benjamin Chetioui <3920784+bchetioui at users.noreply.github.com>
  Date:   2023-12-12 (Tue, 12 Dec 2023)

  Changed paths:
    M mlir/lib/Transforms/Utils/FoldUtils.cpp
    M mlir/test/Transforms/canonicalize-debuginfo.mlir

  Log Message:
  -----------
  [MLIR] Flatten fused locations when merging constants. (#75218)

[PR 74670](https://github.com/llvm/llvm-project/pull/74670) added
support for merging locations at constant folding time. We have
discovered that in some cases, the number of locations grows so big as
to cause a compilation process to OOM. In that case, many of the
locations end up appearing several times in nested fused locations.

We add here a helper that always flattens fused locations in order to
eliminate duplicates in the case of nested fused locations.




More information about the All-commits mailing list