[all-commits] [llvm/llvm-project] 9a6433: [flang] Inline hlfir.dot_product. (#123143)
Slava Zakharin via All-commits
all-commits at lists.llvm.org
Thu Jan 16 12:53:20 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9a6433f0ff1b8e294ac785ea3b992304574e0d8f
https://github.com/llvm/llvm-project/commit/9a6433f0ff1b8e294ac785ea3b992304574e0d8f
Author: Slava Zakharin <szakharin at nvidia.com>
Date: 2025-01-16 (Thu, 16 Jan 2025)
Changed paths:
M flang/include/flang/Optimizer/Builder/HLFIRTools.h
M flang/lib/Optimizer/Builder/HLFIRTools.cpp
M flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
A flang/test/HLFIR/simplify-hlfir-intrinsics-dotproduct.fir
Log Message:
-----------
[flang] Inline hlfir.dot_product. (#123143)
Some good results for induct2, where dot_product is applied
to a vector of unknow size and a known 3-element vector:
the inlining ends up generating a 3-iteration loop, which
is then fully unrolled. With late FIR simplification
it is not happening even when the simplified intrinsics
implementation is inlined by LLVM (because the loop bounds
are not known).
This change just follows the current approach to expose
the loops for later worksharing application.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list