[all-commits] [llvm/llvm-project] c2e7e7: Write a pass to annotate constant operands on FIR ...

Eric Schweitz via All-commits all-commits at lists.llvm.org
Mon Mar 14 11:15:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2e7e7595439be81b498de842ee49e4409645c0e
      https://github.com/llvm/llvm-project/commit/c2e7e7595439be81b498de842ee49e4409645c0e
  Author: Eric Schweitz <eschweitz at nvidia.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Transforms/Passes.h
    M flang/include/flang/Optimizer/Transforms/Passes.td
    A flang/lib/Optimizer/Transforms/AnnotateConstant.cpp
    M flang/lib/Optimizer/Transforms/CMakeLists.txt
    A flang/test/Fir/annotate-constant.fir

  Log Message:
  -----------
  Write a pass to annotate constant operands on FIR ops. This works
around the feature in MLIR's canonicalizer, which considers the semantics
of constants differently based on how they are packaged and not their
values and use.  Add test.

Reviewed By: clementval

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




More information about the All-commits mailing list