llvm-project
464d321e - [flang][stack-arrays] Extend pass to work on declare ops and within omp regions (#98810)

Commit
1 year ago
[flang][stack-arrays] Extend pass to work on declare ops and within omp regions (#98810) Extends the stack-arrays pass to support `fir.declare` ops. Before that, we did not recognize malloc-free pairs for which `fir.declare` is used to declare the allocated entity. This is because the `free` op was invoked on the result of the `fir.declare` op and did not directly use the allocated memory SSA value. This also extends the pass to collect the analysis results within OpenMP regions.
Author
Parents
Loading