[flang-commits] [PATCH] D134197: [flang] Deallocate WHERE masks after all assignments

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Sep 19 10:08:19 PDT 2022


jeanPerier created this revision.
jeanPerier added reviewers: PeteSteinfeld, clementval.
jeanPerier added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.

Allocatable assignments were triggering lowering to clean-up
any WHERE mask temporaries, even if some assignments where left
in the WHERE construct.

This is because allocatable assignments lowering was being passed the
wrong statement context. Fix this by selecting the where/forall statement
context instead of a local one when there is one.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134197

Files:
  flang/lib/Lower/Bridge.cpp
  flang/test/Lower/where-allocatable-assignments.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134197.461253.patch
Type: text/x-patch
Size: 4959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220919/bb39c18e/attachment-0001.bin>


More information about the flang-commits mailing list