[all-commits] [llvm/llvm-project] aaeac3: [flang][TargetRewrite] Keep argument attributes co...
Slava Zakharin via All-commits
all-commits at lists.llvm.org
Tue Jul 7 18:08:44 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aaeac36566967650fcd63797a10da065eaedd90f
https://github.com/llvm/llvm-project/commit/aaeac36566967650fcd63797a10da065eaedd90f
Author: Slava Zakharin <szakharin at nvidia.com>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
M flang/test/Fir/target-rewrite-arg-position.fir
Log Message:
-----------
[flang][TargetRewrite] Keep argument attributes consistent after ABI arg shift (#208124)
When target-rewrite expands an argument into several arguments
(for example splitting a complex value into two scalars),
the arguments after it shift to the right.
Argument attributes were only moved for a shift introduced
by result lowering, so an attribute on a later argument
(e.g. fir.host_assoc) could stay on its old index and end up
on an unrelated argument. Remap every saved argument
attribute to the new index of its argument.
This is a consistency fix and may not cause a miscompile today.
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