[llvm-branch-commits] [flang] [flang] run CFG conversion on omp reduction declare ops (PR #84953)

Tom Eccles via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Mar 14 01:49:24 PDT 2024


tblah wrote:

> Wouldn't it be cleaner to expose the patterns via a `populateFirCfgConversionPatterns` function and reuse it in you extra pass instead of making two pass from the initial file?
> 
> We did this recently for the FirToLLVM patterns. #83492

Thanks for taking a look at this. I have extracted the patterns into an externally visible function, but I don't understand the benefit of splitting the two CFG conversion passes out into different files. I think this could be confusing because it would be unclear which file one should contain the definition of those conversion patterns. Keeping it in one file makes it clear that both do exactly the same thing on different target operations.

https://github.com/llvm/llvm-project/pull/84953


More information about the llvm-branch-commits mailing list