[all-commits] [llvm/llvm-project] 7c8ef8: [flang][hlfir] allow recursive intrinsic lowering

Tom Eccles via All-commits all-commits at lists.llvm.org
Sat Jun 10 07:51:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c8ef818f8d4a33d59c8d8b8bcfaad2ec51805b5
      https://github.com/llvm/llvm-project/commit/7c8ef818f8d4a33d59c8d8b8bcfaad2ec51805b5
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2023-06-10 (Sat, 10 Jun 2023)

  Changed paths:
    M flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIRIntrinsics.cpp
    M flang/test/HLFIR/matmul-lowering.fir

  Log Message:
  -----------
  [flang][hlfir] allow recursive intrinsic lowering

We need to allow recursive application of intrinsic lowering patterns,
otherwise we cannot lower nested calls of the same intrinsic e.g.
matmul(matmul(a, b), c).

matmul(matmul(a, b), matmul(c, d)) requires hlfir.associate of hlfir
expr with more than one use (TODO).

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




More information about the All-commits mailing list