[all-commits] [llvm/llvm-project] 83826c: [flang][openacc] Add ACCEraseUnusedKernelAllocatio...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Tue Sep 29 15:09:43 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 83826c271b0d8c8c56f4439501b3abff298c4a35
https://github.com/llvm/llvm-project/commit/83826c271b0d8c8c56f4439501b3abff298c4a35
Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M flang/include/flang/Optimizer/OpenACC/Passes.td
A flang/lib/Optimizer/OpenACC/Transforms/ACCEraseUnusedKernelAllocations.cpp
M flang/lib/Optimizer/OpenACC/Transforms/CMakeLists.txt
A flang/test/Fir/OpenACC/acc-erase-unused-kernel-allocations.mlir
Log Message:
-----------
[flang][openacc] Add ACCEraseUnusedKernelAllocations pass (#227481)
fir.declare carries a debug-memory effect and fir.freemem is a real
free, so an unused fir.allocmem inside acc.compute_region stays live
through ordinary dead-code elimination and is lowered to a checked
device malloc.
Delete that allocation when it has no uses, or when every use is
fir.freemem, a ViewLikeOpInterface view such as fir.convert, or
fir.declare of that storage. A load, store, or other memory use keeps
it. An unused private-recipe allocation is removed the same way as an
unused source array.
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