[flang][hlfir] Add hlfir.destroy operation.
Add the operation to mark the end of life of hlfir.expr. As described in its description this is the easiest solution to deploy given lowering "knows" where expression value are last used. However, inserting these points in lowering will probably make it harder to do some IR transformation that would move the code using or creating hlfir.expr (no use should be moved after an hlfir.destroy). Once the dust settle with the HLFIR change, it will be worth assessing the situation and see if an analysis could do a better and safer job at finding those destruction points. Depends on D141832 Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D141839
Loading
Please sign in to comment