[all-commits] [llvm/llvm-project] 9e365f: [mlir] Retain metadata for single loc fusedloc

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Tue Jan 4 15:39:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e365fe326d694a05775dd166e21352e9529bd1d
      https://github.com/llvm/llvm-project/commit/9e365fe326d694a05775dd166e21352e9529bd1d
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/lib/IR/Location.cpp
    M mlir/test/IR/locations.mlir
    M mlir/test/python/ir/location.py

  Log Message:
  -----------
  [mlir] Retain metadata for single loc fusedloc

If a fusedloc is created with a single location then no fusedloc
was previously created and single location returned instead. In the case
where there is a metadata associated with the location this results in
discarding the metadata. Instead only canonicalize where there is no
loss of information.

Differential Revision: https://reviews.llvm.org/D115605




More information about the All-commits mailing list