[all-commits] [llvm/llvm-project] 41f478: [Flang][HLFIR] Relax size check for dot_product in...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Tue Jul 18 02:27:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41f478f0419781f6968de0661ce570916c9de863
      https://github.com/llvm/llvm-project/commit/41f478f0419781f6968de0661ce570916c9de863
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
    M flang/test/Lower/HLFIR/dot_product.f90

  Log Message:
  -----------
  [Flang][HLFIR] Relax size check for dot_product intrinsic

If the size of one of the operand arrays is not known at compile
time, do not issue a size mismatch error sinc they could match at
runtime.

Fixes the compilation error in polyhedron/induct2.

Reviewed By: tblah, vzakhari

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


  Commit: fe705c3426b4ea30d210465553862628b07300b1
      https://github.com/llvm/llvm-project/commit/fe705c3426b4ea30d210465553862628b07300b1
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/FIRBuilder.h
    M flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIRIntrinsics.cpp
    M flang/test/HLFIR/matmul-lowering.fir
    M flang/test/HLFIR/product-lowering.fir
    M flang/test/HLFIR/sum-lowering.fir

  Log Message:
  -----------
  [Flang][HLFIR] Intrinsics: Propagate fast math flags

Add a new FirOpBuilder constructor to propagate the fast math flag
from an operation. Use this constructor in the LowerHLFIRIntrinsics
pass.

This fixes the performance issue with the hlfir intrinsics flow
for polyhedron/test_fpu2.

Reviewed By: tblah, vzakhari

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


Compare: https://github.com/llvm/llvm-project/compare/505335a99d46...fe705c3426b4


More information about the All-commits mailing list