[all-commits] [llvm/llvm-project] 06c0d1: [flang][acc] Remove dangling operands in OpenACCUt...
Susan Tan (ス-ザン タン) via All-commits
all-commits at lists.llvm.org
Thu Jul 9 07:35:57 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06c0d1b70402c1c55cdb1975b2a43148dd4fe646
https://github.com/llvm/llvm-project/commit/06c0d1b70402c1c55cdb1975b2a43148dd4fe646
Author: Susan Tan (ス-ザン タン) <zujunt at nvidia.com>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
M mlir/lib/Dialect/OpenACC/Utils/OpenACCUtilsTiling.cpp
M mlir/test/Dialect/OpenACC/acc-loop-tiling.mlir
Log Message:
-----------
[flang][acc] Remove dangling operands in OpenACCUtilsTiling (#208261)
When TILE has more dimensions than the loop's collapse count,
uncollapseLoops() synthesizes an inner loop via `createInnerLoop()`,
which
strips gang attributes from it but forgot to clear the gang operand
values. This left the loop with a non-empty gang operand list but no
device-type attribute, causing LoopOp::getGangValue() to dereference a
null attribute and crash with an assertion failure when the loop also
had
`GANG(STATIC:N) (or NUM/DIM)`.
Fix: also clear the gang operands when stripping gang attributes, so the
loop ends up fully gang-free.
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