[all-commits] [llvm/llvm-project] b9482c: [flang] Improve designate/elemental indices match ...
Slava Zakharin via All-commits
all-commits at lists.llvm.org
Fri Jan 3 08:18:14 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b9482ceb97f7cf7cde707dd81a0149dc9958ae53
https://github.com/llvm/llvm-project/commit/b9482ceb97f7cf7cde707dd81a0149dc9958ae53
Author: Slava Zakharin <szakharin at nvidia.com>
Date: 2025-01-03 (Fri, 03 Jan 2025)
Changed paths:
M flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
A flang/test/HLFIR/opt-bufferization-same-ptr-elemental.fir
Log Message:
-----------
[flang] Improve designate/elemental indices match in opt-bufferization. (#121371)
This pattern appears in `tonto`: `rys1%w = rys1%w * ...`, where
component `w` is a pointer. Due to the computations transforming
the elemental's one-based indices to the array indices,
the indices match check did not pass in opt-bufferization.
This patch recognizes this indices adjusting pattern,
and returns the one-based indices for the designator.
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