[flang-commits] [flang] [mlir] [Flang][OpenMP] Don't generate code for unreachable target regions. (PR #178937)
Abid Qadeer via flang-commits
flang-commits at lists.llvm.org
Thu Feb 5 03:53:20 PST 2026
abidh wrote:
> In any case, I don't see a good reason to add an attribute to target regions to mark them as "deleted". I'd prefer to just delete them when this situation is detected.
Thanks for this suggestion. It is much better than marking. I have implemented it now. But I kept the removal in a separate pass which runs for both host and device so that we have the same view on both. The `FunctionFilteringPass` only runs on device.
https://github.com/llvm/llvm-project/pull/178937
More information about the flang-commits
mailing list